Focal Point
[SOLVED] Passing parameters to a Flex app...

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

September 23, 2010, 10:53 AM
Max W
[SOLVED] Passing parameters to a Flex app...
We're using the Flex Enabler to build a small Google Maps feature into an existing WF reporting environment. That reporting system has already authenticated and authorized a user to determine what they see in the host report. In the report headings, they have standard glyphs that hyperlink them to PDF, PowerPoint or Excel output, or maybe load a graph. We want to add a map glyph to fire off the Flex app. So here's the problem: How do we get that authenticated userid from a WF report into the Flex SWF application in order to properly predicate the focexecs that populate the grids (and map)? From Kelly Badger's posts, we have learned how to customize the URL to call WF, thusly
               <mx:Script>
                     <![CDATA[
                     [Bindable]
                     public var empid:String = "118506";
                     public var fex1:String = "http://machinename/ibi_apps/WFServlet?IBIF_ex=REPDUMP&IBIAPP_app=googlemaps" + "&EMPID=" + empid;
                     public var fex2:String = "http://machinename/ibi_apps/WFServlet?IBIF_ex=EXTRDUMP&IBIAPP_app=googlemaps" + "&EMPID=" + empid;
                     ]]>
              </mx:Script>
 


But how to get that empid populated in the first place as a parameter sent over from the host WF report?

Thanks...

This message has been edited. Last edited by: Max W,


Max...

Production: WebFOCUS 7.67, ArcIMS 9.1, MRE, BID
Test: WebFOCUS 7.67, ArcIMS 9.1
Platform: Win 2003
September 23, 2010, 10:56 AM
Max W
Just to clarify...

The assigned value of empid 118506 in the code example above is what needs to be dynamically picked up. The fixed value was for testing purposes.


Max...

Production: WebFOCUS 7.67, ArcIMS 9.1, MRE, BID
Test: WebFOCUS 7.67, ArcIMS 9.1
Platform: Win 2003
September 30, 2010, 10:57 AM
<csssps07>
Hey Max,

Shanker here; per our session few days back, our product team is going to provide code sample that demonstrates how you can accomplish this. Let me know if you've received it, and if you have additional questions.