Search found 41 matches

by Pablo
Sat Aug 24, 2019 4:39 am
Forum: Questions & Answers
Topic: Publishing secured Rest API with UserID and Password (RESOLVED)
Replies: 2
Views: 141

Re: Publishing secured Rest API with UserID and Password

Hi Marcel, The session and session key method you are referring to are ignored by the REST Api. The current implementation of REST - v14SP2 + EPCs - does not include security. I believe there will soon be an EPC with major enhancements to the current implementation + security and maybe some other fe...
by Pablo
Fri Jul 26, 2019 12:11 am
Forum: Questions & Answers
Topic: Dynamic menu in VL WEB (SOLVED)
Replies: 2
Views: 102

Re: Dynamic menu in VL WEB

Hi Klaus, You are only instantiating one menu item: #TempItem <= (*New #Prim_Md.MenuItem) Therefore these commands ... Set Com(#TempItem) Parent(#Menu) ... are affecting the one #TempItem you have created and the collection will only have that one item. You need to create the other ones in the same ...
by Pablo
Tue Mar 26, 2019 12:32 am
Forum: Questions & Answers
Topic: Lansa Server Side Function
Replies: 1
Views: 1222

Re: Lansa Server Side Function

Hi Dave,

see this topic:

viewtopic.php?f=3&t=2006&p=5208&hilit=lock#p5208

Regards,
Pablo
by Pablo
Thu Mar 21, 2019 4:11 am
Forum: Questions & Answers
Topic: Disable Autofill function in Browser
Replies: 6
Views: 3309

Re: Disable Autofill function in Browser

Hi Dominique, As a last resort it should be possible to write a widget to do this. Forms have an autocomplete property which turns it off for all fields in a form. Browsers make exceptions with login fields, see 'The autocomplete attribute and login fields' in this link: https://developer.mozilla.or...
by Pablo
Tue Mar 12, 2019 2:11 am
Forum: Questions & Answers
Topic: Heap list completed
Replies: 2
Views: 1619

Re: Heap list completed

Hi Prakash, This type of inquiry is best dealt with by the support team. Also note that the info provided in your post is not enough. You should include the Lansa version, joblog, OS/400 version, maybe some info related to the application like how's the job started, frequency of the crash and anythi...
by Pablo
Sat Mar 02, 2019 4:34 am
Forum: Questions & Answers
Topic: Object Equality
Replies: 2
Views: 1472

Re: Object Equality

