If you use property has value it will return true if the property has a value and will not compare that value with anything else. Could you please provide some more details on what is the requirement. If its just to check if pxResults().pyField is not blank then you can use InPageList or InPageList functions to check for null.
Posted: 7 months ago
Posted: 31 May 2022 11:38 EDT
Deva sai kumar Bheesetti (DevaSaiKumarB)
Deva sai kumar Bheesetti
@SanthoshRanga We're getting some data in a page we want to Validate some specific fields presence in the page dynamically. If they're not present we need to Append missing property name to Error flag.
Ex: CustomerData Page has some data & we're having pxResults().pyField which contains Properties which needs to be checked. If we consider the above example We need to check the presence of property "Name" in the page. For that we're using .pyField which contains "Name" as value as reference. If we use the above functions then it'll only check presence of pyField but we need to check the properties contained by it.
Is there any way this requirement can be achieved or we can modify the code of existing function to a custom function.
You can use IsInPageListWhen("WhenRule", CustomerData.pxResults) function. Inside the "WhenRule" you can add a condition to validate all the property names that you're expecting to have using AND conditions.