Re: [flexcoders] selected combobox item to datagrid issue

2006-12-04 Thread Husain Kitabi
chargeDataProvider is empty array until a combo item is selected. So 
essentially, it has same data structure.
  Please advise.
  

Yiðit Boyar [EMAIL PROTECTED] wrote:
  i think dataproviders should have the same data-structures.
chargeArray
chargeDataProvider
do these two have the same type of elements inside? (maybe having the name 
and price properties is enough )

  - Original Message 
From: Husain Kitabi [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Sunday, December 3, 2006 4:04:52 PM
Subject: [flexcoders] selected combobox item to datagrid issue


  Hi
  I am having to select an object in combo, on change event of combo, selected 
item should be displayed in datagrid.. I have the following code
   
 private function addChargeToTable( ):void{
if(chargeCombo. selectedIndex !=0)
 chargeDataProvider. push(chargeCombo .selectedItem) ;
   }

   
 mx:ComboBox id=chargeCombo dataProvider= {chargeArray}  labelField= 
name change=addChargeTo Table()/
   
   
   mx:DataGrid id=otherChargesTab le width=100% dataProvider= 
{chargeDataProv ider}
  mx:columns
   mx:Array
mx:DataGridColumn headerText= Fees dataField=name /
mx:DataGridColumn headerText= Price dataField=price /
   /mx:Array
  /mx:columns
 /mx:DataGrid

   
  For some reason, combo.selectedItem isnt displaying in datagrid. Please help
   
  Thanks
  Husain 
  
  
-
  Check out the all-new Yahoo! Mail beta - Fire up a more powerful email and 
get things done faster.  






  
-
  Need a quick answer? Get one in minutes from people who know. Ask your 
question on Yahoo! Answers.  

 

 
-
Everyone is raving about the all-new Yahoo! Mail beta.

[flexcoders] selected combobox item to datagrid issue

2006-12-03 Thread Husain Kitabi
Hi
  I am having to select an object in combo, on change event of combo, selected 
item should be displayed in datagrid.. I have the following code
   
 private function addChargeToTable():void{
if(chargeCombo.selectedIndex !=0)
 chargeDataProvider.push(chargeCombo.selectedItem);
   }

   
 mx:ComboBox id=chargeCombo dataProvider={chargeArray} 
labelField=name change=addChargeToTable()/
   
   
   mx:DataGrid id=otherChargesTable width=100% 
dataProvider={chargeDataProvider}
  mx:columns
   mx:Array
mx:DataGridColumn headerText=Fees dataField=name /
mx:DataGridColumn headerText=Price dataField=price/
   /mx:Array
  /mx:columns
 /mx:DataGrid

   
  For some reason, combo.selectedItem isnt displaying in datagrid. Please help
   
  Thanks
  Husain 

 
-
Check out the all-new Yahoo! Mail beta - Fire up a more powerful email and get 
things done faster.

[flexcoders] flex 2 starter

2006-10-03 Thread Husain Kitabi



HiI am having an application built a year ago on flex 1.5. Now i am upgrading it to flex 2 and have to add additional functionality. The app shall be integrated intoa JBoss 4.0.4 server.Can anyone please advise where to start from? Do i have to download the Flex Dataservices 2 pack and work with it. With 1.5 it was just download and un-war the file and set the web.xml accordingly. I have been trying to do a few things but have no success yet.Pl advise.Thanks  Husainhussain 
		Stay in the know. Pulse on the new Yahoo.com.  Check it out. 

__._,_.___





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

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



Re: [flexcoders] layout components from right in HBox

2006-06-04 Thread Husain Kitabi



Hi  I did   horizontalAlign="right" + width="100%"It worked. Thanks a lot.  Carlos Rovira [EMAIL PROTECTED] wrote:  or use horizontalAlign="right" + width="100%"  On 6/3/06, Ralf Bokelberg [EMAIL PROTECTED]  wrote:  You can use a spacer width a width of 100% as the first element of your hbox. cheers,  ralf On 6/3/06, Husain Kitabi  [EMAIL PROTECTED] wrote:Hi  How to layout components in HBox where if i want to add a button it should appear on the right end of the HBox.Thankshussain  Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates. --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 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 Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 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 .   
 -- ::| Carlos Rovira::| http://www.carlosrovira.com hussain
		New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.





--
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] layout components from right in HBox

