Hi Brains Trust,
I am populating the Drop-Downs in an InlineEdit Based on data from a DataCache this works OK for populating the first dropdown... but now I want a cascade filter the 2nd dropdown, as-in, when I select a value in CCode I want the choices in ChargeRate filtered by what I just picked in CCode ... Remembering all this is in InLineEdit.
NOTE I can do this easily with 2 normal Drop-Down boxes on a UX But I can't figure out how on earth to do this in InplaceEditing in a list.
Now Populating CCode is done like this
All good so far.
Now I select one of the values and I fire the onChange Event,
The notes say this
But if I have just selected a choice from the CCode Drop-Down then what is the syntax to get what I just selected
I thought it would have been newData.CCode... But if I alert() that I get undefined.
I can't find any documentation on this.
Please If anyone know how to get the value from an Inline Edit control I would be very grateful.
Thanks in advance.
I am populating the Drop-Downs in an InlineEdit Based on data from a DataCache this works OK for populating the first dropdown... but now I want a cascade filter the 2nd dropdown, as-in, when I select a value in CCode I want the choices in ChargeRate filtered by what I just picked in CCode ... Remembering all this is in InLineEdit.
NOTE I can do this easily with 2 normal Drop-Down boxes on a UX But I can't figure out how on earth to do this in InplaceEditing in a list.
Now Populating CCode is done like this
Code:
var _onSuccess = function(data) { //create an array from the cache data and re-populate the edit-combo var arrData = data.map(x => Object.values(x)); //alert(arrData); var lObj = {dialog.Object}.getControl('lstCHARGES'); lObj._inplaceEditing.choices.CCode = arrData; }; var _onFail = function() {}; var _filter = ''; var _order = {'ChargeCode' : 1}; //only get distinct 'ChargeCode' field var obj = {columns: ['ChargeCode'], distinct: true, distinctColumn: 'ChargeCode'}; {dialog.object}.getFromDataCache('CdataRates',_onSuccess,_onFail,_filter,_order,obj);
All good so far.
Now I select one of the values and I fire the onChange Event,
The notes say this
/*
TIP: This is a system comment that is added automatically every time you edit this code.
To suppress this system comment, add this comment to your code: //nosystemcomment
Your code can reference these variables:
rowNumber - the zero based row number for the event
newData - the edited data in the List row
oldData - the data in the List row
listObj - reference to the List object
*/
TIP: This is a system comment that is added automatically every time you edit this code.
To suppress this system comment, add this comment to your code: //nosystemcomment
Your code can reference these variables:
rowNumber - the zero based row number for the event
newData - the edited data in the List row
oldData - the data in the List row
listObj - reference to the List object
*/
I thought it would have been newData.CCode... But if I alert() that I get undefined.
I can't find any documentation on this.
Please If anyone know how to get the value from an Inline Edit control I would be very grateful.
Thanks in advance.
Comment