RE: [flexcoders] setFocus() problem.

2005-12-01 Thread Doodi, Hari - BLS CTR











Works perfectly!! Thanks for your
explanation and code.





Thanks! 
Hari 



-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of JesterXL
Sent: Wednesday, November 30, 2005
4:30 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] setFocus()
problem.





Mantra for Flash is, When in
doubt, wait a frame. You should apply that to Flex, too.











Apparently, some code runs, probably
via a doLater, 1 frame (or screen-repaint) after you focus on the text
field. Therefore, your setSelection call actually DOES work, but is
quickly changed.











If you run your OWN setSelction an
additional frame later, it'll re-select it. Check it, use these modified
fucntions, and then type in asdf, tab out, and then back in.











function gotoend(event:Object)
{
trace(gotoend);
var len:Number = event.target.text.length;
doLater(this, setSelectionLater, [2, 3]);
}











function
setSelectionLater(startIndex, endIndex)
{
Selection.setSelection(startIndex, endIndex);
}











- Original Message - 



From: Doodi, Hari - BLS CTR 





To: flexcoders@yahoogroups.com






Sent: Wednesday, November 30, 2005 4:13
PM





Subject: RE: [flexcoders] setFocus()
problem.











Selection.setSelection(len,len)
is not working for me. I am attaching my test mxml for your ref. please
help me.



I would like to know how
to get ride off the highlight and place the curser at the end of the text?





Thanks! 
Hari 



-Original Message-
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
Of JesterXL
Sent: Monday, November 28, 2005
3:42 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders]
setFocus() problem.





Try:





this.tobdetail_ti.setFocus();





var len:Number =
this.tobdetail_ti.text.length;





Selection.setSelection(len, len);











- Original Message - 



From: Doodi, Hari - BLS
CTR 





To: flexcoders@yahoogroups.com






Sent: Monday, November 28, 2005 3:33 PM





Subject: [flexcoders] setFocus() problem.











Hi all,


I am having problems with setFocus( ) function. What I am doing is
 I have a textInput control with id name tobdetail_ti and in the .as
file I am calling the following line of code so that if user press tab the
cursor should be in this field. Focus is transferred as desired but the problem
is it highlight the entire existing text. I dont want this. I want the
cursor should be place at the end of the text. 



this.tobdetail_ti.setFocus();



Thanks! 
Hari














--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] setFocus() problem.

2005-11-30 Thread Doodi, Hari - BLS CTR











Selection.setSelection(len,len) is not
working for me. I am attaching my test mxml for your ref. please help me.



I would like to know how to get ride off
the highlight and place the curser at the end of the text?





Thanks! 
Hari 



-Original Message-
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
Of JesterXL
Sent: Monday, November 28, 2005
3:42 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] setFocus()
problem.





Try:





this.tobdetail_ti.setFocus();





var len:Number =
this.tobdetail_ti.text.length;





Selection.setSelection(len, len);











- Original Message - 



From: Doodi, Hari - BLS CTR 





To: flexcoders@yahoogroups.com






Sent: Monday, November 28, 2005 3:33 PM





Subject: [flexcoders] setFocus() problem.











Hi all,


I am having problems with setFocus( ) function. What I am doing is
 I have a textInput control with id name tobdetail_ti and in the .as
file I am calling the following line of code so that if user press tab the
cursor should be in this field. Focus is transferred as desired but the problem
is it highlight the entire existing text. I dont want this. I want the
cursor should be place at the end of the text. 



this.tobdetail_ti.setFocus();



Thanks! 
Hari












--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











test_Events.mxml
Description: test_Events.mxml


[flexcoders] setFocus() problem.

2005-11-28 Thread Doodi, Hari - BLS CTR










Hi all,

 I
am having problems with setFocus( ) function. What I am doing is 
I have a textInput control with id name tobdetail_ti and in the .as file I am
calling the following line of code so that if user press tab the cursor should
be in this field. Focus is transferred as desired but the problem is it highlight
the entire existing text. I dont want this. I want the cursor should be
place at the end of the text. 



this.tobdetail_ti.setFocus();



Thanks! 
Hari












--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] TextInput control

2005-11-28 Thread Doodi, Hari - BLS CTR










Hi,

 Can
some one suggest me which event is the best event to handle a situation like -
user changes the content of textinput and tabs out of it ? I tried change
event and found that this event is firing for each change, meaning for every
key board press while entering text in it. I dont want this. What I am
looking for is an event which fires only one time when user changes existing
content and tabs out.



Thanks! 
Hari












--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] setFocus() problem.

2005-11-28 Thread Doodi, Hari - BLS CTR











Thank you very much for the input.

Is it a bug or what- why setFocus
highlights the content of text input?





Thanks! 
Hari 



-Original Message-
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
Of JesterXL
Sent: Monday, November 28, 2005
3:42 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] setFocus()
problem.





Try:





this.tobdetail_ti.setFocus();





var len:Number =
this.tobdetail_ti.text.length;





Selection.setSelection(len, len);











- Original Message - 



From: Doodi, Hari - BLS CTR 





To: flexcoders@yahoogroups.com






Sent: Monday, November 28, 2005 3:33 PM





Subject: [flexcoders] setFocus() problem.











Hi all,


I am having problems with setFocus( ) function. What I am doing is
 I have a textInput control with id name tobdetail_ti and in the .as
file I am calling the following line of code so that if user press tab the
cursor should be in this field. Focus is transferred as desired but the problem
is it highlight the entire existing text. I dont want this. I want the
cursor should be place at the end of the text. 



this.tobdetail_ti.setFocus();



Thanks! 
Hari












--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] TextInput control

2005-11-28 Thread Doodi, Hari - BLS CTR











If I use focus  this event fire
irrespective of whether content is modified or not. I dont want this to
happen. I want an event which should fire up only if content changed and tab
out.





Thanks! 
Hari 



-Original Message-
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
Of JesterXL
Sent: Monday, November 28, 2005
3:49 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders]
TextInput control





focusOut











- Original Message - 



From: Doodi, Hari - BLS CTR 





To: flexcoders@yahoogroups.com






Sent: Monday, November 28, 2005 3:42 PM





Subject: [flexcoders] TextInput control











Hi,


Can some one suggest me which event is the best event to handle a situation
like - user changes the content of textinput and tabs out of it ? I
tried change event and found that this event is firing for each
change, meaning for every key board press while entering text in it. I
dont want this. What I am looking for is an event which fires only one
time when user changes existing content and tabs out.



Thanks! 
Hari












--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] TextInput control

2005-11-28 Thread Doodi, Hari - BLS CTR











I totally agree with you and infact I am
planning to do so. But my concern is If I have some code, like assigning value
to dirtyFlag, in change event then that code will be executed several times 
if I am enter a text of 150 char then that assignment code will be executed 150
time. Which is a over load on system. Dont you agree with me???





Thanks! 
Hari 



-Original Message-
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
Of JesterXL
Sent: Monday, November 28, 2005
4:09 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders]
TextInput control





There is no such event. You'll
need to create your own dirtyFlag that gets set to true when the change occurs,
and have focusOut inspect if the dirtyFlag is true, and if so, fire your new
changed and focus out event.











- Original Message - 



From: Doodi, Hari - BLS CTR 





To: flexcoders@yahoogroups.com






Sent: Monday, November 28, 2005 3:54 PM





Subject: RE: [flexcoders] TextInput control











If I use focus 
this event fire irrespective of whether content is modified or not. I
dont want this to happen. I want an event which should fire up only if
content changed and tab out.





Thanks! 
Hari 



-Original Message-
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
Of JesterXL
Sent: Monday, November 28, 2005
3:49 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders]
TextInput control





focusOut











- Original Message - 



From: Doodi, Hari - BLS
CTR 





To: flexcoders@yahoogroups.com






Sent: Monday, November 28, 2005 3:42 PM





Subject: [flexcoders] TextInput control











Hi,


Can some one suggest me which event is the best event to handle a situation
like - user changes the content of textinput and tabs out of it ? I
tried change event and found that this event is firing for each
change, meaning for every key board press while entering text in it. I
dont want this. What I am looking for is an event which fires only one
time when user changes existing content and tabs out.



Thanks! 
Hari














--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] TextInput control

2005-11-28 Thread Doodi, Hari - BLS CTR











Thank you very much. I will try to
implement.





Thanks! 
Hari 



-Original Message-
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
Of JesterXL
Sent: Monday, November 28, 2005
4:18 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders]
TextInput control





No, because it only fires if the
focusOut event fires. Check it:











function initComponent()





{






my_ti.addEventListener(change, this);






my_ti.addEventListener(focusOut, this);





 textDirty =
false;





}











function change()





{





 textDirty = true;





}











function focusOut()





{





 if(textDirty)





 {






 textDirty = false;






 dispatchEvent({type: changeAndFocusOut, target:
this});





 }





}

















- Original Message - 



From: Doodi, Hari - BLS CTR 





To: flexcoders@yahoogroups.com






Sent: Monday, November 28, 2005 4:13 PM





Subject: RE: [flexcoders] TextInput control











I totally agree with you
and infact I am planning to do so. But my concern is If I have some code,
like assigning value to dirtyFlag, in change event then that code will be executed
several times  if I am enter a text of 150 char then that assignment
code will be executed 150 time. Which is a over load on system. Dont you
agree with me???





Thanks! 
Hari 



-Original Message-
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
Of JesterXL
Sent: Monday, November 28, 2005
4:09 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders]
TextInput control





There is no such event. You'll
need to create your own dirtyFlag that gets set to true when the change occurs,
and have focusOut inspect if the dirtyFlag is true, and if so, fire your new
changed and focus out event.











- Original Message - 



From: Doodi, Hari - BLS
CTR 





To: flexcoders@yahoogroups.com






Sent: Monday, November 28, 2005 3:54 PM





Subject: RE: [flexcoders] TextInput control











If I use
focus  this event fire irrespective of whether content is modified or
not. I dont want this to happen. I want an event which should fire up
only if content changed and tab out.





Thanks! 
Hari 



-Original Message-
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
Of JesterXL
Sent: Monday, November 28, 2005
3:49 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders]
TextInput control





focusOut











- Original Message - 



From: Doodi, Hari - BLS
CTR 





To: flexcoders@yahoogroups.com






Sent: Monday, November 28, 2005 3:42 PM





Subject: [flexcoders] TextInput control











Hi,


Can some one suggest me which event is the best event to handle a situation
like - user changes the content of textinput and tabs out of it ? I
tried change event and found that this event is firing for each
change, meaning for every key board press while entering text in it. I
dont want this. What I am looking for is an event which fires only one
time when user changes existing content and tabs out.



Thanks! 
Hari
















--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Re: Repeater endIndex ?

2005-11-10 Thread Doodi, Hari - BLS CTR
Hi Tracy,
Thank you very much for the explanation and that is what I am
looking for and you saved my day. Once again thanks!


Thanks!
Hari

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tracy Spratt
Sent: Tuesday, November 08, 2005 6:17 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Repeater endIndex ?

In the repeater tag, set count=4.  This will cause only the first 4
items to be displayed.

This is a goods technique for large datasets, for you would then allow
for page-up and page down navigation.  It is much more performant than
rendering say 100 items.

Tracy

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Doodi, Hari - BLS CTR
Sent: Tuesday, November 08, 2005 3:26 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Repeater endIndex ?

I did not understand. If you don't mind Can you post a sample code. What
I want to do is I want repeater to stop repeat at index 4.

Thanks!
Hari

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of m_chotin
Sent: Tuesday, November 08, 2005 1:39 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Repeater endIndex ?

The count property is what you're looking for.

--- In flexcoders@yahoogroups.com, Doodi, Hari - BLS CTR
[EMAIL PROTECTED] wrote:

 Hi All,
 
 I have a situation where in I get data from database as an
 array of VO of length more than 5 but I have to display only first 5
 records. Is there any way to ask repeater to stop at index 4?  Is
there
 any repeater property like endIndex as opposite  to startIndex. I need
 those extra records for some other comparisons and calculations. 
 
  
 
 Thanks! 
 Hari








--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links



 






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links



 







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links



 




 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
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/
 




[flexcoders] Repeater endIndex ?

2005-11-07 Thread Doodi, Hari - BLS CTR










Hi All,

 I
have a situation where in I get data from database as an array of VO of length more
than 5 but I have to display only first 5 records. Is there any way to ask
repeater to stop at index 4? Is there any repeater property like endIndex
as opposite to startIndex. I need those extra records for some other comparisons
and calculations. 



Thanks! 
Hari












--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] How to access control attributes inside a repeat er

2005-10-27 Thread Doodi, Hari - BLS CTR










Hi All,

 Thanks to all who put a
thought about it. I was advised to id the component which is repeated and use
that id in action script to access the controls attributes in each
instance.

Once again thanks to all.





Thanks! 
Hari 



-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Tracy Spratt
Sent: Wednesday, October 26, 2005
3:44 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] How to
access control attributes inside a repeater



I am just thinking here,
but perhaps you could use something like:

Alert.show(this.deptForm[i].getChildAt(n).text);



Debug this.deptForm[i] to
make sure it is referencing what you expect.



Tracy











From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
Of Doodi, Hari - BLS CTR
Sent: Wednesday, October 26, 2005
3:02 PM
To: 'flexcoders@yahoogroups.com'
Subject: RE: [flexcoders] How to
access control attributes inside a repeater





I tried .



Alert.show(this.deptForm[i].deptDesc.text);


Alert.show(this.parent.deptForm[i].deptDesc.text);






Both statements above
displayed blank alerts.



And found not
working L



Thanks! 
Hari 



-Original Message-
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
Of Tracy Spratt
Sent: Wednesday, October 26, 2005
1:47 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] How to
access control attributes inside a repeater



Hey,
Jason, go ahead and risk being wrong. I do it all the time!



Hari,
repeaters generate an array of ids, so if the form has id
myForm, you should be able to reference the repeater with
myForm[n].



Tracy















From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
Of Merrill, Jason
Sent: Wednesday, October 26, 2005
12:31 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] How to
access control attributes inside a repeater





I just re-read what I
wrote, and I meant that last sentence in a humorous way by the way





Jason Merrill | E-Learning
Solutions | icfconsulting.com 






















From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
Of Merrill, Jason
Sent: Wednesday, October 26, 2005
11:48 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] How to
access control attributes inside a repeater





I didnt see you
attached files since I am viewing via Outlook. Usually thats
frowned upon on lists, but maybe with Yahoo lists like this its OK.
Anyway, since I was off on your question apparently, now I really cant
believe I responded.





Jason Merrill | E-Learning
Solutions | icfconsulting.com 













NOTICE:

This message is for the designated recipient only and
may contain privileged or confidential information. If you have received it in
error, please notify the sender immediately and delete the original.Any
other use of this e-mail by you is prohibited.













--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] How to access control attributes inside a repeat er

2005-10-27 Thread Doodi, Hari - BLS CTR










Hi Gordon,

 No
no not at allThat is great. Usually I will id all the accusable controls
in my code. Unfortunately this time I forgot to give id to component which
repeated. Since I did not have id in my code my eyes overlooked it and that
caused lot of frustration. Now I know how to handle Repeater. Actually it makes
more sense now. 





Thanks! 
Hari 



-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Gordon Smith
Sent: Thursday, October 27, 2005
3:33 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] How to
access control attributes inside a repeater



Hi, Hari.



Does the indexing of the
id make sense to you? I designed the Repeater so I'm curious whether you were
expecting it to work a different way.



- Gordon











From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of Doodi, Hari - BLS CTR
Sent: Thursday, October 27, 2005
10:24 AM
To: 'flexcoders@yahoogroups.com'
Subject: RE: [flexcoders] How to
access control attributes inside a repeater





Hi All,


Thanks to all who put a thought about it. I was advised to id the component
which is repeated and use that id in action script to access the
controls attributes in each instance.

Once again thanks to all.





Thanks! 
Hari 



