Choice from Radio buttons or form

Alva1Alva1 Member Posts: 24
Hi People,

i'Ve got assigned the task to ask the users how they want their contacts to be saved From navision to outlook (Surname, First Name)
(First Name, Surname)
(Company Name(Surname, First Name))
(Company Name(First Name, Surname))

This should be ask while asking to prompt the outlook folders too!

In the codeunit 5069 outlook contact handler there is this assign function where i can define how to save the contacts

What i done know is what would be better to use as an option radio buttons, or is there any possibility??
and if i use the radio buttons how can i make them interact and choose an option from the assign function???

any help would be appreciate

thanks + bye

Alva1

best regards

Alva
Best regards

Alva1

Answers

  • bvbeekbvbeek Member Posts: 32
    STRMENU (Dialog)
    Use this function to create a menu window that displays a series of options.

    OptionNumber := Dialog.STRMENU(OptionString [, DefaultNumber])

    OptionNumber:Data type: integer
    The number of the menu option the user selected. If the user presses Esc to exit the menu, the system returns zero (0).

    OptionString: Data type: code or text constant
    A comma-separated string. Each substring in OptionString denotes an option on the menu. The string can be a multilanguage enabled text constant.

    DefaultNumber: Data type: integer
    Use this optional parameter to determine a default option, which the system highlights. The system numbers the options 1, 2, 3, 4, and so on.

    If you omit this optional parameter, the system uses the first option (1) as the default.

    Example
    This example shows how to use the Dialog.STRMENU function.

    Options := Text000
    // Sets the default to option 3
    Selected := Dialog.STRMENU(Options, 3);
    MESSAGE(Text001, Selected);

    Create the following text constants and variables in the C/AL Globals window:

    Text Constant
    Const Value

    ENU Value


    Text000
    'Save,Delete,Exit,Find ...'


    Text001
    'You selected option %1.'






    Variable
    Data Type
    Length

    Options
    Text
    30

    Selected
    Integer



    The system shows the following text in the menu window:

    Save
    Delete
    Exit
    Find ...

    and highlights option 3, Exit. The system stores the option the user selects in the variable Selected and displays a message similar to the one shown here:

    You selected option 2.
    Yours,
    Bart van Beek
    Boltrics Professionals B.V. | www.boltrics.nl
    Nekovri Dynamics | 3PL Dynamics
  • Alva1Alva1 Member Posts: 24
    Hi bvbeek,

    Thank you for your quick answer, it works really good!
    was wondering if there is any possibility to prompt a text at the header of the options like:

    'PLEASE CHOOSE ONE OF THE FOLLOWING OPTIONS'


    thank you in advanced!


    best regards

    Alva
    Best regards

    Alva1
  • Alva1Alva1 Member Posts: 24
    It seems that what i was asking for is not possible, instead of that i decided to go for a message before the prompt comes!
    but what i would really like to do is to catch the "No" buttonclick from the dialog to exit the form
    is there anyway to do this?

    best regards

    Alva1
    Best regards

    Alva1
  • Alva1Alva1 Member Posts: 24
    alright i managed to close the form!
    now comes the tricky part!!
    the variable i save (form 1 to 4) is in the form, is there anyway a codeunit can access the form and specifically a function in the form so that he can use the option range???
    For example
    IF variable = 1 THEN
    DO THIS
    IF variable = 2 THEN
    ....



    best regards

    Alva1
    Best regards

    Alva1
Sign In or Register to comment.