autoExecute="false" is ignored; OnCreateResultSet and OnExecuteResultSet still run on page load

I have a <tablePane> element with OnCreateResultSet and OnExecuteResultSet methods; autoExecute is "false" but the OnCreateResultSet and OnExecuteResultSet methods are nevertheless called on page load.

 

I want the user to be able to press a button to submit the parameters, then have this button call tablePane.executeQuery() to execute the query.

 

autoExecute is simply igonored.  We're on 2014.1.3 with plans to upgrade to 2016 soon.

 

Are there more settings I need to set? Or is this attribute simply ignored?

 

<tablePane id="tblReport" useSnapshot="true" autoExecute="false"
OnCreateResultSet="CreateRS" OnExecuteResultSet="ExecuteRS"
cellSpacing="8" showZebra="true"  showRowSelector="false" >

Thanks,

Laura

Vote up!
Vote down!

Rating: 0

Comments: 2 Views: 89

Comments

The snapshot mode refresh automatically the table 
 

Vote up!
Vote down!

Rating: 0

I did not know that - but I tried taking it out, but my test global is still populated with method calls to OnCreateResultSet and OnExecuteResultSet methods.  The table itself if hidden at first.  In fact, there are multiple tablesPanes, and they are all getting called upon page load, even though the tablePane group is hidden.  

I'm going to play around with pInfo.QueryExecuted; and there's a runflag set up, which I can see why it was set up now.

THanks.

Vote up!
Vote down!

Rating: 0

2 answers

Answer

Please try 

initialExecute="false"

 

Vote up!
Vote down!

Rating: 0

Answer

Yan, that sounds promising.  I'll check, and let you know. Thanks!

Vote up!
Vote down!

Rating: 0

Log in to answer