Alert box of ‘Question’ type

Javra IDE have some custom logic that has to be defined in the procedure file for Alert boxes. For Example, in Question type of alert box, a question is asked to the user and answer is used as user input for further execution. The logic for the same is:

p-action = “xe-dialog” + chr(2) + “” + chr(2) + “[xerrc]” .

Here :
–1st parameter(xe-dialog) triggers the dialog box
–2nd parameter(“”) : name of the dialog screen
–3rd parameter(” xerrc”): error code

  • To create an alert box of Question type, go to X/E Files >X/E Master Files > Messages and create an alert message record choosing type ‘Question’. The image below shows the record created for the alert box of Question type with error code name ‘testmsg’.
Creating record for ‘Question’ type alert box
Figure: Creating record for ‘Question’ type alert box
  • Include the p-action = “xe-dialog” + chr(2) + “” + chr(2) + “[xerrc]” code inside your procedure to trigger the alert box as shown below:
Logic in a .p file for Alert box
Figure: Logic in a .p file for Alert box
An alert box is created
Figure: An alert box is created

Note that f-getvalue(“xe-dialog-answer”) gives the logical value true/false based on user’s response on question. You can customize your logic as per user’s response of yes or no.

results matching ""

    No results matching ""