Clearing Validations Array

I have a search button, which gives me search results in a grid and then I select one of those results and hit another button. During this second button click, I have some validations in a validation array for that grid. Now the search button and the grid are on the same User Interface (same page). So when I do a search for the second time, the first validation does not get cleared in the array. How do I clear the validation array each time the grid validation button is clicked?

  Discussion posts and replies are publicly visible

  • I think you can create a local boolean variable and turn it On/Off wherever you req. In the validation parameter, you can use an 'if' condition to do validations only if the local boolean variable is true. Make the local boolean variable false and validation array as null when the grid button is clicked in the saveInto parameter. Or perform validation if the validation array is not null. And as mentioned, make it null, on click of grid button.
    If you can put ur code snippet...Appian practitioners will be able to assist you easily.
  • hi aneeshv713,
    as ashokv said,take one local variable ,
    1)when you click search button make that local variable as true() ,after second button click make that local variable as false()
    2)configure first search button validation parameter with that local variable.
    validate:if(
    local!buttonAction,
    true,
    false

    )

    that means the ,this button performs validation only if it is true,(on second button click you are doing local variable as false so the first search button validation wont work )

    hope this will help you...