Prompter Field Data Transfer

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
JarOfJam
Posts: 2
Joined: Thu Sep 03, 2020 5:55 pm

Prompter Field Data Transfer

Post by JarOfJam »

I have created a prompter form and attached said prompter to the associated field, I wish to transfer a piece of data to the prompter form from my main program to my reusable, which I can then pass onto my form, which I can then pass to my function that provides my filtering options for said list, I would prefer to avoid creating a new global variable, although I do know it could be done this way
T.I.A
User avatar
lawingo
Posts: 78
Joined: Fri Dec 04, 2015 6:41 am

Re: Prompter Field Data Transfer

Post by lawingo »

Instead of creating the prompter within the field itself you can turn the prompter option on after you have placed that field onto a screen.

Code: Select all

Define_Com Class(#GOPMPTNO.Visual) Parent(#BODY_HEAD) Displayposition(5) Tabposition(5) Left(4) Top(104) Width(463) Showprompter(True) Readonly(True)
Then use the prompterActivate Event to load your Prompter form and pass the data you need into it to filter your data for the prompter.

Code: Select all

Evtroutine Handling(#GOPMPTNO.PrompterActivate) Options(*NOCLEARMESSAGES *NOCLEARERRORS)
If_Ref Com(#GOPM_D10) Is(*NULL)
Set_Ref Com(#GOPM_D10) To(*CREATE_AS #GOPM_D10)
Endif

#GOPM_D10.uLoadMe Migopmid(#GOPMID)
Endroutine
Best,
Chad
Sherrill Furniture Company
JarOfJam
Posts: 2
Joined: Thu Sep 03, 2020 5:55 pm

Re: Prompter Field Data Transfer

Post by JarOfJam »

Thank you for your reply, what does your form look like that receives that information?
atostaine
Posts: 696
Joined: Wed Jan 20, 2016 7:38 am

Re: Prompter Field Data Transfer

Post by atostaine »

Probably like this:

mthRoutine uLoadMe
define_map for(*input) class(GOPMID) name(#Migopmid)

* use #Migopmid

endRoutine
Art Tostaine
Post Reply