Search found 157 matches

by dannyoorburg
Tue Sep 04, 2018 5:58 am
Forum: Questions & Answers
Topic: how to change the date format in a datepicker [accepted as enhancement]
Replies: 9
Views: 3361

Re: how to change the date format in a datepicker?

Hi, The format should indeed come from the locale file, exactly like Theo said If you're running in the FRA language, make sure your Partition has 'fr' as the ISO language code for the FRA language. This is how the web page knows which locale file to use. If the ISO language code is empty, fill it i...
by dannyoorburg
Mon Sep 03, 2018 9:17 am
Forum: Questions & Answers
Topic: VLF-ONE Client Side Repository Validation
Replies: 4
Views: 1778

Re: VLF-ONE Client Side Repository Validation

Hi Joe, you're right, it doesn't support lookups and complex logic checks (at least, currently it doesn't). It only supports checks that CAN actually be performed on the client using only information that is at that point in time available on the client. Since lookups involve database access and com...
by dannyoorburg
Thu Aug 23, 2018 12:59 pm
Forum: Questions & Answers
Topic: HTML Container Height
Replies: 2
Views: 1081

Re: HTML Container Height

Hi, Have a look at the following sample Web Page, it uses Sizing(ContentHeight) on the HTML container. Goodluck, Danny Begin_Com Role(*EXTENDS #PRIM_WEB) LayoutManager(#Layout1) Define_Com Class(#PRIM_VS.Style) Name(#Style1) BorderBottom(1) BorderLeft(1) BorderRight(1) BorderTop(1) Define_Com Class(...
by dannyoorburg
Wed Jul 04, 2018 12:59 pm
Forum: Tips and Techniques
Topic: Accessing views and the main page from anywhere in an app using Scope(*APPLICATION)
Replies: 2
Views: 8986

Accessing views and the main page from anywhere in an app using Scope(*APPLICATION)

Hi all, I just found myself writing some code and thought it might be a useful concept to share with all LANSA 14.2 developers out there. By setting up some useful global references in the CreateInstance event of my main page I now have access to the main page and its views from anywhere in my appli...
by dannyoorburg
Fri Jun 15, 2018 3:53 pm
Forum: Questions & Answers
Topic: VL Web Material Design
Replies: 2
Views: 993

Re: VL Web Material Design

Hi, No, nothing new. The paradigm is still the same. I usually just signal events from Views, in your case something like Signal Event(CourseSelected) CourseId( ... ) Since the main Web Page has a reference to all the Views, it is the perfect place to handle View-Events and decide on navigation. It ...
by dannyoorburg
Tue Jun 05, 2018 7:38 am
Forum: Questions & Answers
Topic: VL-Win Placeholder color
Replies: 2
Views: 760

Re: VL-Win Placeholder color

Hi,

You can probably use

PlaceholderColor(#Theme01<Green>.TextColor)

Provided you defined the style using the textcolor property....

(Doing this on my phone so guessing a bit 😊)

You might not be able to do this on the define_com. Might have to be at runtime.

Give it a try...

Danny
by dannyoorburg
Thu May 31, 2018 6:10 am
Forum: Questions & Answers
Topic: Date format for web and date popup style
Replies: 1
Views: 780

Re: Date format for web and date popup style

Hi,

You have to set your ISO language code for ENG in your partition to en-GB and recompile your webpage.

Cheers,
Danny
by dannyoorburg
Sat May 05, 2018 6:53 am
Forum: Questions & Answers
Topic: Remaining Session time
Replies: 3
Views: 974

Re: Remaining Session time

Hi, I think you're misinterpreting the SessionTimeout parameter. Every time you run a request on the server you're keeping the session alive. It represents the time between requests that causes the server to cancel the session. So by definition, you can't run code and query it. Every time you run co...
by dannyoorburg
Wed Apr 25, 2018 8:04 am
Forum: Questions & Answers
Topic: VLF-ONE handling avExecuteAsyncOperation failure
Replies: 2
Views: 645

Re: VLF-ONE handling avExecuteAsyncOperation failure

Hi Joe,

That's correct, they still fire.

Also there's the catch-all RequestFailed event on #SYS_WEB that fires for both Sync and Async.

Danny.
by dannyoorburg
Tue Apr 17, 2018 2:16 pm
Forum: Questions & Answers
Topic: Best way to show/animate loading on VL-WEB
Replies: 7
Views: 1859

Re: Best way to show/animate loading on VL-WEB

If you do want to use the Repository, register your gif as an External Resource in the Partition VL-Web folder

The External Resource is now just another LANSA object in your App and you can even refer to it in your code.


#Image.FileName := #MyExternalResource


Danny
by dannyoorburg
Sat Apr 14, 2018 7:32 am
Forum: Questions & Answers
Topic: VLWEB Color picker
Replies: 5
Views: 1929

Re: VLWEB Color picker

It's easiest to just keep a reference to the element..

this.colorPicker = document.createElement("input");
this.colorPicker.type = "color";

And then just say

this.colorPicker.value = strNewColour;


This way of coding also allows you to create multiple instances of a widget.....

Danny
by dannyoorburg
Fri Apr 06, 2018 7:45 pm
Forum: Questions & Answers
Topic: Table layout/Attachment Layout (web) (responsiveness)
Replies: 2
Views: 893

Re: Table layout/Attachment Layout (web) (responsiveness)

No, attachment layout works fine too.

Choose whatever is appropriate for the layout you want.

Danny
by dannyoorburg
Fri Mar 16, 2018 12:27 pm
Forum: Questions & Answers
Topic: To specify #PRIM_PPNL.Parent or not
Replies: 2
Views: 776

Re: To specify #PRIM_PPNL.Parent or not

Hi,

you parent a popup if you want to use layout management to determine its size and position on the screen.

If you just want to show a popup a fixed size on a fixed position (or screen center), it doesn't need it.

Danny
by dannyoorburg
Fri Mar 16, 2018 12:25 pm
Forum: Questions & Answers
Topic: VLWEB Property Question
Replies: 3
Views: 1336

Re: VLWEB Property Question

Hi,

VL doesn't like you defining a property using a locally defined field.

I agree it probably should or at least the message could be better...

For now, you better use a repository defined field or a just a define com of a PRIM_BOLN.

Cheers,
Danny
by dannyoorburg
Wed Mar 07, 2018 12:52 pm
Forum: Questions & Answers
Topic: adding theme to reusable part embed in simple html page
Replies: 4
Views: 1227

Re: adding theme to reusable part embed in simple html page

And in the CreateInstance event of your Reusable Part?
by dannyoorburg
Wed Mar 07, 2018 9:54 am
Forum: Questions & Answers
Topic: adding theme to reusable part embed in simple html page
Replies: 4
Views: 1227

Re: adding theme to reusable part embed in simple html page

Hi,

I haven't tried it, but I expect the following line to work, even in this scenario...

#SYS_WEB.WebPage.Theme <= #SYS_THEME<2015Blue>

Cheers,
Danny
by dannyoorburg
Fri Mar 02, 2018 5:08 pm
Forum: Questions & Answers
Topic: VLWEB Tree
Replies: 2
Views: 771

Re: VLWEB Tree

Hi,

I think you need to use the ADD_ENTRY command for the field-mapping to work... I'm not sure it runs as part of the Add method.

Danny
by dannyoorburg
Wed Feb 14, 2018 12:58 pm
Forum: Questions & Answers
Topic: Display fixes itself when resizing browser
Replies: 1
Views: 565

Re: Display fixes itself when resizing browser

Hi,

is it all browsers? Is it all the time?

It sounds like something I would take up with LANSA Support unless you can narrow it down to a simple example you can share on the forum.

Cheers,
Danny
by dannyoorburg
Tue Feb 13, 2018 11:13 am
Forum: Questions & Answers
Topic: VL-Win problem
Replies: 6
Views: 1910

Re: VL-Win problem

Hi, Running in DirectX introduces the capability to handle mouse-over/enter/leave events. Rightly or wrongly, following the logic of all other events in Visual LANSA, these events update the current item and the corresponding field values as they fire. That's the behaviour you're seeing. I think you...
by dannyoorburg
Mon Feb 12, 2018 9:36 am
Forum: Questions & Answers
Topic: Informative browser tabs with VLF-ONE?
Replies: 5
Views: 1707

Re: Informative browser tabs with VLF-ONE?

Glad I could have been of help... #SYS_WEB.WebPage is just a reference to the Main Page that you can access from anywhere in your code. It is of class #PRIM_WEB, which has all its features documented in: http://docs.lansa.com/14/en/lansa016/prim_web.htm You can find a lot of help on LANSA classes an...