on ‎2023 Jul 07 7:26 PM
Hello,
On click of a button on my list report I am calling an abstract entity as a popup with couple of parameters in it.
Is it possible to set default values into these parameters based on the user ?
thanks
Request clarification before answering.
Hello rameshputta,
In the abstract entity, define the input parameters that will be passed to the popup. Within the onBeforeRendering method of the abstract entity, implement the logic to set default values for these parameters based on the user. Retrieve user-specific data, such as the logged-in user's ID, using the appropriate APIs or methods. Utilize this user-specific data to determine the default values for the parameters and assign them directly to the respective parameter fields within the onBeforeRendering method.
When the button is clicked and the popup is opened, the default values specified in the abstract entity will be passed to the popup. These default values can then be used as required within the popup logic.
--
Regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 7 | |
| 6 | |
| 6 | |
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.