Hi! Can I use system.util.sendRequest() in perspective? I’ll explain what I need to do.
I need to delete a register and I want to ask in a Pop up “Do you want to delete the x register?”. If the user select Acept the process continue and delete the register, and if the user select Cancel the process is aborted.
So I have a Project Library Script called CRUDRecipes where I have a procediment called DeleteRecipe. I’m trying to open the pop up using system.util.sendRequest but I receive a log massage saying “The message handler “openPopUpConfirm” could not be found! Check your event script message handlers.”
Now I print some parts of the code what I’m using:
I have my script in the Project Library Script that I’m usin for testing:
Then I created a Message Handler in the Gateway Events Scripts called “OpenPopUpConfirmGTW”
And in the windows where is the button that call the testing procediment I added a message handler too in the root scripts where I use the system.perspective.openPopUp function:
But like I said before when I run it in the session I receive the error “The message handler “openPopUpConfirm” could not be found! Check your event script message handlers.” in the gateway log.
What am I missing? Can you help me please?
Do you have any idea when will be available somthing similar to system.gui.messageBox, system.gui.confirm, system.gui.errorBox for perspective?