Page 1 of 1

Prompter Field Data Transfer

Posted: Thu Sep 03, 2020 6:02 pm
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

Re: Prompter Field Data Transfer

Posted: Thu Sep 03, 2020 10:23 pm
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

Re: Prompter Field Data Transfer

Posted: Fri Sep 04, 2020 5:41 pm
by JarOfJam
Thank you for your reply, what does your form look like that receives that information?

Re: Prompter Field Data Transfer

Posted: Mon Sep 14, 2020 7:16 am
by atostaine
Probably like this:

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

* use #Migopmid

endRoutine