Search found 652 matches

by jyoung
Tue Jun 11, 2019 12:07 am
Forum: Questions & Answers
Topic: Retrieving API request body
Replies: 6
Views: 402

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

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

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

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

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

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

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

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

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

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

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

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

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

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 18421 times
Joe
by jyoung
Fri Apr 19, 2019 6:21 am
Forum: Questions & Answers
Topic: VLWeb PRIM_MD.DropDown Click Event
Replies: 1
Views: 11002

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...
by jyoung
Thu Apr 18, 2019 11:45 pm
Forum: Questions & Answers
Topic: GET_MESSAGE Scope
Replies: 2
Views: 11295

Re: GET_MESSAGE Scope

Thanks Danny!

Using the *RECEIVES_MESSAGES on the GetMessages method solves it. Never used those particular options before. Still have a lot to learn. :D

Thanks again.
Joe
by jyoung
Thu Apr 18, 2019 7:13 am
Forum: Questions & Answers
Topic: GET_MESSAGE Scope
Replies: 2
Views: 11295

GET_MESSAGE Scope

Is getting a message with GET_MESSAGE scoped to the routine that issued the message? I have an insert statement as such insert fields(#EP0001F1Fields) to_file(EP0001F1) io_error(*NEXT) val_error(*NEXT) if_status is(*OKAY) #SYS_APPLN.TraceMessageData( 'CreateWorkforceLink - Link Created - Location: &...
by jyoung
Wed Apr 17, 2019 2:49 am
Forum: Questions & Answers
Topic: VLWeb PRIM_MD.DropDown Click Event
Replies: 1
Views: 11002

VLWeb PRIM_MD.DropDown Click Event

Anyone know how to "fake" a Click event with PRIM_MD.DropDown. I have a dropdown that has a few options. #STD_TEXT := 'This Week' #STD_TEXTS := 'THIS_WEEK' #DropDownList.Items.Add value(#STD_TEXTS) caption(#STD_TEXT) #STD_TEXT := 'Last Week' #STD_TEXTS := 'LAST_WEEK' #DropDownList.Items.Add value(#S...
by jyoung
Wed Apr 17, 2019 1:31 am
Forum: Questions & Answers
Topic: Download a CSV with Column Headings
Replies: 2
Views: 9783

Re: Download a CSV with Column Headings

Hey Art, is this in VLWeb where the CSV is downloaded via a browser? If so, we do this by using *RESOURCE response. srvroutine name(Download) response(*RESOURCE #response) session(*REQUIRED) * write the header #response.ContentString += ('"Week Ended","Check Number","Days Worked","Hours Worked","Gro...
by jyoung
Fri Apr 12, 2019 11:48 pm
Forum: Questions & Answers
Topic: ODBC Error Invalid Column Name when adding new Field
Replies: 5
Views: 19033

Re: ODBC Error Invalid Column Name when adding new Field

That confirms what I thought I was happening and what the fix was. I typically don't work with LANSA created Tables, so I normally only have "Rebuild OAM" selected and as you mentioned this is what caused the issue. I would be really nice IMHO, if the compile errored or warned me that something was ...