Can the value of <zenPage><tablePane><maxRows> be configurable?
I am working on a Zen page that has a table pane with the maxRows set to a default value. My customer is coming back with the following request of making that value bigger & begs the question whether the new value can be configurable. I looked @ the documentation, and forgive me if I missed, and I couldn't find anywhere that it can. Am I wrong? Thanks.
You can create a text input and write a method that sets the maxRows property based on what the user puts into that input that fires in the input's onchange.
Okay, but I am unclear about one thing, what should I do with the property when defining the tablePane? Not set it @ all or set it to default value? One more thing, any idea what happens once you set the value in the onchange? In other words, does the query run again? Thanks.
You will have to initially set it to something, yes. Once you set the value in the onchange, if you want it to also run the query again, I believe you have to tell it to do that. You could make that part of your method too, though.
I'll try it, then report back. Thanks.
I must be doing something wrong when refreshing the table/querying the backend again. It seems like I am setting the maxRows property correctly (zenPage.getComponentById(<table id>).setProperty('maxRows',10)) because calling the getProperty returns 10. So, it must be the way I forcing the query. I use executeQuery(). Isn't that the right way to do it? Thanks.
Had the wrong table id. Duh!