- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2024 10:24 AM - edited 06-05-2024 04:54 AM
Hi,
I have created a Record Producer with "select box" variable. I have added choices manually.
On the "Idea" form we have "Portfolio" field. Its a reference field.
Whatever value I am giving on the Record producer I want it to go on the Idea form.
Thanks,
Vaishnavi
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2024 10:15 AM
Hi @Vaishnavi35 ,
As per all details given here, it looks that the local select box value ( from question_choice ) table are mapped with portfolio field on Idea table which is giving this overall issue becuase selec box value's has different sys_id than Profile [ pm_profile ] tabe.
Workarround :
You can write gliderecord query over pm_profile table and get the profile record sys_id based on selected profile on record producer using the below code.
current.portfolio = getPortfolio(producer.u_portfolio);
// Funtion to return selected portfolio record's sys_id
function getPortfolio(protf){
var grPorfolio = new GlideRecord("pm_portfolio");
grPorfolio.addQuery("name", portf );
grPorfolio.query();
if(grPorfolio.next()){
return grPorfolio.sys_id;
} // if closed
} // function closed
-Thanks,
AshishKM
Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2024 10:43 AM
Since its a Idea record producer and you want to map the portfolio on the front end to the back end Idea form, I would suggest you to map that field on the dictionary level of the filed by setting map to filed as true and than adding the backend filed on the field value.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2024 10:48 AM
I am already trying to "Map field" , but it does not work.
map to filed as true and than adding the backend filed on the field value - I did not understand what you meant here?
Thank you for the help!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2024 11:15 AM
when you set the map filed true on the record producer field, it would ask you what filed on the back end (idea form) would you like to map the filed to, if you select the filed on there, it automatically maps to the back end and you will not have to use the client script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2024 11:28 AM
Its not working. Is it because its an OOB field? Not sure.