Export HTML files using AwareIM data & Display same (#2)

Contains tips for configurators working with Aware IM
Post Reply
tford
Posts: 4238
Joined: Sat Mar 10, 2007 6:44 pm

Export HTML files using AwareIM data & Display same (#2)

Post by tford »

This post expands on
http://www.awareim.com/forum/viewtopic.php?t=3479

It will demonstrate how to:

A) Generate HTML from >1 instance of a BO using a query
B) Use an attribute in SystemSettings BO to display iFrame


Add the following to the BSV referred to above:


1) Add attribute to SystemSettings: CityList_ALL_iFrame - Plain Text 150

2) Add attribute to City BO: CityLine - Plain Text 25

3) Add rule to City BO: City.CityLine=City.Name+'<br>'

4)
Add Document (Text document type) named "HTML_City_ALL":

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" >

<font color=red><strong>This is a list of a Cities in AwareIM:</strong></font>
<br>

<<LIST('FIND ALL City ORDER BY City.Name', ' ', 'CityLine')>>

</html>

5)
Add rule to City BO:
EXPORT DOCUMENT HTML_City_ALL TO FILE SystemSettings.ExportPath_Temp+'City_List_ALL.htm'


6) Query: "City List ALL iFrame Query"
- SystemSettings BO

- Display Attribute: CityList_ALL_iFrame
---- Column Name=None

- turn off all checkboxes in the "Other" box.

7) Add a menu option to display Query from #6 above.



Now run the BSV:
8 ) Put following in System Settings - CityList_ALL_iFrame:

<iframe src='Temp/City_List_ALL.htm' width='810' height='610'></iframe>

9) You will have to Edit each instance of City previously created to trigger the new City rules added above.

10) Now run the Query menu item created in #7 above.

You should see a list of all City instances displayed in the iFrame.


Summary:

You might be saying "What's the big deal... I can do all of this with a Custom Presentation."

Yes, that's true. This example is intended to just show the building blocks for being able to create HTML and XML files using AwareIM data. I have intentionally not included XML logic to keep the examples focused on the AwareIM steps needed & not focused on the XML & HTML elements and formatting.
Tom - V8.8 build 3137 - MySql / PostGres
Post Reply