2006-06-03 Thread Husain Kitabi



Hi  How to layout components in HBox where if i want to add a button it should appear on the right end of the HBox.Thankshussain
		Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates.





--
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] Flex-Struts configration

2006-02-04 Thread Husain Kitabi



I am just wondering why would you require struts and flex.  anyway, look into web.xml fileSrikanth [EMAIL PROTECTED] wrote:  Hello,Could you please explain the confiration and Integration of the Flex and Struts? Please send a sample code/link for that.Thanks in advance,with Regards,Srikanth  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.   hussain
	
		 Yahoo! Mail - Helps protect you from nasty viruses.





--
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] checkbox cell renderer

2006-01-22 Thread Husain Kitabi



Hi  I have a datagrid with a checkbox renderer. I want to know if checkbox in each row is checked or not.  My datagrid is asmx:DataGrid id="classgroupOfModule" dataProvider="{moduleClassgroupList.currentItem.classgroups}" width="100%"mx:columnsmx:Arraymx:DataGridColumn headerText="Select" columnName="studentSelection"   cellRenderer="com.lsmonline.client.view.util.CheckBoxCellRenderer"/mx:DataGridColumn headerText="Name" columnName="classgroupName" /mx:DataGridColumn headerText="Capacity" columnName="classgroupCapacity"
 /mx:DataGridColumn headerText="Current Enrol" columnName="currentEnrolments" //mx:Array/mx:columns/mx:DataGridShould i use mx.controls.Checkbox as my renderer or should i customise it. In my customised renderer i do nothing really. My requirement is to get the selected rows which the user has checked.Please advise.  ThanksHusain   
		  
What are the most popular cars?  Find out at Yahoo! Autos






--
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] checkbox in repeater

2005-10-25 Thread Husain Kitabi



Hi
This works!!

Thanks.Matt Chotin [EMAIL PROTECTED] wrote:









You should have access to mods as a 2-d array.

mods[i][j]

every mods[i] is the array of checkboxes for the listModules repeater.

For (var i:Number=0; i  mods.length; i++)
{
 For (var j:Number=0; j  mods[i].length; j++)
 {
 Trace(mods[i][j].label + ‘ = ‘ + mods[i][j].selected);
 }
}

Haven’t tested this but this should hopefully get you on track.

Matt





From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Husain KitabiSent: Friday, October 21, 2005 8:35 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] checkbox in repeater


Hi

I am having a repeater - repeater - checkbox. 



mx:Repeater id="list" dataProvider="{courseDtos}"
mx:HBox mouseDown="slideOpen(event.target.repeaterIndices[0])"
mx:Label text="{list.currentItem.courseName}"/
/mx:HBox

mx:VBox id="detail" marginLeft="10" marginBottom="10" height="0" vScrollPolicy="off" hScrollPolicy="off"
mx:Repeater id="listModules" dataProvider="{list.currentItem.modules}"

mx:CheckBox id="mods" label="{listModules.currentItem.moduleName}"/
/mx:Repeater
/mx:VBox

/mx:Repeater


I need the values of mods. I tried the following in my script

function getSelectedModules(){

var len= list.dataProvider.length;
var str = "";
for(var j=0;jlen ;j++){
for(var i=0; ilistModules[j].dataProvider.length;i++){
str = str + '\n' + listModules[j].mods[i].label;
}

}
mx.controls.Alert.show("Checbox :"+ str);
}

This returns me undefined. Any ideas how to get checkbox values

Regards
hussain



Yahoo! FareChase - Search multiple travel sites in one click. hussain
		 Yahoo! FareChase - Search multiple travel sites in one click.

 

 





--
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] checkbox in repeater

2005-10-23 Thread Husain Kitabi



Pl help!Husain Kitabi [EMAIL PROTECTED] wrote:

Hi
I am having a repeater - repeater - checkbox. 


mx:Repeater id="list" dataProvider="{courseDtos}"
mx:HBox mouseDown="slideOpen(event.target.repeaterIndices[0])"
mx:Label text="{list.currentItem.courseName}"/
/mx:HBox

mx:VBox id="detail" marginLeft="10" marginBottom="10" height="0" vScrollPolicy="off" hScrollPolicy="off"

mx:Repeater id="listModules" dataProvider="{list.currentItem.modules}"

