PDA

View Full Version : passing one variable to another one webpage


Anitha
06-24-2009, 02:41 PM
Friends ,

I have one problem in my project.I had tried in some ways but not solved.
Will u please guide me?

Problem:
In my projects there is one main application and four components.
The Four components are fixed in the main application.
The First Component contains year selection box
When I select the year it will access a Webservice , and
a new brower window need to open with the webservice result.How can I do this

My self I had create one Details.mxml application in same project with a grid
(grid id is grd).
And compile that.and call that compiled html file in the application using navigation url.
Now the new browser opens but the error show “null obj reference”.

My src:
private function YearSelection():void
{
SalesState.Monthly.send(Firstcomponent.SelectedYea r);//to webservice
var url : String = "http://sysname/OBS/Details.html";
var urlr : URLRequest = new URLRequest(url);
urlr.method = "POST";
navigateToURL(urlr,"_blank");
}

//webservice result handler
private function ResultHandler(event:ResultEvent):void
{
Result = (event.result.Tables["Table"].Rows);
var det:Details = new Details; //The another one app which contains grid//
det.grd.dataProvider = result;
}

regards,