PDA

View Full Version : Fill valueField and displayField properties of a Combo when loading a form



neo1010
14 Apr 2009, 12:28 PM
I have a form with several comboboxes. Each comboBox has a displayField and valueField.
I dont know how to fill both properties of the Combo when I load a form.
For example I receive from the server the next information :
{
success: true,
data: {
clientName: "Fred. Olsen Lines",
portOfLoading: "FXT",
portOfDischarge: "OSL"
}
}

If I have a ComboBox which valueField is 'clientNumber' and which displayField is 'clientName', what information I have to receive when I load the form to fill both properties of the ComboBox

Thanks



I

NoahK17
14 Apr 2009, 1:56 PM
If your value field is ClientNumber, then your JSON request has to return something for ClientNumber.

neo1010
15 Apr 2009, 4:06 AM
But in the next json:
{
success: true,
data: {
clientName: "Fred. Olsen Lines",
portOfLoading: "FXT",
portOfDischarge: "OSL"
}
}

If I have a combo with name clientName where do I insert the property clientNumber?

Thanks