mx:CheckBox id="mods" label="{listModules.currentItem.moduleName}"/
/mx:Repeater
/mx:VBox

/mx:Repeater


I need the values of mods. I tried the following in my script

function getSelectedModules(){

var len= list.dataProvider.length;
var str = "";
for(var j=0;jlen ;j++){
for(var i=0; ilistModules[j].dataProvider.length;i++){
str = str + '\n' + listModules[j].mods[i].label;
}

}
mx.controls.Alert.show("Checbox :"+ str);

}

This returns me undefined. Any ideas how to get checkbox values

Regardshussain


Yahoo! FareChase - Search multiple travel sites in one click. hussain
		 Yahoo! FareChase - Search multiple travel sites in one click.

 

 





--
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] Combobox cell renderer and dynamic dataprovider

2005-10-18 Thread Husain Kitabi



Hi,
I am having a datagrid which requires a ComboboxCellrender in one column. I created the renderer but am not able to pass an array dynamically as dataprovider. Also I require to set the label: and data: value of the combo's items.
My dataprovider would be an array of value objects.
Has anyone done something like this before?.

Pl advise

Regards
Husainhussain
		 Yahoo! Music Unlimited - Access over 1 million songs. Try it free.





--
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] scrollbars on panels

2005-10-17 Thread Husain Kitabi



HiI tried minHeight but no success. Any idea why does it happen.

Regards
Philippe Maegerman [EMAIL PROTECTED] wrote:


If I remember well, some people solved the problem by applying minHeight="1", you should search the archives.

Philippe Maegerman


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Husain KitabiSent: dimanche 16 octobre 2005 18:42To: flexcoders@yahoogroups.comSubject: Re: [flexcoders] scrollbars on panels

Hi
I tried using that, but no success.
I also get a warning message when I used parent.height.

Btw, I replaced my panel with accordion container. Now the scroll disappeared from the HBox and appeared in the accordion. 

My requirement is a panel.

Regards
HusainManish Jethani [EMAIL PROTECTED] wrote:
On 10/15/05, Husain Kitabi [EMAIL PROTECTED] wrote: mx:HBox xmlns:mx="http://www.macromedia.com/2003/mxml" xmlns="*" xmlns:lsmclassgroup="com.lsmonline.client.dto.*" xmlns:lclassgroupView="com.lsmonline.client.view.course.classgroup.*" height="100%"  mx:Panel title= "Create Classgroup" id="classgroupRegisterPanel" vScrollPolicy="auto" height="100%" In my viewstack I add this component as lclassgroup:classgroupRegister id="classgroupReg" label="Classgroup" width="100%" height="100%" / classgroupRegister is a HBox with 2 panels. I require each panel to have its own scroll bar. What I am getting now is scroll bar on HBox.Try setting the heights of the panels to
 "{parent.height}" -- whereparent would be a reference to the ViewStack.


Yahoo! Music Unlimited - Access over 1 million songs. Try it free. 
--**STATEMENT OF CONFIDENTIALITY** 
This e-mail and any attached files are confidential and intended solely for the use of the individual to whom it is addressed. If you have received this email in error please send it back to the person that sent it to you. Any views or opinions presented are solely those of author and do not necessarily represent those the Emakina Company. Unauthorized publication, use, dissemination, forwarding, printing or copying of this email and its associated attachments is strictly prohibited.
We also inform you that we have checked that this message does not contain any virus but we decline any responsability in case of any damage caused by an a non detected virus.--hussain
		 Yahoo! Music Unlimited - Access over 1 million songs. Try it free.





--
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] scrollbars on panels

2005-10-16 Thread Husain Kitabi



Hi
I tried using that, but no success.
I also get a warning message when I used parent.height.

Btw, I replaced my panel with accordion container. Now the scroll disappeared from the HBox and appeared in the accordion. 

My requirement is a panel.

Regards
HusainManish Jethani [EMAIL PROTECTED] wrote:
On 10/15/05, Husain Kitabi [EMAIL PROTECTED] wrote: mx:HBox xmlns:mx="http://www.macromedia.com/2003/mxml" xmlns="*" xmlns:lsmclassgroup="com.lsmonline.client.dto.*" xmlns:lclassgroupView="com.lsmonline.client.view.course.classgroup.*" height="100%"  mx:Panel title= "Create Classgroup" id="classgroupRegisterPanel" vScrollPolicy="auto" height="100%" In my viewstack I add this component as lclassgroup:classgroupRegister id="classgroupReg" label="Classgroup" width="100%" height="100%" / classgroupRegister is a HBox with 2 panels. I require each panel to have its own scroll bar. What I am getting now is scroll bar on HBox.Try setting the heights of the panels to
 "{parent.height}" -- whereparent would be a reference to the ViewStack.
		 Yahoo! Music Unlimited - Access over 1 million songs. Try it free.





