I'd like an input table in a datatable to allow me to “prioritize” the items that are dynamically pulled from a sharepoint listHow to generate a formatted document (.doc, .pdf) from a list item in SharePoint?How to change photoshop color channels with scriptCannot display HTML stringExport choices from a Sharepoint list choice field to csvDynamic Edit form for some kind of Russian Dolls container(s) with AngularJSWorkflow or Calculated ValueChange cell color in html table based on conditions, all data are in table are appended from sharepoint listSplit Overlap RangesConditional formula or other solution SharePointRest API showing [object Object] instead of array objects
Cauterizing a wound with metal?
Why haven't the British protested Brexit as ardently like Hong Kongers protest?
Why does `buck` mean `step-down`?
How can I fix cracks between the bathtub and the wall surround?
Is the Amazon rainforest the "world's lungs"?
is "prohibition against," a double negative?
Answer with an image of my favorite musician
Why do presidential pardons exist in a country having a clear separation of powers?
How can I throw a body?
Group by consecutive index numbers
How can weighted averages be calculated for a Dataset summarized with GroupBy
Count the number of triangles
Coupling two 15 Amp circuit breaker for 20 Amp
“I hope he visit us more often” Why is this wrong?
Can a network vulnerability be exploited locally?
How to investigate an unknown 1.5GB file named "sudo" in my Linux home directory?
Fixing a blind bolt hole when the first 2-3 threads are ruined?
Why is 3/4 a simple meter while 6/8 is a compound meter?
Get contents before a colon
Pen test results for web application include a file from a forbidden directory that is not even used or referenced
Spicing up a moment of peace
What does なんだって mean in this case? 「そういう子なんだってだけで...」
Where should I draw the line on follow up questions from previous employer
Why did Lucius make a deal out of Buckbeak hurting Draco but not about Draco being turned into a ferret?
I'd like an input table in a datatable to allow me to “prioritize” the items that are dynamically pulled from a sharepoint list
How to generate a formatted document (.doc, .pdf) from a list item in SharePoint?How to change photoshop color channels with scriptCannot display HTML stringExport choices from a Sharepoint list choice field to csvDynamic Edit form for some kind of Russian Dolls container(s) with AngularJSWorkflow or Calculated ValueChange cell color in html table based on conditions, all data are in table are appended from sharepoint listSplit Overlap RangesConditional formula or other solution SharePointRest API showing [object Object] instead of array objects
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I am using a REST query to get data from a SharePoint list. I have added a row with the render function to insert an input choice field but I'd like 2 things that I can't seem to figure out. 1. I'd like the "options" to be 1-x (x = to the number of items in the list) and 2. a validation (probably through an onchange event) to sort and limit the number to only be used once and change everything above to dynamically adjust based on the choice.
Example:
List information pulled:
Red
Blue
Green
Yellow
Default Datatable view:
Red 0
Blue 0
Green 0
Yellow 0
Set the options (user input):
Red 1
Blue 2
Green 3
Yellow 4
Adjust the options (user input):
Change red from 1 to 3
Blue becomes 1
Green becomes 2
Red is set to 3
Yellow stays 4
I'm successfully pulling the data and the render function I'm using to set the input field is:
data: 'null',
render: function (data)
return "<select class="inputFieldClass" onchange="nothingHereYet()"><option value="1">1</option><option value="2">2</option> etc...</select> "
function nothingHereYet()
alert ("something changed");
This works but is static to how many "options" I set and it does no validation to check what i set and reorder.
javascript html rest sharepoint
add a comment |
I am using a REST query to get data from a SharePoint list. I have added a row with the render function to insert an input choice field but I'd like 2 things that I can't seem to figure out. 1. I'd like the "options" to be 1-x (x = to the number of items in the list) and 2. a validation (probably through an onchange event) to sort and limit the number to only be used once and change everything above to dynamically adjust based on the choice.
Example:
List information pulled:
Red
Blue
Green
Yellow
Default Datatable view:
Red 0
Blue 0
Green 0
Yellow 0
Set the options (user input):
Red 1
Blue 2
Green 3
Yellow 4
Adjust the options (user input):
Change red from 1 to 3
Blue becomes 1
Green becomes 2
Red is set to 3
Yellow stays 4
I'm successfully pulling the data and the render function I'm using to set the input field is:
data: 'null',
render: function (data)
return "<select class="inputFieldClass" onchange="nothingHereYet()"><option value="1">1</option><option value="2">2</option> etc...</select> "
function nothingHereYet()
alert ("something changed");
This works but is static to how many "options" I set and it does no validation to check what i set and reorder.
javascript html rest sharepoint
add a comment |
I am using a REST query to get data from a SharePoint list. I have added a row with the render function to insert an input choice field but I'd like 2 things that I can't seem to figure out. 1. I'd like the "options" to be 1-x (x = to the number of items in the list) and 2. a validation (probably through an onchange event) to sort and limit the number to only be used once and change everything above to dynamically adjust based on the choice.
Example:
List information pulled:
Red
Blue
Green
Yellow
Default Datatable view:
Red 0
Blue 0
Green 0
Yellow 0
Set the options (user input):
Red 1
Blue 2
Green 3
Yellow 4
Adjust the options (user input):
Change red from 1 to 3
Blue becomes 1
Green becomes 2
Red is set to 3
Yellow stays 4
I'm successfully pulling the data and the render function I'm using to set the input field is:
data: 'null',
render: function (data)
return "<select class="inputFieldClass" onchange="nothingHereYet()"><option value="1">1</option><option value="2">2</option> etc...</select> "
function nothingHereYet()
alert ("something changed");
This works but is static to how many "options" I set and it does no validation to check what i set and reorder.
javascript html rest sharepoint
I am using a REST query to get data from a SharePoint list. I have added a row with the render function to insert an input choice field but I'd like 2 things that I can't seem to figure out. 1. I'd like the "options" to be 1-x (x = to the number of items in the list) and 2. a validation (probably through an onchange event) to sort and limit the number to only be used once and change everything above to dynamically adjust based on the choice.
Example:
List information pulled:
Red
Blue
Green
Yellow
Default Datatable view:
Red 0
Blue 0
Green 0
Yellow 0
Set the options (user input):
Red 1
Blue 2
Green 3
Yellow 4
Adjust the options (user input):
Change red from 1 to 3
Blue becomes 1
Green becomes 2
Red is set to 3
Yellow stays 4
I'm successfully pulling the data and the render function I'm using to set the input field is:
data: 'null',
render: function (data)
return "<select class="inputFieldClass" onchange="nothingHereYet()"><option value="1">1</option><option value="2">2</option> etc...</select> "
function nothingHereYet()
alert ("something changed");
This works but is static to how many "options" I set and it does no validation to check what i set and reorder.
javascript html rest sharepoint
javascript html rest sharepoint
asked Mar 27 at 22:18
Chuck.MChuck.M
32 bronze badges
32 bronze badges
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55387342%2fid-like-an-input-table-in-a-datatable-to-allow-me-to-prioritize-the-items-tha%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.
Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55387342%2fid-like-an-input-table-in-a-datatable-to-allow-me-to-prioritize-the-items-tha%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown