What is the syntax for getting the Value or Code of a picklist field, instead of the ID, while using rbf_selectQuery() on a portal page? I see you have rbv_api.getCodeById (objName, fieldName, id) for server-side processing; is there a similar function that could be used on the client-side? Thanks
OK, I will try to add this client-side API. Please check after the next update.
What is the syntax for getting the Value or Code of a picklist field while using SOAP web service?
To get value (numeric item ID) of a picklist from SOAP you can use getDataObj() or selectValue() API. I will add new API to get item's code for given value. This API is currently available from client-side and server-side JavaScript API.
Hi,
already tried the getDataObj and selectValue methods. These methods return a particular picklist value from a record.
e.g:
getDataObj(sessionID,recordID).
var sql = 'SELECT Rank FROM USER'
selectValue(sessionID,sql);
These all return a single value based from an existing record. What if I needed all of the picklist values not from a record but the picklist definition.
The new method stubs you added returns a single value based from the code or ID.
The output for getIdbyCode() is an Id of item with matching integration code or -1 which is a single value not all of the picklist values or definition.
Hope this helps in clarifying the issue
I can extend getObjectDef() to supply this into. Or you can use UI to find out.
I think if we get it from the UI it wil not be dynamic as the information is not fed from the SOAP and we need to do this everytime a new picklist value is added. The getObjectDef will be great as we can use it to get information about the object dynamically.
Picklist info will be included into getObjectDef API after the next update.
Hi Pavel,
I tried the getObjectDef and it returns however in the list items it does not include the ID of the picklist. Can you include the ID for the picklist. Thanks..
Sorry it seemed to remove the characters..
I tried the getObjectDef and it returns "ListItems" however in the list items it does not include the ID of the picklist. Can you include the ID for the picklist. Thanks..
OK, I will.