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
Prompter Field Data Transfer
Re: Prompter Field Data Transfer
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.
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.
Best,
Chad
Sherrill Furniture Company
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)
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
Chad
Sherrill Furniture Company
Re: Prompter Field Data Transfer
Thank you for your reply, what does your form look like that receives that information?
Re: Prompter Field Data Transfer
Probably like this:
mthRoutine uLoadMe
define_map for(*input) class(GOPMID) name(#Migopmid)
* use #Migopmid
endRoutine
mthRoutine uLoadMe
define_map for(*input) class(GOPMID) name(#Migopmid)
* use #Migopmid
endRoutine
Art Tostaine