--
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] scrollbars on panels

2005-10-15 Thread Husain Kitabi



mx:HBox xmlns:mx="http://www.macromedia.com/2003/mxml" xmlns="*" xmlns:lsmclassgroup="com.lsmonline.client.dto.*" xmlns:lclassgroupView="com.lsmonline.client.view.course.classgroup.*" height="100%" 
mx:Panel title=
"Create Classgroup" id="classgroupRegisterPanel" vScrollPolicy="auto" height="100%"

In my viewstack I add this component as
lclassgroup:classgroupRegister id="classgroupReg" label="Classgroup" width="100%" height="100%" /


classgroupRegister is a HBox with 2 panels. I require each panel to have its own scroll bar. What I am getting now is scroll bar on HBox.

I do have the percentage height set. I also tried the vScrollPolicy. Using vScrollPolicy shows the scroll area but no bar.

Pl advise
Thanks
HusainManish Jethani [EMAIL PROTECTED] wrote:
On 10/15/05, Husain Kitabi [EMAIL PROTECTED] wrote: I have a Canvas HBox Panel1 Panel2 /HBox CanvasWhat's the MXML source look like? This canvas goes into my viewstack. I need a scroll bar in Panel 1. But what happens is it shows scroll bar on canvas. So both the panels move up and down. I tried using vscrollPolicy on each component, but not reached a solution yet.Have you set height="100%" on the HBox? Have you set percentageheights on the Panel's?
		 Yahoo! Music Unlimited - Access over 1 million songs. Try it free.





--
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] DataGridColumn display issue

2005-10-14 Thread Husain Kitabi



Hi
I have a value object 

ClassgroupVO.as

classgroupVenue:String;
classgroupCapacity:String
module:ModuleVO
-

ModuleVO.as

moduleName:String;



In my datagrid column i want to display moduleName. My dataprovider is an array of ClassgroupVO value objects sent from remoteobject


I tried to use
mx:DataGridColumn columnName="classgroupVenue" headerText="Classgroup Venue" /mx:DataGridColumn columnName="classgroupCapacity" headerText="Classgroup Capacity"/mx:DataGridColumn columnName="module.moduleName" headerText="Module"/

The first 2 columns are fine. But module.moduleName -it does not display anything. Has anybody done something like this. Pl advise.

Regards
Husain
hussain
		 Yahoo! Music Unlimited - Access over 1 million songs. Try it free.





--
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] DataGridColumn display issue

2005-10-14 Thread Husain Kitabi



OTT?
Please tell me about labelFunction.

Thanks
HusainAllen Manning [EMAIL PROTECTED] wrote:
Custom cell renderer might be a bit OTT for this, labelFunction would be agood start.Best,Allen-Original Message-From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] OnBehalf Of Darron J. SchallSent: 14 October 2005 14:10To: flexcoders@yahoogroups.comSubject: Re: [flexcoders] DataGridColumn display issueHusain Kitabi wrote: I tried to use  headerText="Classgroup Venue" /  headerText="Classgroup Capacity"/  headerText="Module"/  The first 2 columns are fine. But module.moduleName - it does not  display anything. Has anybody done something like this. Pl
 advise.You need to create a custom cell renderer. The default cell renderer only allows you to go "1 deep" into an object, so you have to createa cell renderer that can understand column names that use a path to get deeper into a object.Heres some partial code to give you an idea.. the entire cell renderer will be found in Flex By Example with sample usage. This code would go inside a "PathCellRenderer.as" file that creates a Label component to render text.private function setValue( str:String, item:Object, selection:String):Void{if ( item == undefined ) {label.visible = false;return;}label.visible = true;// Split up the complex path into piecesvar path = getDataLabel().split(".");// "dot down" to the item to displayvar toDisplay = item[ path[0] ];for ( var i:Number = 1; i  path.length; i++ ) {toDisplay = toDisplay[ path[i] ];}label.text =
 toDisplay;}Flex by example will ship on October 24th, I believe. :-)-d--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links-- No virus found in this incoming message.Checked by AVG Anti-Virus.Version: 7.0.344 / Virus Database: 267.11.14/131 - Release Date: 12/10/2005-- No virus found in this outgoing message.Checked by AVG Anti-Virus.Version: 7.0.344 / Virus Database: 267.11.14/131 - Release Date: 12/10/2005 Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM~-
 --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 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/hussain
		 Yahoo! Music Unlimited - Access over 1 million songs. Try it free.





