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'm new on this forum. I'm french and I'm sorry for my bad english. I use DS since 3 month.
I've a HTML report with webfocus style sheet. I put color on the last total row to indentifie differents cases. Colors are chosen according to data values. If the data value is 0 or 1 then the blue color is attributed to the cell, else if it's included between 2 and 4, the orange color is attributed to the cell, in the other cases the red color is attributed.
I'd like to put a legend table to give the users the correspondance between values and colors. I want to know if is it possible to put a mouseover event on the cell to display the legend that is currently in an HTML page ?
My HTML report is in a frame on the same page.
Thanks for your help
ClémentThis message has been edited. Last edited by: Kerry,
7.1.4 Windows XP 5.1 with SP2 Excel et HTML output formats. .
Posts: 10 | Location: France | Registered: October 28, 2008
Yes that is possible, but first let me try to help you to help yourself.
On the top of the posts, you see a kind of tab which holds things like Go, New etc. I hope you understand the English word Search.... If you click on it you get a small window...type Mouseover and hit the button "GO"
Now you will get several items that holds the word "mouseover".
Second suggestion: if you post some code to explain your question with an example, please put between these red carrets
</>
or use
[code]
[/code] to obtain the same result.
If you create an example, try to use one of the databases like CAR, everyone can copy our code and play with it. That's better than posting some code with fields we do not know or understand (French...).
Frank
prod: WF 7.6.10 platform Windows, databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7 test: WF 7.6.10 on the same platform and databases,IE7
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006
I understand what you mean about the search method, I've already used it before posting my message. I've implemented it and it works, but it adds a new column in my report and I don't want it ! Over the mouseover works on a picture while in my case, this only data !This message has been edited. Last edited by: Clement,
7.1.4 Windows XP 5.1 with SP2 Excel et HTML output formats. .
Posts: 10 | Location: France | Registered: October 28, 2008
As you are on 7.1.4 I would use a variation on the pop up description functionality.
Normally this will just display the description text associated with a column in the master file however you can quite easily get it to work with items such as computed and defined column titles and with texts used for row totals
Create a graphic image in .gif or jpeg format that contains your legend. save this file to your apps folder.
your basic code would then look like this
SET POPUPDESC = ON
-HTMLFORM BEGIN
<SCRIPT TYPE="text/javascript">
var Total ="<img src=http://localhost:9090/approot/ibidemo/centurylogo.gif>";
</SCRIPT>
-HTMLFORM END
TABLE FILE CAR
PRINT
DEALER_COST
ACROSS MODEL
BY COUNTRY
BY CAR
-* Note the following should be coded on 1 line
ON TABLE COLUMN-TOTAL AS '<span ONMOUSEOVER="IBI_popupDesc(Total)"; ONMOUSEOUT="IBI_killDesc()"><U>Total</U></span>'
ON TABLE SET LINES 9999
ON TABLE SET PAGE-NUM OFF
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
END
Your solution is closer to what I have in mind. I've already think to use a image but I don't know how can I find the link "http://localhost:8080/..." And in your example, you put the mouse over event on a column total, in my case it's on a cell. I'd like to use something style like : TYPE=DATA,COLUMN=MODEL, JUSTIFY=CENTER, BACKCOLOR = RGB(204 204 204), WHEN=BRAND EQ 'Toyota',JAVASCRIPT=OnMouseOver(),$
7.1.4 Windows XP 5.1 with SP2 Excel et HTML output formats. .
Posts: 10 | Location: France | Registered: October 28, 2008
All you need to do is re-define the column. If its a BY do it in a define If its a PRINT or SUM column do it in a compute If its numeric you will also have to convert it to alpha and justify the output;
SET POPUPDESC = ON
-HTMLFORM BEGIN
<SCRIPT TYPE="text/javascript">
var Total ="<img src=/approot/ibidemo/centurylogo.gif>";
</SCRIPT>
-HTMLFORM END
DEFINE FILE CAR
MODELA/A150= IF CAR EQ 'TOYOTA'
THEN
'<span ONMOUSEOVER="IBI_popupDesc(Total)"; ONMOUSEOUT="IBI_killDesc()"><U>' ||MODEL||'</U></span>'
ELSE MODEL;
END
TABLE FILE CAR
PRINT
COMPUTE DEALER_COSTA/A150= IF DEALER_COST LE 5000
THEN '<span ONMOUSEOVER="IBI_popupDesc(Total)"; ONMOUSEOUT="IBI_killDesc()"><U>'
||FTOA(DEALER_COST,'(D12)','A20')||'</U></span>' ELSE FTOA(DEALER_COST,'(D12)','A20');
FLAG/A1=IF DEALER_COST LE 5000 THEN 'Y' ELSE 'N'; NOPRINT
BY COUNTRY
BY CAR
BY MODELA
ON TABLE SET LINES 9999
ON TABLE SET PAGE-NUM OFF
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
TYPE=DATA,COLUMN=MODELA, JUSTIFY=CENTER, BACKCOLOR = RGB(204 204 204), WHEN=CAR EQ 'TOYOTA',$
TYPE=DATA,COLUMN=DEALER_COSTA, JUSTIFY=RIGHT,$
TYPE=DATA,COLUMN=DEALER_COSTA, JUSTIFY=RIGHT, BACKCOLOR = RGB(204 204 204), WHEN=FLAG EQ 'Y',$
ENDSTYLE
END
I've try an another solution, that is to call javascript like this TYPE=DATA,COLUMN=STAB, JUSTIFY=CENTER,WHEN=COTATION EQ 'Value',JAVASCRIPT=legende(),$
function legende() { var vFeatures = "menubar=no,toolbar=no,status=no,resizable=no,scrollbars=no,width=440,height=100"; wfReport = window.open("http://www.google.fr/", "wfReport",vFeatures); wfReport.focus(); }
But I don't know what URL to replace http://www.google.fr/ !!! The URL looks like : "http://localhost:8080/ibi_apps/WFServlet?IBIMR_action=MR_RUN_FEX&IBIMR_sub_action=MR_STD_REPORT&IBIMR_fex=app%2Fmypage.htm&IBIMR_folder=%23nouveaudossi&IBIMR_domain=wsj00002%2Fwsj00002.htm&IBIMR_Random=0.8111758994203008"This message has been edited. Last edited by: Clement,
7.1.4 Windows XP 5.1 with SP2 Excel et HTML output formats. .
Posts: 10 | Location: France | Registered: October 28, 2008
Your URL is what I have already told you. I assume you know what an apps folder is.
OK. You do not understand.
What is the physical location where your image is stored. It should be something like /ibi/apps/foldername/filename .gif on UNIX
From that I might be able to tell you
This is the basic code that you need
DEFINE FILE CAR HELP/A1=IF DEALER_COST LE 5000 THEN 'Y' ELSE 'N'; END TABLE FILE CAR PRINT DEALER_COST HELP NOPRINT ACROSS MODEL BY COUNTRY BY CAR
ON TABLE SET LINES 9999 ON TABLE SET PAGE-NUM OFF ON TABLE HOLD AS H1 FORMAT HTML ON TABLE SET HTMLCSS ON ON TABLE SET STYLE * TYPE=DATA,ACROSSCOLUMN=DEALER_COST,WHEN = HELP EQ 'Y', JAVASCRIPT=legende(),$ ENDSTYLE END -RUN -HTMLFORM BEGIN
<script LANGUAGE="JavaScript"> function legende() { window.open("http://www.google.fr/","help","menubar=0,toolbar=0,status=0,resizable=0,scrollbars=0,width=440,height=100"); }
Clement, i have another approach..works just fine in IE. i place a legend KEY table on top of my html output. here's how: my fex makes an html output table which i call "MYTAB", ON TABLE HOLD AS MYTAB FORMAT HTMTABLE I then use HTMLFORM BEGIN and END to display this output table I then place a second output table with absolute positioning, and z-index 1 to make sure this KEY table appears on top of my output.
The problems are that the ledgend is static and scrolls off screen as you scroll the window for a long or wide report, also it is always visable when within the visable window which is not what Clement is looking for.
Thanks for your basic code, but this is already that I've put and it works. My page opens like a popup, without the menubar, menustatus... and at the good size. That what I told you in my last message. The only problem I meet, is that I've a 404 error due to the URL ! I'm in relation with a responsable of my company, I hope he could tell me it.
7.1.4 Windows XP 5.1 with SP2 Excel et HTML output formats. .
Posts: 10 | Location: France | Registered: October 28, 2008
Sorry, but John is rigtht, I don't want the table appears all the time at the top of the report. I want to realise something that looks like a popup. The users will click on the link only if they need it !
7.1.4 Windows XP 5.1 with SP2 Excel et HTML output formats. .
Posts: 10 | Location: France | Registered: October 28, 2008
I've got my URL now, it looks like : "http://localhost:8080/ibi_apps/WFServlet?IBIMR_action=MR_RUN_FEX&IBIMR_sub_action=MR_STD_REPORT&IBIMR_fex=app%2Fmypage.htm&IBIMR_folder=%23nouveaudossi&IBIMR_domain=wsj00002%2Fwsj00002.htm&IBIMR_Random=0.8111758994203008"
but when I put it in the javascript function, it doesn't work ! Javascript returns the message : Ligne :4232 Car :98 Erreur : Unterminated string constant Code : 0 URL : http://localhost:8080/ibi_apps/WFServlet
It seems like the process actually fails right after the question mark.This message has been edited. Last edited by: Clement,
7.1.4 Windows XP 5.1 with SP2 Excel et HTML output formats. .
Posts: 10 | Location: France | Registered: October 28, 2008