Search found 637 matches

by jyoung
Sat Jul 20, 2019 1:21 am
Forum: Questions & Answers
Topic: Trace File Best Practices
Replies: 2
Views: 75

Re: Trace File Best Practices

I contacted support who in turn contacted the developers about this. Here is their response Joe is correct in his concerns about multiple processes. The tracing object will be instantiated by the first object to run on the server, and it will open, and lock the file being written to. So when another...
by jyoung
Sat Jul 20, 2019 12:19 am
Forum: Questions & Answers
Topic: VLF-ONE Back Button / Back Space
Replies: 3
Views: 30

VLF-ONE Back Button / Back Space

A lot of our users are complaining about hitting the back space in VLF-ONE and it taking them back a page like the back button. I recognize that this is a browser issue and that Chrome removed that "feature" and FireFox has a way to disable it. IE and Edge however still behave that way and a lot of ...
by jyoung
Thu Jul 11, 2019 3:58 am
Forum: Questions & Answers
Topic: Trace File Best Practices
Replies: 2
Views: 75

Trace File Best Practices

When using a trace handler that implements #PRIM_APP.iTraceHandler the example the docs show uses an incrementing file counter. Something like this Mthroutine Name(GetNextFile) Access(*Private) Define_Map For(*Result) Class(#Prim_alph) Name(#Result) Define_Com Class(#prim_nmbr) Name(#Extension) Begi...
by jyoung
Tue Jun 11, 2019 12:42 am
Forum: Questions & Answers
Topic: DateTimeField Calendar Functionality
Replies: 3
Views: 163

Re: DateTimeField Calendar Functionality

I am getting the same behavior. Although I have noticed when you select a date in the previous or next month, the whole month display changes and the day selected has primary style whereas the cell that you clicked has a secondary theme. Here it's defaulted to today (June 10th). Capture1.PNG Then se...
by jyoung
Tue Jun 11, 2019 12:26 am
Forum: Questions & Answers
Topic: Consuming a webservice from a server side function on IBM i
Replies: 3
Views: 159

Re: Consuming a webservice from a server side function on IBM i

I may be missing something specific to your scenario, but you can use XPRIM_HttpRequest from a Function. I have not tried on the IBM i in a batch process, but I don't see why it would not work. This is Function that makes a simple HTTP request to Google and I get the response back. function options(...
by jyoung
Tue Jun 11, 2019 12:07 am
Forum: Questions & Answers
Topic: Retrieving API request body
Replies: 6
Views: 204

Re: Retrieving API request body

If you are trying to read the body of a request, and its JSON, you can use the PRIM_JSON_Document. Here is an example of reading POSTDATA from a request. The POSTDATA contains an array of "links". Note the APIContext seen here is a helper class that formats the proper response codes and messages. de...
by jyoung
Thu Jun 06, 2019 6:09 am
Forum: Questions & Answers
Topic: Consuming a webservice from a server side function on IBM i
Replies: 3
Views: 159

Re: Consuming a webservice from a server side function on IBM i

Are you referring to executing from an actual Function (ie. in a Process) or just executing from a server side component? I've done it using XPRIM_HTTPRequest wrapped in a Server Side Reusable Part which is called from the Server Module. I assume the same would work inside a Function. Regarding the ...
by jyoung
Fri May 17, 2019 3:14 am
Forum: Questions & Answers
Topic: What's going on @ LANSA?
Replies: 11
Views: 1267

Re: What's going on @ LANSA?

Yeah. Same here.

Joe
by jyoung
Thu May 09, 2019 11:30 pm
Forum: Questions & Answers
Topic: AlternBackColor for Web page
Replies: 2
Views: 205

Re: AlternBackColor for Web page

Checkout the AlternateItemThemeDrawStyle on the List https://docs.lansa.com/14/en/lansa016/prim_list_alternateitemthemedrawstyle.htm Capture.PNG begin_com role(*EXTENDS #PRIM_WEB) theme(#SYS_THEME<MaterialDesignBlue>) define_com class(#PRIM_LIST) name(#List1) displayposition(1) left(168) parent(#COM...
by jyoung
Thu May 09, 2019 7:09 am
Forum: Questions & Answers
Topic: VLF-ONE IBM i Change Password and Password Expiration (solved)
Replies: 7
Views: 8688

Re: VLF-ONE IBM i Change Password and Password Expiration

Works great. Just one note, when you un-comment the code for the CheckPasswordExpiry, you will get an instant error on the #BIF_Password := #Password because the password passed into the method is a PRIM_DC.UnicodeString and the BIF_Password is char array. To fix, all you have to do is use "AsNative...
by jyoung
Thu May 09, 2019 7:04 am
Forum: Questions & Answers
Topic: Request
Replies: 2
Views: 8411