--
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] events issue

2005-10-03 Thread Husain Kitabi



Hi
Thanks for reply.
I just found out that I had created controller object in more than one place. This was the cause.
It is now sorted.
Thanks again
HusainAbdul Qabiz [EMAIL PROTECTED] wrote:


Hi,

Can you post the sample-but-complete code, so that we can see what is going wrong?

-abdul


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Husain KitabiSent: Saturday, October 01, 2005 8:48 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] events issue

Hi
I am having a problem with button click event. When I click a button, it makes a call and talks to the remoteObject. But it does that 5times!
If I click login button, it logs me into the application but shows 5 alert windows saying I have logged in - it has to show just one.Onthe server console(of jboss) i see println 5 times. Same is the problem everywhere a button is clicked.

Any ideas?

Regards
Husainhussain 


Yahoo! for GoodClick here to donate to the Hurricane Katrina relief effort. hussain
		Yahoo! for Good 
Click here to donate to the Hurricane Katrina relief effort. 






--
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] events issue

2005-10-01 Thread Husain Kitabi



Hi
I am having a problem with button click event. When I click a button, it makes a call and talks to the remoteObject. But it does that 5times!
If I click login button, it logs me into the application but shows 5 alert windows saying I have logged in - it has to show just one.Onthe server console(of jboss) i see println 5 times. Same is the problem everywhere a button is clicked.

Any ideas?

Regards
Husainhussain
		Yahoo! for Good 
Click here to donate to the Hurricane Katrina relief effort. 






--
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] remoteobjects

2005-09-28 Thread Husain Kitabi



For single page applications my remoteObjects work well.. My problems come when I use viewstacks.
I am not sure if I am declaring my remoteservices in the right place. At the mo, i do it in the canvas where my form is.

Regards
Tracy Spratt [EMAIL PROTECTED] wrote:









Perhaps this example, based on the examples in Flex Explorer, will help.
http://www.cflex.net/showfiledetails.cfm?ChannelID=1Object=FileobjectID=18

Tracy





From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Husain KitabiSent: Tuesday, September 27, 2005 7:15 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] remoteobjects


Hi

What is the best way to create a remote object in an application. My application has viewstacks/accordions. And how to call that remoteobject in my delegate actionscript.



Regards

Husain 
__Do You Yahoo!?Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com hussain
		Yahoo! for Good 
Click here to donate to the Hurricane Katrina relief effort. 






--
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] remoteobjects

2005-09-27 Thread Husain Kitabi



Hi
What is the best way to create a remote object in an application. My application has viewstacks/accordions. And how to call that remoteobject in my delegate actionscript.

Regards
Husain __Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection around http://mail.yahoo.com 





--
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] alert throwing error

2005-09-22 Thread Husain Kitabi



Hi
I use a simple alert in my mxml script.

function abc(){
alert(moduleSelectedItem);
}

It throws me this error1 Error found. Error /WEB-INF/flex/user_classes/com/lonline/client/view/course/classgroup/classgroupRegister.mxml:29 
There is no method with the name 'alert'.

Any ideas?
Regards
Husain

		Yahoo! for Good 
Click here to donate to the Hurricane Katrina relief effort. 






--
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] namespace problems

2005-09-21 Thread Husain Kitabi



Hi
Can you please comment again.I'm just stuck at that error.

Regards
HusainTracy Spratt [EMAIL PROTECTED] wrote:









Same situation? Accordion also has deferred Instantiation as the default.
Tracy





From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Husain KitabiSent: Monday, September 19, 2005 12:44 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] namespace problems


Hi

Thanks alot.

Setting creationPolicy worked. However, in one of my stack i have an accordion and that seems to be giving a problem now.



I have one more problem rising here. How wouldi call my value object in an accordion in a stack.



Regards

