Use an Option-field in a dialog??

givergiver Member Posts: 6
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

Comments

  • MTCMTC Member Posts: 159
    You need to use STRMENU
  • SPost29SPost29 Member Posts: 148
    try a variation of this:


    win.OPEN('choose #1################',SlsHdr."Document Type");
    win.INPUT(1,SlsHdr."Document Type");
    MESSAGE(FORMAT(SlsHdr."Document Type"));

    Steve
  • givergiver Member Posts: 6
    Thank you both. You helped me a lot.
    Steve, do you have a suggestion to get a "OK" button in the dialog?

    Giver
  • SPost29SPost29 Member Posts: 148
    For an OK button you need to create a form.

    When I use input dialogs I usually add some verbage something like
    'Please click enter after selection'
  • givergiver Member Posts: 6
    SPost29 wrote:
    For an OK button you need to create a form.

    Okay, that's what I thought. Still a good tip, thanks.
  • givergiver Member Posts: 6
    You need to use STRMENU
    I like the face of this solution, but I'm strugling to get extra text into the dialog pop-up.

    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
Sign In or Register to comment.