Re: Request

Should note that you have to edit the original post, editing the subject of a response does not change the display on the topics list.

Joe
by jyoung
Thu May 09, 2019 7:01 am
Forum: Questions & Answers
Topic: VLF-ONE Customize Logon Handler (solved)
Replies: 2
Views: 14593

Re: VLF-ONE Customize Logon Handler (solved)

Thanks Mark,

Had a couple issues with the designer using Layouts, however when I used your example (without layouts) it worked great.

Thanks,
Joe
by jyoung
Fri May 03, 2019 2:50 am
Forum: Questions & Answers
Topic: VLF-ONE Customize Logon Handler (solved)
Replies: 2
Views: 14593

VLF-ONE Customize Logon Handler (solved)

Trying to find more information on how to customize the UI for the logon handler. The docs keep pointing to the source of UF_OEXEC which in turn points me to here. https://docs.lansa.com/14/en/lansa048/index.htm#lansa/lansa048_8285.htm which tells me that it must have an ancestor of VF_AC026O. Creat...
by jyoung
Thu May 02, 2019 1:52 am
Forum: Questions & Answers
Topic: PRIM_LIST ItemClick with Page Scroll
Replies: 1
Views: 8871

PRIM_LIST ItemClick with Page Scroll

I'm having a bizarre issue in VLWEB with the PRIM_LIST when the page is scrolled. I am using the ItemClick event and what seems to be happening is that when the left mouse button is pressed, the page automatically scrolls down some. This puts the mouse on a different item then the item that was clic...
by jyoung
Wed May 01, 2019 1:40 am
Forum: Questions & Answers
Topic: New To Visual Lansa
Replies: 13
Views: 10917

Re: New To Visual Lansa

One of the key things to remember is that in the web world (VLWEB in this case) there are two different actors, the client and the server. The client runs in the user's browser and CANNOT access data directly from the server. In order to get data, it MUST call a Server Module. I mention this because...
by jyoung
Tue Apr 30, 2019 11:34 pm
Forum: Questions & Answers
Topic: New To Visual Lansa
Replies: 13
Views: 10917

Re: New To Visual Lansa

Hi and Welcome, Do you have an idea where you are getting hung up? Have you seen the developer resources? https://developer.lansa.com/resources/ Don't hesitate to post a question here, the folks here have always been supportive and helpful. I've asked more than my fair share of questions. :D The LAN...
by jyoung
Mon Apr 29, 2019 11:08 pm
Forum: Questions & Answers
Topic: VLF-ONE IBM i Change Password and Password Expiration (solved)
Replies: 7
Views: 8688

Re: VLF-ONE IBM i Change Password and Password Expiration

Hey Mark, Thanks for all the info! Just to confirm, the "IBM i User Profile Management" group box only shows up if I have VLF-WIN checked. My assumption then is that this would not work for VLF-ONE, but you are saying that the VLF-WIN setting works for VLF-ONE? Capture1.PNG Capture2.PNG Thanks, Joe
by jyoung
Sat Apr 27, 2019 1:40 am
Forum: Questions & Answers
Topic: VLF-ONE IBM i Change Password and Password Expiration (solved)
Replies: 7
Views: 8688

VLF-ONE IBM i Change Password and Password Expiration (solved)

In our framework we use a custom IIP to validate the user against the IBM i. This IIP extends VF_AC027O, which we copied from the demo UF O_LOGON. This component has methods to "ChangePassword" and "CheckPasswordExpiry". In the comments of those methods, it mentions that you have to allow the passwo...
by jyoung
Tue Apr 23, 2019 11:40 pm
Forum: Questions & Answers
Topic: left click menu bar menu
Replies: 2
Views: 18337

Re: left click menu bar menu

You may want to contact support with this.
The MenuBar Popup is doing the same thing to me, and the doc sample does it too.
https://docs.lansa.com/14/en/lansa016/p ... enubar.htm

Have not been able to find a way to stop or correct it.
Capture.PNG
Capture.PNG (4.09 KiB) Viewed 18313 times
Joe
by jyoung
Fri Apr 19, 2019 6:21 am
Forum: Questions & Answers
Topic: VLWeb PRIM_MD.DropDown Click Event
Replies: 1
Views: 10916

Re: VLWeb PRIM_MD.DropDown Click Event

Try as I may, I could not find an alternative control or display mechanic to handle this that I liked. So I punted, and made my own. 8-) With a combination of PRIM_MD.Edit, PRIM_MD.List and the regular PRIM_PPNL popup, I made it work just like a standard PRIM_MD.DropDown. The only "weird" thing to f...