Focal Point
[SOLVED] Using Drilldown URL from synonym..

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

February 04, 2015, 11:03 AM
GavinL
[SOLVED] Using Drilldown URL from synonym..
I'm trying to create a treemap with drill down based on a value column within the synonym, but I can't find the syntax required for the UI. It keeps telling me I have to put an HTTP or FTP in front, but that information is in the value within the synonym.



How can't I get around this issue?

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



- FOCUS Man, just FOCUS!
-----------------------------
Product: WebFOCUS
Version: 8.1.04
Server: Windows 2008 Server
February 04, 2015, 11:17 AM
MartinY
A drilldown must refer to either a Web page, Report or Portal : top option in the UI.

You cannot drill to a value in a synonym, you drill to a report using a value (parameter) : the one you click on for the drill.


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
February 04, 2015, 11:55 AM
GavinL
I understand the URL and params, used that for some time now.. It's hard for me to believe I can't make that dynamic based on data in a table.



- FOCUS Man, just FOCUS!
-----------------------------
Product: WebFOCUS
Version: 8.1.04
Server: Windows 2008 Server
February 04, 2015, 12:06 PM
MartinY
Basically, your drilldown is from a graph/report (treemap) where your click on a specific value/area/stack/pie/... (depending of the graph/report).

Then the clicked "area" have values that you'll pass as parameters the another graph/report and these parameters are coming from the synonym because they are the values you've extracted to created the drillable graph/report...

You can also add others values (such as constant) to the parameters list used that are not part of the selected area.


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
February 04, 2015, 01:57 PM
GavinL
Yea, I created a Redirect.fex, added the below code, the passed the parms from the Treemap into it. Had this redirect.fex look up the value of the URL, then redirect to it. What a pain..

Code in redirect.fex
DEFINE FILE FOO
 MYURL/A255V='"' || FOO.FOO.DRILLDOWNURL || '"';
END

TABLE FILE FOO
     PRINT MYURL AS ''
WHERE ( FOO.FOO.RATIO EQ &RATIO );
WHERE ( FOO.FOO.DESCRIPTION EQ &DESCRIPTION.QUOTEDSTRING );
ON TABLE HOLD AS File1 FORMAT DOC
ON TABLE NOTOTAL
ON TABLE SET CACHELINES 100
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET SQUEEZE ON
ON TABLE SET HTMLCSS ON
ON TABLE SET HTMLENCODE ON
ON TABLE SET EMPTYREPORT ON
ON TABLE SET HOLDATTRS ON
ON TABLE SET HOLDLIST PRINTONLY
ON TABLE SET ASNAMES MIXED
ON TABLE SET STYLE *
ENDSTYLE
END
-RUN

-HTMLFORM BEGIN

<!DOCTYPE html>
<meta charset="UTF8">
<html lang="en">
<body>

<script>
{
	window.location.href = !IBI.FIL.File1;
}
</script>

</body>
</html>

-HTMLFORM END

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



- FOCUS Man, just FOCUS!
-----------------------------
Product: WebFOCUS
Version: 8.1.04
Server: Windows 2008 Server
February 04, 2015, 02:10 PM
MartinY
If solved, edit the first post of your treat and add [SOLVED] at the beginning of the subject.

Was a pleasure to help you


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007