Written by

Question Carl Maklad · Apr 8, 2024

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.

Comments

David Hockenbroch · Apr 8, 2024

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.

0
Carl Maklad  Apr 8, 2024 to David Hockenbroch

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.

0
David Hockenbroch  Apr 9, 2024 to Carl Maklad

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.

0
Carl Maklad · Apr 10, 2024

I'll try it, then report back. Thanks.

0
Carl Maklad · May 13, 2024

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.

0