-Original Message-
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
Of Tracy Spratt
Sent: Wednesday, October 26, 2005
3:44 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] How to
access control attributes inside a repeater



I am
just thinking here, but perhaps you could use something like:

Alert.show(this.deptForm[i].getChildAt(n).text);



Debug
this.deptForm[i] to make sure it is referencing what you expect.



Tracy















From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
Of Doodi, Hari - BLS CTR
Sent: Wednesday, October 26, 2005
3:02 PM
To: 'flexcoders@yahoogroups.com'
Subject: RE: [flexcoders] How to
access control attributes inside a repeater





I tried
.



Alert.show(this.deptForm[i].deptDesc.text);


Alert.show(this.parent.deptForm[i].deptDesc.text);






Both
statements above displayed blank alerts.



And
found not working L



Thanks! 
Hari 



-Original Message-
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
Of Tracy Spratt
Sent: Wednesday, October 26, 2005
1:47 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] How to
access control attributes inside a repeater



Hey,
Jason, go ahead and risk being wrong. I do it all the time!



Hari,
repeaters generate an array of ids, so if the form has id
myForm, you should be able to reference the repeater with
myForm[n].



Tracy



















From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
Of Merrill, Jason
Sent: Wednesday, October 26, 2005
12:31 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] How to
access control attributes inside a repeater





I just re-read what I
wrote, and I meant that last sentence in a humorous way by the way





Jason Merrill | E-Learning
Solutions | icfconsulting.com 























From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
Of Merrill, Jason
Sent: Wednesday, October 26, 2005
11:48 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] How to
access control attributes inside a repeater





I didnt see you
attached files since I am viewing via Outlook. Usually thats
frowned upon on lists, but maybe with Yahoo lists like this its OK.
Anyway, since I was off on your question apparently, now I really cant
believe I responded.





Jason Merrill | E-Learning
Solutions | icfconsulting.com 













NOTICE:

This message is for the designated recipient only and
may contain privileged or confidential information. If you have received it in
error, please notify the sender immediately and delete the original.Any
other use of this e-mail by you is prohibited.















--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] How to access control attributes inside a repeater

2005-10-26 Thread Doodi, Hari - BLS CTR












Hi,


I would like to know how to access text property of an TextInput control in a
Form which is repeated inside a repeater? Here is what I was doing..

I have two mxml file one department.mxml
with repeater tag in it and another deptComp.mxml
has form component with TextInput controls.

I was able to display data from the source xml file. I want
to know how to set data in to TextInput controls of different instance.

Also found files
are attached for your reference. Any kind of help is appreciated. Thanks in
advance.



Department.mxml contains

?xml version=1.0
encoding=utf-8?

mx:Application
xmlns:mx=http://www.macromedia.com/2003/mxml xmlns=*


mx:Model id=deptList
source=Department.xml/

mx:Repeater id=deptRepeater
dataProvider={deptList.hari}

 deptComp
deptModel={deptRepeater.currentItem}
initialize=initialize()/ 

/mx:Repeater 

/mx:Application



DeptComp.mxml contains



?xml version=1.0
encoding=utf-8?

mx:VBox
xmlns:mx=http://www.macromedia.com/2003/mxml

mx:Script

import mx.controls.Alert;

![CDATA[
 


function accessData( ) // display/set data from/to other instance


{


 // I tried diff possible ways to access text property of
TextInput control, deptName, but unable to display content.


 // None of the following Alert display text content.


Alert.show(this.parent.deptForm[1].deptName.text,1);


Alert.show(this.parent.deptForm.deptName[1].text,2);


Alert.show(this.deptForm[1].deptName.text,3);



Alert.show(this.deptName[1].text,4);


Alert.show(deptName[1].text,5);


Alert.show(deptForm[1].deptName.text,6);


Alert.show(parent.deptName[1].text,7);


Alert.show(this.parent.deptComp[1].deptForm.deptName.text,8);


}

]]

/mx:Script



 mx:Model id=deptModel


deptNum/ deptNum 



deptDesc/deptDesc


employees
/


 /mx:Model



 mx:Form id=deptForm 

 mx:FormItem



 mx:Button label=Click
me click= accessData ()/


/mx:FormItem

 mx:FormItem
label=Dept ID: 


mx:TextInput id=deptId text={deptModel. deptNum }
width=200/

 /mx:FormItem

 mx:FormItem
label=Dept Name: 


mx:TextInput id=deptName text={deptModel. deptDesc}
width=200 /


/mx:FormItem


 mx:FormItem
label=Employees: 


mx:DataGrid id=employee_dg
dataProvider={deptModel.employees.employee} /


/mx:FormItem

/mx:Form

mx:HRule width=668 height=20
/

/mx:VBox



Thanks! 
Hari












--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











Department.xml
Description: Binary data


department.mxml
Description: Binary data


deptComp.mxml
Description: Binary data


RE: [flexcoders] How to access control attributes inside a repeat er

2005-10-26 Thread Doodi, Hari - BLS CTR










Thanks for the reply but I am not using
the repeater to create any menus. I am using the repeater to repeat my form so that
user can manipulate more than one set of data. I did attached all three files.
Any way my xml file looks like 



?xml version=1.0
encoding=utf-8?

departments

 department

 deptId01/deptId

 deptNameAccounting/deptName

 employees

 employee

 nameChristina
Coenraets/name

 phone555-219-2270/phone

 email[EMAIL PROTECTED]/email

 activetrue/active

 /employee

 employee

 nameLouis
Freligh/name

 phone555-219-2100/phone

 email[EMAIL PROTECTED]/email

 activetrue/active

 /employee

 employee

 nameRonnie
Hodgman/name

 phone555-219-2030/phone

 email[EMAIL PROTECTED]/email

 activefalse/active

 /employee

 employee

 nameJoanne
Wall/name

 phone555-219-2012/phone

 email[EMAIL PROTECTED]/email

 activetrue/active

 /employee

 /employees

 /department

 department

 deptId02/deptId

 deptNameHuman
Resource/deptName

 employees

 employee

 nameMaurice
Smith/name

 phone555-219-2012/phone

 email[EMAIL PROTECTED]/email

 activefalse/active

 /employee

 employee

 nameMary
Jones/name

 phone555-219-2000/phone

 email[EMAIL PROTECTED]/email

 activetrue/active

 /employee

 /employees

 /department

/departments



Thanks! 
Hari 



-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Merrill, Jason
Sent: Wednesday, October 26, 2005
11:12 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] How to
access control attributes inside a repeater



I cant believe I am
actually answering a question here. 



What does department.xml
look like? If your XML is like this for example:



dashboard

 menu


button label=Help/


dropDowns


dropDown label=Site Location:


item label=AFDW/



You should be able to just
add the next node name after the currentItem, like this:



 mx:Repeater id=r2 dataProvider={dataService.result.dashboard.menu.dropDowns.dropDown} startingIndex=0


 mx:Text text={r2.currentItem.label} textAlign=right/





Jason Merrill | E-Learning
Solutions | icfconsulting.com 





















From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
Of Doodi, Hari - BLS CTR
Sent: Wednesday, October 26, 2005 10:14
AM
To: 'flexcoders@yahoogroups.com'
Subject: [flexcoders] How to
access control attributes inside a repeater







Hi,


I would like to know how to access text property of an TextInput control in a
Form which is repeated inside a repeater? Here is what I was doing..

I have two mxml file one department.mxml with repeater tag in it and
another deptComp.mxml has form
component with TextInput controls.

I was able to display data from the
source xml file. I want to know how to set data in to TextInput controls of
different instance.

Also found files are attached for your reference. Any kind
of help is appreciated. Thanks in advance.



Department.mxml contains

?xml version=1.0
encoding=utf-8?

mx:Application
xmlns:mx=http://www.macromedia.com/2003/mxml xmlns=*


mx:Model id=deptList
source=Department.xml/

mx:Repeater
id=deptRepeater dataProvider={deptList.hari}


deptComp deptModel={deptRepeater.currentItem}
initialize=initialize()/ 

/mx:Repeater 

/mx:Application



DeptComp.mxml contains



?xml version=1.0
encoding=utf-8?

mx:VBox
xmlns:mx=http://www.macromedia.com/2003/mxml

mx:Script

import mx.controls.Alert;

![CDATA[
 


function accessData( ) // display/set data from/to other instance


{


 // I tried diff possible ways to access text property of
TextInput control, deptName, but unable to display content.


 // None of the following Alert display text content.


Alert.show(this.parent.deptForm[1].deptName.text,1);


Alert.show(this.parent.deptForm.deptName[1].text,2);


Alert.show(this.deptForm[1].deptName.text,3);



Alert.show(this.deptName[1].text,4);


Alert.show(deptName[1].text,5);


Alert.show(deptForm[1].deptName.text,6);


Alert.show(parent.deptName[1].text,7);


Alert.show(this.parent.deptComp[1].deptForm.deptName.text,8);


}

]]

/mx:Script



 mx:Model
id=deptModel


deptNum/
deptNum 



deptDesc/deptDesc


employees
/


 /mx:Model



 mx:Form
id=deptForm 


mx:FormItem 


 mx:Button label=Click
me click= accessData ()/


/mx:FormItem


mx:FormItem label=Dept ID: 


mx:TextInput id=deptId text={deptModel. deptNum }
width=200/


/mx:FormItem


mx:FormItem label=Dept Name: 


mx:TextInput id=deptName text={deptModel. deptDesc} width=200
/


/mx:FormItem



mx:FormItem label=Employees: 


mx:DataGrid id=employee_dg
dataProvider={deptModel.employees.employee} /


/mx:FormItem

/mx:Form

mx:HRule width=668
height=20 /

/mx:VBox



Thanks! 
Hari






NOTICE:

This message is for the designated recipient only and
may contain privileged or confidential information. If you have received it in
error, please notify the sender immediately and delete the original.Any
other use of this e-mail by you is prohibited.








--
Flexcoders Mailing List
FAQ: http

RE: [flexcoders] Flex 2: Passing to a PopupWindow

2005-10-18 Thread Doodi, Hari - BLS CTR










I think the best way to pass values to
popup window is to use init object methodology.

Declare variables in myPopup.mxml

For example 

 var firstName:String;

 var
lastName:String;



In the parent mxml file

Create an object. Assign values to above
said attributes.

Example

 var
initObj:Object = new Object();

 initObj.firstName
= zz; //
should match variable declared in myPopup.mxml

 initObj.lastName
= xxx; // should match
variable declared in myPopup.mxml



then pass this initObj 



var popupWindow:TitleWindow = TitleWindow(PopUpManager.createPopUp(this,
myPopup, true,initObj)); 







Thanks! 
Hari 



-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Spike
Sent: Tuesday, October 18, 2005
10:43 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex 2:
Passing to a PopupWindow



Here's
one way to do it:

**
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml
xmlns=*
 
 mx:Script
  ![CDATA[
   import
mx.managers.PopUpManager;
   import
mx.containers.TitleWindow;
   import
mx.controls.TextInput;
   
   private function
showPopUp(event:Event):Void {
var
tw:TitleWindow = new TitleWindow(); 
   
tw.title = My Title; 

var
input:TextInput = new TextInput();
   
input.text = Hello!;
   
tw.addChild(input);

   
PopUpManager.popUpWindow(tw, this, false); 
   }

   
   
  ]]
 /mx:Script
 
 
 mx:Button label=Test popup
click=showPopUp(event); /
 
/mx:Application
**

HTH

Spike





On 10/18/05, Greg Johnson [EMAIL PROTECTED] wrote:

Ok, I
can get the basic popup window fine.Hand to scratch the old
popupwindow code I had gotten from cflex.net
because it was throwing
tons of errors in Flex 2.Thing is, I can't figure out how to set a 
text field in the popup when it's called.





 Yahoo! Groups Sponsor ~--
Most low income households are not online. Help bridge the digital divide
today! 
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM
~-

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
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/












-- 

Stephen Milligan 
Do you do the Badger?
http://www.yellowbadger.com

Do you cfeclipse? http://www.cfeclipse.org









--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] disable image

2005-10-07 Thread Doodi, Hari - BLS CTR










Hi,

 I would like to know how to disable an image
control through action script. I did some testing but could not succeeded. Here
is the code I was testing. Any help appreciated and thanks in advance.

Even though enabled=false I am able to click
on the image and able to see the Alert.





?xml version=1.0
encoding=utf-8?

mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml

mx:Canvas width=550
height=400

mx:Image source=@Embed('assets/icons/rolling.gif')
width=24 height=22 mouseDown=showMsg() enabled=false /

/mx:Canvas

mx:Script

![CDATA[

 function showMsg()

 {

 mx.controls.Alert.show(clicked,Image);

 }

]]

/mx:Script

/mx:Application



Thanks! 
Hari












--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Form in Repeater

2005-10-05 Thread Doodi, Hari - BLS CTR











Hi Abdul,

 Thanks
for your tip and I was able to complete my basic operations  displaying data
in a form which is repeated. Now I have couple of processing issues.
Based on value of discountFlag some FormItems should be enabled or disabled in
each repeated form. When I read Repeater class literature I found there are 2
useful events  repeat and repeatEnd. What are the possible arguments
available at each event? Which event the best in my case to implement functionality
I described above and if you dont mind can you (in fact any expert) send
psuedocode ? Thanks in advance and I appreciate any kind of help.



mx:Repeater id=Rptr dataProvider={myData}
repeat=showFlag(event.target) repeatEnd=rptDone() 

 mx:Form
width=830 height=298 vScrollPolicy=off verticalGap=0


 mx:FormItem
direction=horizontal width=100%
height=30

 mx:Text
text=Effective Date width=110 textDecoration=underline
fontSize=12 fontWeight=bold textAlign=left/

 mx:Spacer
width=100/

 mx:Label
text=Process Month :  fontSize=14 fontWeight=bold
color=#6633CC height=20 /

 mx:Label
id=irm_lb text={Rptr.currentItem.irm} fontSize=14
fontWeight=bold color=#6633CC height=20
/

 mx:Label
text=Discount Flag :  /

 mx:Label
text={Rptr.currentItem.discountFlag} /

 mx:Spacer
width=100/

 mx:Spacer
width=31%/

 mx:Image
source=@Embed('assets/icons/rolling.gif') mouseDown=showData(event.target.instanceIndices)
/

 
/mx:FormItem

 mx:FormItem
direction=horizontal width=100%
height=30

 ..

 
/mx:FormItem

 

 /mx:Form

/mx:Repeater



script functions:



 function
showFlag(ref:Object)

 {

 Alert.show('repricing
flag is : '+ref.discountFlag,ref.index+  index); 

 }

 function
rptDone()

 {

 var
item = Rptr.getRepeaterItem(0);

 

 Alert.show('repricingFlag
: '+item.discountFlag,repeater done );

 }



Thanks! 
Hari 



-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Abdul Qabiz
Sent: Tuesday, October 04, 2005 1:36 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Form in
Repeater



I think, it should work.
Can you check the length of array you are assigning as dataProvider to
Repeater.



If you can post the
sample-but-complete code here, we can see what is going wrong here..



-abdul









From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of Doodi, Hari - BLS CTR
Sent: Tuesday, October 04, 2005 8:53 PM
To: 'flexcoders@yahoogroups.com'
Subject: [flexcoders] Form in
Repeater

Hi experts,


Is it possible to use mx:Form/mx:Form tags in side mx:Repeater/mx:Repeater
tags. The situation is I have to display 5 months data on one screen. I was
able to display One month data came from remote object call. Now my next task
is to display 5 months data. I thought it will be simple to use repeater around
Form but looks like it is not simple. When I use it I got a blank screen? Any
ideas? I appreciate any suggestions about how to implement  displaying 5
months dynamic data on one screen? 



Thanks! 
Hari












--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] Form in Repeater

2005-10-04 Thread Doodi, Hari - BLS CTR










Hi experts,

 Is
it possible to use mx:Form/mx:Form tags in side mx:Repeater/mx:Repeater
tags. The situation is I have to display 5 months data on one screen. I was
able to display One month data came from remote object call. Now my next task
is to display 5 months data. I thought it will be simple to use repeater around
Form but looks like it is not simple. When I use it I got a blank screen? Any
ideas? I appreciate any suggestions about how to implement  displaying 5
months dynamic data on one screen? 



Thanks! 
Hari












--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] RemoteObject result

