{
"grouped": true,
"title": "Add",
"sections": [
{ "elements":[
{ "type":"QLabelElement", "title":"Location",
"sections": [
{
"elements": [ { "type":"QEntryElement", "title":"Address line 1","placeholder":"", "bind":"textValue:Address1", "key":"Address1"},
{ "type":"QEntryElement", "title":"Address line 2","placeholder":"optional", "bind":"textValue:Address2", "key":"Address2"},
{ "type":"QEntryElement", "title":"City","placeholder":"", "bind":"textValue:City", "key":"City"},
{ "type":"QEntryElement", "title":"State/Province","placeholder":"", "bind":"textValue:StateProvRegion", "key":"Prov"},
{ "type":"QEntryElement", "title":"ZIP/Postal Code","placeholder":"", "bind":"textValue:PostalCode", "key":"PCode"},
{ "type":"QPickerElement", "title":"Country", "items":[["Czech Republic", "Germany", "United Kingdom"]], "value":"Czech Republic"}
]
}
]
}
]
}
]
}
NSMutableDictionary *dataDict = [[NSMutableDictionary alloc] init];
[dataDict setObject:@"123 Maple Street" forKey:@"Address1"];
QRootElement *root = [[QRootElement alloc] initWithJSONFile:@"addjobform" andData:dataDict];
UINavigationController *navigation = [QuickDialogController controllerWithNavigationForRoot:root];
[self presentModalViewController:navigation animated:YES];
"shallowBind":false - usually this defaults to true, causing binding to stop at the first level of hierarchy. Eduardo explains that this is useful when you are hanging forms off of other forms and want to them to have different revision lifecycles. In my simple case this is not necessary, so I'm just turning shallow binding off and it now works.
--
-- QuickDialog site: http://escoz.com/quickdialog github: http://github.com/escoz/quickdialog.
You received this message because you are subscribed to the Google Groups QuickDialog group. To post to this group, send email to quick...@googlegroups.com. To unsubscribe from this group, send email to quickdialog...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/quickdialog?hl=en
---
You received this message because you are subscribed to the Google Groups "QuickDialog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to quickdialog...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.