Button Wierd Behaviour

  • 23 April 2015
  • 3 replies
  • 0 views

Badge +2

Greetings All,

 

 

I have a form created for a simple search activity , and there are two views in the form, first form is has a textbox to enter a unique Request ID and Search button to enter. The Second View is a List view which will List all the Rows from the Search result .

 

 

On click of search button, i have configured a rule to execute list method of the Second View passing the textbox value as parameter to list.

 

The Issue is when the users enters the Request ID for the firsttime the list returns error as parameter required and again when the user clicks on the search button again the list gets populated correctly.

 

Only First time there is an Issue.

 

Thanks,


14992iBB42A529BDC8C141.png
11238iF09685797FC3EA83.png
12100iAFFAFEA6C8EAC171.png

3 replies

Userlevel 5
Badge +16

Dear Mohammad,

 

Try this:

 

first add hidden textbox to your list view

 

set this rule on the form:

 

When btnSearch clicked

 

transfare txtProgramNumber to the hidden textbox in your list

 

then excute list method filtered upon your hidden txtbox whic has the programNumber

 

hope it helps :) 

Badge +2

 

Thanks for the Solution,

 

I implemented in th way you explained and facing the same issue again.

Userlevel 5
Badge +16

Dear, 

 

i'm using the following structure:

 

instead of calling the list method it self, use "execute another rule" which is when the list view initialize and it should has list method in it, now if it didn't work make you if condition on the list view initialize rule:

 

it should look like this:

 

when btnSearch is clicked

 

transfare txtProgramNumber to the hiddend txtbox on the list view

 

Execute when the list view initialize 

 

 

NOW we configure the list view initialize rule like the following

 

when the list view initialize 

 

if hidden txtbox is not empty and not equals to zero

 

execute list method 

 

wish it helps

Reply