Search found 417 matches

by Stewart Marshall
Fri Aug 11, 2017 11:35 am
Forum: Questions & Answers
Topic: How to view the data entered during Install
Replies: 3
Views: 1711

Re: How to view the data entered during Install

Everything you need to know should be available from the About dialog
Capture.PNG
Capture.PNG (9.53 KiB) Viewed 1696 times
Regards
by Stewart Marshall
Fri Aug 11, 2017 10:19 am
Forum: Questions & Answers
Topic: VL_WEB - pop up
Replies: 8
Views: 3323

Re: VL_WEB - pop up

There is an inherent risk when using MouseHover and MouseLeave to control the appearance of a popup. If the popup appears beneath the mouse, it can cause the MouseLeave to fire immediately. This will make it seems as though the popup is never shown. This sample demonstrates the issue. Note how the b...
by Stewart Marshall
Thu Aug 10, 2017 3:17 pm
Forum: Questions & Answers
Topic: Calling Server Routine from HTML/Javascript
Replies: 9
Views: 3628

Re: Calling Server Routine from HTML/Javascript

Hi Jim It's neither of those. It's a WebPage component. Srvroutine Name(SignedIn) Response(*WebPage #MainApplicationWebPage) Endroutine An example might be that you use the first page to manage signing in to the application. Assuming success, you can execute the SRVRoutine. This will then return the...
by Stewart Marshall
Thu Aug 10, 2017 10:03 am
Forum: Questions & Answers
Topic: Calling Server Routine from HTML/Javascript
Replies: 9
Views: 3628

Re: Calling Server Routine from HTML/Javascript

By default, a SRVRoutine returns the data as JSON, meaning that the web application works more like a traditional client server app.

*WebPage, followed by the name of the desired WebPage, means that you get a completely new page served to the browser.
by Stewart Marshall
Thu Aug 10, 2017 8:45 am
Forum: Questions & Answers
Topic: VL_WEB - pop up
Replies: 8
Views: 3323

Re: VL_WEB - pop up

I've just tried the following code in a 14 Sp1 system. As far as I can see it works as expected in all browsers. You say it doesn't work in Firefox. What actually happens? Begin_Com Role(*EXTENDS #PRIM_WEB) Height(448) Width(640) Theme(#SYS_THEME<2015Blue>) Define_Com Class(#PRIM_LABL) Name(#Label1)...
by Stewart Marshall
Wed Aug 09, 2017 12:43 pm
Forum: Questions & Answers
Topic: TimeStamp Math
Replies: 5
Views: 2711

Re: TimeStamp Math

There are no intrinsic functions to modify times at present, so a little bit of manipulation is required Simplest technique I think it to turn everything in to seconds and the back in to a date and time. Here's a very rough and ready version. This only works for positive values. Begin_Com Role(*EXTE...
by Stewart Marshall
Tue Aug 08, 2017 1:44 pm
Forum: Questions & Answers
Topic: VL_WEB - pop up
Replies: 8
Views: 3323

Re: VL_WEB - pop up

As per Joe's previous reply, but the popup has been associated with the label via the HintPopup property which will show the popup when the mouse hovers of the label Regards Begin_Com Role(*EXTENDS #PRIM_WEB) Height(544) Width(640) Layoutmanager(#Layout1) Theme(#SYS_THEME<2015Blue>) Define_Com Class...
by Stewart Marshall
Mon Aug 07, 2017 9:33 am
Forum: Questions & Answers
Topic: VL Web - How to divide text on several lines
Replies: 3
Views: 2050

Re: VL Web - How to divide text on several lines

Hi Romain The HTML control itself is transparent, but the text colour will be adopted from the theme. If you want to "theme" any embedded text colours, you'll need to do that manually, although I'm not sure how practical that is in the real world. Here I'm replacing &1, &2...with RGB values from the...
by Stewart Marshall
Mon Aug 07, 2017 9:03 am
Forum: Questions & Answers
Topic: Time Intrinsic
Replies: 1
Views: 1050

Re: Time Intrinsic

Hi Jim On the web, a Time variable will return the local time, and a DateTime variable will return the UTC. DateTime has the .AsLocalizedDateTime intrinsic. Regards Begin_Com Role(*EXTENDS #PRIM_WEB) Height(500) Width(850) LayoutManager(#Layout1) Define_Com Class(#PRIM_TBLO) Name(#Layout1) Define_Co...
by Stewart Marshall
Fri Aug 04, 2017 9:52 am
Forum: Questions & Answers
Topic: VL Web - How to divide text on several lines
Replies: 3
Views: 2050

Re: VL Web - How to divide text on several lines ?

Hi Romain This is simple in VL too. The simple solution is to use an HTML control and to populate it with text as required. The control is ContentHeightFitToWidth, so as the page size changes, the text will wrap and the control will get bigger/smaller as required Regards Begin_Com Role(*EXTENDS #PRI...
by Stewart Marshall
Wed Aug 02, 2017 4:33 pm
Forum: Questions & Answers
Topic: PRIM_WEB.MessageBox in LANSA Mobile
Replies: 2
Views: 1414

Re: PRIM_WEB.MessageBox in LANSA Mobile

Hi Jim

If the behaviour is incorrect under a specific circumstance, I'd suggest that it's a bug.

Do you have a simple example?

Regards
by Stewart Marshall
Wed Jul 26, 2017 1:21 pm
Forum: Questions & Answers
Topic: Repository Field Update Refresh Timing
Replies: 1
Views: 1289

Re: Repository Field Update Refresh Timing

Hi Joe

This is definitely a compile issue.

Changes to field length, decimals, attributes etc., all require the objects using them be recompiled.

Regards
by Stewart Marshall
Tue Jul 25, 2017 10:59 am
Forum: Questions & Answers
Topic: [SOLVED] Set a specific Unicode Field
Replies: 2
Views: 1699

Re: Set a specific Unicode Field

Hi Paul

Doesn't AsUnicodeString get you the result you want, or have I misunderstood the requirement?

Code: Select all

#xDemoUnicode128 := "Some text" + (9999).AsUnicodeString + "More text"
Regards
by Stewart Marshall
Tue Jul 25, 2017 10:28 am
Forum: Questions & Answers
Topic: Setting and Getting Cookies
Replies: 3
Views: 1731

Re: Setting and Getting Cookies

Hi Casey

Is there specific cookie functionality that you require?

As Joe said, LocalStorage (http://docs.lansa.com/14/en/lansa016/PR ... torage.htm) is now the recommended technique for storing user data on the client.

Regards
by Stewart Marshall
Tue Jul 25, 2017 10:23 am
Forum: Questions & Answers
Topic: Image Sizing
Replies: 4
Views: 2208

Re: Image Sizing

When using BestFit, the image size will resize so that it fits within the available space. This means it's size is governed by whichever is the smaller of Height and Width. If you have an image control that is 175 high and FitTtoWidth, the width can change to 1000 but the image itself will only disp...
by Stewart Marshall
Fri Jun 30, 2017 6:12 pm
Forum: Questions & Answers
Topic: Component and Property Source Order
Replies: 1
Views: 1401

Re: Component and Property Source Order

Hi Joe The Get portion of the Property definition seems to be OK, but as soon as the Set is added the sequence of the declarations becomes important. This is perfectly normal, albeit a little strange. LANSA is quite flexible in where it lets you define certain things, but best practice is always to ...
by Stewart Marshall
Thu Jun 29, 2017 12:09 pm
Forum: Tips and Techniques
Topic: xDemoWebCSV - Download a CSV
Replies: 0
Views: 2555

xDemoWebCSV - Download a CSV

The shipped xDemoWebCSV had a bug that prevented it working correctly.

The attached zip contains a corrected version

Regards
by Stewart Marshall
Wed Jun 28, 2017 5:55 pm
Forum: Questions & Answers
Topic: Vertical Carousel Swipe
Replies: 3
Views: 3490

Re: Vertical Carousel Swipe

Your request has highlighted that we could do with an Orientation property on Carousel, so please log an enhancement request for this. And sadly, Tree will give you smooth scrolling as per any normal scrolling control and there's no real way around that. However, there is a third option that doesn't...
by Stewart Marshall
Tue Jun 27, 2017 6:36 pm
Forum: Questions & Answers
Topic: Vertical Carousel Swipe
Replies: 3
Views: 3490

Re: Vertical Carousel Swipe

From what you've said, you've effectively made a vertically scrolling set of panels by rotating everything in the Carousel so that it looks right. Tree (Prim_tree) however provides exactly the functionality you need. Use of both controls is just about identical. You can change your design part to im...
by Stewart Marshall
Tue Jun 27, 2017 5:46 pm
Forum: Questions & Answers
Topic: How to change edit code on WLWeb
Replies: 1
Views: 1257

Re: How to change edit code on WLWeb

Hi Shumpei

Field definitions are compiled into the generated JavaScript, so you can't change the behaviour of a field runtime.

AsDisplayString can only be used to generate a string from a numeric variable.

Regards