Focal Point
[SOLVED] FLEX Enable - drill down

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

June 30, 2009, 04:03 PM
Luminita
[SOLVED] FLEX Enable - drill down
Hi,

I am trying to get started with using FLEX Enable to create a simple dashboard. I was able to follow the instructions to create the loading xml file, to add the link to it in the seturl field, but now I'm stuck. Does anyone have any samples on how to create drill downs from a pie chart, for example? I already created a "detailed" report, but I really can't figure out if I need that and how to pass the parameter I want to drill down on to this report.


I already looked in this document and can't find anything about drill downs...

Any help would be appreciated.
Thank you,

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


7.6.6 on AIX platform
Output: variety (Excel, HTML and PDF)
June 30, 2009, 04:26 PM
Darin Lee
There was a recent post on this exact subject but I can't seem to find it right off. Drills in flex are not handled the same way as with WF, and in the version I have this has to be handled with Action Script. This link may get you going. I have an example in one of my graphs somewhere - I'll see if I can find it.


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
June 30, 2009, 04:34 PM
Darin Lee
Found it!

You have to add an event to the graph - like

itemClick="pieDrillACC(event)"

which is a previously defined function where the url is built:


public function pieDrillACC(event:ChartItemEvent ):void
{
var FLD:String="ACC_GRP" ;
var ACC:String="" ;
var YEAR:String = "";
var LOCATION:String = "";
ACC = event.hitData.item.ACCIDENTTYPE;


fexString = drillString1 + "&IBIF_ex=CLMDETL" +
"&YEAR=" + YEAR + "&VAL=" + ACC + "&LOCATION=" + LOCATION + "&FLD=" + FLD;
navigateToURL(new URLRequest(fexString), '_blank');
}


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
July 01, 2009, 02:28 PM
Luminita
Thank you Darin, this definitely got me started! I am now able to click on the chart and get something, not a very pretty something yet, but it's a start.

I was wondering, this site http://demoswf.ibi.com/approot/ibiflexdemo/index.html has some pretty nice demos, any idea if we can get the code behind it? I find that learning by example works the best for me.

Thanks again,
Luminita


7.6.6 on AIX platform
Output: variety (Excel, HTML and PDF)
July 01, 2009, 03:16 PM
Darin Lee
Ask one of the SE's from your local branch office. When I started with the Flex Enable stuff, our local SE gave me the code for some of those examples which is precisely where I got the code and technique that I posted.


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat