X-Pages - Dynamic View Creation

Hello,

I am struggling to find a way to dynamically compute views in X-Pages. What I would like to do is have a single X-Page with a view control and simply pass it the name of the view I want to display and have it displayed in its default form.

My problem is that I cannot seem to do this. I can compute the form name but it does not automatically pull in the columns. Is the only way to add several columns and compute / hide these based on the column values in the view ?

Have anyone found a better way to do this. I do not want to have to create 30 X-Pages if I have 30 views…

Thank you!

Ian

Subject: Look up Dec’s Xpages Blog…

  • In there he creates a control that’s a good skeleton for what you want. I adapted it so I can pass a View name to the control as a parameter and it renders that View for me, column headers, categories, the whole nine yards. It was a real nightmare to build, since I’m still learning XPages, but it’s possible.

  • Dec’s blog is indispensable. I can’t recommend it enough.

  • Hope this helps.

Subject: I don’t think IBM has addressed this at all

Do a search for $$ViewTemplate and my name - there’s lots of discussion on this. I think your suggestion is the the only way out (and quite complex).