Using gs.getProperty in Script Include not working
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
08-31-2023 12:19 AM
I'm using the following script include function to reference a system property with a variable instead of manually entering the value of the System Property:
However, what I've found is that if I replace the old code dbv.addEncodedQuery('barelps_type=3a174f47db5dbf0073609ab9db961964^ba_install_status!=70^ba_u_cbp_tierINTier A,Tier B,Tier C'); with dbv.addEncodedQuery('barelps_type='+criticalRelationshipType+'^ba_install_status!=70^ba_u_cbp_tierINTier A,Tier B,Tier C');
It causes some reports to not display any results. I was just wondering if someone knows where I'm going wrong.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2023 12:24 AM
Hi @matthew_hughes,
I believe there is no issue with gs.getProperty() method. Might be you are working with scope application. hence gs.log() will not work.
Try by replacing gs.log() with gs.info(); and check.
If my response helps to solve your issue. Kindly mark it as helpful & correct. It will be helpful for future readers! 👍🏻
Thanks,
Sagar Pagar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2023 12:38 AM
Hi @Sagar Pagar
It doesn't explain though why the results in the report will show when using 3a174f47db5dbf0073609ab9db961964, but not criticalRelationshipType
Do I need to declare something right at the very start of my script include?