As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.
Join the TIBCO Community TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.
From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
Request access to the private WebFOCUS User Group (login required) to network with fellow members.
Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.
I am looking for a way to dynamically populate a menu component. The menu will ideally be populated using a database or a XML file. Also, I want to dynamically create the event handlers to handle the "click" event for each menu item/subitem.
Any suggestion on how I can accomplish this? Thanks.This message has been edited. Last edited by: <Emily McAllister>,
Originally posted by Waz: rajje, I assume you are talking about drill menu items ? If so, then documentation, if not then what menu items ?
Waz, I am referring to the Menu component, not the drill menu. If you are in AppStudio, you can see it listed under Components -> Generic Elements. If I look under "Settings" for the menu component, I can only see "Data type = Static" option.
We are exploring ways to add fairly complicated navigation structure to our portal pages and so far, the the only way I can think of is it use the Menu component.
If I'm understanding your request, see what you think of this code from a previous post.
TABLE FILE EMPLOYEE PRINT EMP_ID BY DEPARTMENT ON TABLE SAVE AS OZIHOLD1 FORMAT ALPHA END -RUN TABLE FILE CAR SUM RCOST DCOST BY COUNTRY BY CAR BY MODEL ON TABLE SET HTMLCSS ON ON TABLE SET PAGE NOLEAD ON TABLE SET STYLE * GRID=OFF, SIZE=9, $ TYPE=DATA, COLUMN=COUNTRY, -READ OZIHOLD1 &Dept.A10. &Emp_Id.A9. -SET &Cnt = 1; -REPEAT :Loop WHILE &IORETURN EQ 0; DRILLMENUITEM='Item &Cnt',FOCEXEC=yourdrilldown(Dept='&Dept' Emp_Id='&Emp_Id'), -READ OZIHOLD1 &Dept.A10 &Emp_Id.A9 -SET &Cnt = &Cnt + 1; -:Loop $ ENDSTYLE END
Good luck with this one. I created a simple menu using App Studio, then inspected the HTML code using Chrome's developer tools.
IBI is using "ul" and "li" tags to construct the menu, then changing CSS classes when the mouse hovers over the menu choices. The whole thing is wrapped in a "div" tag. So it doesn't surprise me that there is no dynamic option for generating a menu. They would have to allow you to somehow map your dynamic choices from a data source so that all the menu choices appear at the proper levels. Menus can have sub-menu choices, which in turn can have sub-menu choices, which can also have sub-menu choices, etc.
I suppose an XML data source could allow for that, because in XML you can have levels of data. But from my experience with App Studio, XML from a fex file tends to be too simple in structure for that.
However, IBI does allow you to add your own HTML code into the App Studio HTML canvas. It's under "Components" at the far right ("HTML" button). I suppose it may be possible to create a "div" there and inject your own dynamic menu code, but I don't know for sure.
App Studio WebFOCUS 8.1.05M Windows, All Outputs
Posts: 594 | Location: Michigan | Registered: September 04, 2015