You are viewing this site as a guest. You can still ask questions and help others! Join our Dev2Dev IT Community to receive your own blog, share your knowledge, and much more.

How to change occurs count dynamically

3 replies [Last post]
Ashar's picture
User offline. Last seen 4 years 13 weeks ago. Offline
Joined: 03/26/2008
Posts: 227

Is there any way we can change the occurs count of the grid dynamically?

Peace,

Ashar

Lepa's picture
User offline. Last seen 1 year 31 weeks ago. Offline
Joined: 06/23/2008
Posts: 591
Re: How to change occurs count dynamically

Occurs Count count is a property of a Grid but unfortunately there is nothing you can do (code wise) to change it dynamically. The closest you can get is with the Fixed Height (number of rows) grid property on the use tab. If the fixed height property is not used, the size of the grid dynamically changes based on the occurs count and the number of data rows retrieved.

Give back to the community and help it grow!
* Help with unanswered forum questions and issues
* Register or login to share your knowledge at your own blog

Ashar's picture
User offline. Last seen 4 years 13 weeks ago. Offline
Joined: 03/26/2008
Posts: 227
Re: How to change occurs count dynamically

Hi,

Sorry for late reply but I have been busy lately.
Regarding the subject: Requirement was to initially display maximum 10 rows in the grid (grid navigation buttons like next, previous, find etc should not be displayed) and by clicking on "More" link on the page grid should list all available data.
What we have done is to restrict (or Hide) all the rows except first 10 rows on page activate peoplecode and on field change of the "More" button unhide the rows.

Peace,

Ashar

Guest's picture
Guest
Re: How to change occurs count dynamically

Ashar,

Can you share your code on how you accomplished this?

Thanks,
Linda