You're casting the wrong thing here, you need to move the casting
parentheses after vopf[0].
<mx:Binding source="{PfVO(vopf[0]).stagione.cdc_stag==undefined
?'':PfVO(vopf[0]).stagione.cdc_stag}" destination="cdc_art.text" />
Where you declare vopf make sure it's now an Array
var vopf : Array;
Based on the Java you sent I think that vopf will be an array, therefore it
will automatically have an editField. Vopf[0] will be your instance of a
PfVO
Matt
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 01, 2005 3:58 AM
To: [email protected]
Subject: Re: [flexcoders] help me, please, to make things clear
Hi Matt,
i have made your correct but flex throws always this worning
flex correct:
<mx:Binding source="{PfVO(vopf[0].stagione.cdc_stag)==undefined
?'':PfVO(vopf[0].stagione.cdc_stag)}" destination="cdc_art.text" />
warning
"Changes to unknown property, stagione, will not be detected" ?????? but
code work well!
There si non method with the name editField
vopf.editField(0, "de50pf", "CIAO")
Can you help me please
Devis
Matt Chotin ha scritto:
> 1) I think test.mxml looks OK.
>
> 2) The problem is that you are returning an array of PfVO but
> referring to vopf as an individual PfVO. Do this instead:
>
> function onResult(result) {
>
> vopf = result;
>
> }
>
> {PfVO(vopf[0]).stagione.cdc_stag ...}
>
> So anywhere you had vopf[0] I think you really need PfVO(vopf[0]).whatever
>
> Method Lista may not be found because maybe the vo you are passing is
> not of the right type? Make sure vo is really an individual PfVO.
>
> 3) You can use editField on an array of the returned objects because
> all Arrays have the DataProvider mixed in.
>
> vopf.editField(0, "stagione", xxxx)
>
> Hope this helps,
>
> Matt
>
> ------------------------------------------------------------------------
>
> *From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> *Sent:* Monday, February 28, 2005 3:49 AM
> *To:* Flex Coders
> *Subject:* [flexcoders] help me, please, to make things clear
>
> I have attached a small project, I don't know very well flash remoting,
> but I am trying to use to integrate me to it with a j2ee architecture.
> I wanted to ask you two things out of politeness,
> 1)se look the file Test.mxml, according to you it is all right as I
> approach for popolore one "Pojo ActionScrtipt"
> 2)Ma the true problem, is that flex when I try to use the class pojo
> "vopf[0]. stagione.cdc_stag" it lifts me some wornings telling me that
> cdc_Stag is not a known type,
> but he works well the same,??? about you it's a bug????
> Last very important thing, is that in the function
> "function Aggiorna(vo:PfVO):Void
> {
> Campionario.Lista(vo);
> }
> "
> flex throws "Method Lista not found", but the think that macaws to
> problem with to cast?
>
> 3) is it possible to use editField with a class "pojo ActionScript", can
> you explain me as?
> Khan you give me your help, also of the suggestions, on as to resolve
> these problems
> Thanks thousand to everybody
> Devis
>
>
>
>
> *Yahoo! Groups Sponsor*
> ADVERTISEMENT
> click here
>
<http://us.ard.yahoo.com/SIG=129l289th/M=298184.6018725.7038619.3001176/D=gr
oups/S=1705007207:HM/EXP=1109730538/A=2593423/R=0/SIG=11el9gslf/*http://www.
netflix.com/Default?mqso=60190075>
>
>
>
> ------------------------------------------------------------------------
> *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! Groups Links