Is there any way to show Yes/No dialog box in a custom event and perform operation based on user’s response?
Is there any way to show Yes/No dialog box in a custom event and perform operation based on user’s response?
Is there any way to show Yes/No dialog box in a custom event and perform operation based on user’s response?
Unfortunately not. Stopping messages or info messages but nothing that allows user input.
A couple of solutions for you
1. Instead of preventing an action from happening, you could always show information to a user after an action has taken place using CLIENT_SYS.Add_Info - This will not roll back the transaction, but can be used as handy reminders. (Can’t remember the full workings of the procedure, but if I recall it only works with certain LU’s)
2. Create a checkbox custom field on the record you are modifying called “Override error message” - (by default unchecked)
Failing those two options you could always pay for an IFS modification if the requirement was that important
Is there any way to show Yes/No dialog box in a custom event and perform operation based on user’s response?
Do you have a specific use case you need this for? We could possibly come up with a smart work around for it.
I did think there was nothing available except workaround. Right now we have custom enumeration on screen showing options Blank (default) / Yes / No. This value is passed to action. When user takes action first time they are showed error and the message to set custom field value to Yes / No and then take action again.
This time action continues based on custom field values.
The basic problem here is that a Custom Event is an Oracle trigger executed on the server. Would be nice to have some client side configuration posibilities. Although with browser based Aurena I guess this is even more difficult ...
I did think there was nothing available except workaround. Right now we have custom enumeration on screen showing options Blank (default) / Yes / No. This value is passed to action. When user takes action first time they are showed error and the message to set custom field value to Yes / No and then take action again.
This time action continues based on custom field values.
I think that approach is the best you can come up with, when it comes to “asking the user” in custom events.
Is there a way to call this prompt?
Is there a way to call this prompt?
Not without an IFS modification
Is there any way to show Yes/No dialog box in a custom event and perform operation based on user’s response?
Can’t you try Client_SYS.Add_Warning method? This will give you two options. Either to continue or to cancel.
Is there any way to show Yes/No dialog box in a custom event and perform operation based on user’s response?
Can’t you try Client_SYS.Add_Warning method? This will give you two options. Either to continue or to cancel.
Have you had any examples where this will actually work?
I’ve tried it loads and can never get it to display
I’ve also never been able to get the Client_SYS.Add_Warning working.
I’ve also never been able to get the Client_SYS.Add_Warning working.
Hi
I’m also not able to get this work. This should be handled on the client side in order to get it to work the Client_SYS.Add_Warning.
In normal routines like "NEW", "MODIFY" and "DELETE" the warning messages are only checked at the "CHECK" stage. That is also if the warnings are enabled on the window. However the information messages generated using Add_Info procedure in Client_SYS are always shown in the client.
In most of the cases the "CHECK" stage does not do any modifications on the database. Therefore the triggers associated with the Custom Events are not fired. Due to this reason it is not possible to use Client_SYS.Add_Warning calls to break the transactions in Event Actions.
So, it should be better to go for a customization/modification.
Another option that could be used with custom events is to have a “blocking” error raised from the custom event when a certain condition is true, but add a way for users to “say okay” on beforehand. It could be a free field that you are not using, or a custom field, where the user enters “yes” (or whatever). That value is then checked in the custom event and, if it is set, the error will not be raised.
So, it will be like: “I know this error will appear now, but I will write ‘yes’ in this field to force it to proceed anyway”.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.