I am having great difficulty setting up a view panel control’s view name based on a scoped variable
I know that the control has a handle on the correct value because I have a computed field displaying the value - but whenever I try to set the view name to “Computed value” with the same value, the app does not load the view
Am I missing anything?
Mike
Subject: Yes. ViewPanel can’t do this, afaik…
-
I know the name is computed, but viewPanel is shockingly limited in so many ways it would be funny if this were sitcom. But it’s not a sitcom, and it’s not funny, and even though you may compute the View name for the control, it will not function correctly. This should be present in numerous posts all over this forum, and easily locatable by searching.
-
Look on the web for how to do a View using repeat controls, or data tables. I personally did a repeat control because I stumbled on Dec’s Dom Blog first, and used his code as a model. I’ve extended it considerably, and even gotten categorized Views to work, after many, many, many failed attempts.
Good luck, Mike, and welcome to XPages, where the difficult is simple and the simple is difficult…
Subject: Not my favourite sitcom!!!
Many thanks David for your reply
I agree - it is almost too funny for words. Almost!
My view panel is inside a repeat control getting data from several different databases (all the same view name in each but as a model professional, I thought it best to parameterise it for future developers should things change! How silly of me)
Your post has convinced me that maybe I need to ditch the view panel and start thinking about data tables or some other way to display the data and allow the user to click to open the notes document itself. Any suggestions on the best control to delve into?
Thanks again
Mike