[flexcoders] Re: embedding a swf file in html

2008-01-07 Thread pateyog
I am using Flex 2.01 which does not support run time locale switching. 
I have generated swf for each of the locale and have placed in their
respective locale folder. What I am trying to achieve is to let the user
select the locale from the wrapper html and embedd the swf from the
selected locale folder.
The wrapper is in the parent folder

-Yogesh

--- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED]
wrote:

 On Friday 04 Jan 2008, pateyog wrote:
   embed src=en_US/main.swf quality=high bgcolor=#ff
 ...
  However if put the main.html is in en_US and update the path to look
  for main.swf from the same folder it works OK.

 Your embed path is set to look in 'en_US/'.

 --
 Tom Chiverton
 Helping to authoritatively participate low-risk m-commerce
 on: http://thefalken.livejournal.com

 

 This email is sent for and on behalf of Halliwells LLP.

 Halliwells LLP is a limited liability partnership registered in
England and Wales under registered number OC307980 whose registered
office address is at Halliwells LLP, 3 Hardman Square, Spinningfields,
Manchester, M3 3EB.  A list of members is available for inspection at
the registered office. Any reference to a partner in relation to
Halliwells LLP means a member of Halliwells LLP.  Regulated by The
Solicitors Regulation Authority.

 CONFIDENTIALITY

 This email is intended only for the use of the addressee named above
and may be confidential or legally privileged.  If you are not the
addressee you must not read it and must not use any information
contained in nor copy it nor inform any person other than Halliwells LLP
or the addressee of its existence or contents.  If you have received
this email in error please delete it and notify Halliwells LLP IT
Department on 0870 365 2500.

 For more information about Halliwells LLP visit www.halliwells.com.





[flexcoders] embedding a swf file in html

2008-01-04 Thread pateyog
I am trying to embed the generated swf file in an html which lies in
the parent directory and am not able to do so here is the detail

root folder contains main.html
under root folder is en_US which contains main.swf

here is my object tag in the main.html
object classid=clsid:D27CDB6E-AE6D-11cf-96B8-44455354
id=main width=100% height=100%
 
codebase=http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab;
param name=movie value=en_US/main.swf /
param name=quality value=high /
param name=bgcolor value=#ff /
param name=allowScriptAccess value=sameDomain /
embed src=en_US/main.swf quality=high bgcolor=#ff
width=100% height=100% name=main align=middle
play=true
loop=false
quality=high
allowScriptAccess=sameDomain
type=application/x-shockwave-flash
pluginspage=http://www.adobe.com/go/getflashplayer;
/embed
/object

This does not work.  

However if put the main.html is in en_US and update the path to look
for main.swf from the same folder it works OK.

Any help here will be appreciated.





[flexcoders] html wrapper

2007-12-05 Thread pateyog
I am trying to extend the height of the html wrapper such that it
would get a scroll instead of the swf. Here is what I am trying to
achieve:

In my html wrapper I have 

Header (some html content)
Object tag that includes my varying height flex swf
Footer (some html content)

What I am trying to achieve is that the swf application should not
display a scrollbar and should extend its height based on the content.
I managed to make the application height variable by setting the
tabNavigator that it include with resizeToContent as true. However
when I run the application inside the html wrapper my SWF content gets
clipped. I would like the object tag to increase or decrease its
height and not clip the content.

Any help here would be appreciated.





[flexcoders] Hiding a datagrid column header

2007-11-27 Thread pateyog
I have a requirement when I have to display a table data without
displaying the column header. I plan on using a datagrid for this
purpose. How do you hide hide the column header row of a data grid.




[flexcoders] Re: Style Manager

2007-06-06 Thread pateyog
Yes that is the problem. I got pass the problem by using the
StyleEvent and to check for Completion of loading the style swf.
However this caused another issues i.e it gives flicker on the UI with
the default being shown first followed by the net cascaded style.
-Yogesh


--- In flexcoders@yahoogroups.com, Gordon Smith [EMAIL PROTECTED] wrote:

 Each call to laodStyleDeclarations() starts an asynchronous loading
 process which completes at some time in the future. Could the problem be
 that they aren't completing in the order they start?
  
 - Gordon
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of pateyog
 Sent: Monday, June 04, 2007 7:59 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Style Manager
 
 
 
 I am trying to use the run-time CSS using StyleManager and am getting
 bizzare behavior when loading multiple css files. My code looks
 something like 
 
 StyleManager.loadStyleDeclarations(styles/core.swf);
 //Add the service specific styles from the argument passed
 StyleManager.loadStyleDeclarations(styles/RegistrationForm.swf);
 //Add the locale and brand specific styles
 StyleManager.loadStyleDeclarations(styles/en/custom.swf);
 StyleManager.loadStyleDeclarations(styles/en_US/custom.swf);
 StyleManager.loadStyleDeclarations(styles/en_US/brand1/custom.swf);
 
 What happens when I run this is the cascading effect from these
 compiled CSS files does not happen. Keep hitting refresh and once a
 while it will work. 
 
 Thanks in advance for suggesting an appropriate solution.





[flexcoders] Style Manager

2007-06-04 Thread pateyog
I am trying to use the run-time CSS using StyleManager and am getting
bizzare behavior when loading multiple css files. My code looks
something like 

StyleManager.loadStyleDeclarations(styles/core.swf);
//Add the service specific styles from the argument passed
StyleManager.loadStyleDeclarations(styles/RegistrationForm.swf);
//Add the locale and brand specific styles
StyleManager.loadStyleDeclarations(styles/en/custom.swf);
StyleManager.loadStyleDeclarations(styles/en_US/custom.swf);
StyleManager.loadStyleDeclarations(styles/en_US/brand1/custom.swf);

What happens when I run this is the cascading effect from these
compiled CSS files does not happen. Keep hitting refresh and once a
while it will work. 

Thanks in advance for suggesting an appropriate solution.



[flexcoders] Re: Style Manager

2007-06-04 Thread pateyog
Tom I tried as per your suggestion but did not work, I also Tried
calling the different styles sheet mentioned in my original message 
from preinitialize to creation complete and each of these places the
result was the same. Probably the one that loads last takes the
precedence and is not according to the order in which it is invoded.


--- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED]
wrote:

 On Monday 04 Jun 2007, pateyog wrote:
  Thanks in advance for suggesting an appropriate solution.
 
 Try setting the 'update' parameter to 'false' in all but the last 
 loadStyleDeclarations()
 
 -- 
 Tom Chiverton
 Helping to dynamically engineer viral products
 on: http://thefalken.livejournal.com
 
 
 
 This email is sent for and on behalf of Halliwells LLP.
 
 Halliwells LLP is a limited liability partnership registered in
England and Wales under registered number OC307980 whose registered
office address is at St James's Court Brown Street Manchester M2 2JF.
 A list of members is available for inspection at the registered
office. Any reference to a partner in relation to Halliwells LLP means
a member of Halliwells LLP. Regulated by the Law Society.
 
 CONFIDENTIALITY
 
 This email is intended only for the use of the addressee named above
and may be confidential or legally privileged.  If you are not the
addressee you must not read it and must not use any information
contained in nor copy it nor inform any person other than Halliwells
LLP or the addressee of its existence or contents.  If you have
received this email in error please delete it and notify Halliwells
LLP IT Department on 0870 365 8008.
 
 For more information about Halliwells LLP visit www.halliwells.com.





[flexcoders] RTL workaround

2006-12-13 Thread pateyog
As Flash 9 and hence Flex2 does not support RTL inputs. I have heard
there is a workaround for this. Can any body on the board point me to
an example of how this can be achieved.
Thanks in advance.




[flexcoders] porting tool

2006-12-11 Thread pateyog
We have recently evaluated Flex 2 for our next generation product.
Exerybody was excited at the look and feel of the pilot project that
we undertook. Some few concerns that came up were.

