Hi
I am working on a Low code app. For one of the functionalities I want to show a message in the app with a reason why something can't be deleted. I found the engine.showUI() function and there I put a string in. This is what I am getting:
This is actually perfect for my use case, the only thing is that I don't need the Send response button showing.
In the definition of the code, I saw that you could set the requiresponse to true or false. So I thought just setting this to false would solve my problem. But when I do that, the message only is visible for less than a second. Do you know how I can manage to do this or do you know a way to show a message without interactivity?
Kind regards
Justien
Hi Justien,
Since this is an interactive script that needs to wait on user input, you will have to provide a button that allows the user to dismiss the message. You can easily add a button yourself at the bottom with 'Dismiss' or 'Ok' by calling the 'AppendButton' method on the UIBuilder instance. You can however not really fine-tune the location and size that way. For this, you would need to define the button 'UIBlockDefinition' yourself which can then be appended to the builder.
I would however recommend using the IAS Toolkit which wraps this functionality in a much more manageable and cleaner way. You can find a 'Getting started' guide here: https://docs.dataminer.services/develop/devguide/Automation/Howto/Getting_Started_with_the_IAS_Toolkit.html