2005-09-30 Thread Doodi, Hari - BLS CTR










Hi,

 Can
some one help me out to do the following. I am making a remoteobject call on a
java class which returns a java VO populated with values. I did created a mxml
file with Form in it. Form has textinput controls matching VO attributes. Now
my question is how to see values when I run the mxml file?



I tried following methods but not successes. Please any help
appreciated.

Method 1

 mx:RemoteObject
id=itemDetailController
source=gov.bls.ppi.janus.repricing.manageitems.controllers.ItemDetailController
showBusyCursor=true

  mx:method
name=getItemTerms result=myData=event.result;searchIdx()
fault=showError(event.fault.faultString)

 mx:arguments

 arg1itemsid/arg1

 arg2indRefMonth/arg2

 arg3monthNum/arg3

 /mx:arguments 

 /mx:method

 /mx:RemoteObject



where myData is declared as follows

mx:Script

![CDATA[

 var
myData:Object;  

]]

/mx:Script



and tried to bind attributes to form controls as follows

mx:TextInput id=sizeoforder text={myDatal.size_of_order_desc}
width=300 textAlign=left/



I also tried using model instead of action script variable

mx:Model id=termsModel

 type_of_buyer_code
/

 type_of_buyer_detail
/

 contract_terms_desc
/

 size_of_shipment_desc
/

 size_of_order_desc
/

 /mx:Model



and changed the remoteobject as follows



mx:method name=getItemTerms result=termsModel=event.result;searchIdx()
fault=showError(event.fault.faultString)

 mx:arguments

 arg1itemsid/arg1

 arg2indRefMonth/arg2

 arg3monthNum/arg3

 /mx:arguments 

 /mx:method

and Form element as follows

mx:TextInput id=sizeoforder text={termsModel.size_of_order_desc}
width=90 textAlign=left/



Still I could not see the data on screen, but I do able to
see data on Network Monitor. 

Please help me out from this high priority task for me. 

Thanks! 
Hari












--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Re: RemoteObject result

2005-09-30 Thread Doodi, Hari - BLS CTR
Thanks for concern, but my problem is how to bind the value returned from
method (in this case mySomeVO) to model so that I can bind the model
attributes to Form controls OR some other mechanism of binding.

Ps: As I said in my earlier mail I am able to see values of returned VO
object attributes in Network Monitor pane.

Thanks!
Hari

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ghislain Simard
Sent: Friday, September 30, 2005 10:49 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: RemoteObject result

Try using the NetConnectionDebugger available in your Flex 
installation directory in the folder.  That's what I use to see my 
values before getting them diplayed in my Flex apps.

--- In flexcoders@yahoogroups.com, Doodi, Hari - BLS CTR 
[EMAIL PROTECTED] wrote:
 Hi,
 
 Can some one help me out to do the following. I am 
making a
 remoteobject call on a java class which returns a java VO 
populated with
 values. I did created a mxml file with Form in it. Form has 
textinput
 controls matching VO attributes. Now my question is how to see 
values when I
 run the mxml file?
 
  
 
 I tried following methods but not successes. Please any help 
appreciated.
 
 Method 1
 
 mx:RemoteObject id=itemDetailController
 
source=gov.bls.ppi.janus.repricing.manageitems.controllers.ItemDetai
lContro
 ller showBusyCursor=true
 
 mx:method name=getItemTerms
 result=myData=event.result;searchIdx()
 fault=showError(event.fault.faultString)
 
 mx:arguments
 
 arg1itemsid/arg1
 
 arg2indRefMonth/arg2
 
 arg3monthNum/arg3
 
 /mx:arguments  
 
 /mx:method
 
   /mx:RemoteObject
 
  
 
 where myData is declared as follows
 
 mx:Script
 
 ![CDATA[
 
 var myData:Object;
 
 ]]
 
 /mx:Script
 
  
 
 and tried to bind attributes to form controls as follows
 
 mx:TextInput id=sizeoforder text={myDatal.size_of_order_desc}
 width=300 textAlign=left/
 
  
 
 I also tried using model instead of action script variable
 
 mx:Model id=termsModel
 
 type_of_buyer_code /
 
 type_of_buyer_detail /
 
 contract_terms_desc /
 
 size_of_shipment_desc /
 
 size_of_order_desc /
 
   /mx:Model
 
  
 
 and changed the remoteobject as follows
 
  
 
 mx:method name=getItemTerms 
result=termsModel=event.result;searchIdx()
 fault=showError(event.fault.faultString)
 
 mx:arguments
 
 arg1itemsid/arg1
 
 arg2indRefMonth/arg2
 
 arg3monthNum/arg3
 
 /mx:arguments  
 
 /mx:method
 
 and Form element as follows
 
 mx:TextInput id=sizeoforder 
text={termsModel.size_of_order_desc}
 width=90 textAlign=left/
 
  
 
 Still I could not see the data on screen, but I do able to see 
data on
 Network Monitor. 
 
 Please help me out from this high priority task for me. 
 
 Thanks! 
 Hari





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links



 




 Yahoo! Groups Sponsor ~-- 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
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/
 




[flexcoders] dependency validation

2005-09-20 Thread Doodi, Hari - BLS CTR










Hi All,

 I
am new to validations. I have a situation where in I have to validate user
input such that if user enter FirstName then user must enter LastName. This
should took place only when user click saveButton. I was asked to
do custom validation class for this. 



 Can
some one help me out of this situation? How to activate custom validator from
action script? Thanks in advance.



Thanks! 
Hari












--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] accessible components for 508 Accessibility

2005-08-09 Thread Doodi, Hari - BLS CTR
Hi All,
I was recently been assigned to look in to 508 Accessibility with
Flex. I did read article at macromedia web site and found it was very
informative. But I found no where mentioned how to use accessible
components meaning.. where to import these components from and what is the
syntax. Please some one help me out in finding the info. 

Thanks!
Hari



 Yahoo! Groups Sponsor ~-- 
font face=arial size=-1a 
href=http://us.ard.yahoo.com/SIG=12h2pq0jh/M=362131.6882499.7825260.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123624908/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org
Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life 
- brought to you by One Economy/a./font
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
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/
 





[flexcoders] Referencing application object in an mxml component

2005-06-24 Thread Doodi, Hari - BLS CTR
Hi All,
I have an mxml component extending TabNavigator called
MyTabNavigator.mxml. Also I have application mxml in which I am using
MyTabNavigator called tabNavigation.mxml. 
Now I want to know how to access functions implemented in
tabNavigation.mxml from MyTabNavigation.mxml. I tried a methodology
mentioned in the Flex help system as below but did not work. Please help .

!--- MyTabNavigator.mxml --
var app:tabNivigation: 
.
.
.
private function alertHandler(...)
{
.
.
. app.application.saveData(); // saveData is implemented in
tabNavigation.mxml application
.

}

!-tabNavigation.mxml --
...
mx:Script
![CDATA[
function saveData()
{
Alert.show(SaveData will be called,'Save Data');

}
]]
/mx:Script
...
local:MyTabNavigator id=dataTabNav width=672 height=407 marginTop=1
borderColor=#9900FF borderStyle=solid
change=tabChanging(event.target.selectedIndex) app={this}

When I run the application( tabNavigation.mxml) I did not get the alert from
saveData() function. That means application method is not activated from
mxml component.

Thanks in advance.

Thanks!
Hari



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
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/
 




RE: [flexcoders] Referencing application object in an mxml compon ent

2005-06-24 Thread Doodi, Hari - BLS CTR
Hi Abdul,
Thanks for the response. You mean I don't have to declare a var
of type Application in mxml component And no need to assign {this} to app in
application mxml ? If not then how the application reference maintained
between application mxml and component mxml? It is something implicitly
managed by Flash player??

By the Way, I changed my code accordingly with your suggestion and it did
work perfectly. Thanks again.

Thanks!
Hari

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Abdul Qabiz
Sent: Friday, June 24, 2005 9:20 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Referencing application object in an mxml
component


To refer Alert class, use  mx.controls.Alert

To refer main application, use mx.core.Application.application

To show an alert, use  mx.controls.Alert.show(..) or
mx.core.Application.alert(..)



-abdul


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Doodi, Hari - BLS CTR
Sent: Friday, June 24, 2005 6:26 PM
To: 'flexcoders@yahoogroups.com'
Subject: [flexcoders] Referencing application object in an mxml
component

Hi All,
I have an mxml component extending TabNavigator called
MyTabNavigator.mxml. Also I have application mxml in which I am using
MyTabNavigator called tabNavigation.mxml. 
Now I want to know how to access functions implemented in
tabNavigation.mxml from MyTabNavigation.mxml. I tried a methodology
mentioned in the Flex help system as below but did not work. Please help
.

!--- MyTabNavigator.mxml --
var app:tabNivigation: 
.
.
.
private function alertHandler(...)
{
.
.
. app.application.saveData(); // saveData is implemented in
tabNavigation.mxml application
.

}

!-tabNavigation.mxml --
...
mx:Script
![CDATA[
function saveData()
{
Alert.show(SaveData will be called,'Save Data');

}
]]
/mx:Script
...
local:MyTabNavigator id=dataTabNav width=672 height=407
marginTop=1
borderColor=#9900FF borderStyle=solid
change=tabChanging(event.target.selectedIndex) app={this}

When I run the application( tabNavigation.mxml) I did not get the alert
from
saveData() function. That means application method is not activated from
mxml component.

Thanks in advance.

Thanks!
Hari



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links



 




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links



 



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
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/
 




RE: [flexcoders] Referencing application object in an mxml compon ent

2005-06-24 Thread Doodi, Hari - BLS CTR
Abdul,
 Thank you very much for the explanation and that make sense to me.

Thanks!
Hari

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Abdul Qabiz
Sent: Friday, June 24, 2005 3:48 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Referencing application object in an mxml
component

Hi,

Application class is a singleton class and it has a static property
named application, that's where reference of Application instance is
stored.

So mx.core.Application.application would always point to main
application

-abdul 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Doodi, Hari - BLS CTR
Sent: Friday, June 24, 2005 8:08 PM
To: 'flexcoders@yahoogroups.com'
Subject: RE: [flexcoders] Referencing application object in an mxml
component

Hi Abdul,
Thanks for the response. You mean I don't have to declare a
var
of type Application in mxml component And no need to assign {this} to
app in
application mxml ? If not then how the application reference maintained
between application mxml and component mxml? It is something implicitly
managed by Flash player??

By the Way, I changed my code accordingly with your suggestion and it
did
work perfectly. Thanks again.

Thanks!
Hari

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Abdul Qabiz
Sent: Friday, June 24, 2005 9:20 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Referencing application object in an mxml
component


To refer Alert class, use  mx.controls.Alert

To refer main application, use mx.core.Application.application

To show an alert, use  mx.controls.Alert.show(..) or
mx.core.Application.alert(..)



-abdul


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Doodi, Hari - BLS CTR
Sent: Friday, June 24, 2005 6:26 PM
To: 'flexcoders@yahoogroups.com'
Subject: [flexcoders] Referencing application object in an mxml
component

Hi All,
I have an mxml component extending TabNavigator called
MyTabNavigator.mxml. Also I have application mxml in which I am using
MyTabNavigator called tabNavigation.mxml. 
Now I want to know how to access functions implemented in
tabNavigation.mxml from MyTabNavigation.mxml. I tried a methodology
mentioned in the Flex help system as below but did not work. Please help
.

!--- MyTabNavigator.mxml --
var app:tabNivigation: 
.
.
.
private function alertHandler(...)
{
.
.
. app.application.saveData(); // saveData is implemented in
tabNavigation.mxml application
.

}

!-tabNavigation.mxml --
...
mx:Script
![CDATA[
function saveData()
{
Alert.show(SaveData will be called,'Save Data');

}
]]
/mx:Script
...
local:MyTabNavigator id=dataTabNav width=672 height=407
marginTop=1
borderColor=#9900FF borderStyle=solid
change=tabChanging(event.target.selectedIndex) app={this}

When I run the application( tabNavigation.mxml) I did not get the alert
from
saveData() function. That means application method is not activated from
mxml component.

Thanks in advance.

Thanks!
Hari



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links



 




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links



 



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links



 




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links



 




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
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/
 




RE: [flexcoders] TabNavigator gimmick

2005-06-21 Thread Doodi, Hari - BLS CTR
Hi All,
I have same situations and unable to resolve.
Can we request macromedia development/research group to provide a
new event called changing to TabNavigator controls which should fire
before change event and provide mechanism either go ahead or revert the
navigation. This way we can have total control of navigation and program
logic can decide whether to allow the user to navigate to next/other tab or
not.

Thanks!
Hari

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mika Kiljunen
Sent: Tuesday, June 21, 2005 3:27 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] TabNavigator gimmick

Thanks Scott, but the problem is : Unknown attribute 'click' on
mx.containers.TabNavigator. 

So there is no click event on TabNavigator, I tried placing it on
change-event but it does not affect it if set selectedIndex=x, since change
seems to be fired before the change actually occurs, so tabnavigator is
going to change the tab after the event is handled anyway (so if I set it on
change to something, the tabnavigator sets it anyway to what it was supposed
to set to when the tab is clicked)... :[

-Mika

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Scott Barnes
Sent: 21. kesäkuuta 2005 10:11
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] TabNavigator gimmick

subscribe to the TabNavigators click event. From here, execute a
validation routine based   on the last known tab clicked (ie default
is tab0, then if user clicks tab1, then update a var to indicate
such).

Validate that tab, if it fails, then simply fire an exception routine
(ie popup) and selectedIndex = failedTab.

The end-user may experience a flicker between the two tabs based on
how long it takes to compute the validation routine.

this is the quick and easy way. If you want to prevent a user from
accessing the tab, then you may have to extend the TabNavigator and
over-ride the various methods associated to that class. I can't
remember off the top of my head what the TabNavigator uses in terms of
click, but i'd bet the farm it uses SimpleButton.

I'd love to post the code for code, line by line here but i'm a bit
swamped at present but the above is based on theory (especially if it
works similiar to the Accordion)

On 6/21/05, Mika Kiljunen [EMAIL PROTECTED] wrote:
  
  
 
 Hi, 
 
 I could use some help with tabnavigator. I have a TabNavigator that has 3
 tabs on it. When the user clicks tab one and edits some data on the tab
view
 AND then clicks tab two, I should be able to stop this and go back to tab
 one and force the user to save data or at least to warn to save the edited
 data before going to tab two. Is there a way to do this? So basically I
need
 a way to catch the user's click on tab two (haven't figured out where) and
 then cancel the tab change event... 
 
   
 
 -Mika 
  
  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 the Yahoo! Terms of Service. 


-- 
Regards,
Scott Barnes
http://www.mossyblog.com
http://www.flexcoder.com (Waiting for FLEX NCL to arrive)


 
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/
 




[flexcoders] custome controls-How?

2005-06-17 Thread Doodi, Hari - BLS CTR
Hi All,
I have a situation with TabNavigator - where in before user navigate
to next tab I have to do some validations on data they entered and if no
errors then only I let the user go to next tab. In order to achieve this I
need to trap some event before change event can occure. From my previous
posting I think the only way I can achieve this functionality is extend the
TabNavigator and override corresponding methos(?).
Can any one guide me to locations where I can find enough info How
to extend mx controls and use them in my mxml files? Thanks in advance for
your help. I really appreciate if any one can post already working code for
both extending and using in mxml file .

Thanks!
Hari



 
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/
 




RE: [flexcoders] DataProvider ?

2005-06-15 Thread Doodi, Hari - BLS CTR










