Page 1 of 1

data for my report

Posted: Tue Aug 14, 2012 6:53 pm
by ksukat
greetings,
Reports.Fx in my flashbuilder 4.5 environment.
Have to write php function to query my Postgresql database and return xml string to flex.

I want to use the designer outside my project to create the generic reports for my app.
I want to then at run time, when someone selects the report in my app to have it call
the php function which returns the data encapsulated in XML. Once I have this, how do
I provide it to the report ? Do I create a default datasource when designing the report,
then replace that when displaying it in my application?

thanks for any help.

Re: data for my report

Posted: Wed Aug 15, 2012 11:27 am
by HighAley
Hello.

You could use one of the methods from our Knowledge Base to register your xml-file. http://stimulsoft.helpserve.com/index.p ... =354&nav=0

Thank you.

Re: data for my report

Posted: Wed Aug 15, 2012 1:23 pm
by ksukat
Looking at the method from the knowledge Base, I have a question regarding:
report.regData("Demo", "Demo", data);

What are each of the arguments to the regData method ? I assume one of the "Demo" arguments is the name of the top level tag in the xml data.

Is there documentation showing all the methods and properties and their arguments ?

Re: data for my report

Posted: Wed Aug 15, 2012 1:51 pm
by ksukat
Put knowlege base code in to my test app, and got the following error:
ReferenceError: Error #1065: Variable StiDesignerFx is not defined.

searched google for this error and found a stimulsoft forum response to :
xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"
minWidth="1024" minHeight="768" backgroundColor="#e8e8e8"
initialize="onInitialize()">

. . .

private function onInitialize(): void
{
StiViewerFx.initialize();
StiDesignerFx.initialize();
}

but that gives me syntax errors that StiViewerFx and StiDesignerFx not found.

Re: data for my report

Posted: Wed Aug 15, 2012 2:23 pm
by HighAley
Hello.

You should add next Stimulsoft libraries to the libs directory of your project.

Code: Select all

Stimulsoft_ViewerFx_Trial.swc
Stimulsoft_DesignerFx_Trial.swc
Thank you.

Re: data for my report

Posted: Wed Aug 15, 2012 2:43 pm
by ksukat
They are both in the lib folder of my project. They were there BEFORE I event tried to test out the report components.

Re: data for my report

Posted: Wed Aug 15, 2012 2:51 pm
by ksukat
Never mind. Figured out my problem.

Re: data for my report

Posted: Thu Aug 16, 2012 3:51 am
by Andrew
Hello,

Perfect!

Thank you.