- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I would like to use Card and Card Gird of App Designer with JSON services. I can build my own JSON services successfully, and can put in List also. But it is a little hard to understand how to make a multiple Card with a set of fields which bind to JSON service parameters. I find no tutorial of it. Could somebody show me an example?
Thank you.
- Tags:
- HTML5
- Intel® XDK
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When App Designer is open the main toolbar has a large help button (the question mark ( ? )). Under that help button you'll find a list of App Designer videos, and there are several dedicated to services. For example: https://software.intel.com/en-us/videos/interlinking-services-and-ui-controls
Assuming you have defined a service request instance in the Web Services panel, then in App Designer you'll see that service instance listed in its own "Service Methods" control. And you'll also see select service-ready controls, like the Card , with a "Service Method" field.
So, for a Card Grid, do the following:
- Make a service instance in the Web Service pane. Be sure to select some of the data fields you will want later.
- In App Designer, insert the Card Grid into your page.
- Click _into_ the grid and choose the first card.
- That card can be configured with header/footer and sidebars. Turn them on as you need.
- From the cards "Service Method" control select your service instance.
- More controls will appear. If you want one card per array entry, you want the Controller Type to be "multiple"
- And after that choose the array path.
- Now the Card Grid and Card are just layout. They don't have any real data. So you'll need to drag another widget. Drag some widget _into_ that first card.
- Now that widget, because it is nested in a data fed Card will have those entry selectors available. Use them where you want in the properties.
- Preview in the Emulator. You'll see one card per service entry result and each card will have your widget and each widget will display whatever unique data you chose.
- These bullet points will make more sense after viewing the video.
Hope this helps,
Chris

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page