I have recently upgraded from SmartClient 8.3 to SmartClient v10.1p_2016-05-14 Power Edition.
When I have a search form that contains field names with path information like "billingContacts.contact.last", I get erroneous data in my criteria after calling getValuesAsCriteria for the first time. Given the example below, if I fill in the last name and search, the first time I call getValuesAsCriteria I get
Object {last: "TEST"}
The second and every subsequent time I call getValuesAsCriteria I get
Object {billingContacts: Object, last: "TEST"}
The criteria "billingContacts" was injected erroneously. This happens with both simple and advanced criteria calls. This did NOT happen in SmartClient 8. I can fix this myself by writing my own routine to build criteria, but I would prefer to use the built in method. Is this a known issue? Can this be fixed?
I have attached sample code for the form and a screenshot of what I'm seeing in the debugger.
When I have a search form that contains field names with path information like "billingContacts.contact.last", I get erroneous data in my criteria after calling getValuesAsCriteria for the first time. Given the example below, if I fill in the last name and search, the first time I call getValuesAsCriteria I get
Object {last: "TEST"}
The second and every subsequent time I call getValuesAsCriteria I get
Object {billingContacts: Object, last: "TEST"}
The criteria "billingContacts" was injected erroneously. This happens with both simple and advanced criteria calls. This did NOT happen in SmartClient 8. I can fix this myself by writing my own routine to build criteria, but I would prefer to use the built in method. Is this a known issue? Can this be fixed?
I have attached sample code for the form and a screenshot of what I'm seeing in the debugger.
Code:
var search = isc.SearchForm.create({ numCols: 6, margin: 3, titleWidth: 100, dataSource: "com_ampm_medical_entity_MedicalPatient", fields: [ { width:180, id:"4F0B5E9029FF11E1BC4F89680A0A0AE9", title:"Last", name:"last", orderId:0 }, { width:180, characterCasing:"upper", id:"4F0C971029FF11E1BC4F89680A0A0AE9", title:"First", name:"first", orderId:1 }, { width:180, characterCasing:"none", editorType:"DateRangeItem", id:"4F0DA88029FF11E1BC4F89680A0A0AE9", title:"Birth Date", colSpan:"*", name:"birthDate", orderId:2, useTextField:true }, { width:180, characterCasing:"upper", id:"4F0EE10029FF11E1BC4F89680A0A0AE9", title:"Insured Last", name:"billingContacts.contact.last", orderId:3 }, { width:180, characterCasing:"upper", id:"4F0FF27029FF11E1BC4F89680A0A0AE9", title:"Insured First", name:"billingContacts.contact.first", orderId:4 }, { width:180, characterCasing:"none", editorType:"DateRangeItem", id:"4F112AF029FF11E1BC4F89680A0A0AE9", title:"Insured Birth Date", colSpan:"*", name:"billingContacts.contact.birthDate", orderId:5 } ] });
Comment