Thanks for the response. I don't think
that is the problem. I think the problem is even though I have mapping between
java vo and AS vo it seems not working. When I check network monitoring I did
not find _remoteClass attribute. Please help me in fixing this problem. I am
attaching my code for your reference. 



I have one gen question about mapping
between java vo and AS vo. My java class returning an array of vos. In my AS vo
I declared an array and then Object.registerClass( ) method. No where in my mxml
I referenced the array of AS vo. How array is assigned to data provider
automatically without me assigning it. I am confused over this. 







Thanks! 
Hari 



-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Matt Chotin
Sent: Saturday, June 11, 2005
12:48 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] DataProvider
?



Try having your Java
class take a List instead of a SchedPriceVO[]. The List should contain
your VO objects.



Matt











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Doodi, Hari - BLS CTR
Sent: Friday, June 10, 2005 11:23
AM
To: 'flexcoders@yahoogroups.com'
Subject: [flexcoders] DataProvider
?





Hi
All,
 Is it possible to
send a DataProvider, created dynamically in action
script, back to server? This is what I am trying
to accomplish
In my mxml file I make a RO call to java class and
java class returned an
array of VOs. I stored them in an action script
variable called price_do.
Then I created a DataProvider object using
createClassObject(DataProvider,myDP,1);
and then assigned price_do to
myDP.dataprovider. I am doing this because user
want to see the retrieved
info in a free form format not a grid format. Once
user click save button on
the screen I am getting values from individual
textinputs and update the
myDP object using myDP.editField( ) method and
invoke a remote method to
send this dataProvider object back to my java
class. 

I am having problems in the last step- sending
dataprovider to java class. I
have system print outs in my java class and none
got executed. It looks like
object passed back to java class is not recognized
as array of VOs. Please
some one help me out. I am attaching my mxml and
java class for your
reference. Thanks in advance..


schedPrice.mxml
save.txt 
Thanks!
Hari















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 the Yahoo! Terms of Service.












SchedPriceVO.as
Description: Binary data


schedPrice.mxml
Description: Binary data


[flexcoders] DataProvider ?

2005-06-10 Thread Doodi, Hari - BLS CTR
Hi All,
Is it possible to send a DataProvider, created dynamically in action
script, back to server? This is what I am trying to accomplish
In my mxml file I make a RO call to java class and java class returned an
array of VOs. I stored them in an action script variable called price_do.
Then I created a DataProvider object using
createClassObject(DataProvider,myDP,1); and then assigned price_do to
myDP.dataprovider. I am doing this because user want to see the retrieved
info in a free form format not a grid format. Once user click save button on
the screen I am getting values from individual textinputs and update the
myDP object using myDP.editField( ) method and invoke a remote method to
send this dataProvider object back to my java class. 

I am having problems in the last step- sending dataprovider to java class. I
have system print outs in my java class and none got executed. It looks like
object passed back to java class is not recognized as array of VOs. Please
some one help me out. I am attaching my mxml and java class for your
reference. Thanks in advance..


 schedPrice.mxml  save.txt 
Thanks!
Hari



 
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/
 


schedPrice.mxml
Description: Binary data
public static String saveSchedPrice(SchedPriceVO[] schedPriceVOArray) throws 
SQLException
  {
Connection conn = null;
PreparedStatement stmt = null;

int itemsid;
String irm;
String price;
SchedPriceVO schedPriceVO;
System.out.println(from DAO Save  );
try
{
  conn = ConnectionPool.getConnection();
  System.out.println(DAO Save  array length +schedPriceVOArray.length);
  System.out.println(array is  : +schedPriceVOArray);
  System.out.println(array string is  : +schedPriceVOArray.toString());
  System.out.println(array class is  : +schedPriceVOArray.getClass());

  for(int x=0;xschedPriceVOArray.length;x++)
  {
schedPriceVO = new SchedPriceVO();
schedPriceVO = schedPriceVOArray[x];
System.out.println(x : +x);
//itemsid = schedPriceVO.getItemSid();
irm = schedPriceVO.getIrmonth();
System.out.println( 1 );
price   = schedPriceVO.getPrice();
System.out.println( 2 );
itemsid  = 1168960;
System.out.println(price : +price+  irm  : +irm);

StringBuffer strBuffer = new StringBuffer(update work_item_price );
strBuffer.append(set REPORTED_PRICE1 = +price+ );
strBuffer.append(where ITEM_SID = +itemsid+ );
strBuffer.append(and IRM = '+irm+');
String sqlString = strBuffer.toString();

System.out.println(sqlString : +sqlString);
stmt = conn.prepareStatement(sqlString);
stmt.executeQuery();
System.out.println(update is successful +x);
  }
  return Update Succesful;
}
catch(SQLException ex)
{
  ex.printStackTrace();
  throw new SQLException(ex.getMessage());
}
finally
{
  try
  {
if (stmt != null)
{
  stmt.close();
}
if (conn != null)
{
  conn.close();
}
  }
  catch (Exception ex)
  {
// non-fatal; only closing if pooled.
// don't overthrow original exception
System.out.println(from SchedAdjDAO Closing exception : 
+ex.getMessage());
  }
}

  }

RE: [flexcoders] Converting Java POJO to Actionscript Errors

2005-05-27 Thread Doodi, Hari - BLS CTR
Hi,
First couple of questions - did you register your POJO with AS class
using Object.registerClass( ) method? 
What is the constructor method of you Pojo ?
After both of above are in place(implemented) then you can create new object
of your POJO type and assign your newly returned object to it and then add
this new object to your datagrid using myDataGrid.addItem( );

This is what I did.
AS class looks like
class classes.MyPojo
{
public var myArray:Array;
private static var registered:Boolean = Object.registerClass(full path
of you java class goes here, classes. MyPojo);
}
 In my MXML you can ignore statements which sets initial attribute
values 
function addRow()
{
var oNewItem:Object = new MyPojo ();  
oNewItem.adj_num = 12 ;
oNewItem.adj_type =  ;
oNewItem.adj_category =  ;
oNewItem.adj_amt_terms_desc =  Doodi;
oNewItem.adj_reporter_applied_flag = N;
oNewItem.adj_sign = Additive;
oNewItem.adj_factor =  ;
oNewItem.adj_order_applied = 12;

myDataGrid.addItem(oNewItem);

focusNewRow();
doLater(this,focusNewRow);
}
Thanks!
Hari

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of suzy lawson
Sent: Friday, May 27, 2005 10:22 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Converting Java POJO to Actionscript Errors

Hari-
  THanks for your response. I tried that but I got a
compilation error that there is no method with the
name MyPojo. I suppose that means I have to manually
write the underlying ActionScript class for my Java
POJO?

That just seems like a really bad implementation
design b/c if MyPojo Java class changes, then I have
to manually change my ActionScript class. urr...what
am I missing?! 

--- Doodi, Hari - BLS CTR [EMAIL PROTECTED] wrote:
 Try this.
 
 mx:script...
 var newObj:Object = new MyPojo(); // constructor of
 your POJO
 function addToGrid() {
   newObj = remoteObj.getNewJob();  
   myDataGrid.addItem(newObj); 
 }
 /mx:script
 
 Thanks!
 Hari
 
 -Original Message-
 From: flexcoders@yahoogroups.com
 [mailto:[EMAIL PROTECTED] On
 Behalf Of Kevin Ewok
 Sent: Friday, May 27, 2005 9:46 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Converting Java POJO to
 Actionscript Errors
 
 Gang-
   I'm a newbie and all the flexdocs on MM's site
 couldn't give me a
 concrete answer. I have a datagrid that is populated
 from an ArrayList
 of POJO's (using the remote object). That works
 fine. 
 
 I then have another method that is called 30 seconds
 later then
 returns a single POJO (of the same type from the
 POJOs returned in the
 first method). I then try to add it to my datagrid
 using the
 myDatagrid.addItem(newObj), but I get the below
 debug error.
 
 Warning: Reference to undeclared variable,
 '_global.com.MyPojo'
   at mx_utils_ClassUtil::findClass()
 Warning: valueOf is not a function
   at mx_utils_ClassUtil::getFlexClass() 
 
 Is there a special way I need to declare 'newObj'
 (which I pass into
 the datagrid.addItem() method), or do I have to
 explicity write the
 AS-equilavent class of my Java POJO class?  
 
 I would think Flex could convert this class for me,
 but I'm obviously
 missing an important step to add it to the
 datagrid/dataprovider.
 Thanks in advance for your help.
 
 mx:script...
 var newObj:Object;
 function addToGrid() {
   newObj = remoteObj.getNewJob();  
   myDataGrid.addItem(newObj); 
 }
 /mx:script
 
 mx:DataGrid id=myDataGrid
 dataProvider={remoteObj.getAll.result}
 ...
 
 
 
 
  
 Yahoo! Groups Links
 
 
 
  
 
 



__ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new Resources site
http://smallbusiness.yahoo.com/resources/


 
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/
 





RE: [flexcoders] Dispathching and Event from Combo Box cell rende rer

2005-05-25 Thread Doodi, Hari - BLS CTR
Hi Mohanraj,
I have a similar requirement. I don't want to reinvent the wheel. If
you don't mind can you post your code so that I can tailor to my
requirements. Thanks!

Thanks!
Hari

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mohanraj Jayaraman
Sent: Tuesday, May 24, 2005 9:20 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Dispathching and Event from Combo Box cell
renderer

Hi Matt,

Thanks , that worked. 
Mohanraj


--- Matt Chotin [EMAIL PROTECTED] wrote:
 It's the ComboCellRenderer dispatching the
 statusChanged event?  In that
 case the addEventListener is on the wrong thing
 because it's not main
 dispatching the event.  I think if the
 ComboCellRenderer does
 listOwner.parentDocument.dispatchEvent({type:
 'statusChanged'}) then it
 will execute on main.mxml.
 
  
 
 Matt
 
  
 
 
 
 From: flexcoders@yahoogroups.com
 [mailto:[EMAIL PROTECTED] On
 Behalf Of Mohanraj Jayaraman
 Sent: Tuesday, May 24, 2005 4:53 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Dispathching and Event from
 Combo Box cell
 renderer
 
  
 
 Hi ,
 
 I have a main.mxml where I have this DataGrid 
 
   function initListener(){
 addEventListener(statusChanged,
 mx.utils.Delegate.create(this, onStatusChange));
   }
 
   function onStatusChange(e){
 mx.controls.Alert.show(listener is
 Listening); }
 
 
 mx:DataGrid id=datagrid1 rowHeight=100
 dataProvider={tp} editable=true 
   mx:columns
 mx:Array
   mx:DataGridColumn headerText=Name
 columnName=name editable=false/
   mx:DataGridColumn headerText=City
 columnName=city editable=false /
   mx:DataGridColumn
 headerText=Birthday
 columnName=day /
   mx:DataGridColumn headerText=Status
 columnName=status editable=true
 cellRenderer=ComboCellRenderer /
 
 /mx:Array
   /mx:columns
 /mx:DataGrid
 
 
 Whenever the combox box value is changed I want to
 call a remote object with the datagrid's
 selectedItem
 object.
 
 I am handling the 'change' event in the
 ComboCellRenderer and dispatching a 'statusChanged'
 event and I also have a listener attached to
 main.mxml
 for the 'statusChanged' event. But whenever the
 combo
 box value is changed the listener function
 onStatusChange in main.mxml is not called.
 
 Can you tell me what I am missing here?
 
 Thanks
 Mohan
 
 
 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam
 protection around 
 http://mail.yahoo.com 
 
 
 
 
 
 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]

mailto:[EMAIL PROTECTED]
 
 
 * Your use of Yahoo! Groups is subject to the Yahoo!
 Terms of
 Service http://docs.yahoo.com/info/terms/ . 
 
 



__ 
Yahoo! Mail 
Stay connected, organized, and protected. Take the tour: 
http://tour.mail.yahoo.com/mailtour.html 



 
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/
 




RE: [flexcoders] creating row in datagrid at runtime

2005-05-24 Thread Doodi, Hari - BLS CTR










Tracy,

 Thank
you very much the info. I have a question for you about the NOTE you mentioned
in earlier mail. Are you referring editcell event and editField( ) method with
reference to new row or in general any cell? To my surprise I did not trap editcell
event and did not call editField( ) on cells but I am able to save data changes
to the data base, but not the data entered for the new row though. This makes me
think that I have to call editField( ) on newly added row, am I correct?





Thanks! 
Hari 



-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Tracy Spratt
Sent: Monday, May 23, 2005 5:12 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] creating
row in datagrid at runtime



Calling addItem() on the
dataGrid is actually calling it on the dataProvider and physically adding the
line.



Now, that line is empty,
the "item" would be undefined (null?), and NOTE THIS: editing a
datagrid cell does not automatically update the datagrid. You will need
to use the editCell event to call editField() to update the dp with the entered
data. I bet your dataProvider has a line but it is empty.



Tracy















From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Doodi, Hari -
 BLS CTR
Sent: Monday, May 23, 2005 3:25 PM
To: 'flexcoders@yahoogroups.com'
Subject: RE: [flexcoders] creating
row in datagrid at runtime





Hi,


I would like to extend the scope of this thread by asking How to make this newly
added row as a part of the dataprovider? What I mean is I am able to create a
new row in datagrid by using your methodology. But when I try to access data in
my POJO, I am getting nullpointer exception. That means, I think, the newly
added row to grid is not truly added to dataprovider. Do I have to make any
specific function call to make the newly added row attach to dataprovider? If
this question is already discussed, please guide me with reference.





Thanks! 
Hari 



-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Tracy Spratt
Sent: Friday, May 20, 2005 4:51 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] creating
row in datagrid at runtime



Here's a little mod that automatically adds the new
row when you tab out of the last cell. The doLater reminder solved an
aggravating problem I was having!



?xml version=1.0?

mx:Application
xmlns:mx=http://www.macromedia.com/2003/mxml

 xmlns=*

mx:Script![CDATA[

  

 function checkOnNav(oEvent:Object):Void

 {

 var iItemIndex:Number;

 var
iColumnIndex:Number;

 switch (oEvent.type)

 {

 case
cellFocusOut:


iItemIndex = oEvent.itemIndex;


iColumnIndex = oEvent.columnIndex


if (iColumnIndex == oEvent.target.columnNames.length - 1


  iItemIndex == oEvent.target.length -
1 )
{
 //leaving the last row, last column


oEvent.target.addItem();


doLater(this,focusLastRow,[oEvent])


}


break;

 

 }//switch (oEvent.type)

 }//checkOnNav

 

 private function
focusLastRow(oEvent:Object):Void{

 var dg:mx.controls.DataGrid = oEvent.target;

 dg.setFocus();


dg.focusedCell = {columnIndex: 0, itemIndex: dg.dataProvider.length-1};

 }//setFocusNextLine

 

]]/mx:Script

 mx:DataGrid id=grid
editable=true 


cellFocusOut=checkOnNav(event)

 mx:dataProvider

 mx:Array


mx:Object name=manish colour=red /


mx:Object name=abdul colour=blue /


/mx:Array


/mx:dataProvider

 /mx:DataGrid



/mx:Application



-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of Manish Jethani
Sent: Friday, May 20, 2005 9:50 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] creating row in datagrid at runtime



On 5/19/05, shettyaditsathish
[EMAIL PROTECTED] wrote:

 i need to create a row in an existing datagrid on
an event and show the

 the 1st column of the newly created row in
editable mode.



?xml version=1.0?

mx:Application
xmlns:mx=http://www.macromedia.com/2003/mxml

 xmlns=*

 mx:Script

 function enterNewRow():Void

 {

 grid.addItem();

 focusNewRow();

 doLater(this,
focusNewRow);

 }

 function focusNewRow():Void

 {

 grid.setFocus();

 grid.focusedCell =
{columnIndex: 0, itemIndex:

grid.dataProvider.length-1};

 }

 /mx:Script

 mx:DataGrid id=grid
