Create Data - Form & List
Overview
Learn how to build forms that create a new customer record that gets stored in the built-in Jigx data store called Dynamic Data. The data record is created in the data store by using the submit action. Once the record is created you can view, edit and list the data records using queries that return the record details from SQLite. For more information on the supported data providers read the Data section.
We recommend you build out all the solution steps for the Create an app from scratch, as each solution step builds on the previous step until you have a functioning mobile app.
Steps
Open the Hello-Jigx solution in the Jigx Builder in VS Code.
Create a new customer form: Add the
new-customer.jigxfile with typejig.default, the form uses a two-column layout. Add thecomponent.formto create the three fields on the form. Add theaction.submit-formto submit the form data to the Jigx SQLite dynamic data store.Create a customer list with data Add the
list-customer.jigxfile with typejig.list. Specify the dynamic data provider and thequerythat returns the customer's details in the list.Create a view of the customer record: Add the
view-customer.jigxfile with typejig.default, specify thedatasource.sqlite, and thequeryto return a view of the customer and their details.Edit a customer record: Add the
edit-customer.jigxfile with typejig.default, specify thedatasource.sqlite, thequeryto return the specified customer and their details. Addcomponent.formto display the returned data. Then add theaction.submit-formwith themethod: updateto save the changes to the customer's details.Add the form & list to the Home Hub by adding their
jigIdsto thetabsin theindex.jigxfile.Run the updated solution in the Jigx mobile app, click on the customer icon, this opens a new customer form. Add details for a customer. Tap back to return to the Home Hub , the customer will appear in the customer list widget. You can view the customer by tapping on the customer name in the list.
GitHub Samples
You can download the Hello Jigx solution project on GitHub or build it yourself by following the detailed steps in this section.
Last updated
Was this helpful?