Skip to main content

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.

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.

 

 

 

 

 


Reply