Forum Replies Created
-
AuthorPosts
-
Danielle Arcuri
ParticipantThat doesn’t update any of the items now.
Danielle Arcuri
Participantfunction 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”
Danielle Arcuri
ParticipantThat 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 3 years, 2 months ago by
Danielle Arcuri.
Danielle Arcuri
ParticipantSorry one more question. Can you pick and choose which items to update in child list or only update all?
Danielle Arcuri
ParticipantI tried the second GUID and now it works, thank you so much!
Danielle Arcuri
ParticipantYes 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}&targetListBaseUrlDanielle Arcuri
Participantok
Attachments:
Danielle Arcuri
ParticipantSorry, here it is.
Attachments:
Danielle Arcuri
ParticipantNothing is displaying.
Attachments:
Danielle Arcuri
Participantncaught 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]Danielle Arcuri
ParticipantI 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 3 years, 2 months ago by
Danielle Arcuri.
Danielle Arcuri
ParticipantYes I do see the vlookup child items and the internal name is vlookup.
Danielle Arcuri
ParticipantPOST 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:1Danielle Arcuri
ParticipantVM577:3 Uncaught TypeError: Cannot read property ‘1’ of undefined
at callMeFromButton (eval at <anonymous> (jquery.js:2), <anonymous>:3:45)
at HTMLInputElement.onclickDanielle Arcuri
ParticipantDisp/Edit
-
This reply was modified 3 years, 2 months ago by
-
AuthorPosts