Hi Zach, this is extremely helpful, thank you!
I’m working on a very similar use case on a custom object, only differences are that my table is already in edit mode, and the field I am entering in is a reference field.
The destination however is also unit price, and is meant to be updated with a value brought in via the reference field.
Input field (reference, autocomplete): Product_For_Sale__c
Source value from field: Product_For_Sale__r.Price__c
Destination to update: Unit_Price__c
The delay input callback seems to be “too quick” to wait for the autocomplete value in the input field to “stick”, so ‘undefined’ gets passed on to Unit_Price__c.
I assured the Product_For_Sale__r.Price__c is brought in on the model and that it has data in it.
Here is my code:
var field = arguments[0], value = arguments[1],How would I need to modify this to run after the autocomplete on the reference field is selected by the user?
row = field.row,
$ = skuid.$;
skuid.ui.fieldRenderers[field.metadata.displaytype].edit( field, value);
skuid.utils.delayInputCallback(
field.element.find(‘input’),
function(newValue) {
field.model.updateRow(row, {Unit_Price__c: field.Price__c});
}
);
Thank you in advance!
Regards,
Robin