Forum Replies Created
-
AuthorPosts
-
That doesn’t update any of the items now.
function callMeFromButton() {
var arrOfIDs = [];
console.log(“Current item ID: ” + spjs.dffs.data.thisItemID);
console.log(spjs.vLookup.dataObj.vLookup[spjs.dffs.data.thisItemID]);
jQuery.each(spjs.vLookup.dataObj.vLookupTasks[spjs.dffs.data.thisItemID].items, function (id, vLookupListItem) {
if(vLookupListItem.Status === “Update”){
arrOfIDs.push(id);
}
});
console.log(arrOfIDs);
var res = spjs.utility.updateItem({
“listName”: “{933B2D65-B72B-4F13-94F3-2EEC4DDBAFB3}”,
“id”: arrOfIDs,
“data”: {
“Title”: getFieldValue(“Title”),
“Plan”: getFieldValue(“Plan”),
}
});
console.log(res);
}This code above is still updating all items even if the status is not “update”
That didn’t work. What field type does ‘Status’ need to be? and is there a way to checkbox or something similar the vlookup items you want to update?
- This reply was modified 4 years, 2 months ago by Danielle Arcuri.
Sorry one more question. Can you pick and choose which items to update in child list or only update all?
I tried the second GUID and now it works, thank you so much!
Yes the lists are in the same site.
The vlookup settings seem good to me. It shows a connection to the child and the child items display but will not update.
The fields are both single line text.
Could the GUID be incorrect in the custom JS?
When I look at my child list settings this is the display so I assume the GUID is B933B2D65-B72B-4F13-94F3-2EEC4DDBAFB3.
…/_layouts/15/listedit.aspx?List=%7B933B2D65-B72B-4F13-94F3-2EEC4DDBAFB3%7Dhowever when I go into DFFS settings on my child list i see this: 933b2d65-b72b-4f13-94f3-2eec4ddbafb3
backend=1&targetList={933b2d65-b72b-4f13-94f3-2eec4ddbafb3}&targetListBaseUrlok
Attachments:
Sorry, here it is.
Attachments:
Nothing is displaying.
Attachments:
ncaught DOMException: Failed to execute ‘addRule’ on ‘CSSStyleSheet’: Cannot access StyleSheet to insertRule
at Function.RTE.RteUtility.addStyleSheetRule [internal site]
at SP.UI.Spellcheck.SpellChecker.Load [internal site]
at ExecuteOrDelayUntilEventNotified [internal site]
at ExecuteOrDelayUntilScriptLoaded [internal site]
at [internal site]
at ExecuteAndRegisterBeginEndFunctions [internal site]
at [internal site]I see this now:
A cookie associated with a cross-site resource at [internal site] was set without the SameSite attribute. It has been blocked, as Chrome now only delivers cookies with cross-site requests if they are set with SameSite=None and Secure.
Does that mean my company blocks this from working?
- This reply was modified 4 years, 2 months ago by Danielle Arcuri.
Yes I do see the vlookup child items and the internal name is vlookup.
POST 500 (Internal Server Error)
send @ jquery.js:4
ajax @ jquery.js:4
wrapSoap @ VM3855:1
updateListItem @ VM3855:1
updateItem @ VM3855:1
callMeFromButton @ VM3870:6
onclick @ EditForm.aspx?ID=1&S…09B456A27CD55BE81:1VM577:3 Uncaught TypeError: Cannot read property ‘1’ of undefined
at callMeFromButton (eval at <anonymous> (jquery.js:2), <anonymous>:3:45)
at HTMLInputElement.onclickDisp/Edit
-
AuthorPosts