Adobe has in the recent past changed the architecture (from 1.5 to
2.0) and Pricing, I believe mainly for mass adoption. This could again
revert or change in future at which point of time you could be slapped
with a higher cost of staying with Adobe. Although in current
circumstances it looks remote but my question here is How difficult or
easy is to port say a Flex 2 application to Laszlo. Are there tools
available to do so?

Another concern was the support for RTL language for inputs. I
understand this is not supported as of today. What is a best
workaround for this.

I would appreciate if any body on the board can throw some light on
these issues.




[flexcoders] USing a webservice

2006-10-04 Thread pateyog
I am kind of stuck while using web service. A help here would be
highly appreciated. Here is the Error Message, WSDL, Schema Def. I am
using.
Thanks in advance 
-Yogesh

Error message:
--
[WSDLError faultString=Element
http://deploy.webservices.ach.payments.ph.com:templatesRequest not
resolvable faultCode=WSDL.BadElement faultDetail=null]
at
mx.rpc.soap::WSDLParser/http://www.adobe.com/2006/flex/mx/internal::parseMessage()
at mx.rpc.soap::WSDLOperation/parseMessages()
at
mx.rpc.soap::Operation/http://www.adobe.com/2006/flex/mx/internal::invokePendingCall()
at
mx.rpc.soap::Operation/http://www.adobe.com/2006/flex/mx/internal::invokeAllPending()
at mx.rpc.soap::WebService/::unEnqueueCalls()
at
mx.rpc.soap::WebService/http://www.adobe.com/2006/flex/mx/internal::wsdlHandler()
at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.rpc.soap::WSDLParser/dispatchEvent()
at mx.rpc.soap::WSDLParser/::parseCompleted()
at
mx.rpc.soap::WSDLParser/http://www.adobe.com/2006/flex/mx/internal::httpResultHandler()
at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()
at
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resultHandler()
at mx.rpc::Responder/result()
at mx.rpc::AsyncRequest/acknowledge()
at ::DirectHTTPMessageResponder/completeHandler()
at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/flash.net:URLLoader::onComplete()

WSDL:
-

definitions name=ACHPaymentsService
targetNamespace=http://impl.webservices.ach.payments.ph.com;
xmlns:wcmas=http://impl.webservices.ach.payments.ph.com;
xmlns:achmns=http://deploy.webservices.ach.payments.ph.com;
xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/;
xmlns=http://schemas.xmlsoap.org/wsdl/;
xmlns:xsd=http://www.w3.org/2001/XMLSchema;
types
xsd:schema
targetNamespace=http://deploy.webservices.ach.payments.ph.com;
xmlns=http://deploy.webservices.ach.payments.ph.com;
xmlns:SOAP-ENC=http://schemas.xmlsoap.org/soap/encoding/;
xmlns:xsd=http://www.w3.org/2001/XMLSchema;
elementFormDefault=qualified
xsd:import
namespace=http://deploy.webservices.ach.payments.ph.com;
schemaLocation=achMessages.xsd/
/xsd:schema
/types
message name=AchPaymentsTemplatesRequest
documentation xmlns=http://schemas.xmlsoap.org/wsdl//
part name=messagePart element=achmns:templatesRequest/
/message
message name=AchPaymentsTemplatesResponse
documentation xmlns=http://schemas.xmlsoap.org/wsdl//
part name=messagePart element=achmns:templatesResponse/
/message
message name=getTemplateSummaryRequest
documentation xmlns=http://schemas.xmlsoap.org/wsdl//
part name=messagePart 
element=achmns:templateSummaryRequest/
/message
message name=getTemplateSummaryResponse
documentation xmlns=http://schemas.xmlsoap.org/wsdl//
part name=messagePart 
element=achmns:templateSummaryResponse/
/message
portType name=ACHPaymentsInterface
documentation xmlns=http://schemas.xmlsoap.org/wsdl//
operation name=getPaymentTemplates
input message=wcmas:AchPaymentsTemplatesRequest/
output message=wcmas:AchPaymentsTemplatesResponse/
/operation
operation name=getTemplateSummary
input message=wcmas:getTemplateSummaryRequest/
output message=wcmas:getTemplateSummaryResponse/
/operation
/portType
binding name=ACHDemo type=wcmas:ACHPaymentsInterface
soap:binding style=document
transport=http://schemas.xmlsoap.org/soap/http/
operation name=getPaymentTemplates
soap:operation soapAction=wcm:achpayments 
style=document/
input
soap:body use=literal/
/input
output
soap:body use=literal/
/output
/operation
operation name=getTemplateSummary
soap:operation soapAction=wcm:achpayments 
style=document/
input
soap:body use=literal/
/input
output
  