Hi Joe, I assume you have a collection and some component that at one point you set to refer to the one you want to store as the current one: Define_Com Class(#Prim_lcol<#MyListFieldsComponent>) Name(#ListEntries) Define_Com Class(#MyListFieldsComponent) Name(#CurrentEntry) Reference(*DYNAMIC) Then:...
by Pablo
Fri Feb 22, 2019 10:24 pm
Forum: Questions & Answers
Topic: dynamic add menuitem to menubar in VL WEB
Replies: 3
Views: 1949

Re: dynamic add menuitem to menubar in VL WEB

Hi, You can set the ComponentTag property when you create the item: Set Com(#TempItem) Parent(#Menu) Caption("Caption Item 1") Displayposition(1) ComponentTag("Item1") Using the collection from my earlier reply, the way to monitor the click event is like this where the Com_Sender is a reference to t...
by Pablo
Fri Feb 22, 2019 2:53 am
Forum: Questions & Answers
Topic: dynamic add menuitem to menubar in VL WEB
Replies: 3
Views: 1949

Re: dynamic add menuitem to menubar in VL WEB

Hi, Create a collection of menu items: Define_Com Class(#Prim_acol<#Prim_Md.MenuItem>) Name(#MenuItems) Then as you instantiate new items you add them to the collection, for example: Define_Com Class(#Prim_Md.MenuItem) Name(#TempItem) Reference(*DYNAMIC) #TempItem <= (*New #Prim_Md.MenuItem) Set Com...
by Pablo
Tue Feb 12, 2019 11:46 pm
Forum: Questions & Answers
Topic: V13 Administrator modul covert to web based application
Replies: 13
Views: 4577

Re: V13 Administrator modul covert to web based application

Hi Priya, OK, but you are specifying a VLF-WIN property and you want to run in a browser so that's never going to work. You need to specify it like this: SnapIn.PNG If your panel does not look like the one above, in the Framework Properties, open the Framework Details tab and make sure you have thes...
by Pablo
Mon Feb 11, 2019 11:58 pm
Forum: Questions & Answers
Topic: V13 Administrator modul covert to web based application
Replies: 13
Views: 4577

Re: V13 Administrator modul covert to web based application

The filter name does not have an underscore.

You put UF_UMF1 but it's UFUMF1. Use the search.
Function UFUMF1 is shipped in v13. The process name is UF_USRM.

Regards,
Pablo
by Pablo
Fri Feb 08, 2019 7:07 am
Forum: Questions & Answers
Topic: Detecting Record Lock
Replies: 5
Views: 1967

Re: Detecting Record Lock

There is actually a Delete check only(*yes) ...
by Pablo
Fri Feb 08, 2019 6:59 am
Forum: Questions & Answers
Topic: Detecting Record Lock
Replies: 5
Views: 1967

Re: Detecting Record Lock

Hi Joe,

try an UPDATE with check_only(*Yes) ... if the record is locked you should be able to tell in the error status.

See https://docs.lansa.com/14/en/lansa015/i ... CHECK_ONLY

Regards,
Pablo
by Pablo
Sat Feb 02, 2019 2:30 am
Forum: Questions & Answers
Topic: Edit/Display text as HTML in VLF command Handler
Replies: 3
Views: 1623

Re: Edit/Display text as HTML in VLF command Handler

Hi Phil, You'd be thinking at writing a widget to wrap around the 3rd party editor. The shipped VLF demo includes a Notes command handler - DF_Note_CommandHandler - attached to Places, Things and People in the Resources Application. The handler uses DF_Note_NoteDetailPanel which is the wrapper aroun...
by Pablo
Thu Jan 24, 2019 4:02 am
Forum: Questions & Answers
Topic: Get All Data Areas in Library
Replies: 2
Views: 1515

Re: Get All Data Areas in Library

Hi Joe, You could call a CL in your server module that does something like this ... you'd change the OBJ and OUTFILE to suit your needs: DSPOBJD OBJ(*ALL) OBJTYPE(*DTAARA) OUTPUT(*OUTFILE) OUTFILE(PABLIB/PABTEST) Then turn the OUTFILE file into a flat file, again you may want to change some parms li...
by Pablo
Thu Jan 24, 2019 3:17 am
Forum: Questions & Answers
Topic: Lansa Graphing
Replies: 3
Views: 1899

Re: Lansa Graphing

Hi Dave,

Yes. Widgets are not supported in v13 ...

Regards,
Pablo
by Pablo
Tue Jan 08, 2019 6:58 am
Forum: Questions & Answers
Topic: Lansa Graphing
Replies: 3
Views: 1899

Re: Lansa Graphing

Hi Dave, The shipped Visual Lansa Framework (VLF) demo has a few chart samples under Example Applications --> Use Cases --> Charts. They use Chart.js. Attached is a quick export of a web page + reusable part + widget that implements a simple Polar Area chart. Please refer to https://www.chartjs.org/...
by Pablo
Wed Dec 19, 2018 5:17 am
Forum: Questions & Answers
Topic: Dynamically set the visiblility of #PRIM_MD.ListIcon
Replies: 3
Views: 3200

Re: Dynamically set the visiblility of #PRIM_MD.ListIcon

Selectlist should work too:

Code: Select all

selectlist #list
#PhoneIcon.CurrentItem.Visible := (#Sys_Web.Device = Mobile)
endselect
by Pablo
Thu Dec 13, 2018 2:59 am
Forum: Questions & Answers
Topic: VLWEB application -> Responsive VLWEB application
Replies: 8
Views: 5041

Re: VLWEB application -> Responsive VLWEB application

Hi Klaus, this should give you starting point. You can choose how to handle the popups, whether make reusable part(s) or define them inline, etc. Begin_Com Role(*EXTENDS #PRIM_WEB) Theme(#SYS_THEME<MaterialDesignBlue>) Height(704) Define_Com Class(#PRIM_VS.Style) Name(#Style1) Backgroundbrush(#Brush...