I regulary use dialogs to obtain data from the user. The way I use this is like this:
EntryForm.Open('some Text #1###');
EntryForm.INPUT(1,Var1);
Now I need to obtain the value of an Option-field. I've seen it being used, but can't remember exactly how. I'm not doing these kind of things every day.
Can someone help me a little?
Thanks,
Giver
0
Comments
win.OPEN('choose #1################',SlsHdr."Document Type");
win.INPUT(1,SlsHdr."Document Type");
MESSAGE(FORMAT(SlsHdr."Document Type"));
Steve
Steve, do you have a suggestion to get a "OK" button in the dialog?
Giver
When I use input dialogs I usually add some verbage something like
'Please click enter after selection'
Okay, that's what I thought. Still a good tip, thanks.
This is my code:
OptionField := DIALOG.STRMENU(optiontext);
I only get my option-values shown in the dialog, I would like to get my question also there.
There must also be a possibility to obtain the "OptionText" out of the optionstring of the field. The C/Side Ref Guide only mentiones this text to be programmed as Text-Constant.
Giver