[flexcoders] Select Multiple Dates

2006-08-14 Thread pateyog
Does anybody know how to make the mx:DateChooser tag to select
multiple dates.
Thanks in advance.





--
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] problem using httpservice to fetch xml

2006-08-01 Thread pateyog
I am facing a problem with a code which used to work with flex beta
2.0 but has stopped working when I moved to the release version. I get
the following error while executing the below given code:

TypeError: Error #1034: Type Coercion failed: cannot convert
mx.collections::[EMAIL PROTECTED] to Array.
at 
GridBindingDemo/__srv_result()[D:\dev\8J-Flex\GridBindingDemo.mxml:16]
at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at
mx.rpc.http.mxml::HTTPService/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()[C:\dev\enterprise_gmc\frameworks\mx\rpc\http\mxml\HTTPService.as:242]
at
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resultHandler()[C:\dev\enterprise_gmc\frameworks\mx\rpc\AbstractInvoker.as:167]
at
mx.rpc::Responder/result()[C:\dev\enterprise_gmc\frameworks\mx\rpc\Responder.as:48]
at
mx.rpc::AsyncRequest/acknowledge()[C:\dev\enterprise_gmc\frameworks\mx\rpc\AsyncRequest.as:82]
at
DirectHTTPChannel.as$135::DirectHTTPMessageResponder/completeHandler()[C:\dev\enterprise_gmc\frameworks\mx\messaging\channels\DirectHTTPChannel.as:359]
at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/flash.net:URLLoader::onComplete()



The flex app

?xml version=1.0 encoding=utf-8?

mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
backgroundAlpha=0
creationComplete=srv.send()

mx:Script

import mx.collections.ArrayCollection;

[Bindable]
public var employees:ArrayCollection;

/mx:Script

mx:HTTPService id=srv url=employees.xml useProxy=false
result=employees = new
ArrayCollection(srv.lastResult.list.employee)/

mx:HBox width=100% height=100%

mx:DataGrid id=dg width=100% height=100%
dataProvider={employees}
mx:columns
mx:Array
mx:DataGridColumn dataField=name
headerText=Name/
mx:DataGridColumn dataField=phone
headerText=Phone/
mx:DataGridColumn dataField=email
headerText=Email/
/mx:Array
/mx:columns
/mx:DataGrid

mx:Form width=100% height=100%
mx:FormItem label=Name
mx:Label text={dg.selectedItem.name}/
/mx:FormItem
mx:FormItem label=Email
mx:Label text={dg.selectedItem.email}/
/mx:FormItem
mx:FormItem label=Phone
mx:Label text={dg.selectedItem.phone}/
/mx:FormItem
/mx:Form

/mx:HBox

/mx:Application


The employees.xml used
 
?xml version=1.0 encoding=utf-8?

list

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

/list





--
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] Re: problem using httpservice to fetch xml

