Not yet buddy...quite busy...But I will try to see this weekend...

-abdul 

-----Original Message-----
From: Doodi, Hari - BLS CTR [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 08, 2005 1:23 AM
To: 'flexcoders@yahoogroups.com'
Subject: FW: [flexcoders] making synchronous method calls ?

Hi guyes,

I know you guys are very busy, did any one had any chance to look at my
problem? Thankful to any help!

Thanks!
Hari

-----Original Message-----
From: Doodi, Hari - BLS CTR 
Sent: Friday, April 01, 2005 8:41 AM
To: 'Abdul Qabiz'
Subject: RE: [flexcoders] making synchronous method calls ?

Hi Abdul,

Thanks for the concern. Here are the files but I am not sending the jpg
files. If you look at my setValue() you should know what values I am getting
from the database thru RemoteObject call. 

BTW, any idea about my issue with Key Class?

Thanks!
Hari

-----Original Message-----
From: Abdul Qabiz [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 31, 2005 4:55 PM
To: flexcoders@yahoogroups.com; 'flexcoders@yahoogroups.com'
Subject: RE: [flexcoders] making synchronous method calls ?


Hi Hari,

You can send me MXML file and relevant files, offlist. I will look at it....

I have dual monitor here, so I can look at it....

-abdul

-----Original Message-----
From: Doodi, Hari - BLS CTR [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 01, 2005 1:47 AM
To: 'flexcoders@yahoogroups.com'
Subject: RE: [flexcoders] making synchronous method calls ?


Hi Abdul,
I am very sure that data is came back as an Array because I am able to set
and see data on my screen and also I have showPrev() and showNext() method
to navigate thru the array and I am seeing the data changing. Do you want me
to send the mxml files? But only problem will be I am prototyping will work
correctly if you have two monitors hooked up to you system.

Thanks!
Hari

-----Original Message-----
From: Abdul Qabiz [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 31, 2005 2:54 PM
To: flexcoders@yahoogroups.com; 'flexcoders@yahoogroups.com'
Subject: RE: [flexcoders] making synchronous method calls ?


Ok,

Try to trace the value of total in setValues(..) function...

Or try to find, event.result is an array or not, you can do it like this:

<mx:method name="getSchedules"
result="if(event.result instanceof Array) {
alert(String(event.result.length)) } else { alert('event.result is not an
Array')}; scheduleList_do=event.result; setValues()"

fault="mx.controls.Alert.show(event.fault.faultstring, 'Remote Call
Error')">
        <mx:arguments>
                <arg1>4</arg1>                  
        </mx:arguments>
</mx:method>

It should show you an alert showing either array's length or a message
saying event.result is not an array...


Let us know, what do you see?

-abdul



 

-----Original Message-----
From: Doodi, Hari - BLS CTR [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 01, 2005 1:09 AM
To: 'flexcoders@yahoogroups.com'
Subject: RE: [flexcoders] making synchronous method calls ?


Still have it. I tried diff ways but no success. I forgot to comment this
one. 

Thanks!
Hari

-----Original Message-----
From: Abdul Qabiz [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 31, 2005 2:35 PM
To: flexcoders@yahoogroups.com; 'flexcoders@yahoogroups.com'
Subject: RE: [flexcoders] making synchronous method calls ?


So your problem fixed or you still having it?

-abdul 

-----Original Message-----
From: Doodi, Hari - BLS CTR [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 01, 2005 12:07 AM
To: 'flexcoders@yahoogroups.com'
Subject: RE: [flexcoders] making synchronous method calls ?


Thanks for the response I did try with statement 
receiver_lc.send("scheduleViewer", "rec_setFileName", fnameArray);
at the end of setvalues() function. I was trying different ideas to make it
work and that is one of it. I do apologies for not correcting my tried code.



Thanks!
Hari

-----Original Message-----
From: Abdul Qabiz [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 31, 2005 1:28 PM
To: flexcoders@yahoogroups.com; 'flexcoders@yahoogroups.com'
Subject: RE: [flexcoders] making synchronous method calls ?


Hi Hari,


I see your calling(sending values) reciever_lc.send(...) method before
setting "fnameArray" array...

See the first line of setValues() function, Remove it and then try..... 

function setValues()
{

-->     receiver_lc.send("scheduleViewer", "rec_setFileName", fnameArray);
<---



        total = scheduleList_do.length;
        schedule = scheduleList_do[index];              
        reportersid.text = schedule.reporter_sid;
        schedulesid.text = schedule.schedule_sid;
        status.text = schedule.schedule_status;
        analystid.text = schedule.analyst_id;
        reviewerid.text = schedule.reviewer_id;
        receivedon.text = schedule.received_date;
        schedulefname.text = schedule.schedule_file_name;
        continuationfname.text = schedule.continuation_file_name;
        attachmentfname.text = schedule.attachment_file_name;
        fnameArray[0] = schedulefname.text;
        fnameArray[1] = continuationfname.text;
        fnameArray[2] = attachmentfname.text;
        Alert.show(schedulefname.text+"  "+continuationfname.text+"
"+attachmentfname.text,"file names");

        receiver_lc.send("scheduleViewer", "rec_setFileName", fnameArray);


}



-abdul


-----Original Message-----
From: Doodi, Hari - BLS CTR [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 31, 2005 11:02 PM
To: 'flexcoders@yahoogroups.com'
Subject: [flexcoders] making synchronous method calls ?

Hi,
        I have a situation where in I have to make function call in sequence
(synchronous method calls). I am getting image file names along with product
information by making RemoteObject call. I am making a function call on
result event. Inside that function I am setting individual data to
corresponding textinputs and then at the end I am constructing an array to
hold image file names ( more than one value). After creating the array I
have to pass this array as an argument to a function call which passes the
array to other browser window already opened.

What I found was the method is called before completion of data setting,
means array is blank and the image browser window is not displaying any
images. If I hard code values in array then I can see images on the image
browser window. Please help me out in How to make synchronous method calls
in flex? In the following file you can see I tried different way but no
successes.

 <<ScheduleProcessor.as>> 
Here is RemoteObject method syntax from my mxml

<mx:method name="getSchedules"
result="scheduleList_do=event.result;setValues()"
fault="mx.controls.Alert.show(event.fault.faultstring, 'Remote Call
Error')">
        <mx:arguments>
                <arg1>4</arg1>                  
        </mx:arguments>
</mx:method>


Thanks!
Hari



 
Yahoo! Groups Links



 


 
Yahoo! Groups Links



 




 
Yahoo! Groups Links



 





 
Yahoo! Groups Links



 




 
Yahoo! Groups Links



 





 
Yahoo! Groups Links



 




 
Yahoo! Groups Links



 





 
Yahoo! Groups Links



 





 
Yahoo! Groups Links



 


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to