sfinnie
unread,Jan 18, 2013, 11:46:22 AM1/18/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mo...@googlegroups.com
Hi Folks
Discovered that using my 'textarea' control, data values aren't persisted. It appears the databind isn't working.
mobl code as follows:
control textArea( s : String, placeholder : String = null,
label : String = null,
rows: String = "10", cols: String="50",
style : Style = textAreaStyle,
onchange : Callback = null, onkeyup : Callback = null) {
when(label) {
mobl::label(label, style=textFieldLabelStyle)
}
<textArea rows=rows cols=cols class=style placeholder=placeholder databind=s onchange=onchange onkeyup=onkeyup onblur={ scrollUp(); }/>
}
If I look in the dev console the insert statement is:
INSERT INTO `domainModel__Complaint` (`complainant`, `description`, `dateCreated`, `open`, id) VALUES (?, ?, ?, ?, ?) ["A N Other", "", 1358519452, 0, "3CA5B33DB0A241EC8D75CBADED11C96B"]
The value in the textarea control isn't being bound for some reason. If I change 'textArea' for 'input' it all works as expected:
<input
type="text" class=style placeholder=placeholder databind=s
onchange=onchange onkeyup=onkeyup onblur={ scrollUp(); }/>
INSERT INTO `domainModel__Complaint` (`complainant`, `description`, `dateCreated`, `open`, id) VALUES (?, ?, ?, ?, ?) ["A N Other", "A Complaint", 1358519452, 0, "3CA5B33DB0A241EC8D75CBADED11C96B"]
Any suggestions?
Thanks,
Scott.