Call system property from server script of widget
This content was last updated in 2023. It may still be useful, but could contain outdated information. Please confirm its accuracy before relying on it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2023 09:16 AM
Hi,
I need one help on how to call the system property in widget level. I tried to get it by gs.getProperty('abc'). Here "abc" contains the sys_id of items. So tried to call it like cat_item.sys_idIN+gs.getProperty('abc'). But it is not working. Please help to rectify it.
Thanks and Regards,
Dhanalakshmi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2023 10:16 AM
@dhanalakshmi4 you can access system property value using gs.getProperty('property_name') server side widget code. If you want to access in widget client controller you can store in
data.variable =gs.getProperty('property_name')you can log data.variable to check it's returning any value.
Please mark the answer correct/helpful based on Impact.
Regards,
RJ