Concepts described in this post can be used in a number of different ways. The notes include learnings about AwareIM capabilities while using AwareIM data to create XML files to be used by the following tools:
Flash Calendar Pro
http://www.usflashmap.com/products/flash_calendar/flash_calendar_pro.htm
Fusion Charts
http://www.fusioncharts.com/
I will post more details about creating appropriate XML files for these two Flash / XML tools at a later date. The scope of this post will be to demonstrate some of the "building blocks" you will need to understand.
This BSV will show:
A- How to write HTML file to an AwareIM subdirectory using AwareIM data
B- Displaying the HTML files in various ways
1) iFrame displayed in a Form
2) iFrame displayed in a Query
3) using DISPLAY URL
Building Blocks BSV details:
1- Add System Settings attributes:
a) DisplayURLPrefix_Temp - Plain Text 150
b) ExportPath_Temp - Plain Text 150
2- Create BO name City with attributes:
a- Name - Plain Text
b- Country - Plain Text
c- HtmlExportPath - Plain Text 150 - Calculated
d- iFrame - Plain Text 200 - Calculated
3- Create Document: "HTML_Country" of Text Document type.
Contents of the document (just to show writing basic HTML with AwareIM data):
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" >
<font color=red><strong>City: <<City.Name>></strong></font>
<br>
Country: <<City.Country>></strong></font>
</html>
4- City BO rules:
a- City.iFrame=<iframe src='
+SystemSettings.DisplayURLPrefix_Temp+City.Name+.htm' width='810' height='610'></iframe>
b- City.HtmlExportPath=SystemSettings.ExportPath_Temp+City.Name+'.htm'
c- EXPORT DOCUMENT HTML_Country TO FILE City.HtmlExportPath
5- Make a form for City BO: City iFrame
a- No Caption
b- No buttons
c- Only 1 attribute shown: An HTML cell with the value: <<City.iFrame>>
Click "Hide Label"
6- Create 3 processes. Each have City BO as Process Input:
a- "ShowUrl_NewTab"
DISPLAY URL SystemSettings.DisplayURLPrefix_Temp+City.Name+'.htm' NEW TAB
b- "ShowUrl_NewWindow"
DISPLAY URL SystemSettings.DisplayURLPrefix_Temp+City.Name+'.htm' IN NEW
c- "ViewCity_iFrame_Form"
VIEW City USING 'City iFrame'
7- Create Query: "One City iFrame Query" on City BO
FIND City WHERE City.ID=ThisCity.ID
In "Display Results" dialog:
a) only display iFrame attribute. Make the column name "None"
Uncheck ALL boxes in the lower part of the screen... the "Other" box.
8- Create query "City List"
FIND ALL City
Show attributes: Name, Country
Show the following Operations next to each instance:
--> 3 Process from summary field in presentation title returns null above
--> Query from Aware IM Server port above
9- Visual Perspective: Administrator
--> in Main frame, show the Query "City List"
Misc Notes:
10) You will need to create a subdirectory:
C:\AwareIM4\Tomcat\webapps\AwareIM\Temp
Note that as new builds are installed, this directory (and any files in in are deleted. You will need to copy them off and same them & replace them in the proper place after the new build installation.
11) when you run the BSV, initialize System Settings & set the following attributes:
ExportPath_Temp: C:\AwareIM4\Tomcat\webapps\AwareIM\Temp\
DisplayURLPrefix_Temp: Temp/
12- Running the BSV:
a- now, run a test
b- add a few instances of City BO
c- Click "Home" to redisplay the City List query
d- click on the various Operations to show various ways to use the HMTL that was generated by AwareIM using AwareIM data.
These concepts will be shown later to create XML files that will be consumed by the Fusion Chart SWFs and Flash Calendar Pro SWF.