2006-08-01 Thread pateyog
--- In flexcoders@yahoogroups.com, Geoffrey Williams [EMAIL PROTECTED] 
wrote:

 srv.lastResult.list.employee is already an ArrayCollection.
 
 Try: employees = ArrayCollection (srv.lastResult.list.employee);
 
 --- In flexcoders@yahoogroups.com, pateyog pateyog@ wrote:
 
  I am facing a problem with a code which used to work with flex beta
  2.0 but has stopped working when I moved to the release version. I 
 get
  the following error while executing the below given code:
  
  TypeError: Error #1034: Type Coercion failed: cannot convert
  mx.collections::[EMAIL PROTECTED] to Array.


Cool this worked. 
Thanks





--
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] Re: Datagrid Column Width

2006-07-31 Thread pateyog
For getting the column data tool tip you can use something like

 mx:DataGrid id=dgGrid1  dataProvider={someDataProvider} 
 mx:columns
 mx:Array
 mx:DataGridColumn dataField=name
headerText=Name/
 mx:DataGridColumn showDataTips=true
editable=false dataField=address headerText=Address/
 mx:DataGridColumn dataField=company
editable=false headerText=Company/
 /mx:Array
 /mx:columns
 /mx:DataGrid

Note the second column will show the tool tip for the data. I would
however be eager to know how to get the tooltip for the header.


--- In flexcoders@yahoogroups.com, Rick Root [EMAIL PROTECTED] wrote:

 I have an app with a datagrid that is causing me two issues:

 #1 - I'd like for the column headers to have tool tips that display
 the entire column header if the entire header is not already shown. 
For
 example, if my column header is Record Type but the column data is
 only a two character code, I want to narrow the column, but I'd like
 users who mouse over the column header (which probably displays only
 Re. to see a tooltip that shows Record Type

 #2 - same thing for the column data.  Some of my columns have 200
 characters of text in them but I don't have enough room for all of it
so
 I'd like to have a tooltip when the user mouses over the data field
itself.

 I tried using dataTipField but that didn't seem to do anything.

 Thanks in advance!

 Rick







--
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] Re: Using IUID

2006-07-31 Thread pateyog
Pardon my ignorance. How can I do this with the following example:
I want to use id as in the below given xml as the uid. Is this
possible in the first place. 


My data is of the following form:
contacts
contact id=1
namePeter/name
addressX/application
companyCompA/company
statusActive/status
/contact
contact id=2
nameJack/name
address/address
companyCompB/company
statusPending Approval/status
/contact
/contacts 

My mxml contains code like this

mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; xmlns = *
layout=horizontal creationComplete=srvHTTP.send(); 

mx:HTTPService id=srvHTTP url=data/contact.xml
result=acContacts = new
ArrayCollection(srvHTTP.lastResult.contacts.contact);/

mx:Canvas label=Contact List width=100% height=100%



 mx:DataGrid id=idC_DG_PTL editable=true  
dataProvider={dataObjectPTL} width=100% height=95%
dragEnabled=true
 mx:columns
   mx:Array
mx:DataGridColumn dataField=name
headerText=Name/
mx:DataGridColumn dataField=address
headerText=Address/
mx:DataGridColumn dataField=company
editable=false headerText=Company/
mx:DataGridColumn dataField=status
editable=false headerText=Status/
/mx:Array
   /mx:columns
/mx:DataGrid

/mx:Canvas
/mx:Application




















--- In flexcoders@yahoogroups.com, Jeremy Lu [EMAIL PROTECTED] wrote:

 If your VO are bindable, chances are very high that you might not
need to
 implement the IUID interface, it will be automatically done.
 
 
 Jeremy.
 
 On 7/31/06, Oriol Gual [EMAIL PROTECTED] wrote:
 
