Welcome, Guest
Please Login or Register.    Lost Password?

Configure dynamic select into the mobile framework
(1 viewing) (1) Guest
Convertigo Products
This is the place to ask questions, request for enhancements and more generally discuss about Convertigo products.
Go to bottomPage: 1
TOPIC: Configure dynamic select into the mobile framework
#161
Configure dynamic select into the mobile framework 10 Months, 4 Weeks ago Karma: 0
Ext.regModel('DatesList', {
fields: [
{name: 'date', type: 'string'}
]
});

store = new C8O.Store({
model: 'DatesList',
root: 'document.dates.date',
server : server
});

root: the root object to iterate on
server: a C8O server object

var select = new Ext.form.Select({
name: 'dateD',
label: 'date of departure',
valueField: 'date',
displayField: 'date',
store: store

});

name : Name of the parameter posted with the form
label : Label displayed of the select
valueField : Corresponds to the "value" property of the select's option tag (must exist in the model). Default value="value"
displayField: Corresponds to the content of the select's option tag (must exist in the model). Default value=="text"
store : the store containing the data. Must be load
Martin Ducass
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1
Moderators: elodiee