editable=true

 mx:dataProvider

 mx:Array


mx:Object name=manish colour=red /


mx:Object name=abdul colour=blue /

 /mx:Array

 /mx:dataProvider

 /mx:DataGrid

 mx:Button label=Enter New Row
click=enterNewRow() /

/mx:Application



Note:



1. grid.addItem() will add a blank row

2. call focusNewRow() in the next frame
using doLater()







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/






















Yahoo! Groups Links

To visit your group 

[flexcoders] how to get value from datagrid cell?

2005-05-24 Thread Doodi, Hari - BLS CTR
Hi All,
One small and very simple question I can not figure it out how - How
to get the value from a cell of datagrid?
I am tried the following but in vain. Please some one help me out. Thanks in
advance.

Function setData(event:Object)
{
myDataGrid.getColumnAt(event.columnIndex).text  
AND 
myDataGrid.getColumnAt(event.columnIndex).value
}

Thanks!
Hari



 
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/
 




RE: [flexcoders] how to get value from datagrid cell?

2005-05-24 Thread Doodi, Hari - BLS CTR
Jeff,
Thanks for response, you mean 

Var dataValue =
myDataGrid.getItemAt(event.itemIndex).getColumnAt(event.columnIndex).columnN
ame;

I don't want the name of the column user is modifying but I want the value
entered by the user. I am sorry if I confused you. If you have an example
code can you post it?
Here is what I am doing...

mx:DataGrid id=myDataGrid width=100% dataProvider={schedAdj_do}
textAlign=left height=250 headerHeight=50 editable=true
cellEdit=setData(event)

/mx:DataGrid

function setData(event:Object)
{

mx.controls.Alert.show(column Name :
+myDataGrid.getColumnAt(event.columnIndex).columnName);
mx.controls.Alert.show(event.oldValue : +event.oldValue+
new value : +myDataGrid.getColumnAt(event.columnIndex).value);
//myDataGrid.editField( event.columnIndex, colName: String,
data);
}

I was able to alert the old value but not the new value entered by the user.

Thanks!
Hari

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of jeff tapper
Sent: Tuesday, May 24, 2005 10:16 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] how to get value from datagrid cell?

You need to tell it which row of data you want

myDataGrid.getItemAt(rowNum).column Name

At 10:07 AM 5/24/2005, you wrote:
Hi All,
   One small and very simple question I can not figure it out how - How
to get the value from a cell of datagrid?
I am tried the following but in vain. Please some one help me out. Thanks
in
advance.

Function setData(event:Object)
{
   myDataGrid.getColumnAt(event.columnIndex).text
   AND
   myDataGrid.getColumnAt(event.columnIndex).value
}

Thanks!
Hari



--
Yahoo! Groups Links
* To visit your group on the web, go to:
* 

http://groups.yahoo.com/group/flexcoders/http://groups.yahoo.com/group/fle
xcoders/ 

*
* To unsubscribe from this group, send an email to:
* 

mailto:[EMAIL PROTECTED]flexcoder
[EMAIL PROTECTED] 

*
* Your use of Yahoo! Groups is subject to the 
 http://docs.yahoo.com/info/terms/Yahoo! Terms of Service.



 
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/
 




RE: [flexcoders] how to get value from datagrid cell?

2005-05-24 Thread Doodi, Hari - BLS CTR
Hi Jeff,

Thank you very much for the help and the code. That helped me a lot in
understanding getColumnAt() and getItemAt(). Thanks agin.

Thanks!
Hari

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of jeff tapper
Sent: Tuesday, May 24, 2005 11:55 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] how to get value from datagrid cell?

ok, try this:

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; 
creationComplete=initApp()
mx:Script
![CDATA[
var schedAdj_do:Array;
function initApp(){
 var item1:Object = new Object();
 item1.name = Jeff;
 item1.company=Tapper.net;
 var item2:Object = new Object();
 item2.name = Lisa;
 item2.company=LKJ Hosting;
 schedAdj_do=new Array(item1,item2);

}
function setData(event:Object){
 var col:String= 
event.target.getColumnAt(event.columnIndex).columnName;
 var row:Number = event.itemIndex;
  mx.controls.Alert.show(event.oldValue : 
+event.oldValue+newline+new value : +event.target.getItemAt(row)[col]);
}
]]
/mx:Script
mx:DataGrid id=myDataGrid width=100% dataProvider={schedAdj_do} 
textAlign=left height=250 headerHeight=50 editable=true 
cellEdit=setData(event)/

/mx:Application

At 10:32 AM 5/24/2005, you wrote:
mx:DataGrid id=myDataGrid width=100% dataProvider={schedAdj_do}
textAlign=left height=250 headerHeight=50 editable=true
cellEdit=setData(event)

/mx:DataGrid

function setData(event:Object)
   {

 mx.controls.Alert.show(column Name :
+myDataGrid.getColumnAt(event.columnIndex).columnName);
 mx.controls.Alert.show(event.oldValue : +event.oldValue+
new value : +myDataGrid.getColumnAt(event.columnIndex).value);
 //myDataGrid.editField( event.columnIndex, colName: String,
data);
   }



 
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/
 




RE: [flexcoders] creating row in datagrid at runtime

2005-05-24 Thread Doodi, Hari - BLS CTR










Tracy,

 Here
is my code. If you don't mind can you help me out in resolving this issue.
Thanks!



 mx:DataGrid
id=myDataGrid width=100% dataProvider={schedAdj_do}
textAlign=left height=250 headerHeight=50
editable=true cellEdit=updateData(event)

 
mx:columns

 
mx:Array

 
mx:DataGridColumn headerText=# columnName=adj_num
width=50 editable=false textAlign=left/

 
mx:DataGridColumn headerText=Type columnName=adj_type
width=100 /

 
mx:DataGridColumn headerText=Category columnName=adj_category
width=150 /

 
mx:DataGridColumn headerText=Terms columnName=adj_amt_terms_desc
width=200 /

 
mx:DataGridColumn headerText={rptappl} columnName=adj_reporter_applied_flag
width=50 /

 
mx:DataGridColumn headerText=Sign columnName=adj_sign
width=75 textAlign=center /

 
mx:DataGridColumn headerText=Factor columnName=adj_factor
width=100 textAlign=right/

 
mx:DataGridColumn headerText={ordappl} columnName=adj_order_applied
width=75 textAlign=left /

 
/mx:Array

 
/mx:columns

 
/mx:DataGrid

 

 function
updateData(event:Object)

 {

 mx.controls.Alert.show(cellEdit
event fired ); 

 var
colName:String= event.target.getColumnAt(event.columnIndex).columnName;


var row:Number = event.itemIndex;

 
var dataValue = event.target.getItemAt(row)[colName];


//mx.controls.Alert.show(event.columnIndex :+event.columnIndex+newline+colName
: +colName+newline+new value : +event.target.getItemAt(row)[colName]);

 myDataGrid.dataProvider.editField(
event.columnIndex, colName, dataValue);

 }





Thanks! 
Hari 



-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Tracy Spratt
Sent: Monday, May 23, 2005 5:12 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] creating
row in datagrid at runtime



Calling addItem() on the
dataGrid is actually calling it on the dataProvider and physically adding the
line.



Now, that line is empty,
the "item" would be undefined (null?), and NOTE THIS: editing a
datagrid cell does not automatically update the datagrid. You will need
to use the editCell event to call editField() to update the dp with the entered
data. I bet your dataProvider has a line but it is empty.



Tracy











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Doodi, Hari - BLS CTR
Sent: Monday, May 23, 2005 3:25 PM
To: 'flexcoders@yahoogroups.com'
Subject: RE: [flexcoders] creating
row in datagrid at runtime





Hi,


I would like to extend the scope of this thread by asking How to make this
newly added row as a part of the dataprovider? What I mean is I am able to
create a new row in datagrid by using your methodology. But when I try to
access data in my POJO, I am getting nullpointer exception. That means, I
think, the newly added row to grid is not truly added to dataprovider. Do I
have to make any specific function call to make the newly added row attach to
dataprovider? If this question is already discussed, please guide me with
reference.





Thanks! 
Hari 



-Original Message-
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
Of Tracy Spratt
Sent: Friday, May 20, 2005 4:51 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] creating
row in datagrid at runtime



Here's a little mod that automatically adds the new
row when you tab out of the last cell. The doLater reminder solved an
aggravating problem I was having!



?xml version=1.0?

mx:Application
xmlns:mx=http://www.macromedia.com/2003/mxml

 xmlns=*

mx:Script![CDATA[

  

 function checkOnNav(oEvent:Object):Void

 {

 var iItemIndex:Number;

 var
iColumnIndex:Number;

 switch (oEvent.type)

 {

 case
cellFocusOut:


iItemIndex = oEvent.itemIndex;


iColumnIndex = oEvent.columnIndex


if (iColumnIndex == oEvent.target.columnNames.length - 1


  iItemIndex == oEvent.target.length -
1 )
{
 //leaving the last row, last column


oEvent.target.addItem();


doLater(this,focusLastRow,[oEvent])


}


break;

 

 }//switch (oEvent.type)

 }//checkOnNav

 

 private function
focusLastRow(oEvent:Object):Void{

 var dg:mx.controls.DataGrid
= oEvent.target;

 dg.setFocus();

 dg.focusedCell =
{columnIndex: 0, itemIndex: dg.dataProvider.length-1};

 }//setFocusNextLine

 

]]/mx:Script

 mx:DataGrid id=grid
editable=true 


cellFocusOut=checkOnNav(event)

 mx:dataProvider


mx:Array


mx:Object name=manish colour=red /


mx:Object name=abdul colour=blue /


/mx:Array


/mx:dataProvider

 /mx:DataGrid



/mx:Application



-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf
Of Manish Jethani
Sent: Friday, May 20, 2005 9:50 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] creating row in datagrid at runtime



On 5/19/05, shettyaditsathish
[EMAIL PROTECTED] wrote:

 i need to create a row in an existing datagrid on
an event and show the

 the 1st column of the newly created row in
editable mode.



?xml version=1.0?

mx:Application xmlns:mx=http://www.macromedia.com/2003/mx

RE: [flexcoders] creating row in datagrid at runtime

2005-05-23 Thread Doodi, Hari - BLS CTR










Hi,

 I
would like to extend the scope of this thread by asking How to make this newly
added row as a part of the dataprovider? What I mean is I am able to create a
new row in datagrid by using your methodology. But when I try to access data in
my POJO, I am getting nullpointer exception. That means, I think, the newly
added row to grid is not truly added to dataprovider. Do I have to make any
specific function call to make the newly added row attach to dataprovider? If
this question is already discussed, please guide me with reference.





Thanks! 
Hari 



-Original Message-
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
Of Tracy Spratt
Sent: Friday, May 20, 2005 4:51 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] creating
row in datagrid at runtime



Here's a little mod that automatically adds the new
row when you tab out of the last cell. The doLater reminder solved an
aggravating problem I was having!



?xml version=1.0?

mx:Application
xmlns:mx=http://www.macromedia.com/2003/mxml

 xmlns=*

mx:Script![CDATA[

  

 function checkOnNav(oEvent:Object):Void

 {

 var iItemIndex:Number;

 var
iColumnIndex:Number;

 switch (oEvent.type)

 {

 case
cellFocusOut:


iItemIndex = oEvent.itemIndex;


iColumnIndex = oEvent.columnIndex


if (iColumnIndex == oEvent.target.columnNames.length - 1


  iItemIndex == oEvent.target.length -
1 )
{
 //leaving the last row, last column


oEvent.target.addItem();


doLater(this,focusLastRow,[oEvent])


}


break;

 

 }//switch (oEvent.type)

 }//checkOnNav

 

 private function
focusLastRow(oEvent:Object):Void{

 var
dg:mx.controls.DataGrid = oEvent.target;

 dg.setFocus();

 dg.focusedCell =
{columnIndex: 0, itemIndex: dg.dataProvider.length-1};

 }//setFocusNextLine

 

]]/mx:Script

 mx:DataGrid id=grid
editable=true 


cellFocusOut=checkOnNav(event)

 mx:dataProvider


mx:Array


mx:Object name=manish colour=red /


mx:Object name=abdul colour=blue /


/mx:Array


/mx:dataProvider

 /mx:DataGrid



/mx:Application



-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf
Of Manish Jethani
Sent: Friday, May 20, 2005 9:50 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] creating row in datagrid at runtime



On 5/19/05, shettyaditsathish [EMAIL PROTECTED]
wrote:

 i need to create a row in an existing datagrid on
an event and show the

 the 1st column of the newly created row in
editable mode.



?xml version=1.0?

mx:Application
xmlns:mx=http://www.macromedia.com/2003/mxml

 xmlns=*

 mx:Script

 function enterNewRow():Void

 {

 grid.addItem();

 focusNewRow();

 doLater(this,
focusNewRow);

 }

 function focusNewRow():Void

 {

 grid.setFocus();

 grid.focusedCell =
{columnIndex: 0, itemIndex:

grid.dataProvider.length-1};

 }

 /mx:Script

 mx:DataGrid id=grid
editable=true

 mx:dataProvider

 mx:Array


mx:Object name=manish colour=red /


mx:Object name=abdul colour=blue /

 /mx:Array

 /mx:dataProvider

 /mx:DataGrid

 mx:Button label=Enter New Row
click=enterNewRow() /

/mx:Application



Note:



1. grid.addItem() will add a blank row

2. call focusNewRow() in the next frame
using doLater()







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/




















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 the Yahoo! Terms of Service.












RE: [flexcoders] Datagrid word wrap- it isnt working.

2005-05-16 Thread Doodi, Hari - BLS CTR










We had the same problem but the way we did
roundabout to this is - declare a var with a value with "\n"
char in it and then bind this var to datagrid headertext property as shown
below.. It did work for me.



var ordappl=Order\nAppl;

.

.

.



mx:DataGridColumn headerText={ordappl}
columnName=order textAlign=left /



Thanks! 
Hari 



-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Matt Chotin
Sent: Monday, May 16, 2005 2:23 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Datagrid
word wrap- it isnt working.



Have you set
variableRowHeight to true?











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of nithya karthik
Sent: Sunday, May 15, 2005 10:14
PM
To: flexcoders
Subject: [flexcoders] Datagrid
word wrap- it isnt working.







Hai,





 when i give
wordwrap=true in a datagrid, it isnt wraping the text... May
i know the reason and the way to rectify it?





I used something like this:





mx:DataGridColumn
columnName=Total headerText=Total reserves
wordWrap=true/





I want 'Total' in the first line and 'reserves' in the
next line of the header.. How to do this?









Yahoo! Messenger - Communicate
instantly...Ping your friends today! Download Messenger Now














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 the Yahoo! Terms of Service.












RE: [flexcoders] Datagrid word wrap- it isnt working.

2005-05-16 Thread Doodi, Hari - BLS CTR











Hi Sree,



Thank you very much for the tip with two variables.
I do remember this.





Thanks! 
Hari




-Original
Message-
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Sreejith
Unnikrishnan
Sent: Monday, May 16, 2005 10:02
AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Datagrid
word wrap- it isnt working.



Thanks Hari,

I tried it ... it does work when you have want to construct the string from 2
non-variables.
In your case I assume Order and Appl are not 2 variables and I wonder why you
would want a variable for the header :-) ... 

But, I also found that if you want to construct from 2 variables such as Order
and Appl, you will have to construct it as follows:

var Order;
var Appl;

var newHeader = Order+newline+Appl;

 var newHeader =
Order+\n+Appl;
or var newHeader = Order\nAppl;

does not work!

Otherwise you are bound to get an error as follows!

Operator '+' must be
followed by an operand

Regards
Sree

Doodi, Hari - BLS CTR wrote: 

Yes, it is working. I can
see Order and Appl in two lines in my datagrid.





Thanks! 
Hari




-Original
Message-
From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On Behalf Of Sreejith Unnikrishnan
Sent: Monday, May 16, 2005 9:42 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Datagrid
word wrap- it isnt working.



