Search found 56 matches

by JamesDuignan
Tue Jul 23, 2019 4:51 pm
Forum: Questions & Answers
Topic: VL-web layout mobile (SOLVED)
Replies: 12
Views: 209

Re: VL-web layout mobile

Hi Claus, if you are using a table layout on your webpage make the top and bottom rows units to be pixels and the content area to be proportion. for example: Begin_Com Role(*EXTENDS #PRIM_WEB) Theme(#SYS_THEME<MaterialDesignBlue>) Layoutmanager(#LayoutMain) Define_Com Class(#PRIM_TBLO) Name(#LayoutM...
by JamesDuignan
Wed May 29, 2019 4:52 pm
Forum: Questions & Answers
Topic: Epoch timestamp (ISO 8601) from datetime in Lansa (solved)
Replies: 4
Views: 464

Re: Epoch timestamp (ISO 8601) from datetime in Lansa

Hi, To get this you would do a day difference between 1970-01-01 and today times this by 86400 for seconds then add on the seconds from midnight using the time as seconds intrinsic. it would look something like: #STD_INT := (#DateTimex.Now.Date.Difference( 1970-01-01 ) * 86400) + #DateTimex.Time.AsS...
by JamesDuignan
Mon Apr 15, 2019 8:54 am
Forum: Questions & Answers
Topic: Display Web page in popup
Replies: 3
Views: 8728

Re: Display Web page in popup

Hi Art,

I found this out because in Chrome the page in the frame says connection refused and in Firefox you get the following message in the console:
Console.PNG
Console.PNG (3.66 KiB) Viewed 8683 times
Regards,
James
by JamesDuignan
Fri Apr 12, 2019 11:47 am
Forum: Questions & Answers
Topic: Display Web page in popup
Replies: 3
Views: 8728

Re: Display Web page in popup

Hi Art, It looks as if UPS site does not allow it to be embedded in a page so the use of prim_web.page or prim_web.HTML to us an iFrame in a LANSA pop up or dialog are not suitable for this. But it can be achieved by sending the url to a widget to open a new popup window see attached. QuickExportArt...
by JamesDuignan
Thu Mar 28, 2019 10:46 am
Forum: Questions & Answers
Topic: Positioning Alert control
Replies: 4
Views: 4452

Re: Positioning Alert control

Hi Gyehyun, This is dependent on how you are laying out your content, but I suspect using a table layout with positioning to bottom center for the alert should display it at the bottom of the visible page and allow scrolling to of the other content without effecting the position of the alert itself....
by JamesDuignan
Wed Mar 27, 2019 10:46 am
Forum: Questions & Answers
Topic: Positioning Alert control
Replies: 4
Views: 4452

Re: Positioning Alert control

Hi, PRIM_MD.Alert controls are designed to have only 1 or 2 lines of text on them. They are realistically only for showing short messages which would be the action and the result, such a "File abc.docx upload successful" or "File abc.docx download Failed". This can be accompanied by a button to perf...
by JamesDuignan
Mon Feb 11, 2019 7:30 am
Forum: Questions & Answers
Topic: Double click on list can't show loading image
Replies: 8
Views: 2456

Re: Double click on list can't show loading image

Hi Art,

That was my bad, The second '#Panel.Image #VIEW.Image <= #sys_web.LoadingImage' should actually be #Panel.Image #VIEW.Image <= *null
Regards,
James
by JamesDuignan
Fri Feb 08, 2019 8:32 am
Forum: Questions & Answers
Topic: Double click on list can't show loading image
Replies: 8
Views: 2456

Re: Double click on list can't show loading image

Hi Art, To expand on what Danny was saying, if your list is not directly defined on the web page i.e. in a view, panel or dialog. you should consider using the image property of the view/dialog/panel. This is what is happening in the SCRUDS. Also, as it has to be an ASYNC call to the server, you may...
by JamesDuignan
Thu Dec 20, 2018 1:20 pm
Forum: Questions & Answers
Topic: Remember popup position, grid column changes
Replies: 2
Views: 3388

Re: Remember popup position, grid column changes

Just to add, it is also important to consider the online/offline capabilities. If it is needed to be used offline as a big proponent of the application, then I would be considering using the local storage in one form or another. If not, then storing it on the server gives you the versatility aspect ...
by JamesDuignan
Mon Dec 17, 2018 11:29 am
Forum: Questions & Answers
Topic: Caps Lock indicator?
Replies: 2
Views: 2674

Re: Caps Lock indicator?

Hi Soritos, The easiest method to do this would be putting some simple logic into the keypress event of a the input field. The checks are something like 1. If shift is down and the character is lowercase caps lock is on. 2. If shift isn't down and character is uppercase caps lock is on. 3. If shift ...
by JamesDuignan
Mon Oct 22, 2018 8:45 am
Forum: Questions & Answers
Topic: Deployment tool: How to uninstall a patch [SOLVED]
Replies: 2
Views: 1219

Re: Deployment tool: How to uninstall a patch?

Hi Romain, Go to control panel > Programs and features. In the top left is an item that says view installed updates, click on this. aa1.PNG Find your application in the list. Right click on the version you want to roll back and select uninstall. aa2.PNG this will uninstall the patch. Regards, James ...
by JamesDuignan
Fri Sep 28, 2018 5:38 am
Forum: Questions & Answers
Topic: I need a bit of feedback on O/S Versions
Replies: 1
Views: 782

I need a bit of feedback on O/S Versions

In people’s experiences how common are 32bit versions of Windows still being utilised for:
i) server installations
ii) client installations

