data for my report

Stimulsoft Reports.Flex discussion
Locked
ksukat
Posts: 25
Joined: Mon Aug 13, 2012 7:05 pm

data for my report

Post 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.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: data for my report

Post 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.
ksukat
Posts: 25
Joined: Mon Aug 13, 2012 7:05 pm

Re: data for my report

Post 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 ?
ksukat
Posts: 25
Joined: Mon Aug 13, 2012 7:05 pm

Re: data for my report

Post 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.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: data for my report

Post 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.
ksukat
Posts: 25
Joined: Mon Aug 13, 2012 7:05 pm

Re: data for my report

Post 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.
ksukat
Posts: 25
Joined: Mon Aug 13, 2012 7:05 pm

Re: data for my report

Post by ksukat »

Never mind. Figured out my problem.
Andrew
Posts: 4108
Joined: Fri Jun 09, 2006 3:58 am

Re: data for my report

Post by Andrew »

Hello,

Perfect!

Thank you.
Locked