I have a trigger which has to populate a field to show in PICKLIST
just want it to copy the TIME ZONE and STATE over to a record
I could do it if i changed the TODO field to a text box
but i want the todo field to be a DROPDOWN
For picklists (drop-down lists) please set their value to VALUE attribute used in HTML. I cannot say more based on info you provide.
Try using rbv_api.getIdByCode (objName, fieldName, code) API to determine ID of your selection. Use that ID in
rbv_api.setFieldValue(objName, objId, fieldname, newValue) call.
sorry Robie... can you give some advise on that, as I'm true novice to RB.... Where should i use that
sorry Robie... can you give some advise on that, as I'm true novice to RB.... Where should i use that
Flag this post as spam/abuse.
Well Murali
I've tried all the holy things possible with my lil understanding of RB but seems I'm missing something somewhere
The value for the Time Zone is a reference field {!R83831479.time_zone#value}
Should we take an ID or Value here
So if have to correct myself in understanding what you are trying to say the code which I would write here is
rbv_api.getIdByCode (objName, fieldName, code)
rbv_api.getIdByCode("<which object name goes here- is it the reference object name > ", "<WHICH FIELD IS THAT >", "<WHICH IS THE CODE>)
rbv_api.getIdByCode("R83831479", "Time_Zone", "{!R83831479.time_zone#value}");
Hi,
1. "<which object name goes here- is it the reference object name >" - The reference record Object name.
2. "<WHICH FIELD IS THAT >" - The picklist field integration name in the reference object.
3. "<WHICH IS THE CODE>)" - The code and value for a picklist item in Rollbase is provided in the form " <CODE>|<VALUE>". So, as per the image attached by you previously, the possible code names of the picklist are CST, EST, MST and PST.
Please let us know if you are able to move ahead with the provided information or if you need anything else.
Thanks & Regards,
Harsha.