Timeline for Set Yes/No field on selected list items by clicking a button
Current License: CC BY-SA 3.0
12 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 16, 2017 at 11:51 | history | edited | Gautam Sheth | CC BY-SA 3.0 |
added 16 characters in body
|
Jun 16, 2017 at 11:33 | comment | added | Gautam Sheth |
Cant really say for sure, but have added args in the failure method. So probably will help you identify the error. Also, input is self closing, so your html should be <input id="SeToYes" type="button" value="Add to ECN OPS" onclick="SetToECNOPS(1);" /> , but other than that can't pinpoint the error.
|
|
Jun 16, 2017 at 11:30 | history | edited | Gautam Sheth | CC BY-SA 3.0 |
added 8 characters in body
|
Jun 16, 2017 at 9:25 | comment | added | Gautam Sheth | welcome , glad i could help :) | |
Jun 16, 2017 at 9:25 | vote | accept | MüdeFuchs | ||
Jun 16, 2017 at 9:25 | comment | added | MüdeFuchs | Yes, it works! Now I just need to refresh my list after the update but I think I will easily find the needed code. Thanks a lot for your support Gautem!! By the way, can you shortly explain what does "itemArray[i]"? | |
Jun 16, 2017 at 9:20 | comment | added | Gautam Sheth | Have updated the code, can you check now ? Yes, you are correct, my bad, sorry | |
Jun 16, 2017 at 9:20 | history | edited | Gautam Sheth | CC BY-SA 3.0 |
added 5 characters in body
|
Jun 16, 2017 at 9:15 | comment | added | MüdeFuchs | thanks for your answer, I try to implement it now but console says oListItem is not defined (itemArray[i] = oListItem;). it need to be replaced by targetListItem I assume? | |
Jun 16, 2017 at 9:06 | comment | added | Gautam Sheth |
@Romain - my bad, to set the yes/no field, you need to set the value as 1 or 0 . So, to set value, it needs to be targetListItem.set_item('YesNoFieldInternalName', 1); , have updated code accordingly
|
|
Jun 16, 2017 at 9:02 | history | edited | Gautam Sheth | CC BY-SA 3.0 |
added 921 characters in body
|
Jun 16, 2017 at 8:48 | history | answered | Gautam Sheth | CC BY-SA 3.0 |