Hi, When I pull a value from a record I seem to on...
# suitescript
b
Hi, When I pull a value from a record I seem to only be getting the "ID" of that value, Is there an easy way to get the value itself.
a
Load it in dynamic mode and use record.getText
b
Not sure if that will work in what I'm trying to achieve, so perhaps I need to expand further. During data entry I have an onfieldchanged event and when this particular field changes I need to grab the value to extract some data for other fields using a search. The ID of the field grabbed is not in the search but the text of the value is.
b
same idea
use CurrentRecord.getText to get the text
depending on how the timing works out, you may need to use postSourcing instead instead of fieldChanged
b
Thanks, I've managed it with this... var projectTEXT = this.currentRecord.getCurrentSublistText({ sublistId: sublistID, fieldId: this.layout.driverID });