Home › Forums › Classic DFFS › vLookup – Update Child when Parent is Updated › Reply To: vLookup – Update Child when Parent is Updated
June 24, 2020 at 13:57
#30749
Trying to implement this fix and struggling.
Parent List
Parent List Name (List) – TRLRPTS
vLookup fieldname – vLookup_Children
Internal fieldname – Status
Child List
Child List Name (Document Library) – TrialReports
Child list GUID – {ADA5EC4A-7D6D-4AFC-9AFA-21F47C2E1480}
Internal fieldname – status
Both above fields are single choice columns..
Here is my code:
function callMeFromChangeRule(){ var arrOfIDs = []; jQuery.each(spjs.vLookup.dataObj.vLookup_Children[spjs.dffs.data.thisItemID].items,function(id,vLookupListItem){ arrOfIDs.push(id); }); spjs.utility.updateItem({ "listName":"{ADA5EC4A-7D6D-4AFC-9AFA-21F47C2E1480}", "id":arrOfIDs, "data":{ "status":getFieldValue("Status"), } }); }
I’ve attached the console error..
- This reply was modified 4 years, 4 months ago by Paul Lynch.