spod relation and Reflect

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

spod relation and Reflect

dav kert
This post has NOT been accepted by the mailing list yet.
hello,

I'm trying tu use Relations with Spod but i am facing a problem.

this works:
        myVo.child=monChildVo;
        myVo.insert():
                               
but this not
        var child= keyfromanHAsh;
        Reflect.setField(myVo,child,myChildVo);
        myVo.insert();

how could i perform the insertion non known field ? because Reflect doesnt seem to help.
thx
Reply | Threaded
Open this post in threaded view
|

Re: spod relation and Reflect

Jan_Flanders
dav kert wrote
hello,

I'm trying tu use Relations with Spod but i am facing a problem.

this works:
        myVo.child=monChildVo;
        myVo.insert():
                               
but this not
        var child= keyfromanHAsh;
        Reflect.setField(myVo,child,myChildVo);
        myVo.insert();

how could i perform the insertion non known field ? because Reflect doesnt seem to help.
thx
http://haxe.org/forum/thread/2623

(posted on nabble)

Jan