HusainTracy Spratt [EMAIL PROTECTED] wrote:

Any chance case 1 is caused by the deferred instantiation of theviewstack? "logservices" does not exist until you(user) clicks on it.Or set creationPolicy="all" on the ViewStack.In case 2, have you tried putting the xmlns="*" on the root tag of thecomponent, instead of on the declaration in index.mxml?Tracy-Original Message-From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] OnBehalf Of relisanhard52Sent: Sunday, September 18, 2005 9:59 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] namespace problemsHiI have my application spread over a number of mxml components. But something seems to be giving a problem when it comes to xmlns.My application structure isapp index.mxmllogin loginPage.mxml loginService.mxmlcomponent componentCanvas5.mxml componentCanvas6.mxml componentService.mxmlIn my index.mxmlxmlns:lsmlogin="login.*"mx:ViewStack id="loginPageStack" width="100%" lsmlogin:loginPage id="appLogin" /   lsmlogin:loginService id="logservices"/   /mx:ViewStackIn my delegate class, when I say mx.core.Application.application.logservicesIt returns me null object.Case 2:When in my loginPage.mxml I add loginService id="logservices" xmlns="*"/ It returns me the following errorError /ui/lsmflex/login/loginPage.mxml:40 Don't know how to parse element "*:loginService". It is not a known type or a property of mx.containers.Canvas.Error /ui/lsmflex/index.mxml:13 Don't know how to parse element "login.*:loginPage". It is not a known type or a property of mx.core.Application.Any ideas whats wrong? And how do I set my classpath in flex-config.xmlRegardsHusain--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives:http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
hussain
__Do You Yahoo!?Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com hussain__Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection around http://mail.yahoo.com 





--
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] namespace problems

2005-09-21 Thread Husain Kitabi



Hi
How would my classpath element look like if i have my mxml in

ui/lsmflex/login/mxmlcomponents

I have my AS files in user_classes of flex.

Regards
HusainHusain Kitabi [EMAIL PROTECTED] wrote:

Hi
Can you please comment again.I'm just stuck at that error.

Regards
HusainTracy Spratt [EMAIL PROTECTED] wrote:









Same situation? Accordion also has deferred Instantiation as the default.
Tracy





From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Husain KitabiSent: Monday, September 19, 2005 12:44 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] namespace problems


Hi

Thanks alot.

Setting creationPolicy worked. However, in one of my stack i have an accordion and that seems to be giving a problem now.



I have one more problem rising here. How wouldi call my value object in an accordion in a stack.



Regards

HusainTracy Spratt [EMAIL PROTECTED] wrote:

Any chance case 1 is caused by the deferred instantiation of theviewstack? "logservices" does not exist until you(user) clicks on it.Or set creationPolicy="all" on the ViewStack.In case 2, have you tried putting the xmlns="*" on the root tag of thecomponent, instead of on the declaration in index.mxml?Tracy-Original Message-From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] OnBehalf Of relisanhard52Sent: Sunday, September 18, 2005 9:59 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] namespace problemsHiI have my application spread over a number of mxml components. But something seems to be giving a problem when it comes to xmlns.My application structure isapp index.mxmllogin loginPage.mxml loginService.mxmlcomponent componentCanvas5.mxml componentCanvas6.mxml componentService.mxmlIn my index.mxmlxmlns:lsmlogin="login.*"mx:ViewStack id="loginPageStack" width="100%" lsmlogin:loginPage id="appLogin" /   lsmlogin:loginService id="logservices"/   /mx:ViewStackIn my delegate class, when I say mx.core.Application.application.logservicesIt returns me null object.Case 2:When in my loginPage.mxml I add loginService id="logservices" xmlns="*"/ It returns me the following errorError /ui/lsmflex/login/loginPage.mxml:40 Don't know how to parse element "*:loginService". It is not a known type or a property of mx.containers.Canvas.Error /ui/lsmflex/index.mxml:13 Don't know how to parse element "login.*:loginPage". It is not a known type or a property of mx.core.Application.Any ideas whats wrong? And how do I set my classpath in flex-config.xmlRegardsHusain--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives:http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
hussain
__Do You Yahoo!?Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com hussain
__Do You Yahoo!?Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com hussain
		Yahoo! for Good 
Click here to donate to the Hurricane Katrina relief effort. 






--
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] namespace problems