Hari,

A bit confused ... does the variable declaration really work?

I was assuming that you have to use something like 

var totalColumnName = TotalnewLineReserves;

for it to render correctly. I have a feeling that the \n would not work.
Can somebody clarify!

Nithya, and also you have to specify the height for the header!

 mx:DataGrid width=100%
height=100% variableRowHeight=true headerHeight=30

Regards
Sree

Doodi, Hari - BLS CTR wrote: 

We had
the same problem but the way we did roundabout to this is - declare a var with
a value with \n char in it and then bind this var to datagrid
headertext property as shown below.. It did work for me.



var
ordappl=Order\nAppl;

.

.

.



mx:DataGridColumn
headerText={ordappl} columnName=order
textAlign=left /



Thanks! 
Hari 



-Original
Message-
From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On Behalf Of Matt Chotin
Sent: Monday, May 16, 2005 2:23 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Datagrid
word wrap- it isnt working.



Have you
set variableRowHeight to true?



















From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com]
On Behalf Of nithya karthik
Sent: Sunday, May 15, 2005 10:14
PM
To: flexcoders
Subject: [flexcoders] Datagrid
word wrap- it isnt working.







Hai,






when i give wordwrap=true in a datagrid, it isnt wraping the
text... May i know the reason and the way to rectify it?





I used something like
this:





mx:DataGridColumn
columnName=Total headerText=Total reserves
wordWrap=true/





I want 'Total' in the
first line and 'reserves' in the next line of the header.. How to do this?

















Yahoo! Messenger - Communicate
instantly...Ping your friends today! Download Messenger Now

















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 the Yahoo! Terms of Service.












RE: [flexcoders] Re: editable datagrid

2005-05-16 Thread Doodi, Hari - BLS CTR
Don't we have to have a mapping AS class (with Object.registerClass()
method)in order to pass back the dataprovider to POJO?

Thanks!
Hari

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Manish Jethani
Sent: Monday, May 16, 2005 1:48 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: editable datagrid

On 5/16/05, Rajesh Jayabalan [EMAIL PROTECTED] wrote:

  My data provider is a httpService, so how can I send the edited data
 back?

Let's say you have this editable DataGrid in your application:

 mx:DataGrid id=grid editable=true
dataProvider={httpService.result.insideTheResult} /

The edited data can be accessed through the dataProvider property of
the 'grid' object above.  (grid.dataProvider.insideTheResult)

  And since the dataprovider is an object, how to access the object in
 my java (webservice class).

You'll have to send the object to the service by including it as a
parameter or something.  Honestly I don't do web services, so you
probably know better.  All I can say is that the dataProvider property
contains the data you're looking for, and you want to send it to the
server side using RemoteObject, HTTPService or (in your case)
WebService.


 
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/
 




[flexcoders] updating model.

2005-05-13 Thread Doodi, Hari - BLS CTR
Hi,
Is it possible to update the model declared using mx:Model tag as soon as
user changes a corresponding form element?
For example: I have a following model

mx:Model id=empModel
 empID/
 empName/
 empAddress/
 empCity/
 empState/
 empZipCode/
/mx:Model

I do have corresponding form elements like this for all the model
attributes.
mx:FormItem label=Address:
  mx:TextInput  id=address text={ empModel.empAddress}
width=120 height=20 change=dataChanged=true/
/mx:FormItem

Now what I am trying to do is save the changes made by the user by passing
the entire model instead of getting individual controls text attribute and
assign them to AS VO object. I am able to pass the model but found old
values instead of modified values. I want to update the model with new
values entered by the user and then send the model to the POJO. How to do
this - updating model with latest values from form elements text.

Thanks!
Hari



 
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/
 




RE: [flexcoders] Where is Source Code for Developing Rich Clients with MM Flex?

2005-05-11 Thread Doodi, Hari - BLS CTR
Hi Steve,

I found some problems with chapter 20 about parameters to
Object.registerClass( )method. After the code snippet Text says  This line
of code register our mapping between the fully qualified server-side value
object class name(the first argument) to the constructor of our client-side
value object.

I had a terrible time in implementing this. The second argument is not the
constructor of client-side value object but it should be the fully
qualifying path of client-side value object. If you look at my earlier posts
- saving data from datagrid you can find the problems I have. Once I change
the second argument to fully qualifying path of client-side value object
from constructor everything started working fine.

Thanks!
Hari

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Steven Webster
Sent: Tuesday, May 10, 2005 12:28 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Where is Source Code for Developing Rich Clients
with MM Flex?


 
 I need the code for Chapter 20 especially, as I try to understand it.
 Does anyone have this code? I found a few chapters on their 
 web site, but that is it so far. Maybe that $50.00 wasn't so 
 well spent after all...
 

http://www.iterationtwo.com/flexbook/source.html

We are also making available this single ZIP file, containing all the
source, as it appears in the book chapters. Note that this source has not
been updated to reflect the changes made to Flex by the Flex Updaters. For
the latest source from each chapter, download those above, which have been
checked with Flex Updater 2.

All Source (2,753K)

Click on All Source, and you'll get a download with All the Source
(including
Chapter 20).  

It has been there for about 6 months now...

Hope that helps,

Steven




 
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/
 




RE: [flexcoders] Re: saving data from datagrid

2005-05-10 Thread Doodi, Hari - BLS CTR










Thanks Matt,



 I
found where the problem is. I was following The Flex Book chapter 20 Flex
integration with J2EE - where in the second parameter to Object.registerClass
referred to constructor of ASObject class. This mislead me. When I specify the
AS class name with qualifying path instead of constructor, everything started
working fine. I don't know how to send this bug in the book to the authors.
Can you send a comment to the authors on behalf of me??





Thanks! 
Hari 



-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Matt Chotin
Sent: Monday, May 09, 2005 11:34
PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re:
saving data from datagrid



dataProvider should come
through as java.util.List and it should contain either ASObjects or instances
of your custom VO. It looks like somehow the class registration that you
have isn't working. Make sure that your Object.registerClass call
is correct. You can see in your AMF dump that there is no class type in
the objects being passed so there must be a problem there. Make sure that
you have a typed reference to your AS VO class somewhere to make sure
it's being linked in.



e.g., in your MXML
application:

mx:Script

 var dummy :
MyASVOClass;

/mx:Script



HTH,

Matt















From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Doodi, Hari -
 BLS CTR
Sent: Monday, May 09, 2005 6:26 AM
To: 'flexcoders@yahoogroups.com'
Subject: RE: [flexcoders] Re:
saving data from datagrid





Hi Matt or other flex
gurus/developers




Based on the mail you sent below I need clarifications on ...

(1) When you pass dataprovider as a parameter to RemoteObject method,
will this be treated as ASObject or an array of VOs ?

(2) When I pass dataprovider as is to as the argument to my Java Class
method with java.util.List as input argument I found List is null. When I
display the following info System.out.println(saveList.get(i) :
+saveList.get(i).getClass()); I got flashgateway.io.ASObject. So is there any way to convert
ASObject to custome VO in POJO. When I tried to cast it to custom VO I got an
error occurred during service invocation.





Thanks! 
Hari 



-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Matt Chotin
Sent: Wednesday, May 04, 2005
10:33 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re:
saving data from datagrid



You
can't create a strongly typed array. You just do Array (think of it like
a java.util.ArrayList). I've gotten lost as to what the problem is
here. You received the array of data, you modify it in the DataGrid, now
you want to send the data back. So you can simply pass the dataProvider
as the argument to your Java class right? Write a save method that takes
a java.util.List as the parameter and call it in AS passing in the
dataProvider.



Now I'm
guessing that the problem is that those objects you pass back are not your
EmployeeVO object but instead ASObject? So you need to make sure you do
registerClass or _remoteClass as described in the documentation or the Flex
book. That way you'll get back to having strongly typed objects and
you'll be good to go.



Matt



















From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Doodi, Hari -
 BLS CTR
Sent: Wednesday, May 04, 2005 6:26
AM
To: 'flexcoders@yahoogroups.com'
Subject: RE: [flexcoders] Re:
saving data from datagrid





Thanks
for the advice and clue. I did check the NetworkMonitor and found that array
has values as shown below.

In the
example RestaurantFinder, he is getting individual values from the textinput
controls and assigning them to VO attributes. My case is, I don't have any
textinput controls. What I have on my screen is a editable datagrid. And I
don't want to get values from each cell and assign them to vo( if there is no
other way then I have to do this). 



Come on,
there are some excellent Flex gurus out there Did any one achieved saving data
from editable datagrid on to database? I am desperate to solve this ASAP. I
will be very thankful if some one post code for this.



Also how
to declare, in flex, an array of type employeeVO? Something like this 

var
employeeVOArray:EmployeeVO = new Array( );



I got
compilation error saying found Array where expecting EmployeeVO...



Please
help me out..



Method: gov.bls.ppi.janus.rsgp.manageschedules.controllers.MngScheduleController.saveSchedAdj

Parameter 1: 

name : param1
type
: object

value[array] : 

length[Number] : 5

[0][object] : 

