Update!
A new version of Adobe AIR was released on 12/12/2007. The old MyWorkFlowInBox will not work with the new version (beat 3) of Adobe AIR. If you are using beta 3 of Adobe AIR download the new MyWorkFlowInBoxbeta3.air from here .
Hope you all would have heard about Adobe Integrate Runtime (AIR) . This is a small AIR application to monitor your workflow inbox.
What is Adobe AIR?
Adobe AIR is a cross-operating system runtime that allows developers to leverage their existing web development skills (HTML, JavaScript, Flash, Flex, Ajax) to build and deploy rich Internet applications (RIAs) to the desktop.
To learn more about Adobe AIR follow the below given links.
1. Adobe Integrate Runtime (AIR)
2. Another good introduction to AIR
You can download the My Workflow Inbox.air and the Installation instruction from here .
What do you need to run this application?
1. Install Adobe Integrate Runtime - download from here
2. Download My Workflow InBox Adobe AIR Widget - zip file.zip.
3. Extract the downloaded My Workflow InBox Adobe AIR Widget - zip file.zip to find the My Workflow InBox.air file and the installation instruction.
.myappstyle
{
background-color: #ffffff;
border-style: solid;
background-alpha:0.8;
}
.mypanelTitle
DataGrid
.mydataGridHeaderStyle
</mx:Style>
<mx:Script>
<![CDATA[
import mx.controls.Text;
import flash.net.navigateToURL;
import mx.controls.Alert;
import mx.rpc.events.FaultEvent;
import mx.rpc.events.ResultEvent;
import flash.system.Capabilities;
import flash.utils.Timer;
import mx.controls.Alert;
import mx.core.UIComponent;
import mx.events.CloseEvent;
import mx.rpc.events.FaultEvent;
import mx.rpc.events.ResultEvent;
import mx.charts.events.ChartItemEvent;
import mx.charts.chartClasses.ChartElement;
import mx.core.Container;
import mx.events.IndexChangedEvent;
import mx.charts.HitData;
import mx.core.IUIComponent;
import flash.display.DisplayObject ;
import flash.filesystem.*;
public var file:File;
public function init():void {
file = File.applicationStorageDirectory.resolve("Preferences/version.txt");
trace(file.nativePath);
if(file.exists) {
checkVersion();
} else {
firstRun();
}
}
private function checkVersion():void {
var stream:FileStream = new FileStream();
stream.open(file, FileMode.READ);
var prevVersion:String = stream.readUTFBytes(stream.bytesAvailable);
stream.close();
if (prevVersion.length == 0) {
log.text += "Enter BSP page url along with client info (sap-client=001) in the below box and click save";
switchView('setBox');
} else {
burl.text = prevVersion ;
wibdata.send();
switchView('chartBox');
}
log.text += "Welcome to the application.";
}
private function firstRun():void {
log.text = "Thank you for installing the application.
"
+ "Enter BSP page url along with client info (sap-client=001) in the below box and click save";
switchView('setBox');
// saveFile();
}
private function saveFile():void {
var stream:FileStream = new FileStream();
stream.open(file, FileMode.WRITE);
stream.writeUTFBytes(burl.text);
stream.close();
}
private function saveClick():void
{
if (burl.text.length == 0) {
Alert.show("Enter BSP Page URL");
}
else
{
saveFile();
dgdata= null;
chardata = null;
wibdata.send();
switchView('chartBox');
}
}
private function cancClick():void
{
burl.text = "";
}
private function refreshView():void
{
dgdata= null;
chardata = null;
wibdata.send();
}
public function switchView(viewId:String):void
{
var container:Container = Container(pcvs.getChildByName(viewId));
if (container != null)
{ pcvs.selectedChild = container;
var vname:String;
vname = viewId.toString();
if (vname == "setBox")
{
this.title = "My Workflow InBox - Settings";
}
else if (vname == "chartBox")
{
this.title = "My Workflow InBox - Chart View";
}
else if (vname == "gridBox")
{
this.title = "My Workflow InBox - Grid View";
}
}
}
// Result handler - gets called after RSS is loaded.
private function wibdataResultHandler(event:ResultEvent):void
{
wibdataFeed = event.result as XML ;
dgdata= wibdataFeed.elements().OUTPUT.item;
chardata= wibdataFeed.elements().CHARDATA.item;
len = dgdata.length();
}
private function wibdataFaultHandler(event:FaultEvent):void
{
Alert.show(event.fault.message, "Could not load Data feed");
}
private function formatpcDataTip(hitData:HitData):String
{
var name:String = hitData.item.WI_STAT;
var totcount:Number = hitData.item.SLNO;
return "Status: "name"
<mx:VBox id="setBox" width="100%" height="100%" hideEffect="" showEffect="">
<mx:Text id="log" text="" width="100%" height="20%"/>
<mx:TextInput id="burl" text="" editable="true" width="100%"/>
<mx:ControlBar width="100%" height="29">
<mx:Image height="28" id="sv" click="saveClick()" source="@Embed(source='assets/save.png')" toolTip="Save Settings"/>
<mx:Image height="28" id="can" click="cancClick()" source="@Embed(source='assets/cancel.png')" toolTip="Clear"/>
</mx:ControlBar>
</mx:VBox>
<mx:VBox id="chartBox" width="100%" height="100%" hideEffect="" showEffect="">
<mx:PieChart id="mypiechart"
dataProvider=""
showDataTips="true"
height="100%"
width="100%"
itemClick="pieChartClick(event);"
dataTipFunction="formatpcDataTip">
<mx:series>
<mx:PieSeries
field="SLNO"
nameField="WI_STAT"
labelPosition="callout"
labelFunction="getSliceLabel"
showDataEffect=""/>
</mx:series>
</mx:PieChart>
<mx:ControlBar width="100%" height="29">
<mx:Image height="28" id="gr0" click="switchView('gridBox')" source="@Embed(source='assets/icon_grid.png')" toolTip="Grid view"/>
<mx:Image height="28" id="ch0" click="switchView('chartBox')" source="@Embed(source='assets/icon_chart.png')" toolTip="Chart view"/>
<mx:Image height="28" id="re0" click="refreshView()" source="@Embed(source='assets/refresh.png')" toolTip="Refresh"/>
<mx:Image height="28" id="st0" click="switchView('setBox')" source="@Embed(source='assets/settings.png')" toolTip="Settings"/>
</mx:ControlBar>
</mx:VBox>
<mx:VBox id="gridBox" width="100%" height="100%" hideEffect="" showEffect="">
<mx:DataGrid width="100%" height="100%" id="mydg" dataProvider="" shadowDirection="right" dropShadowColor="#E8DBDB" cornerRadius="30" backgroundSize="100%">
<mx:columns>
<mx:DataGridColumn headerText="Task" dataField="WI_TEXT" dataTipField="WI_ID"/>
<mx:DataGridColumn headerText="Status" dataField="WI_STAT"/>
<mx:DataGridColumn headerText="Creation Date" dataField="WI_CD"/>
</mx:columns>
</mx:DataGrid>
<mx:ControlBar width="100%" height="29">
<mx:Image height="28" id="gr" click="switchView('gridBox')" source="@Embed(source='assets/icon_grid.png')" toolTip="Grid view"/>
<mx:Image height="28" id="ch" click="switchView('chartBox')" source="@Embed(source='assets/icon_chart.png')" toolTip="Chart view"/>
<mx:Image height="28" id="re" click="refreshView()" source="@Embed(source='assets/refresh.png')" toolTip="Refresh"/>
<mx:Image height="28" id="st" click="switchView('setBox')" source="@Embed(source='assets/settings.png')" toolTip="Settings"/>
</mx:ControlBar>
</mx:VBox>
</mx:ViewStack>
</mx:WindowedApplication>
</textarea></p>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
6 | |
5 | |
4 | |
3 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 |