2005-09-20 Thread Husain Kitabi



Hi Tracy
Tks again for your email.
The problem seems to go off temporarily only to come back again!

Btw, my still searching for my second issue:
I have one more problem rising here. How wouldi call my value object inmy command or delegate class from an accordion in a stack.

Regs
Husain
Tracy Spratt [EMAIL PROTECTED] wrote:









Same situation? Accordion also has deferred Instantiation as the default.
Tracy





From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Husain KitabiSent: Monday, September 19, 2005 12:44 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] namespace problems


Hi

Thanks alot.

Setting creationPolicy worked. However, in one of my stack i have an accordion and that seems to be giving a problem now.



I have one more problem rising here. How wouldi call my value object in an accordion in a stack.



Regards

HusainTracy Spratt [EMAIL PROTECTED] wrote:

Any chance case 1 is caused by the deferred instantiation of theviewstack? "logservices" does not exist until you(user) clicks on it.Or set creationPolicy="all" on the ViewStack.In case 2, have you tried putting the xmlns="*" on the root tag of thecomponent, instead of on the declaration in index.mxml?Tracy-Original Message-From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] OnBehalf Of relisanhard52Sent: Sunday, September 18, 2005 9:59 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] namespace problemsHiI have my application spread over a number of mxml components. But something seems to be giving a problem when it comes to xmlns.My application structure isapp index.mxmllogin loginPage.mxml loginService.mxmlcomponent componentCanvas5.mxml componentCanvas6.mxml componentService.mxmlIn my index.mxmlxmlns:lsmlogin="login.*"mx:ViewStack id="loginPageStack" width="100%" lsmlogin:loginPage id="appLogin" /   lsmlogin:loginService id="logservices"/   /mx:ViewStackIn my delegate class, when I say mx.core.Application.application.logservicesIt returns me null object.Case 2:When in my loginPage.mxml I add loginService id="logservices" xmlns="*"/ It returns me the following errorError /ui/lsmflex/login/loginPage.mxml:40 Don't know how to parse element "*:loginService". It is not a known type or a property of mx.containers.Canvas.Error /ui/lsmflex/index.mxml:13 Don't know how to parse element "login.*:loginPage". It is not a known type or a property of mx.core.Application.Any ideas whats wrong? And how do I set my classpath in flex-config.xmlRegardsHusain--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives:http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
hussain
__Do You Yahoo!?Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com hussain
		Yahoo! for Good 
Click here to donate to the Hurricane Katrina relief effort. 






--
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: checkbox in repeater tag

2005-09-09 Thread Husain Kitabi



Hi Rajesh
Thanks for your email
I dint get the last part though.

You can pretty much convert this to use with checkbox.

How to convert combobox into checkbox?

Regards
Husain




Rajesh Jayabalan [EMAIL PROTECTED] wrote:
Hi,I had the same problem, I found out that you cannot dynamicallycreate id in the repeater tag.When you create a checkbox in an array you will get an array of checkboxes and you can go thru them in a for loop to find their values.. Here I am doing it with a comboboxmx:Repeater id="att" dataProvider="{attArr.Attribute}" mx:HBox  mx:ComboBox id="itatt"dataProvider="{mx.utils.ArrayUtil.toArray(att.currentItem.Attvalues)}"width="150" height="18"/ /mx:HBox /mx:Repeaterand in the AS my for loop looks likevar atts:String;for (var i = 0; i  itatt.length;
 i++){selectedItem = itatt[i].selectedItem;if (selectedItem != null  selectedItem.label != null){if (atts == null){ atts = new String();}atts = atts+itatt[i].labelField;atts = atts+": ";atts = atts+selectedItem.label;if (i  itatt.length-1){ atts = atts+", ";}} You can pretty much convert this to use with checkbox.Rajesh J--- In flexcoders@yahoogroups.com, "relisanhard52"[EMAIL PROTECTED] wrote: Hi I have a repeater tag which goes through an array. In my tag, i create  a checkbox. I want my check box id to be created dynamically. I use  mx:CheckBox id="{list.currentItem.myObjectId}"  label="{list.currentItem.myObjectName}"/  But it throws an error saying id is not a valid identifier. Apparently  it
 does not throw any error on label and it works perfect.  Any ideas how to create the id dynamically.  Regards Husainhussain__Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection around http://mail.yahoo.com 





--
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
  
  
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.