How do i get dialog result?

yukonyukon Posts: 357Member
edited 2011-06-10 in Dynamics CRM
Hi all,

How can i get dialog result. I means user click "Ok" or "Cancel". If i can get result how should i do. I wann to get result of "Case -> Action -> Resolved Cased".


I'm not family with crm. Kindly, please guide to me.


Best Regards,
Yukon
Make Simple & Easy

Comments

  • Tarun_ChaudharyTarun_Chaudhary Posts: 3Member
    Did you try CONFIRM Function (DIALOG)?
    Creates a dialog box that prompts the user for a yes or no answer. The dialog box is centered on the screen for you.


    Ok := Dialog.CONFIRM(String [, Default] [, Value1] ,...)



    Parameters
    String
    Type: Code or text constant

    Specifies the string that is displayed in the dialog box. Use a backslash (\) to indicate a new line. The string can be a text constant that is enabled for multilanguage functionality. For more information, see Working with Multilanguage Functionality.

    Default
    Type: Boolean

    Specifies the default button. If you do not specify a default, No is used as the default.

    Property Value/Return Value
    Type: Boolean

    true if you entered Yes; otherwise, false.

    This return parameter reflects the user's selection.

    Remarks
    The message window is sized for you. The height of the window corresponds to the number of lines and the width corresponds to the length of the longest line.

    Example
    In the following example, the Dialog.CONFIRM function prompts the user for a Yes or No answer. This code example requires you to create the following text constants in the C/AL Globals window.

    Text Constant ENU Value
    Text000
    'Leave without saving changes?'

    Text001
    'You selected %1.'

    Copy Code
    Question := Text000;
    Answer := Dialog.CONFIRM(Question, TRUE);
    MESSAGE(Text001, Answer);
Sign In or Register to comment.