Skip to main content
Rollback to Revision 2
Source Link
Robert Lindgren
  • 24.5k
  • 12
  • 53
  • 79

It works fine. I did programmatically in SPSevices. It works fine. I did programatically in SPSevices.

$(document).ready(function() {
    
    var idquery=""; 
    $().SPServices({
     operation: "GetListItems", 
    async: false, 
    listName: "test", 
    CAMLQuery: idquery, 
    CAMLRowLimit: 1, 
    completefunc: function (xData, Status) 
    { 
    $(xData.responseXML).SPFilterNode("z:row").each(function() { //alert($(this).attr("ows_Title")); 
    var getvalue= parseInt($(this).attr("ows_Title"))+1;//Auto increment value $("input[title='TicketNumber']").val(getvalue);
    
            });
         } 
        });
  1. Get value in variable parseInt($(this).attr("ows_Title"))+1;
  2. Bind text box TICKET Number

1. Get value in variable parseInt($(this).attr("ows_Title"))+1; 2. Bind text box TICKET Number Click here more detailsClick here more details

It works fine. I did programmatically in SPSevices.

$(document).ready(function() {
    
    var idquery=""; 
    $().SPServices({
     operation: "GetListItems", 
    async: false, 
    listName: "test", 
    CAMLQuery: idquery, 
    CAMLRowLimit: 1, 
    completefunc: function (xData, Status) 
    { 
    $(xData.responseXML).SPFilterNode("z:row").each(function() { //alert($(this).attr("ows_Title")); 
    var getvalue= parseInt($(this).attr("ows_Title"))+1;//Auto increment value $("input[title='TicketNumber']").val(getvalue);
    
            });
         } 
        });

1. Get value in variable parseInt($(this).attr("ows_Title"))+1; 2. Bind text box TICKET Number Click here more details

It works fine. I did programatically in SPSevices.

$(document).ready(function() {
    
    var idquery=""; 
    $().SPServices({
     operation: "GetListItems", 
    async: false, 
    listName: "test", 
    CAMLQuery: idquery, 
    CAMLRowLimit: 1, 
    completefunc: function (xData, Status) 
    { 
    $(xData.responseXML).SPFilterNode("z:row").each(function() { //alert($(this).attr("ows_Title")); 
    var getvalue= parseInt($(this).attr("ows_Title"))+1;//Auto increment value $("input[title='TicketNumber']").val(getvalue);
    
            });
         } 
        });
  1. Get value in variable parseInt($(this).attr("ows_Title"))+1;
  2. Bind text box TICKET Number

Click here more details

added 9 characters in body
Source Link

It works fine. I did programatically in SPSevices.It works fine. I did programmatically in SPSevices.

$(document).ready(function() {
    
    var idquery=""; 
    $().SPServices({
     operation: "GetListItems", 
    async: false, 
    listName: "test", 
    CAMLQuery: idquery, 
    CAMLRowLimit: 1, 
    completefunc: function (xData, Status) 
    { 
    $(xData.responseXML).SPFilterNode("z:row").each(function() { //alert($(this).attr("ows_Title")); 
    var getvalue= parseInt($(this).attr("ows_Title"))+1;//Auto increment value $("input[title='TicketNumber']").val(getvalue);
    
            });
         } 
        });
  1. Get value in variable parseInt($(this).attr("ows_Title"))+1;
  2. Bind text box TICKET Number

Click here more details1. Get value in variable parseInt($(this).attr("ows_Title"))+1; 2. Bind text box TICKET Number Click here more details

It works fine. I did programatically in SPSevices.

$(document).ready(function() {
    
    var idquery=""; 
    $().SPServices({
     operation: "GetListItems", 
    async: false, 
    listName: "test", 
    CAMLQuery: idquery, 
    CAMLRowLimit: 1, 
    completefunc: function (xData, Status) 
    { 
    $(xData.responseXML).SPFilterNode("z:row").each(function() { //alert($(this).attr("ows_Title")); 
    var getvalue= parseInt($(this).attr("ows_Title"))+1;//Auto increment value $("input[title='TicketNumber']").val(getvalue);
    
            });
         } 
        });
  1. Get value in variable parseInt($(this).attr("ows_Title"))+1;
  2. Bind text box TICKET Number

Click here more details

It works fine. I did programmatically in SPSevices.

$(document).ready(function() {
    
    var idquery=""; 
    $().SPServices({
     operation: "GetListItems", 
    async: false, 
    listName: "test", 
    CAMLQuery: idquery, 
    CAMLRowLimit: 1, 
    completefunc: function (xData, Status) 
    { 
    $(xData.responseXML).SPFilterNode("z:row").each(function() { //alert($(this).attr("ows_Title")); 
    var getvalue= parseInt($(this).attr("ows_Title"))+1;//Auto increment value $("input[title='TicketNumber']").val(getvalue);
    
            });
         } 
        });

1. Get value in variable parseInt($(this).attr("ows_Title"))+1; 2. Bind text box TICKET Number Click here more details

deleted 1 character in body
Source Link
Robert Lindgren
  • 24.5k
  • 12
  • 53
  • 79

It works fine. I did programatically in SPSevices.

Its works fine .I did programatically in SPSevices. 

$(document).ready(function() {
    
    var idquery=""; 
    $().SPServices({
     operation: "GetListItems", 
    async: false, 
    listName: "test", 
    CAMLQuery: idquery, 
    CAMLRowLimit: 1, 
    completefunc: function (xData, Status) 
    { 
    $(xData.responseXML).SPFilterNode("z:row").each(function() { //alert($(this).attr("ows_Title")); 
    var getvalue= parseInt($(this).attr("ows_Title"))+1;//Auto increment value $("input[title='TicketNumber']").val(getvalue);
    
            });
         } 
        });
1.get value one variable parseInt($(this).attr("ows_Title"))+1;
2.bind text box "TICKET Number"
  1. Get value in variable parseInt($(this).attr("ows_Title"))+1;
  2. Bind text box TICKET Number

Click here more details

Its works fine .I did programatically in SPSevices. 

$(document).ready(function() {
    
    var idquery=""; 
    $().SPServices({
     operation: "GetListItems", 
    async: false, 
    listName: "test", 
    CAMLQuery: idquery, 
    CAMLRowLimit: 1, 
    completefunc: function (xData, Status) 
    { 
    $(xData.responseXML).SPFilterNode("z:row").each(function() { //alert($(this).attr("ows_Title")); 
    var getvalue= parseInt($(this).attr("ows_Title"))+1;//Auto increment value $("input[title='TicketNumber']").val(getvalue);
    
            });
         } 
        });
1.get value one variable parseInt($(this).attr("ows_Title"))+1;
2.bind text box "TICKET Number"

Click here more details

It works fine. I did programatically in SPSevices.

$(document).ready(function() {
    
    var idquery=""; 
    $().SPServices({
     operation: "GetListItems", 
    async: false, 
    listName: "test", 
    CAMLQuery: idquery, 
    CAMLRowLimit: 1, 
    completefunc: function (xData, Status) 
    { 
    $(xData.responseXML).SPFilterNode("z:row").each(function() { //alert($(this).attr("ows_Title")); 
    var getvalue= parseInt($(this).attr("ows_Title"))+1;//Auto increment value $("input[title='TicketNumber']").val(getvalue);
    
            });
         } 
        });
  1. Get value in variable parseInt($(this).attr("ows_Title"))+1;
  2. Bind text box TICKET Number

Click here more details

Source Link
Loading