Confirmation message?

I have a button to save some process in my APPayments Form.

In this Form i have a Button to generate an XML and set the Payment as "Generated".

When click the button, the process run and set the values.

But... I need a confirmation message on this button:

Ok: run the process normal

Cancel: this option cancel the process to set the "Generated" value

 

How can i set a confirmation message?

I code in Visual Basic.

 

Sorry for my english

Parents Reply Children
  • Very interesting Lee, and although this is not my thread I'm wondering: the doc seems to say that the prompt would allow for the posting to occur even without an answer because it is asynchronous and non-blocking (?).
    So, does this mean it would not suffice for a confirmation message, whose purpose is to block the further events to execute unless the user clicked Yes/OK on the prompt?
    (or did I misunderstand the doc?)
  • Hi Florent.  

    The way the prompt is designed, it should be the last handler in the event, unless you want operations to continue whilst the prompt is open.

    I think the docs mention the standard behaviour to avoid confusion.

    It will trigger secondary event(s) depending on which button is pressed.

    Begin with a GenerateXmlPrompt event which displays the prompt, then does nothing.

    Have a GenerateXmlOK event which does the generation, firing that event off OK button in the Prompt.

    A GenerateXmlCancel event could be fired if you wanted to do something when the user cancels the operation (though usually on a 'cancel' there would be no follow up actions).

    Lee

  • ¡Ey Lee! Thanks very much, this really helpful me.
    Now i can validate "something" depending of my user's decisions.