hi team,
below is my problem:
page having a button. Onclick of button one popup will get open and assign a value to hidden from popup on closing of pop up.
my problem is i have to read that hidden value and need to hide some design
when i write a code in click even of button first its checking hiddenvalue and later opening the pop up.
i want to check hidden value once pop up closed.
for ex: seen grid datasource done function like that any thing for button
kindly help me on this
Rajkiran SwainPosted Jun 20, 2023, 10:49 AM
You can handle the closing event of the popup and perform the necessary actions to check the hidden value and hide the desired design elements. Here's a suggested approach:
In the button's OnSelect property, open the popup and pass the reference of the hidden control as a parameter. For example:
ShowPopup(EditForm1, { HiddenValue: HiddenControl }).In the popup's OnClose property, add a formula to handle the closing event. Inside this formula, you can check the value of the hidden control and hide the necessary design elements accordingly. For example:
In the above formula,
HiddenValueis the reference to the hidden control, andDesignVisibleis a variable used to control the visibility of the design elements you want to hide or show.DesignVisiblevariable. For example:Visible = DesignVisible.By handling the closing event of the popup, you can ensure that the hidden value is checked and the necessary design elements are hidden or shown accordingly. Adjust the code according to your specific requirements and control names.
Brahma Prakash ShuklaPosted Jun 23, 2023, 5:48 AM
Hi @Murali, To achieve the desired behavior, you can use a combination of event handlers and callback functions. Here's an example:
In the example above, when the button is clicked, it first checks if the hidden value is already assigned. If it is, the
handleHiddenValue()function is called to handle the value and hide the design accordingly. Then, theopenPopup()function is called, which simulates the opening of a popup. Upon closing the popup, a callback function is executed, where the hidden value is assigned and stored in thehiddenValuevariable.Murali PPosted Jun 20, 2023, 1:54 PM
@Deepak..
Thanks a lot for ur help.
but am facing the below error.
Uncaught TypeError: Cannot read properties of undefined (reading 'close')
Deepak RawatPosted Jun 20, 2023, 11:38 AM
You can try Html and java script if needed.