Zoom into the Init Action. Add an exit to Get Top Trends (keyboard shortcut 'e'). Rename the exit to Parsed Data (right click the exit and choose Rename). Make the exit Reptetive. Right click Init --> Add Ancestor Reference: choose Top Trends Screen. Create a flow from the repetitive exit of Get Top Trends to the Content Item element within Scrollable Pane (Scrollable Pane/List/Content Item). Remove the flow from the exit of Get Top Trends to Alert. So far Init should look similar to this: Delete the Alert element (select it and then press the 'Delete' key).
From the Miscellaneous section of the palette drag and drop Parse JSON. Create a flow from the exit of Download URL to the <JSON Text> trigger of Parse JSON. From the Data Types section of the palette drag and drop a Data Structre. Name it: Top Trends DS. From the same section of the palette drag and drop the following elements into Top Trends DS and name them exactly as in the following screenshot: ** Note: trends is reptitive ** as_of: Type: Text. trends: Type: Data Dtructure; Reptetive. name: Type: Text. url: Type: Text. Create a flow from the <Value> exit of Parse JSON to Top Trends DS. From the Basic section of the palette drag and drop Action (or use the keyboard shortcut 'a'). Name the action Convert to Content Item. Add to the action a trigger (keyboard shortcut 't') and an exit (keyboard shortcut 'e'). Make the action repetitive (Note that you can make an element repetitive aslo by selecting it and then pressing the keyboard shortcut 'r'). Create a flow from Top Trends DS/trends to the trigger of Convert to Content Item. Note that a flow from a repetitive element (trends) to a trigger of a repetitive action (Convert to Content Item) means the action will be executed repetitively - once for each occurrence of trends. Create a flow from the exit of Convert to Content Item to the repetitive exit (Prased Data) of Get Top Trends. The Get Top Trends service model should look similar to this: Model 'Convert to Content Item' as follows: Right click the trigger of Convert to Content Item and choose Show in Repository Explorer. From the Repository Explorer drag and drop the trends data structure into the Convert to Content Item action. Create a flow from the trigger of Convert to Content Item to the trends data structure you have just added. In a similar manner: Right click the exit of Convert to Content Item and choose Show in Repository Explorer. From the Repository Explorer drag and drop the Content Item into the Convert to Content action. Create a flow from Content Item to the exit of Convert to Content Item. From the Constants section of the palette drag and drop a Text constant with the following value: Twitter48.png. Create a flow from the "Twitter48.png" constant to Content Item/Icon/<Path>. Create a flow from trend/name to Content Item/Content Holder/Title Text/<Value>. Create a flow from trend/url to Content Item/Content Holder/Content Text/<Value>. Convert to Content Item should look similar to this:
as_of: Type: Text.
trends: Type: Data Dtructure; Reptetive.
name: Type: Text.
url: Type: Text.
Download Model: Stage 3 (version 1.3.43)
Next: Organizing the Navigation Bar
To use the full functionality of this web site, JavaScript needs to be turned on.
For best results, use the Firefox browser..
Copyright © 2003-2017 - Tersus Software Ltd., All rights reserved. Terms of Use License Graphic design by EmaraDesign