Hi,
I apologise if this has been posted before but I cannot find a page anywhere discussing this and I have been searching for at least a couple of hours now. All I want to know is if there is a property that tells me the type of the field, i.e. String, Lookup, etc.
I ask because I am writing a CRM/Navision integration library and certain field values in CRM, when changed, are to be sent over to Navision. All my code is in JavaScript for the following implementation: I record the changes in an array (just the field name) and when the form is saved it loops through all the changed fields and gets the value. I am using DataValue property but the problem is that the actual value of this property is dependant on the field type, i.e. for a String field it is a string value, for Lookup field it is an object with properties. I would like to be able to have a switch statement that is case'd by the type of the field so I know what to do with the DataValue value.
Has anyone got any ideas? I would have thought this to be very simple, but all the examples I have seen so far make the assumption or are based on the fact that the field type is known/fixed and that the DataValue value is known/fixed prior to using it.
Any help with this will be very much appreciated.
*This post is locked for comments
I have the same question (0)