0

I'm using the following code in my groovy script to hide or show a button and a table controller in the form. But this is not working and not making any difference in the show/hide of the screen elements. This script is called on a button click in SAP advanced workflow form.

form.getButton(<button_name>).hide()
form.getWidget(<table_controller_name>).hide() 

and

form.getButton(<button_name>).show()
form.getWidget(<table_controller_name>).show() 

If someone can hep me in finding where I'm missing something then it will be greatly appreciated.

3
  • What does "does not work" mean? Are there errors, logs, stacktraces? Or is it just not resulting in any visual effect? Commented Nov 15, 2023 at 6:47
  • No error, just that it is not making any difference in the show/hide of the elements involved. Commented Nov 15, 2023 at 9:48
  • 1
    Please note: don't use sap, better use sap-business-technology-platform which is the closest tag corresponding to SAP Advanced Workflow. Please choose the tags according to their tag usage: "DO NOT USE THIS TAG as it's ambiguous." See Stack Overflow help to learn more about Stack Overflow usage. Commented Nov 15, 2023 at 9:53

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.