adj_amt_terms_desc[String] :
15.0 10 Days/Net 60 Days 8
adj_category[String] : Net
Price Conversion Factor - Surcharge
adj_factor[String] :
1.2000
adj_month[null] : null
adj_num[Number] : 1
adj_order_applied[String] : 10
adj_reporter_applied_flag[String] : Y
adj_seas_flag[String] : N
adj_sign[String] :
Additive
adj_status[String] : Y
adj_type[String

RE: [flexcoders] Re: saving data from datagrid

2005-05-09 Thread Doodi, Hari - BLS CTR










Hi Matt or other flex gurus/developers



    Based on the mail you sent
below I need clarifications on ...

(1)
When you pass dataprovider
as a parameter to RemoteObject method, will this be treated as ASObject or an
array of VOs ?

(2)
When I pass dataprovider
as is to as the argument to my Java Class method with java.util.List as input
argument I found List is null. When I display the following info System.out.println(saveList.get(i)
: +saveList.get(i).getClass());  I got flashgateway.io.ASObject.
So is there any way to convert ASObject to custome VO in POJO. When I tried to
cast it to custom VO I got an error occurred during service invocation.





Thanks! 
Hari 



-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Matt Chotin
Sent: Wednesday, May 04, 2005
10:33 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re:
saving data from datagrid



You can't create a
strongly typed array. You just do Array (think of it like a
java.util.ArrayList). I've gotten lost as to what the problem is
here. You received the array of data, you modify it in the DataGrid, now
you want to send the data back. So you can simply pass the dataProvider
as the argument to your Java class right? Write a save method that takes
a java.util.List as the parameter and call it in AS passing in the dataProvider.



Now I'm guessing
that the problem is that those objects you pass back are not your EmployeeVO
object but instead ASObject? So you need to make sure you do
registerClass or _remoteClass as described in the documentation or the Flex
book. That way you'll get back to having strongly typed objects and
you'll be good to go.



Matt











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Doodi, Hari - BLS CTR
Sent: Wednesday, May 04, 2005 6:26
AM
To: 'flexcoders@yahoogroups.com'
Subject: RE: [flexcoders] Re:
saving data from datagrid





Thanks for the advice and
clue. I did check the NetworkMonitor and found that array has values as shown
below.

In the example
RestaurantFinder, he is getting individual values from the textinput controls
and assigning them to VO attributes. My case is, I don't have any textinput
controls. What I have on my screen is a editable datagrid. And I don't want to
get values from each cell and assign them to vo( if there is no other way then
I have to do this). 



Come on, there are some
excellent Flex gurus out there Did any one achieved saving data from editable
datagrid on to database? I am desperate to solve this ASAP. I will be very
thankful if some one post code for this.



Also how to declare, in
flex, an array of type employeeVO? Something like this 

var
employeeVOArray:EmployeeVO = new Array( );



I got compilation error
saying found Array where expecting EmployeeVO...



Please help me out..



Method: gov.bls.ppi.janus.rsgp.manageschedules.controllers.MngScheduleController.saveSchedAdj

Parameter 1: 

name : param1
type
: object

value[array] : 

length[Number] : 5

[0][object] : 

adj_amt_terms_desc[String] :
15.0 10 Days/Net 60 Days 8
adj_category[String] : Net
Price Conversion Factor - Surcharge
adj_factor[String] :
1.2000
adj_month[null] : null
adj_num[Number] : 1
adj_order_applied[String] : 10
adj_reporter_applied_flag[String] : Y
adj_seas_flag[String] : N
adj_sign[String] :
Additive
adj_status[String] : Y
adj_type[String] :
Seasonal
irm[String] :
200404
item_sid[Number] :
1.16896E+006
row_change_flag[null] : null
update_date_time[null] : null



[1][object] : 

adj_amt_terms_desc[String] :
15.0 10 Days/Net 60 Days Test 2
adj_category[String] : Net
Price Conversion Factor - Discount
adj_factor[String] :
.1000
adj_month[null] : null
adj_num[Number] : 2
adj_order_applied[String] : 1
adj_reporter_applied_flag[String] : Y
adj_seas_flag[String] : N
adj_sign[String] :
Multiplicative
adj_status[String] : N
adj_type[String] :
Seasonal
irm[String] :
200404
item_sid[Number] :
1.16896E+006
row_change_flag[null] : null
update_date_time[null] : null



[2][object] : 

adj_amt_terms_desc[String] :
15.0 10 Days/Net 60 Days Changed
adj_category[String] :
Discount
adj_factor[String] :
.1000
adj_month[null] : null
adj_num[Number] : 3
adj_order_applied[String] : 10
adj_reporter_applied_flag[String] : Y
adj_seas_flag[String] : N
adj_sign[String] :
Subtractive
adj_status[String] : Y
adj_type[String] :
Seasonal
irm[String] :
200404
item_sid[Number] :
1.16896E+006
row_change_flag[null] : null
update_date_time[null] : null



[3][object] : 

adj_amt_terms_desc[String] :
Values New and Modified
adj_category[String] :
Surcharge
adj_factor[String] :
.3000
adj_month[null] : null
adj_num[Number] : 4
adj_order_applied[String] : 10
adj_reporter_applied_flag[String] : Y
adj_seas_flag[String] : N
adj_sign[String] :
Multiplicative
adj_status[String] : Y
adj_type[String] :
Seasonal
irm[String] :
200404
item_sid[Number] :
1.16896E+006
row_change_flag[null] : null
update_date_time[null] : null



[4

RE: [flexcoders] Re: saving data from datagrid

2005-05-04 Thread Doodi, Hari - BLS CTR
 mind can you
post the code please. Thanks in advance..

Thanks!
Hari

-Original Message-
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
Behalf Of joao_m_fernandes
Sent: Thursday, April 28, 2005 11:57 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: saving data from
datagrid

Hari, 

You can send it back like this:

In AS:
ro.updateMethod(myDataGrid.dataProvider);

with MXML

mx:RemoteObject id=ro ...
 mx:method
name=updateMethod
 mx:arguments

myArray{myDataGrid.dataProvider}/myArray

/mx:arguments
 /mx:method
/mx:RemoteObject

João Fernandes

--- In flexcoders@yahoogroups.com, Doodi,
Hari - BLS CTR
[EMAIL PROTECTED] wrote:
 Hi All,
 
 I have a updatable datagrid on my screen. I
did get data from the
 RemoteObject call from java backend (an array
of value objects).
Data got
 displayed on screen well and user can make
updates. Now my question
is how
 can I send this data from datagrid back to my
javaclass thru
RemoteObject
 call to save on to database. Please advice or
point me to some code
 examples. Thanks in advance..
 
 Thanks!
 Hari








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 the Yahoo! Terms of Service.












RE: [flexcoders] Re: saving data from datagrid

2005-04-29 Thread Doodi, Hari - BLS CTR
Thanks for reply. I am new to these. 
Signature of my java class which returns array of value object is as follows

Public static ItemdetailVO[] getItemDetails(String month);
{
.   
}

when I make a call from mxml file as you mentioned below
ro.updateMethod(myDataGrid.dataProvider);

Can be the signature of my java class method be like this...?
Public static String saveItemDetails(ItemDetailVO itemdetailArray)
{
  System.out.println(from DAO save method array length
+saveAdjVOArray.length);

for(int i=0;isaveAdjVOArray.length;i++)
{
  System.out.println(Factor from save method :
+(ItemAdjApplVO)saveAdjVOArray[i]);
}
}

If I have a save method signature like above and I got length = 5 from first
system print out statement and null from second statement.

How to access individual data elements in each VO in my java class. Please
help. I am reaching my deadlines Thanks in advance..

Thanks!
Hari

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of joao_m_fernandes
Sent: Thursday, April 28, 2005 11:57 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: saving data from datagrid

Hari, 

You can send it back like this:

In AS:
ro.updateMethod(myDataGrid.dataProvider);

with MXML

mx:RemoteObject id=ro ...
   mx:method name=updateMethod
  mx:arguments
  myArray{myDataGrid.dataProvider}/myArray
  /mx:arguments
   /mx:method
/mx:RemoteObject

João Fernandes

--- In flexcoders@yahoogroups.com, Doodi, Hari - BLS CTR
[EMAIL PROTECTED] wrote:
 Hi All,
 
 I have a updatable datagrid on my screen. I did get data from the
 RemoteObject call from java backend (an array of value objects).
Data got
 displayed on screen well and user can make updates. Now my question
is how
 can I send this data from datagrid back to my javaclass thru
RemoteObject
 call to save on to database. Please advice or point me to some code
 examples. Thanks in advance..
 
 Thanks!
 Hari







 
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/
 





[flexcoders] saving data from datagrid

2005-04-28 Thread Doodi, Hari - BLS CTR
Hi All,

I have a updatable datagrid on my screen. I did get data from the
RemoteObject call from java backend (an array of value objects). Data got
displayed on screen well and user can make updates. Now my question is how
can I send this data from datagrid back to my javaclass thru RemoteObject
call to save on to database. Please advice or point me to some code
examples. Thanks in advance..

Thanks!
Hari



 
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/
 





[flexcoders] TabNavigator changing event ?

2005-04-15 Thread Doodi, Hari - BLS CTR
Hi all,

Is there any changing event for TabNavigator container? The reason being...
I have THREE tabs in TabNavigator and whenever user enter/change data on
individual tab and try to navigate to another tab without clicking save
button I required to display an confirmation alter and based on the response
my code should perform action accordingly. What is happening is by the time
alert displayed on the screen the tab already changed because, I think, the
event I am tapping is change. Now comes my question, can I trap any event
before change event can occur so that I can display confirmation alert and
act accordingly. If user choose to cancel I should keep the user on the same
tab from where user is trying to navigate to other tab - How can I achieve
this? By assigning selectedIndex = prevTabIndex? I think this again will
cause chain of events fire. I need expertise help/guidance here.

 I am attaching my mxml file your ref. Thanks in advance for the help.

 tabNivigation.mxml 

Thanks!
Hari



 
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/
 


tabNivigation.mxml
Description: Binary data


RE: [flexcoders] Using RemoteObject to pass data to the Server

2005-04-08 Thread Doodi, Hari - BLS CTR


Hi Abdul,

That will be ok - Passing all values as Strings - with Free Data
Entry form but what about editable DataGrid? Do we have to grab value from
each cell and pass them? This method is too much of . Is there any
workaround method so that I can pass DataProvider as an argument in the
called method?
Like 

mx:Button label=Pass String click=saveData(productList);/

where productList is the dataprovider for the datagrid.

Thanks!
Hari

-Original Message-
From: Abdul Qabiz [mailto:[EMAIL PROTECTED] 
Sent: Saturday, April 02, 2005 12:05 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Using RemoteObject to pass data to the Server


Hi,

You are right, you need to pass all data as arguments in the called method. 


mx:RemoteObject id=remoteService source=RemoteService
mx:method name=echoName result=alert(event.result.toString())/
/mx:RemoteObject

mx:Button label=Pass String click=remoteService.echoName('Some
string');/


Sorry about docs, I understand it should be more better...


-abdul




-Original Message-
From: digital_eyezed [mailto:[EMAIL PROTECTED] 
Sent: Saturday, April 02, 2005 3:59 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Using RemoteObject to pass data to the Server



Hi,

I can't find much documentation on passing the data to the server 
using the remoteObject data service. Everything seems to be about 
getting info from the server. Is there any info around on carrying out 
such tasks? I'm almost certain that its just about filling the 
arguments on the called method but haven't found an example to give me 
confidence.

Al I want to to is pass a VO to a server to be inserted into a 
database via remoteObject, not HTTPService or Web Services.

Thanks in advance.





 
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/
 





FW: [flexcoders] making synchronous method calls ?

2005-04-07 Thread Doodi, Hari - BLS CTR
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
arg14/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

RE: [flexcoders] How to get access to HttpSession in a stateful-c lass

2005-04-07 Thread Doodi, Hari - BLS CTR

Steve,

The link you mentioned below is taking to working with session data , but
I couldn't find any info about How to set values into sessions. What I am
expecting is something like this..

flashgateway.Gateway.getHttpResponse().getSession().setAttribute(attr1,va
lue1);

If you don't mind can you give some code example for the explanation you
said in your earlier mail...

--- basically, you just declare a public var on your application for
---anything you intend passing in as a request param, and then these
---request params are assigned to your public vars.


Thanks!
Hari

-Original Message-
From: Steven Webster [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 05, 2005 6:19 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] How to get access to HttpSession in a stateful-c
lass


Dan,

 This may be a stupid question, but if your flex app is 
 wrapped in in a jsp file (using something like mm:mxml 
 source=.../) can you access variables in request scope?  
 Or can you pass selected variables into a flex app?

There's also a section in the docs Passing Request Data to Flex
Applications:

http://livedocs.macromedia.com/flex/15/flex_docs_en/wwhelp/wwhimpl/js/html/w
whelp.htm?href=2247.htm

basically, you just declare a public var on your application for
anything you intend passing in as a request param, and then these
request params are assigned to your public vars.

Hope that helps,

Steven

--
Steven Webster
Technical Director
iteration::two
 
This e-mail and any associated attachments transmitted with it may contain
confidential information and must not be copied, or disclosed, or used by
anyone other than the intended recipient(s). If you are not the intended
recipient(s) please destroy this e-mail, and any copies of it, immediately.
 
Please also note that while software systems have been used to try to ensure
that this e-mail has been swept for viruses, iteration::two do not accept
responsibility for any damage or loss caused in respect of any viruses
transmitted by the e-mail. Please ensure your own checks are carried out
before any attachments are opened.

-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.9.2 - Release Date: 05/04/2005
 



 
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/
 





[flexcoders] Error: flashgateway.io.ASObject

2005-04-06 Thread Doodi, Hari - BLS CTR

Hi all,
I am getting Error: flashgateway.io.ASObject error message
displayed on weblogic server console when I try to send data back to java
class to save on to database. Can't I pass Object class object over to java
class thru flashgateway using RemoteObject ? I appreciate any explanation.
Basically I want to pass data back to database. Ant Alternative methods??

Here is snippet of my mxml file .
mx:RemoteObject id=mngScheduleController
source=controllers.MngScheduleController showBusyCursor=true   
mx:method name=saveSchedTerms result=alert('Data Updated')
fault=showError(event.fault.faultString)/mx:method
  /mx:RemoteObject
mx:Button label=Save click=saveData() /

Here is function in my .as file..
function saveData()
{   
var prodObj:Object = new Object();
prodObj.itemsid = 1168960;
prodObj.irm = 200404;
prodObj.typeofsale = typeofsale.selectedItem.value;
prodObj.dfbuyer = dfbuyer.selectedItem.value;
prodObj.buyerbox = buyerbox.selectedItem.value;
prodObj.typeofbuyuerdetail = typeofbuyuerdetail.text;
prodObj.contractterms = contractterms.text;
prodObj.freight = freight.selectedItem.value;
prodObj.freightdetail = freightdetail.text;
prodObj.blscontract = blscontract.text;
prodObj.sizeofshipment = sizeofshipment.text;
prodObj.sizeoforder = sizeoforder.text;

mngScheduleController.saveSchedTerms(prodObj);
}
Thanks!
Hari



 
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/
 





RE: [flexcoders] un-selecting a row in datagrid

2005-04-04 Thread Doodi, Hari - BLS CTR

Thanks Gordon, it did work.

Thanks!
Hari

-Original Message-
From: Gordon Smith [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 01, 2005 4:21 PM
To: 'flexcoders@yahoogroups.com'
Subject: RE: [flexcoders] un-selecting a row in datagrid


Try setting dg.selectedIndex = undefined.

- Gordon

-Original Message-
From: Doodi, Hari - BLS CTR [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 01, 2005 1:11 PM
To: 'flexcoders@yahoogroups.com'
Subject: [flexcoders] un-selecting a row in datagrid



Hi,
Does any one know how to un-select an already selected row in a datagrid?
Situation is like this, user can navigate data either by selecting an item
from datagrid or by clicking PrevBtn or NextBtn. When user selected an item
from DG and then used PrevBtn or NextBtn then data displayed on screen is
not for highlighted item in the grid. I want to un-select the item in DG as
soon as user click either PrevBtn or NextBtn? I know there is a
clearSelected( ) method available but the drawback, according to Doc, is it
clears and re-draws the entire list. I don't want to do this because of time
delay if I have huge data in DG. Thanks in advance..

Thanks!
Hari



 
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/
 





RE: [flexcoders] Remote object mapping properties

2005-04-01 Thread Doodi, Hari - BLS CTR










Yes, they should match.





Thanks! 
Hari 



-Original Message-
From: Jeff Krueger
[mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 31, 2005
7:40 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Remote
object mapping properties



Sorry if this is an obvious one, but
I can't find in any documentation that confirms what I am finding.
My question is does the variable in the actionScript class have to be the
same name as the variable in the java class that it is mapping to. From
what I am seeing it does. Can anyone confirm that?



Thanks



Jeff 














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 the Yahoo! Terms of Service.












RE: [flexcoders] Re: PrintJob()

2005-04-01 Thread Doodi, Hari - BLS CTR

Hi Rich,

If you don't mind can you post the working example? I have a similar
requirement to work on. Thanks in adnvance.

Thanks!
Hari

-Original Message-
From: Rich Tretola [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 01, 2005 8:50 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: PrintJob()


Well it appears that the object must be added to the file calling the
print job with an mxml tag and can not be simply created in an
actionscript methohd.

On Apr 1, 2005 7:12 AM, Rich Tretola [EMAIL PROTECTED] wrote:
 Does anyone have any ideas about this ?
 
 
 On Mar 31, 2005 3:06 PM, Rich Tretola [EMAIL PROTECTED] wrote:
  I am trying to print an mlmx file at the same level as the one calling
  the printjob.  Here is my code:
  public function testPrintJob():Void {
  var printJob:PrintJob = new PrintJob();
  var help:Help = new Help();
  mx.core.Application.alert(testProperty : + help.testProperty);
  printJob.start();
  printJob.addPage(0);
  printJob.addPage(help);
  printJob.send();
  delete printJob;
  }
 
  Help.mxml is the object being created in the 2nd lineof the method and
  it is being created correctly as I can read the properties of the file
  through an alert on the next line, bit I am only getting the 1st page
  which is using 0 as the object path (_root).  I have tried using help
  with and without the quotes and can never get it added as a page.
  Anyone have any ideas ?
 
  Rich
 



 
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/
 





RE: [flexcoders] Key class Help

2005-04-01 Thread Doodi, Hari - BLS CTR

Excellent Abdul,

This is what I am look for. Thank you very much for your help.

Thanks!
Hari

-Original Message-
From: Abdul Qabiz [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 01, 2005 1:22 AM
To: flexcoders@yahoogroups.com; 'flexcoders@yahoogroups.com'
Subject: RE: [flexcoders] Key class Help


Hi Hari,

What I understand, you want to assign some keyboard shortcuts to each
control on screen so that when shortcut key is pressed, control get
focussed?

You can easily achieve this using Key object, as demonstrated in code later
in this mail.

I am assuming,

- user would press CTRL + 1, CTRL + 2 ...to focus a control on screen.
- user can press SPACE key to execute associated action with the controls
like Button, CheckBox, RadioButton or any button kind of component. 
- user can use arrow keys to change values in list type of controls like
ComboBox
- user can type in textfield like control

Following example has some controls on screen and pressing CTRL + 1 .. CTRL
+ 5 shifts the focus to corresponding control


I would like to help you my best so that you are successful in creating a
very accessible Flex app.

Please run it to find out more.. Following code is quick  dirty demo, you
can always write a ShortcutManager class which is more easier to use and
managable...

###KeyObjectDemo.mxml###

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml;
initialize=initApp()
mx:Script
![CDATA[

 var keyListener:Object;
 
 function debugTrace(msg)
 {
_ta.text+= msg + newline;
 }

function initApp()
{

keyListener = new Object();
keyListener.onKeyDown = mx.utils.Delegate.create(this,
shorcutHandler);
Key.addListener(keyListener);

}



function shorcutHandler()
{
var bControlPressed:Boolean = Key.isDown(Key.CONTROL);

if(bControlPressed) { //CTRL

if(Key.isDown(49)) { // 1
debugTrace(CTRL + 1);

//set focus to textfield
my_input.setFocus();
}else if(Key.isDown(50)) { //2

debugTrace(CTRL + 2);

//set focus to button
my_btn.setFocus();

  //  my_btn.dispatchEvent({type:click});
}else if(Key.isDown(51)) { //3
debugTrace(CTRL + 3);

my_radio.setFocus();



//  my_radio.selected = true;
//my_btn.dispatchEvent({type:change});

}else if(Key.isDown(52)) { //4
debugTrace(CTRL + 4);

my_check.setFocus();


}else if(Key.isDown(53)) { //5
debugTrace(CTRL + 5);

my_combo.setFocus();
}
}

}
]]
/mx:Script
  mx:TextInput id=my_input focusIn=debugTrace('TextInput focussed')
change=debugTrace('TextInput value changed')/
  mx:Button label=Button id=my_btn focusIn=debugTrace('Button
focussed') click=debugTrace('button pressed')/
  mx:RadioButton label=radio id=my_radio
focusIn=debugTrace('RadioButton focussed') click=debugTrace('Radio button
selected')/
  mx:CheckBox label=Checkbox id=my_check  focusIn=debugTrace('CheckBox
focussed') click=debugTrace('CheckBox change')/
  mx:ComboBox id=my_combo focusIn=debugTrace('ComboBox focussed')
change=debugTrace('ComboBox selection changed')
mx:dataProvider
mx:Array
mx:StringIndia/mx:String
mx:StringUSA/mx:String
mx:StringAustralia/mx:String
/mx:Array
/mx:dataProvider
  /mx:ComboBox
  
  mx:VBox
  mx:Label text=Debug Info:/
mx:TextArea id=_ta text= width=200 height=200/
  /mx:VBox
/mx:Application


Hope that helps..

-abdul



-Original Message-
From: Doodi, Hari - BLS CTR [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 31, 2005 8:48 PM
To: 'flexcoders@yahoogroups.com'
Subject: [flexcoders] Key class Help

Hi list,

I need some help/explanation about Key class. Based on the examples
mentioned in the live docs as well as in Action Script Language Reference I
created the following mxml files. I want to use the Key class to allow the
user use key board to access UI Objects, but no success. Any help
appreciated.


 Keyboard_2.mxml  Keyboard_0.mxml  Keyboard_1.mxml 

Thanks!
Hari



 
Yahoo! Groups Links



 


 
Yahoo! Groups Links



 




 
Yahoo! Groups Links

* To visit your group on the web

[flexcoders] un-selecting a row in datagrid

2005-04-01 Thread Doodi, Hari - BLS CTR

Hi,
Does any one know how to un-select an already selected row in a datagrid?
Situation is like this, user can navigate data either by selecting an item
from datagrid or by clicking PrevBtn or NextBtn. When user selected an item
from DG and then used PrevBtn or NextBtn then data displayed on screen is
not for highlighted item in the grid. I want to un-select the item in DG as
soon as user click either PrevBtn or NextBtn? I know there is a
clearSelected( ) method available but the drawback, according to Doc, is it
clears and re-draws the entire list. I don't want to do this because of time
delay if I have huge data in DG. Thanks in advance..

Thanks!
Hari



 
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/
 





[flexcoders] Key class Help

2005-03-31 Thread Doodi, Hari - BLS CTR
Hi list,

I need some help/explanation about Key class. Based on the examples
mentioned in the live docs as well as in Action Script Language Reference I
created the following mxml files. I want to use the Key class to allow the
user use key board to access UI Objects, but no success. Any help
appreciated.


 Keyboard_2.mxml  Keyboard_0.mxml  Keyboard_1.mxml 

Thanks!
Hari



 
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/
 


Keyboard_2.mxml
Description: Binary data


Keyboard_0.mxml
Description: Binary data


Keyboard_1.mxml
Description: Binary data


[flexcoders] making synchronous method calls ?

2005-03-31 Thread Doodi, Hari - BLS CTR
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
arg14/arg1  
/mx:arguments
/mx:method


Thanks!
Hari



 
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/
 


ScheduleProcessor.as
Description: Binary data


RE: [flexcoders] making synchronous method calls ?

2005-03-31 Thread Doodi, Hari - BLS CTR

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
arg14/arg1  
/mx:arguments
/mx:method


Thanks!
Hari



 
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/
 





RE: [flexcoders] making synchronous method calls ?

2005-03-31 Thread Doodi, Hari - BLS CTR

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
arg14/arg1  
/mx:arguments
/mx:method


Thanks!
Hari



 
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/
 





RE: [flexcoders] making synchronous method calls ?

2005-03-31 Thread Doodi, Hari - BLS CTR

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
arg14/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

RE: [flexcoders] image scroll

2005-03-28 Thread Doodi, Hari - BLS CTR

Thank you very much for guiding me in right direction. Also I have another
problem. This time it is about Rotation. I am able to rotate an image using
rotation attribute. But the problem is image got rotated based on top left
corner. Is there any way to change the registration point of an image from
top left to center of the image?

Thanks!
Hari

-Original Message-
From: Manish Jethani [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 25, 2005 11:28 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] image scroll


On Fri, 25 Mar 2005 08:58:12 -0500, Doodi, Hari - BLS CTR
[EMAIL PROTECTED] wrote:

 Yes, I am zooming image using
 scaleX and scaleY and also I did check my mxml file and parent is not big
 enough to hold the zoomed Image.

A couple of things:

 1.  Use scaleX and scaleY instead of _xscale and _yscale.  The former
will ensure the Loader object resizes and the parent knows about it.
 2.  Why have you set hScrollPolicy and vScrollPolicy to off?  Remove
that and it should work.

Manish


 
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/
 





FW: [flexcoders] image scroll

2005-03-28 Thread Doodi, Hari - BLS CTR



Thank you very much for guiding me in right direction. Also I have another
problem. This time it is about Rotation. I am able to rotate an image using
rotation attribute. But the problem is image got rotated based on top left
corner. Is there any way to change the registration point of an image from
top left to center of the image?

Thanks!
Hari

-Original Message-
From: Manish Jethani [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 25, 2005 11:28 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] image scroll


On Fri, 25 Mar 2005 08:58:12 -0500, Doodi, Hari - BLS CTR
[EMAIL PROTECTED] wrote:

 Yes, I am zooming image using
 scaleX and scaleY and also I did check my mxml file and parent is not big
 enough to hold the zoomed Image.

A couple of things:

 1.  Use scaleX and scaleY instead of _xscale and _yscale.  The former
will ensure the Loader object resizes and the parent knows about it.
 2.  Why have you set hScrollPolicy and vScrollPolicy to off?  Remove
that and it should work.

Manish


 
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/
 





RE: [flexcoders] image scroll

2005-03-25 Thread Doodi, Hari - BLS CTR
Hi Manish,
Thanks for considering my question. Yes, I am zooming image using
scaleX and scaleY and also I did check my mxml file and parent is not big
enough to hold the zoomed Image. I am attaching my file for your reference.
I would like to have scroll bars(both) only for the zoomed image not for
entire window. Thanks in advance.



Thanks!
Hari

-Original Message-
From: Manish Jethani [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 24, 2005 5:10 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] image scroll


On Thu, 24 Mar 2005 16:16:18 -0500, Doodi, Hari - BLS CTR
[EMAIL PROTECTED] wrote:

 I think it is stupid question but I could not figure it out. I
have
 an image in a Loader and I am not getting vertical as well as horizontal
 scroll bars when I zoom in the image. How to get scroll bars (both) on an
 image when user zoom it?  I even tried with canvas but no help. Please
help
 me.

How are you zooming it -- using scaleX anx scaleY?  If the image fits
within its parent container (after zooming), you won't get scrollbars.

Manish


 
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/
 


viewImage.mxml
Description: Binary data


[flexcoders] image scroll

2005-03-24 Thread Doodi, Hari - BLS CTR

Hi,
I think it is stupid question but I could not figure it out. I have
an image in a Loader and I am not getting vertical as well as horizontal
scroll bars when I zoom in the image. How to get scroll bars (both) on an
image when user zoom it?  I even tried with canvas but no help. Please help
me.

Thanks!
Hari



 
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/
 





RE: [flexcoders] which container ?

2005-03-22 Thread Doodi, Hari - BLS CTR

Thank you very much for the advice. I was look at macromedia Flex
ActionScript and MXML API Reference Version 1.5 but couldn't find any
attributes or events or method related to drag. Where can I find API for
drag purpose. Please help me, if you have a sample code can you pass on to
me. Thanks in advance.

Thanks!
Hari

-Original Message-
From: Manish Jethani [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 22, 2005 9:38 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] which container ?


On Tue, 22 Mar 2005 09:26:16 -0500, Doodi, Hari - BLS CTR
[EMAIL PROTECTED] wrote:

 Which container is more appropriate to place an image control and
 manipulate it - zoom, rotate and drag image within the container?

I'd go for Canvas if I want to move/resize the Image control
repeatedly.  Other containers will try to impose their own layout on
the Image control and that might affect performance.

Manish


 
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/
 





RE: [flexcoders] which container ?

2005-03-22 Thread Doodi, Hari - BLS CTR

Thank u v much for the info. I will look into them but I did look at the
explorer sample but found drag and drop with ref with datagrid but what all
I want to move a image around in a container(mostly a canvas as Manish
advised in earlier mail). Does canvas has dragEnter, dragDrop...etc
attributes as DataGrid has.

mx:DataGrid id=dg
dragEnter=doDragEnter(event)
dragExit=doDragExit(event)
dragDrop=doDragDrop(event)
dragOver=doDragOver(event)
mx:columns
mx:Array
.
  .
/mx:Array
/mx:columns
/mx:DataGrid

Thanks!
Hari

-Original Message-
From: Steven Webster [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 22, 2005 10:00 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] which container ?


 
 drag. Where can I find API for drag purpose. 

http://livedocs.macromedia.com/flex/

Try searching for Drag and Drop or Drag Manager.

Or try the Flex Explorer that ships with Flex, there are drag and drop
examples in there.

And Chapter 14 of the Flex Book covers Drag and Drop Manager with examples
as well.

Steven

--
Steven Webster
Technical Director
iteration::two
 
This e-mail and any associated attachments transmitted with it may contain
confidential information and must not be copied, or disclosed, or used by
anyone other than the intended recipient(s). If you are not the intended
recipient(s) please destroy this e-mail, and any copies of it, immediately.
 
Please also note that while software systems have been used to try to ensure
that this e-mail has been swept for viruses, iteration::two do not accept
responsibility for any damage or loss caused in respect of any viruses
transmitted by the e-mail. Please ensure your own checks are carried out
before any attachments are opened.

-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.8.0 - Release Date: 21/03/2005
 



 
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/
 





RE: [flexcoders] which container ?

2005-03-22 Thread Doodi, Hari - BLS CTR

Greatt! That is what I am looking for. Thanks a lot Manish. Now I
know what I should do.

Thanks!
Hari

-Original Message-
From: Manish Jethani [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 22, 2005 12:01 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] which container ?


On Tue, 22 Mar 2005 10:13:54 -0500, Doodi, Hari - BLS CTR
[EMAIL PROTECTED] wrote:

 Does canvas has dragEnter, dragDrop...etc
 attributes as DataGrid has.

Yes, the Canvas does have 'dragEnter', etc., but you'll have to write
handlers for those.  For example, you would write a handler for
'dragOver' to provide visual feedback to the user depending on whether
the Canvas object accepts a drop operation or not.

If you just want to drag the image around the Canvas, you could skip
the drag-n-drop feature of Flex and just do your own dragging
around.  You'll have to write handlers for 'mouseMove', 'mouseDown',
etc.  While dragging the object, you'll have to set the 'x' and 'y'
properties of the object and perhaps make it semi-transparent while
the drag is in progress.

See sample:

http://www.flexauthority.com/Samples/delicious/WhatsCooking.mxml
http://www.flexauthority.com/Samples/codeViewer.cfm?sampleID=13

Manish


 
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/
 





RE: [flexcoders] BIRTHDAY: THE FATHER OF DATA BINDING

2005-03-18 Thread Doodi, Hari - BLS CTR









Matt,



Many Happy Returns of the "{day}"





Thanks! 
Hari 



-Original Message-
From: Steven Webster
[mailto:[EMAIL PROTECTED] 
Sent: Friday, March 18, 2005 4:57
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] BIRTHDAY:
THE FATHER OF DATA BINDING



I believe iT is matt the
father of data bInding chotin'S birthday today ... word from san
fransisco (via,



ahem, Boston) is that matt reaLly
apprecIates a huge fuss Being made aBout Yearly thingS like this...so I 





thought i'd pass on the news so that
everyone can Fuss About it in their own individUaL ways











happy birthday matT ;-)











There are no hidden da vinci code
style messages in this email whatsoever.











--

Steven Webster
Technical Director



iteration::two











This e-mail and any
associated attachments transmitted with it may contain confidential information
and must not be copied, or disclosed, or used by anyone other than the intended
recipient(s). If you are not the intended recipient(s) please destroy this e-mail,
and any copies of it, immediately.

Please also note that while software systems have been used to try to ensure
that this e-mail has been swept for viruses, iteration::two do not accept
responsibility for any damage or loss caused in respect of any viruses
transmitted by the e-mail. Please ensure your own checks are carried out before
any attachments are opened.





















--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.7.3 - Release Date: 15/03/2005
 

RE: [flexcoders] Setting colunm width in a DataGrid column

2005-03-16 Thread Doodi, Hari - BLS CTR
Some times removing width attribute for the last column does the trick.try!

Thanks!
Hari

-Original Message-
From: Yukari Machiyama [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 16, 2005 1:53 PM
To: 'flexcoders@yahoogroups.com'
Subject: RE: [flexcoders] Setting colunm width in a DataGrid column


Hi,

Can you try removing width=100% from DataGrid tag and see if that works?

-Yukari


-Original Message-
From: javawebgrrl [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 16, 2005 9:25 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Setting colunm width in a DataGrid column




Hi All,
I have a datagrid with 3 columns. I want to display the columns 
with the exact width that I have set, but what seems to be happening 
is that the third column grows to fit its text. Is there a way to 
truncate the text that goes into the column to just display the part 
that will fit (truncate the string) ?

Thanks very much for any advice, code pasted below:

mx:DataGrid id=itemsHistoryDataGrid variableRowHeight=true 
dataProvider={noteListResult} vGridLines=false 
change=onNoteGridSelection() width=100% height=100%
mx:columns
mx:Array
mx:DataGridColumn 
columnName=noteDate headerText=Date width=30/
mx:DataGridColumn 
columnName=personId headerText=Sender width=30/ 
mx:DataGridColumn 
columnName=desc headerText=Description width=30/ 
/mx:Array 
/mx:columns
/mx:DataGrid






Yahoo! Groups Links










Yahoo! Groups Links










RE: [flexcoders] dataprovider for mx:Array tag

2005-03-15 Thread Doodi, Hari - BLS CTR
Thank you very much for the tip. It did work. I am able to traverse thru the
result object. 

Thanks!
Hari

-Original Message-
From: Manish Jethani [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 14, 2005 3:25 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] dataprovider for mx:Array tag


On Mon, 14 Mar 2005 15:13:56 -0500, Doodi, Hari - BLS CTR
[EMAIL PROTECTED] wrote:

 thought of achieving this by assigning result object from remote object
 method to a Array and keep track of current product index accordingly
 populate Form Items. But to my surprise there is no property of
dataprovider
 to mx:Array tag.

What are you using the array for? Whatever it is, you could use the
result object directly.

Manish



Yahoo! Groups Links










RE: [flexcoders] dataprovider for mx:Array tag

2005-03-14 Thread Doodi, Hari - BLS CTR
The result will be array of value objects coming from Java. But since the
backend objects are not yet ready I am trying to simulate with xml. 

Here is my remote object syntax.

mx:RemoteObject id=itemDisplay_mngItemsController source=
manageitems.controllers.MngItemsController showBusyCursor=true
mx:method name=getItemList result=itemlist_do=event.result
fault=mx.controls.Alert.show(event.fault.faultstring, 'Remote Call
Error')
mx:arguments
arg1user_id/arg1
arg2month/arg2
/mx:arguments
/mx:method
/mx:RemoteObject 


can we treat itemlist_do as array of objects?

In other words how to display records from a xml file in flex app record by
record?

Thanks!
Hari

-Original Message-
From: Tarik Ahmed [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 14, 2005 3:54 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] dataprovider for mx:Array tag


What is your remote object returning? If it doesn't return an array, you 
could create a function that processes the result of the remote object 
function and manage it that way.



Doodi, Hari - BLS CTR wrote:

Hi,
   I need to develop a UI such that when user click 'Prev' button
system should display previous product info in the queue and if user click
on 'Next' then system should display next product info in the queue. I
thought of achieving this by assigning result object from remote object
method to a Array and keep track of current product index accordingly
populate Form Items. But to my surprise there is no property of
dataprovider
to mx:Array tag. Did any one already developed this kind of functionality
so that I can have a look at it or appreciate any suggestions.

Thanks!
Hari



 
Yahoo! Groups Links



 




 







Yahoo! Groups Links










more on popup

2005-03-09 Thread Doodi, Hari - BLS CTR
Hi all, is it possible to have a stand alone popup , may be can not call it
a popup, means when user click on a button my application should open an
other part of application in a brand new browser window. This second window
should appear even if main parent window is minimized but should be closed
when parent is closed. Any guidance or suggestions! Please help.

Thanks!
Hari





newbie

2005-03-03 Thread Doodi, Hari - BLS CTR
Hi members,

I am new to Flex coding. I did learn a lot from coenraets web site
and also from richinternetapps.com. I do really appreciate them for letting
others to see their code and learn from it. 

I do have couple of issues to resolve. I did try search on Livedocs and
other websites for solutions but didn't find any.

1)  Can any one programmed hotkeys(keyboard shotcuts) in flex ? for
example, instead of using mouse to click on tab of TabNavigator container
users can use keyboard shortcuts say Ctrl+T or Alt+T something like this.
There will be a problem using Alt as accesskey because Alt key has been used
for windows hotkeys. Please help.

2)  My user requires that they should be able to zoom a scanned image
and then move/drag that image. I did accomplished zooming part but unable to
drag the image. Here is the mxml file for your ref.

manageSchedule_3.mxml 
Thanks in advance.

Thanks!
Hari



binRfuAMOkVrx.bin
Description: Binary data