variable attributes not working on my custom table to show only particular columns

Southsayer
Tera Expert

Hello guys,

There is custom budget table which gets data through record producers. 

Record producer has two fields budget amount and approver.

after submitting the record.

Depending upon the approvers, there are 4-5 fields like rtb/prj, budget code, budget des, project ID, project des, and portfolio will show different dropdowns. 

For different approvers, we have different portfolios

For different portfolios we have either RTB or PRJ. 

When RTB is selected, budget code, budget des fields get visible showing dropdown values for particular approvers and portfolios

similarly for when PRJ is selected,  project ID, project des gets visible

 

These fields need to reference data from custom table (budget tracking data)

Southsayer_0-1746431772358.png

 

when I select rohit kallo, I get duplicate values in my portfolio fields (for eg SOCE 6 times), I only need unique values.

and in RTB/PRJ drop down, I get portfolio values instead of RTB PRJ, similarly in budget code, I am getting portfolio values instead of cyber security, Dcc etc.

I know it's happening because I have table display value to portfolio, but for different fields, I need different values, I tried attributes but it doesn't work ref_auto_completer=AJAXTableCompleter,ref_ac_columns_search=true,ref_ac_columns=u_rtb_project

 

This is script include that is setting values to different fields, I have created different function for different fields

 

Southsayer_2-1746432192897.png

Southsayer_3-1746432241939.png

this is for the field

 

Please tell me how to get Budget code dropdown values and not portfolio values

 

 

Help me guysssss!!!

1 REPLY 1

Rushi Savarkar
Kilo Sage

Hello @Southsayer 

Does your script include returning the correct sys_id? Please verify the syntax to return the array in script include

If my response helped you, please accept the solution and mark it as helpful.
Thank You!