Regards,
James Duignan
by JamesDuignan
Fri Sep 21, 2018 9:34 am
Forum: Questions & Answers
Topic: Material Design Dropdown
Replies: 9
Views: 2600

Re: Material Design Dropdown

Hi Art,

This was rectified in EPC142010. Applying this EPC will fix your issue https://www.lansa.com/support/notes/epc/epc142010.htm

Regards,
James
by JamesDuignan
Thu Sep 13, 2018 8:47 am
Forum: Questions & Answers
Topic: Layouts again
Replies: 2
Views: 967

Re: Layouts again

Hi Art, I think the example below is what you are after. Key thing is that the Reusable part and the Table it contains are both set to fit to width. I put a panel into this to contain the table, for the sake of simplicity, but the concept is the same for using a reusable part. Begin_Com Role(*EXTEND...
by JamesDuignan
Tue Sep 11, 2018 8:49 am
Forum: Questions & Answers
Topic: Adjust a date by month
Replies: 4
Views: 1579

Re: Adjust a date by month

Stewart is correct, xdemoutilities has a very good example of adjusting the date and validating the adjusted date. I have used this code as a starting point for my own date validations in several programs. If you want to see it in action run form xDemoDateHandling. This demonstrates xdemoutilities d...
by JamesDuignan
Thu Aug 23, 2018 9:00 am
Forum: Questions & Answers
Topic: I’d like to get some feedback / discussion going on these 2 questions …………….
Replies: 6
Views: 2070

Re: I’d like to get some feedback / discussion going on these 2 questions …………….

On the weekend I had to get a new sim card from my telco. I noticed that to access their internal system they had to use IE. The reason this stood out was because they were using boot camp on a Mac to run Windows 7 just to open IE.

Regards,
James
by JamesDuignan
Thu Aug 02, 2018 11:37 am
Forum: Questions & Answers
Topic: Control allowed characters (DBCS/SBCS) for PRIM_MD.Edit field
Replies: 7
Views: 1850

Re: Control allowed characters (DBCS/SBCS) for PRIM_MD.Edit field

Hi Jim and Kazu, Here is an example to dynamically create the MD input field to be dynamically created of the visualisation of a repository field. Basically you need to use the PRIM_MD.Input, this is the base class for MD editfield, spineditfield and DropdownField. From there you simply assign the f...
by JamesDuignan
Thu Aug 02, 2018 10:24 am
Forum: Questions & Answers
Topic: Control allowed characters (DBCS/SBCS) for PRIM_MD.Edit field
Replies: 7
Views: 1850

Re: Control allowed characters (DBCS/SBCS) for PRIM_MD.Edit field

Hi Jim, How would you dynamically create and destroy an Editfield. Is this then associated with the PRIM_MD.Edit field? This is nothing special to MD fields, it is like any other dynamically referenced LANSA objects. This is just a suggestion of how they can achieve using different rulesets and defi...
by JamesDuignan
Wed Aug 01, 2018 8:54 am
Forum: Questions & Answers
Topic: Should we use Material Design Style controls when developing VL Web application after V14 SP2?
Replies: 6
Views: 1835

Re: Should we use Material Design Style controls when developing VL Web application after V14 SP2?

Joe is correct,

It is in Settings > General > Design > Drop Fields as Material Design
dropMD.PNG
dropMD.PNG (36.01 KiB) Viewed 1715 times
by JamesDuignan
Wed Aug 01, 2018 8:45 am
Forum: Questions & Answers
Topic: Material Design Error
Replies: 4
Views: 983

Re: Material Design Error

Hi Art, The "14_1_5 ... sa_base.js" tells me that it is using the old runtime, so it does not contain the new controls. It should be using 14_2_0_8. This will generally be because the webpage has not been recompiled or the browser is using a cached version of the runtime. Try clearing the cache firs...