...
- Open the model Dashboards and Forms 09, 10: Linked Views and presentation that you created in the previous exercise
- Open the configuration form for the view Book List on the Stream Book List
- In the list of Stream View Attributes double-click on Publisher
- Tick the flag Changes Row Colour
- Press Press
- Press Press in the main view configuration form to save your changes
- Open the view and sort by Publisher – simply click on the heading of the Publisher column
- You will now see that the colour of the rows changes when the Publisher changes
...
- Open the configuration form for the view Book List on the Stream Book List
- Remember you can right-click on any data row and select Show View
- In the list of Stream View Attributes double-click on Publisher
- Set the field Grid Default Width (pixels) to 150
- Press Press
- Similarly, set the grid width for Synopsis to 400
- Press Press in the main view configuration form to save your changes
- Either open the view – or if you already have the view open, press Refresh
- You will now see the data displayed with the column widths you have set
...
- Double-click on any row of data in the view Book List – a form with the details of the record will pop up
- Close this detail view
- Open the configuration form for the view
- In the list of Stream View Attributes double-click on Synopsis
- Set Width On Form (pixels) to 300
- Set Height On Form (pixels) to 200
- Press Press
- Notice that when you update these values the Size On Form box changes to indicate the size that the field will now have on a form
- Press Press in the main view configuration form to save your changes
- Double-click on any row of data in the view
- In the record details form you will see the Synopsis field resized to the new settings
...
- Open the configuration form for the view Book List on the Stream Book List
- In the list of Stream View Attributes double-click on Subject
- Set the Alias to SubjectOfBook
- Press
- Press
- Press in the main view configuration form to save your changes
- Either open the view – or if you already have the view open, press Refresh
- You will see the new view attribute name appear as the column heading in the view
...
- Open the configuration form for the view Book List on the Stream Book List
- In the list of Stream View Attributes double-click on Synopsis
- Set the Alias to Description
- Press
- Press
- Press in the main view configuration form to save your changes
- Either open the view – or if you already have the view open, press Refresh
- Hover over one of the book descriptions – you will see the text pop up in a hover box
...
- Add an attribute to the Stream Book List:
- Name: gridRowColour
- Type: String
- Length: 50
- Expression:
Code Block |
---|
if (_out.Publisher == "Humbolt", "red", "aqua") |
- Re-load the file and run the stream to populate the new attribute:
- Open the file browser from the file collector Book List
- Navigate to the directory …\inputData\Books
- Load the file BookList.xlsx
- Run the stream Book List
- Create a new view on the Stream BookList
- Type: Grid
- Name: Book List – Publisher by Colour
- Attributes: add all attributes to the view
- Press Press to save your changes
Open the new view – you will see records for the publisher Humbolt highlighted in red, other rows shown in light blue.
...