I have done it in a VO using Cairngorm, I suppose it won't be very
  different to you:
 
  package com.example.vo {
 
  import mx.core.IUID;
 
  import com.adobe.cairngorm.vo.ValueObject ;
  [RemoteClass(alias=com.example.vo.ExampleVO)]
  [Bindable]
  public class ExampleVO implements ValueObject, IUID {
 
  public var dummyVar: int;
  public var anotherDummyVar : String;
 
  public var _uid:String;
 
  public function get uid():String
  {
  return _uid;
  }
 
  public function set uid(value:String):void
  {
  _uid = value;
  }
  }
  }
 
  Oriol.
 
  2006/7/30, pateyog [EMAIL PROTECTED]:
  
   I am a newbie and was trying to understand how to use the iuid
  interface while using a datagrid that is being populated by a
  ArrayCollection fetching data from an xml using http service.
 
  Can any of you point me to an example
  Thanks
  -pateyog
 
 
 
 
 
 
  --
  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
 
  http://groups.yahoo.com/group/flexcoders/
 
 
 
 
 
 
   
 







--
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] Re: Using IUID

2006-07-31 Thread pateyog
cut and paste mistake 
read the datagrid tag as 
  mx:DataGrid id=dgContactList editable=true  
 dataProvider={acContacts} width=100% height=95%



--- In flexcoders@yahoogroups.com, pateyog [EMAIL PROTECTED] wrote:

 Pardon my ignorance. How can I do this with the following example:
 I want to use id as in the below given xml as the uid. Is this
 possible in the first place. 
 
 
 My data is of the following form:
 contacts
   contact id=1
   namePeter/name
   addressX/application
   companyCompA/company
   statusActive/status
   /contact
   contact id=2
   nameJack/name
   address/address
   companyCompB/company
   statusPending Approval/status
   /contact
 /contacts 
 
 My mxml contains code like this
 
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; xmlns = *
 layout=horizontal creationComplete=srvHTTP.send(); 
 
 mx:HTTPService id=srvHTTP url=data/contact.xml
 result=acContacts = new
 ArrayCollection(srvHTTP.lastResult.contacts.contact);/
 
 mx:Canvas label=Contact List width=100% height=100%
 
 
 
  mx:DataGrid id=idC_DG_PTL editable=true  
 dataProvider={dataObjectPTL} width=100% height=95%
 dragEnabled=true
  mx:columns
mx:Array
 mx:DataGridColumn dataField=name
 headerText=Name/
 mx:DataGridColumn dataField=address
 headerText=Address/
 mx:DataGridColumn dataField=company
 editable=false headerText=Company/
 mx:DataGridColumn dataField=status
 editable=false headerText=Status/
 /mx:Array
/mx:columns
 /mx:DataGrid
 
 /mx:Canvas  
 /mx:Application
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 --- In flexcoders@yahoogroups.com, Jeremy Lu wade.lu@ wrote:
 
  If your VO are bindable, chances are very high that you might not
 need to
  implement the IUID interface, it will be automatically done.
  
  
  Jeremy.
  
  On 7/31/06, Oriol Gual oriol.gual@ wrote:
  
 I have done it in a VO using Cairngorm, I suppose it won't be very
   different to you:
  
   package com.example.vo {
  
   import mx.core.IUID;
  
   import com.adobe.cairngorm.vo.ValueObject ;
   [RemoteClass(alias=com.example.vo.ExampleVO)]
   [Bindable]
   public class ExampleVO implements ValueObject, IUID {
  
   public var dummyVar: int;
   public var anotherDummyVar : String;
  
   public var _uid:String;
  
   public function get uid():String
   {
   return _uid;
   }
  
   public function set uid(value:String):void
   {
   _uid = value;
   }
   }
   }
  
   Oriol.
  
   2006/7/30, pateyog pateyog@:
   
I am a newbie and was trying to understand how to use the iuid
   interface while using a datagrid that is being populated by a
   ArrayCollection fetching data from an xml using http service.
  
   Can any of you point me to an example
   Thanks
   -pateyog
  
  
  
  
  
  
   --
   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
  
   http://groups.yahoo.com/group/flexcoders/
  
  
  
  
  
  

  
 







--
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] Using IUID

2006-07-30 Thread pateyog
I am a newbie and was trying to understand how to use the iuid
interface while using a datagrid that is being populated by a
ArrayCollection fetching data from an xml using http service.

Can any of you point me to an example
Thanks
-pateyog






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