I have a custom dashboard template I've created that I intend to use several times. Is there any way to grab the description of the specific dashboard view and dynamically put it in the banner?This message has been edited. Last edited by: Kerry,
Thanks.
Mark WF 7.6 Windows
October 20, 2009, 09:01 AM
dlogan
I don't see any easy way to do this.
If there was a way to get the value of WORP_MPV and dynamically use that to choose a banner it would meet your needs.
However, in looking through the folder structure and the files that make up the templates/views I can not see any direct reference to WebFOCUS Variables being substituted.
The closest thing I see is:
<!--Links-->
and
<!--Message-->
If I have time I'll play with this more and see what I can find out. However, those look like flags for a substitution of data.
If you can figure out what criteria can be substituted there it might be possible to load a value you can use some JavaScript to detect and load the appropriate banner.
Its a long shot, but its all I see with quickly looking at things.
I don't see anything out of the box either, so it's probably going to require modification of the JSPs in the WORP folder under WEBAPPS.
Thanks.
Mark WF 7.6 Windows
October 20, 2009, 11:19 AM
MacLonghorn
Except I'm not looking to read it from WF. This would be done via the webapp and jsp, I'm thinking. That's the code that displays the dashboard view in the first place. I was thinking maybe the file:
This file creates the links, etc that show in the banner, and I'm wondering if there's a method/function in the worp classes that would give me access to the dashboard description.
ah yes, that's the type of thing I thought might do it. let me give that a try. thanks all.
Thanks.
Mark WF 7.6 Windows
October 20, 2009, 01:23 PM
MacLonghorn
except
getUserPrefs().getMpv()
returns the folder name, not the "nice" description one would see in the BID View Builder, such as "Executive Information Portal"
Thanks.
Mark WF 7.6 Windows
October 20, 2009, 02:03 PM
dlogan
Mac, Sorry, but the "description" value does not appear to be easily attainable. Its not within any of the classes/info presently being used by WORP_banner.
So I'm currently trying to plug this code into WORP_Banner.jsp somehow, but I keep getting an error.
Thanks.
Mark WF 7.6 Windows
October 20, 2009, 03:01 PM
dlogan
Mark, The method for returning this value (getDescryptionDecrypted) does not appear to exist under a banner object, and does not seem to be easily accessible to the banner object as best as I can tell. I'll probably play with this more later, but I was not able to find an easy way to do this.
How do you know? Where can I find the classes/methods available?
Thanks.
Mark WF 7.6 Windows
October 21, 2009, 08:22 AM
dlogan
Mark, If you take a look at the code within the JSP, you can see that the banner is of a different object type then what is used decrypt and get a copy of the description. If you run searches throughout the JSP's you will see that the banner object type never carries a reference to something that describes the WORP view description.