Discussion

Compare 2 page list properties

I have to validate properties in two page lists.

Eg:I have page lists ABC and XYZ. In ABC I have a property called PR of data type text. And in XYZ I have a property called ST.
Since ABC and XYZ are pagelists, there can be multiple values for PR and ST.
Now I need to check if value of PR is same as value of ST throughout the pagelist.

i.e if pagelists are of size 3, then
ABC(1). PR =ABC(2). PR=ABC(3). PR= XYZ(1).ST = XYZ(2).ST= XYZ(3).ST

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.

Comments

Keep up to date on this post and subscribe to comments

September 12, 2012 - 7:05am

First you can iterative the ABC pagelist then you could check the second page list XYZ by using IsInPageList function.

Thanks,
Austin Jonny.

September 12, 2012 - 7:14am

But I want to check each and every property within the second pagelist(XYZ). al those properties should hold the same value. can u help me out.

September 12, 2012 - 7:51am

IsInPageList function is do the same.

Thanks,
Austin Jonny.

September 12, 2012 - 2:20pm

use IsInEachPageofList(lookFor, lookAt, lookIn) function:
Returns true if on all pages of the Page List property lookIn, the value of the property lookAt matches the string value lookFor.

December 6, 2015 - 5:47pm

I have a date property in a pagelist and have to validate that either none has value or if have value then it should be same for all pages in the list. Tried IsInEachPageofList but not working. 

Property-Set    =>  Param.ExpDate==.ExpDate

When rule to set page message   ==> @IsInEachPageOfList(Param.ExpDate, .ExpDate, .PageListTemp)

Any help would be useful,

 

Thanks