Community Questions & Answers
How to pass a data binding into a <Require> component?
Hi all, first time poster here. I'm trying to write a reusable component into which I can pass a bound data element and having problems understanding if this is possible. I'd like to call it something like: ~~~ <Alloy> <Model...
Alloy TableView Data binding
Hi i am new & learning titanium for a while, I would like to ask why databinding does not work on my static tableview.Thanks for your help. personalinfo.js ~~~ function addItem(){ var personalinfos = Alloy.Collections.personalinfo; var...
Alloy TableView Data binding
Hi i am new & learning titanium for a while, I would like to ask why databinding does not work on my static tableview.Thanks for your help. personalinfo.js ~~~ function addItem(){ var personalinfos = Alloy.Collections.personalinfo; var personalinfo =...
Alloy TableView Data binding
Hi i am new & learning titanium for a while, I would like to ask why databinding does not work on my static tableview.Thanks for your help. personalinfo.js function addItem(){ var personalinfos = Alloy.Collections.personalinfo; var...
Alloy - Do the data binding on the fly
In that way, we can readily update the table row like the following : row.xml ~~~ <TableViewRow id="frt_rec_row"> <Label id="t_house_bill_origin" class="line_title" text="HOUSEBILL...
Databinding TableViewRow [Android Error Only]
Hi everyone. I'm relatively new to appcelerator and have run into a problem I'm hoping you guys can help me with. I am trying to bind information from my collection to a TableViewRow for the android platform. This process is working perfectly in the...
How to set guy element style based on model property when using data-binding?
Hi, I have a alloy model data-bound tableview that gets a list of messages from a server (master detail view). When the user closes the detail view (onblur), I want to mark the corresponding message as "read" and show the title of the row in...
Prohibit TableViewSection Repeats on Alloy DataBinding
Hi there- I have what I believe should be a simple question. I am doing a databind to a REST collection. The query works as expected, I receive my results, and the results print to my TableViewRows. I have my rows within a TableViewSection for grouping...
Databinding REST Adapter Collections to the TableView
Hi there- Has anyone successfully performed a databind from the Alloy custom rest adapter to a TableView? I definitely have a successful connection from my application to myservices using the restapi adapter, as specified...
Alloy - data binding - how to reference the Model in controller file
record.xml ~~~ <Alloy> <Window id="container" modal="true" backgroundColor="#FFFFFF"> <ScrollView id="view" layout="vertical"> <Require src="textField"...
Alloy Models validate() method doesn't trigger invalid event
Hi all, is there anyone able to retrieve the object/string returned by the validate() method implemented in an Alloy Model? Here for example: ~~~ // ToDo.js extendModel: function(Model) { _.extend(Model.prototype, { // extended functions and...
Table view sections via alloy data binding
Is it posible to create table sections by [Alloy databinding](http://docs.appcelerator.com/titanium/latest/#!/guide/Alloy_Data_Binding). ?
Initialization of a repeater view with databinding
The problem is as follows. I have a collection (table document) that is shared across my app. Navigation across the app works by opening a window when navigating to another screen and closing it when the user clicks the back button. This means there can be...
Alloy - Databound TableView - add event on row element
I have an article list with a databound backbone collection. My View: ~~~ <Alloy> <Window id="win" class="container"> <TableView id="table" dataCollection="collection"> <TableViewRow...
Alloy, set dataCollection from the Controller
Hi!, I'm wondering if there's a way to set the dataCollection attribute of a <TableView> from the controller #### in myController.js ~~~ $.myTableId.dataCollection = myCollection ~~~ Something like this
DRY transformFunction() for use in Collection databinding?
Is there a way to reuse a transformFunction in multiple controllers? I have several places where I want to display similarly processed attributes from the same Controller's Models. In page_1.xml: ~~~ <TableView...
Alloy databinding
Hi!, I'm trying to create a view with databinding. Using the new 3.0.0GA SDK. This is an example taken from the alloy documentation ~~~ <Alloy> <Collection src="book" /> <Window class="container"> ...
Alloy TableView databinding issue
I am trying to use declarative databinding without success: When the tableview is being created the following error occurs: [ERROR] : Error triggering 'click' event: TypeError: 'null' is not an object (evaluating '$model.__transform') View:...
dataBinding not work when use TableViewSection in Alloy XML Markup
I have the modes: Category and Product, Product belongs to Category and can also be global(not belongs to any Category), now i want to display the list of Category and global Product. I used TableView which works perfectly but can only display Category or...
Databinding on Picker
Hi, I'm trying to bind a collection to a picker. But i can't. This is what I tried. ~~~ <Alloy> <Collection src="book" /> <Window class="container"> <Picker dataCollection="book"> ...
Showing 1-20 of 20