- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-27-2022 01:34 AM
Hi All,
I want to display a UI action only if logged in user company matches the company field on form.
If logged in user company is XYZ, and the company field on the form value is XYZ, then only UI action should be visible. Else, it should hide.
Please help me how can I acheive it.
Over UI action, I am trying to add a condition gs.getUser().getRecord(company).(current.u_company) But its not correct. Please guide me here.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-27-2022 01:41 AM
hello,
in UI ACTION condition your can give as below
gs.getUser().getCompanyID()==current.your company field name
please mark my answer correct if it helps you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-27-2022 01:41 AM
hello,
in UI ACTION condition your can give as below
gs.getUser().getCompanyID()==current.your company field name
please mark my answer correct if it helps you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-27-2022 02:49 AM
Hi Mohit,
!(new KBCommon().isStackNameDialog()) && (new KBCommon().isVersioningEnabled()) && (new KBVersioning().canCheckout(current)) && (gs.getUser().getCompanyID()==current.company)
Added the condition, it didnt work.Please help here

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-27-2022 02:50 AM
HI change this
gs.getUser().getRecord(company).(current.u_company)
to this
current.company == gs.getUser().getCompanyID()
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-27-2022 03:04 AM
Hi Harish,
It is also not working, when I kept logs, Nothing is populating for gs.getUser().getCompanyID()