Focal Point
[CLOSED] How to create hyperlink for tree control..

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/9327085506

June 16, 2011, 06:12 PM
kodi
[CLOSED] How to create hyperlink for tree control..
I have in this format
under Report i have 3 sub reports
Car
Movies
Employee

I need to create 3 hyperlink for the three sub reports car, movies, employee in such a way
that when i select car it opens a new window and dispalys the output of car..

when i select movies it opens a new window and dispalys the output of movies..

This message has been edited. Last edited by: Kerry,


Webfocus 7702,Windows XP
June 17, 2011, 02:02 AM
Rajna Nannat
You can have a launch page with three links by inserting a hyperlink from HTML Layout painter and link the procedures as an external procedure to open in new window option
or
If you want the Report links to appear below your existing report you can try as given in below example
DEFINE FILE CAR
CARRPT/A50='Car Report';
MOVRPT/A50='Movies Report';
EMPRPT/A50='Employee Report';
END
TABLE FILE CAR
PRINT
CAR 
MODEL 
BY COUNTRY
ON TABLE SET PAGE-NUM OFF
FOOTING
"<CARRPT"
"<MOVRPT"
"<EMPRPT"
ON TABLE SET STYLE *
TYPE=REPORT,
GRID=OFF,$
TYPE=FOOTING,
JUSTIFY=LEFT,
LINE=1,
FOCEXEC=car.fex,
TARGET='_blank',$
TYPE=FOOTING,
JUSTIFY=LEFT,
LINE=2,
FOCEXEC=movies.fex,
TARGET='_blank',$
TYPE=FOOTING,
JUSTIFY=LEFT,
LINE=3,
FOCEXEC=employee.fex,
TARGET='_blank',$
ENDSTYLE
END



WebFOCUS 8.1.05
Windows
Excel, PDF, HTML
June 17, 2011, 04:07 AM
kodi


Now i need to create an hyperlink for car,movies,employee so that their respective reports will get opened...


Webfocus 7702,Windows XP
June 17, 2011, 08:57 AM
trob
kodi,
I dont really follow where you are going with this but if you are just trying to hard-code a make shift list of reports you could just build the html tree and hyperlinks that run the reports using HTMLFORM. If your trying to get all this in a single fex you will need to do some unconditional branching (GOTO command).

Do you have any code of what you are doing so far?


------------------------------------------
DevStudio 8.2.03
WFS 8.2.03
June 24, 2011, 12:07 PM
kodi
let me tell in a more descirptive way.

I have a launch home page.On the left side i have a long list of reports.
for ex.

Dashboards
car
movies
employee
Reports
Billings
Bookings
Finance
Master Data(under master data I will be having 4 sub reports so when i click Master data it should get expanded showing the 4 sub reports when i click each sub reort it should get opened in a new HTML page i need to get the logic for creating hyperlinks for the 4 subreports)


Webfocus 7702,Windows XP
June 25, 2011, 02:49 PM
Francis Mariani
Could you please explain what code produced that snippet of screen you posted - radio buttons within a collapsible section (div?)?


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
June 25, 2011, 05:57 PM
kodi
i used single source tree control for the above one....


Webfocus 7702,Windows XP
June 26, 2011, 05:35 AM
Tony A
One way of achieving this would be to place your single source tree control within a form and then make the value attribute for your tree items equal to the report name that you want executed.

Add javascript to the onsubmit call within the form control to a new function. Within that new function call the report using the standard url for executing a report and direct that url at a new window, iframe etc.

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10