Search found 145 matches

by dannyoorburg
Mon Nov 05, 2018 9:25 am
Forum: Questions & Answers
Topic: Refresh a changed #PRIM_TBLO.Item
Replies: 3
Views: 1377

Re: Refresh a changed #PRIM_TBLO.Item

Hi, I don't think your code does what you think it does :) I never see the ComponentTag of the layout item being assigned any value... I suggest you just compare references, instead of ComponentTag values, so instead of If Cond(#LayoutItemBotton.ComponentTag *EQ #Button.ComponentTag) it is be much e...
by dannyoorburg
Thu Oct 18, 2018 1:32 pm
Forum: Questions & Answers
Topic: VLF-ONE Script Error on Debug with Breakpoint
Replies: 3
Views: 1772

Re: VLF-ONE Script Error on Debug with Breakpoint

Hi Joe, I can only reply to the debugging crash, not your reason for debugging in the first place :) The crash is a bug in the LANSA runtime's debugging module. It is trying to capture the current callstack and the state of all variables in the active scope so it can send it to the Editor to display...
by dannyoorburg
Tue Oct 09, 2018 9:20 am
Forum: Questions & Answers
Topic: file picker and CSV file
Replies: 3
Views: 1159

Re: file picker and CSV file

Hi, I can tell you what I know. I'm not quite clear in how far you got in getting what you want. - A BLOB field on the SERVER contains a path to a file on disk containing the data. - A BLOB field in the BROWSER contains a (blob-)url to a piece of memory containing the data. LANSA allows a BLOB to be...
by dannyoorburg
Wed Sep 19, 2018 6:46 am
Forum: Questions & Answers
Topic: Going crazy, problem with Server Function and List
Replies: 9
Views: 2522

Re: Going crazy, problem with Server Function and List

Hi,

Well done to both you. That wouldn't have been obvious.

I guess it's technically correct for a local parameter to obscure a global field.

But not very helpful indeed.

Did either of you log it as a defect, do you know?

Cheers,
Danny
by dannyoorburg
Wed Sep 19, 2018 5:42 am
Forum: Questions & Answers
Topic: Going crazy, problem with Server Function and List
Replies: 9
Views: 2522

Re: Going crazy, problem with Server Function and List

Hi Art,

If you're still looking, what are the field names in the JSON, I think it's above [entries] in a header variable, I might be wrong....

And how do they compare to the field names in the generated JavaScript for the call to the Server?

Danny
by dannyoorburg
Tue Sep 18, 2018 1:51 pm
Forum: Questions & Answers
Topic: Going crazy, problem with Server Function and List
Replies: 9
Views: 2522

Re: Going crazy, problem with Server Function and List

Hi Art, sorry, catching up. Is there anything else special about those 3 fields (#ShAcco001 #shAlphaCD #shCntl001)? Are they components? Are they long names with a different identifier? Does it do the same if you comment out the Add but leave in the Trace? As a last resort, can you see the request c...
by dannyoorburg
Tue Sep 18, 2018 1:00 pm
Forum: Questions & Answers
Topic: Going crazy, problem with Server Function and List
Replies: 9
Views: 2522

Re: Going crazy, problem with Server Function and List

Hi Art, You're probably misinterpreting the Add method. https://docs.lansa.com/14/en/lansa016/prim_md.dropdownitems_add.htm Material Design dropdowns can only ever show one string value per entry... The method has 2 parameters because value and caption don't necessarily always match. Cheers, Danny
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: 3241

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: 1715

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: 1035

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: 8887

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: 943

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: 720

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: 748

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: 924

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: 616

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: 1772

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: 1846

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: 848

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

No, attachment layout works fine too.

Choose whatever is appropriate for the layout you want.

Danny