Skip to main content
Nintex Community Menu Bar

Trying to take an item from list view and adding "1" to it

  • March 12, 2017
  • 1 reply
  • 7 views
  • Translate

I have a text box and I'm looping through each item in my list view; In list view I have two fields - I have a sequence number and a book title. I want to take the last sequence number in list view and increment that number by 1 and store the results in a control called text box.

Did this topic help you find an answer to your question?

1 reply

Forum|alt.badge.img+9
  • 142 replies
  • March 13, 2017

Hi Mhambam,

 

Please follow the below steps.

 

Step1: Add a parameter "tempCount" of type Text with default value as 0

 

Step2: In layout Page add DataLabel, keep property literal checked and add below expression to it

 

here u have to convert ur parameter  to number (by using  "To Number()"inline function ) and then  incriment 1 to it (using add operation).

 

Step 3: Goto Rules and Edit your View Initialize rule.

  • After “then execute the Get List method (configure)” Add below rules

        -  Add rule “For each item in a List View” and select Item state as “All”

        -  then add Data Transfer Action and in configuration assign SMO value (in ur case it will be sequence number) to parameter

        -  Now add another rule “Set control value” and In configuration for property expression drag the Expression created in step 2 from browser context.

 

 

 

 

 

Translate

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings