In order to free up screen real estate, I’m considering using a collapsable region. When I do, all the block is “hidden”. If I had a Master-Detail form, how could create a dynamic action to display a different block with only some of the Master, the key fields, and then expand the display the Details block? For example, Sales Order – Order Details, when the Master data entry is completed, collapse the Master block, show a block with just the Order Number, Customer Name and Sales Rep, and then expand the Order Detail block. Normally, I would create the Dynamic Action the button click but the Collapse/Expand button is shown in the layout, component lists, etc.. Could I get the button ID with browser Developer Tools and then add JAVASCRIPT/JQuery to the code for the button?
Thanks.
Greg Grimes
Hi Greg,
What I understood so far, that you are expanding and collapsing the region using the buttons by manually clicking on it, but you want it to happen using the JavaScript or jQuery, and buttons should also not visible.
You can try this:
Specify a static id for the buttons and create a dynamic action for page-load to hide them using the $x_Hide() method. Below is an example:
Now your button with static id “btnExpand” will be hidden.
You can create then a dynamic action to execute JavaScript code to click this button using the following JS code:
Whatever the code is written (using the DA) on click event for the button “btnExpand” will be executed.
Please let me know if it solves the purpose. Thanks.