Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Single Model Databinding do not work

$
0
0

Hey,

i'm creating a syncadapter and now i wanna to use single-model databinding.

So in my very easy setup i do this:

<Alloy>
    <Model src="KinveyUser" id="kinveyuser" instance="true" />
    <Window id="win" class="container">
        <Label top=20 id="yolo" color="black" text="{$.kinveyuser.first_name}" >
        </Label>
    </Window>
</Alloy>
and in the controller:

var test = $.kinveyuser;
test.set("first_name" , "nico");
So regardlress of the rest of my code, shouldn't this display "nico" as the text of the label ?!

Help/Tips would be great! (Collection binding works without problem)

Best, Nico


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>