Is it possible to write client script or BR on database view table

VIKAS MISHRA
Tera Contributor

I have merged few table including location table. now as per the below screenshot 3rd party team fetching all the information mentioned in this database view table along with country. 

I want to add one condition here in this table that if user is member of group "RSD" then instead of country code group name "RSD" should be visible in this table corresponding to that record. so that 3rd party team pick up that in integration . 

Please suggest if this is possbile.

 

VIKASMISHRA_0-1739239794108.png

 

VIKASMISHRA_1-1739239850479.png

 

1 ACCEPTED SOLUTION

Hi Vikas,

Please try below in the where clause for group member table

gm_user = us_sys_id and gm_group = "sys_id of group Regional service delievery"

Also you may need to check left join for sys_user view table

View solution in original post

9 REPLIES 9

Please check that i have added group member table , as mentioned in the screenshot.

Howveevr due to this the record count in table increased from 12k to almost 2.5 lakh, as its showing record in multiple time due to group member table . 

Is it possible to add some "where clause" thrugh which its shows the same record it was showing earlier but also shows the group name only if the group name is "Regional service delievery" 

 

VIKASMISHRA_0-1739262060035.png

 

 

VIKASMISHRA_1-1739262106815.png

 

Hi Vikas,

Please try below in the where clause for group member table

gm_user = us_sys_id and gm_group = "sys_id of group Regional service delievery"

Also you may need to check left join for sys_user view table

I have added the caluse mentioned by you, but its giving error 

 

VIKASMISHRA_0-1739263990651.png

 

 

VIKASMISHRA_1-1739264014739.png

 

use   and  instead of &&

It worked completed fine for me, thanks for your effort.