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.
New TIBCO Community Coming Soon
In early summer, TIBCO plans to launch a new community—with a new user experience, enhanced search, and expanded capabilities for member engagement with answers and discussions! In advance of that, the current myibi community will be retired on April 30. We will continue to provide updates here on both the retirement of myibi and the new community launch.
What You Need to Know about Our New Community
We value the wealth of knowledge and engagement shared by community members and hope the new community will continue cultivating networking, knowledge sharing, and discussion.
During the transition period, from April 20th until the new community is launched this summer, myibi users should access the TIBCO WebFOCUS page to engage.
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