Loading CSS dynamicaly in AIR Application
Hi
this is my first visit to adobe forums. Recently i am building a application with AIR , and it has a feature where user can change application theme by selecting a theme in combo-box.
I have seen many URLs on the internet like:
http://blog.flexexamples.com/2007/12/12/loading-cascading-style-sheets-on-the-fly-using-th e-flex-stylemanager-class/
http://aralbalkan.com/1887
http://www.intriguemedia.net/2008/02/22/loading-modulesruntime-css-into-an-air-app/
But they dont seem to be useful to me. I keep Getting Error:
Error: Unable to load style(SWF is not a loadable module): C:\Documents and Settings\Rajdeep\My Documents\Flex Builder 3\CD Label Designer\bin-debug\templates\soft.swf.
at <anonymous>()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\styles\StyleManagerImpl.as:858]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at ModuleInfoProxy/moduleEventHandler()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\modules\ModuleManager.as:1027]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at ModuleInfo/initHandler()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\modules\ModuleManager.as:631]
So basically i am not understanding it. Can someone please help me. It will really be helpful.
Thanks to Anton_AL, I finally solved this problem by using an URLLoader AND a plain Loader:
var loader: URLLoader = new URLLoader( );
loader.dataFormat = URLLoaderDataFormat.BINARY;
loader.addEventListener(Event.COMPLETE, onLoadingComplete );
loader.load( new URLRequest(file.url) );
private function onLoadingComplete( e: Event ):void
var loader: Loader = new Loader( );
loader.contentLoaderInfo.addEventListener( Event.COMPLETE, onParsingComplete );
loader.loadBytes( e.target.data );
private function onParsingComplete( e: Event ):void
var img: BitmapImage = new BitmapImage( );
img.source = (e.target.content as Bitmap).bitmapData;
_images.push( img );
private function onImageLoaded( e:Event ):void
var img: Image = e.target as Image;
img.removeEventListener( Event.COMPLETE, onImageLoaded );
_images.push( img );
See Anton's thread here: http://forums.adobe.com/message/2358653#2358653
Similar Messages
-
How to create a popup window to load HTML page in AIR application without using any mx or spark components?
I need to load the HTML page in popup in AIR application without using any of the <mx> or <spark> components. I need to open in the application itself not in the browser.(If we use navigateToURL() it will open in th browser)Can we achieve this? can somebody help me on this scenario..
-
Google map loading delay in Adobe AIR application
Hi,
When I try to load Google map API on AIR application,it is taking too much time to load and the application freezes for 50-60 seconds.But it is working fine in normal flex applications.Please give a solution for this.See this bug for more information and a workaround: http://code.google.com/p/gmaps-api-issues/issues/detail?id=2750
-
Open PS (CS-CS4) and load image from flex/air application?
Hello,
(Not sure wether to post this in the AIR forum or the FLEX forum?)
I am at a loss on how to get my simple application to work. I have a small desktop air application that simply opens Photoshop and runs an action. I used switchboard and the application ran great on PC and MAC. However it only worked for CS3, and CS4 not CS or CS2?. Plus the size of switchboard was a bit large for my small app. I am willing to live with that though . I am using Air with Flex and wanted to know if perhaps there is a beter approach? All the application does is open photoshop, loads an image, and runs an action. Can I do this for all versions of Photoshop using switchboard? Can I do this without switchboard and just use javascript. The big issue is the Air app needs to open Photoshop, and most of the examples have me open PS first and then execute a script located in the PS directory. This needs to work outside of the PS directory. Any examples are appreciated.
I have looked at the following:
- SwitchBoard : only works for CS3-CS4 (on my tests)
- PatchPanel: same issue, plus seperate SDKs
- ExtendScript: requires script to be run from PS not AirOf course you may have some unstated reason for doing this in Air, but if not...
Google photoshop droplet....
Bob -
PDF Not loading anymore on Flex Air Application
Hi,
Ever since I updated my Adobe Readed to Version 11, I can't view any PDF on my Flex Air Application anymore. Is there anything i need to do?
AIR version: 3.6
OS: Mac OS X
Flex Builder: 4.6
Adobe Reader: 11.0.02
Flex components used: mx:HTML
Please help.
Thanks!Yes. This is a well known bug in Air/Google Maps. A lot of folks reported it on the Google Maps forums and here. It was reported over a year ago with no action yet. Major show stopper.
For this main reason, I switched to the http://developer.mapquest.com AS3 API. Plus they also recently released a Mobile Flash API that works great.
I suggest you check it out because I don't anticipate any action on this issue on either side any time soon.
Good luck!
Don -
Ours is simple application with flash loaded on web identifies air application installed or not. If installed, files will be downloaded through air application.
Action script code uses http://airdownload.adobe.com/air/browserapi/air.swf to idetify air app installed or not clients desktop
Today upgraged to 11.6.602.168 flash player, _air.getApplicationVersion(appId, pubId, versionDetectCallback) version detect callback always returns null.
How this should be fixedOs windows 7, Firefox 19 and Safari 5.0 fails to work.
Chrome 24 works fine
Here is the code snippet
public function LaunchAirApplication()
var _loader:Loader = new Loader();
var loaderContext:LoaderContext = new LoaderContext();
loaderContext.applicationDomain = ApplicationDomain.currentDomain;
_loader.contentLoaderInfo.addEventListener(Event.INIT, onInit);
_loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onComplete);
_loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onComplete);
_loader.load(new URLRequest("http://airdownload.adobe.com/air/browserapi/air.swf"), loaderContext);
* This function identifies air after loading from standard site and gets application version
* @param - event: Event object
private function onInit(event:Event):void{
_air = event.target.content;
if (_air.getStatus() == 'installed'){
_air.getApplicationVersion(appId, pubId, versionDetectCallback);
else{
ExternalInterface.call("airAppInstalled", 0, null);
* This function detects air app is already installed or not
* @param - version: version of air app
private function versionDetectCallback(version:String):void{
if (version==null){
ExternalInterface.call("airAppInstalled", 0, version);
else{
ExternalInterface.call("airAppInstalled", 1, version);
private function onComplete(event:Event):void{
I will report the bug in bugbase.adobe.com. A quick help is appreciated as our customers are affected because of this. -
Trying to load MP3 from desktop to AIR application
I'm trying to load an MP3 file into an Air application.
Here's some code. The first 2 lines are in my constructor
fileToOpen.browseForOpen("Open", [new FileFilter("MP3",
"*.mp3")]);
fileToOpen.addEventListener(Event.SELECT, fileSelected);
private function fileSelected(event:Event):void
var stream:FileStream = new FileStream();
trace(fileToOpen.nativePath);
// sound = new Sound(new URLRequest(fileToOpen.nativePath));
// trace(sound);
stream.open(event.target, FileMode.READ);
trace(stream.bytesAvailable);
sound = new Sound(stream.readBytes(stream.bytesAvailable));
channel = sound.play(00000);
addEventListener(Event.ENTER_FRAME, onEnterFrame);
Using URLRequest gives me the error Error #2044: Unhandled
IOErrorEvent:. text=Error #2032: Stream Error. I can't seem to load
a file when I give it the full path. Then with the file stream, I
don't even know what I'm doing. I don't know which method I'm
supposed to use to load the file into a sound object. Please
help...I figured it out. I tried url instead of nativePath for the
file object and it worked. -
Loading and modifying a SWF file within an AIR application
I bet you get this question a lot, but I was wondering, if possible, anyone knows how to edit and save the changes to a SWF file loaded inside an AIR application?
Thanks in advance!I'm sorry, but I happen to digress greatly with Michael's approach. I started using AIR just yesterday ( 3 hours or so ), and I firmly believe in reinventing the wheel as a strong method of learning. Just to be clear, I do this on my own free time, so I have no need to worry about COGs, after all, I'm just learning. Otherwise, though it's a strong and great response if I were to build a somewhat bigger application, it's way too much more than the original scope of the application. It's like using a bazooka to kill ants . Regarding the scope of the application, it should support loading / writing of SWFs, and editing of XMLs for certain pre-defined entities. As I stated already, I am certain that I'd be able to do this in a very short span of time with another approach (more xmls, embedding assets directly to the SWF that loads the edited swf, etc.) It's more of a challenge to myself than anything else . I'm really grateful for all your help, so if you want, I can keep you up to date on how I deal with the issue.
-
Air application loading flex applications(no Air) with flex linked as RSL.
Hello
I am trying to make an AIR application which loads number of flex applications(no AIR). The subapplications are using the Flex SDK as a RSL, and each of them can use different version of the SDK.
The problem is that the subapplicationsare trying to load the needed SDK from local filesystem, which they are not permited.
public class CrossDomainRSLItem extends RSLItem
override public function load(progressHandler:Function,
completeHandler:Function,
ioErrorHandler:Function,
securityErrorHandler:Function,
rslErrorHandler:Function):voidHi again.
Is there any way to reliably edit the trust files with AIR application?
As I see it we have to make the user to add our folder to the trusted locations, or to use some application which can find and write in the FlashPlayerTrust (native for the specific OS installer for example.). (even finding this directory with an AIR application seems not 100% reliable).
Thanks in advance for you help.
Ps: Right now I am trying to patch this.
I compiled some sub-applications using custom preloader class(the controlling class, not the UI), where I removed the RSL loading. After that in an ApplicationDomain I load all the RSLs with loaders. After that I load the sub-application in the same domain. On paper this should work, but the sub-application can't find the classes from the RSLs(the first exeption is that there is no definition for spark.components.Application) -
Is it possible to load REMOTE resource module from an Air application ?
Hi All,
Am trying to load remote resource module swf file from an AIR application, am not able make it work,am getting the following error
code:
eventDispatcher = ResourceManager.getInstance().loadResourceModule(remoteURL);
ERROR:
"Unable to load resource module from ".
Please help me out..
Thanks
J KishoreThis might help you out: http://aaronhardy.com/flex/loading-a-remote-module-into-a-local-app/
-
Problem in making air application in full screen on load
Hi all
I am new in flex developing. The problem I m facing in making a air application is that I want to make the application window in full screen view without the top toolbar.
The code i got is like:
<mx:Button label="fullscreen" click="stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE;"/>it is working on click the button.
But I want this on starting the application. Without any user interface.
Thanks and RegardsExtensions require both native code and ActionScript code and are packed by the native extension compiler by Adobe to an ANE file. Check this tutorial: http://www.adobe.com/devnet/air/articles/building-ane-ios-android-pt1.html
After compiling the extension, you can put the extensionId into your <extensions> branch in the application.xml and add the .ane as an excluded library into your AS3 project. Then you can use the extension like any other external library (swc file).
It's also helpful to download and play around with extisting ANEs. There are some nice open source libraries here: https://github.com/freshplanet -
Loading pdf file in flex application (not in AIR)
Hi,
Could any one suggest opening pdf file within flex application with blazeds.
we have used the following code to open pdf file in the same window
navigateToURL( new URLRequest( "http://localhost:8080/PdfSample/jsp/PdfContent.jsp" ),"_self");
But we want to load the pdf file in a vbox.Similary to the below image
Is it is possible to load pdf file in flex application,if so how can we achieve itHello Mariush,
I have to display the content of the PDF in the flex application. If not PDF directly, is there other workaround for this. Or can I display the content of the MS word file, if not PDF.
Thanks and Regards
Khalid Chaudhary -
Air application position on desktop
hi there,
i have an application(air) i want to load in the center of my desktop.
the application has a fixed size.
If i start my application it is not loaded in the center of my screen, the bottom of my application runs out of the screen.
so my question; How to calculate the desktop sizes and set the application on a specific point?
for example top right or bottom left.
Greetz, jacobHi,
I did use this:
var mainScreen:Screen = Screen.mainScreen;
var screenBounds:Rectangle = mainScreen.bounds;
this.x =(screenBounds.width - this.width)/2;
this.y =(screenBounds.height - this.height)/2;
But that shifted the custom chrome and modified the widht and height of my application.
I use an application with a custom chrome.
The code i use:
centerapp.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
creationComplete="initApp()"
layout="absolute"
width="1024"
height="768"
paddingRight="0"
paddingLeft="0"
visible="false"
backgroundImage="@Embed('img/decoratieframe.png')"
applicationComplete="onApplicationComplete();"
xmlns:localcanvas="*">
<mx:Style>
Application
/* make app window transparent */
background-color:"";
background-image:"";
padding: 0px;
</mx:Style>
<mx:Script>
<![CDATA[
import mx.containers.Canvas;
import flash.display.Screen;
// stuff for the application dragg
public var shadowFilter:DropShadowFilter;
private var baseBgColor:Number = 0x888888;
private function initApp():void
// adds mouseDown listeners so a click and drag on the background or the
// display area lets you move the window
this.bgBox.addEventListener(MouseEvent.MOUSE_DOWN, onMouseOmlaag);
// creates a generic drop shadow to use on components that don't accept CSS shadow styles
shadowFilter = new DropShadowFilter();
shadowFilter.color = 0x000000;
shadowFilter.alpha = 0.4;
shadowFilter.blurX = 5;
shadowFilter.blurY = 5;
shadowFilter.distance = 5;
// 'external' shadows
addShadow(this.bgBox);
// retrieves the current background color to use as a base for
// color calculations; this way you could use a CSS stylesheet
// to change the base background color in the future.
var baseColor:* = this.bgBox.getStyle("backgroundColor");
if(!isNaN(baseColor) && baseColor != null)
this.baseBgColor = baseColor as Number;
* Adds a standard drop shadow to a display object.
public function addShadow(comp:DisplayObject):void
comp.filters = [this.shadowFilter];
* Responds to a mouseDown event by starting an operating-system move sequence.
private function onMouseOmlaag(evt:MouseEvent):void
stage.nativeWindow.startMove();
* Responds to a move event. (Currently not in use)
public function onWindowMove(event:Event):void
trace("Window is moving...");
* Responds to a window close event after the window's close button has been clicked.
private function onClose(evt:MouseEvent):void
stage.nativeWindow.close();
* Responds to a window minimize event, after the minimize button has been clicked
private function onMinimize(evt:MouseEvent):void
stage.nativeWindow.minimize();
private function onApplicationComplete():void
var screenwidth:Number=Capabilities.screenResolutionX;
var screenheight:Number=Capabilities.screenResolutionY;
// 2 lines beneath give different result than
this.x=(screenwidth-this.width)/2;
this.y=(screenheight-this.height)/2;
//this 2 lines.
//this.x=Capabilities.screenResolutionX-(this.width/2);
//this.y=Capabilities.screenResolutionY-(this.height/2);
//var mainScreen:Screen = Screen.mainScreen;
//var screenBounds:Rectangle = mainScreen.bounds;
//this.x =(screenBounds.width - this.width)/2;
//this.y =(screenBounds.height - this.height)/2;
this.visible=true;
]]>
</mx:Script>
<mx:HBox width="908" horizontalGap="0" height="35" id="bgBox" x="58" y="51">
<mx:Canvas width="908" height="34">
<mx:Button id="minimizeBtn"
icon="@Embed('img/minimize_icon.png')"
horizontalGap="0"
width="23.5"
height="23.5"
click="onMinimize(event)" x="841.5" y="5"/>
<mx:Button id="closeBtn"
icon="@Embed('img/close_icon.png')"
width="23.5"
height="23.5"
click="onClose(event)" x="869.5" y="5"/>
</mx:Canvas>
</mx:HBox>
</mx:Application>
and the file that goes with that:
centerapp-app.xml
<?xml version="1.0" encoding="UTF-8"?>
<application xmlns="http://ns.adobe.com/air/application/1.0">
<id>centerapp</id>
<version>1.0</version>
<filename>centerapp</filename>
<name>centerapp</name>
<installFolder>centerapp</installFolder>
<programMenuFolder>centerapp</programMenuFolder>
<description>centerapp</description>
<copyright>centerapp</copyright>
<initialWindow>
<title></title>
<content>centerapp.swf</content>
<systemChrome>none</systemChrome>
<transparent>true</transparent>
<visible>true</visible>
<minimizable>true</minimizable>
<maximizable>false</maximizable>
<resizable>false</resizable>
</initialWindow>
<fileTypes>
<fileType>
<name>adobe.VideoFile</name>
<extension>avf</extension>
<description>Adobe Video File</description>
<contentType>application/vnd.adobe.video-file</contentType>
</fileType>
</fileTypes>
</application>
In the folder src i made a folder img for the chrome image and the close and minimize button. -
Communication problem between air application from swf at browser
Hi,
I am trying to communicate adobe air native application from brwser using swf, I check for native application installed or not. If installed then launch and if not then install and launch.
I am facing problem when browser crashes and communication get lost with adobe air native application. And when user restart web browser and try to make local connection for communication with native application, some times it get failed. so, how to handle this state please help.
Thanks
Nitesh KumarHi sinious,
How could I clean up connection when browser is aborted or lost?
below you can find the code snippet to check for air application and connection
airSWFLoader = new Loader();
loaderContext = new LoaderContext();
loaderContext.applicationDomain = ApplicationDomain.currentDomain;
airSWFLoader.contentLoaderInfo.addEventListener(Event.INIT, onInit);
airSWFLoader.load(new URLRequest("http://airdownload.adobe.com/air/browserapi/air.swf"),loaderContext);
function onInit(e:Event):void
airSWF = e.target.content;
switch(airSWF.getStatus().toString())
case "available" : AirLoaderStatus = 1;
break;
case "unavailable" : AirLoaderStatus = 2;
break;
case "installed" : AirLoaderStatus = 3;
break;
private function getAppStatus():void
clearInterval(intervalIdentifier);
if(AirLoaderStatus == 0){intervalIdentifier = setInterval(getAppStatus,1000);return;}
m_launchInstallBtn.visible = true;
var statusInfo:String = airSWF.getStatus();
airSWF.getApplicationVersion(m_installerFileName, m_pubID, versionDetectCallback);
function versionDetectCallback(version:String):void
if (version == null)
trace("Not Installed");
// Take appropriate actions. For instance, present the user with
// an option to install the application.
else
m_isPluginsInstalled = true;
// Take appropriate actions. For instance, enable the
// user interface to launch the application.
private function onlickMouse(event:MouseEvent):void
m_text.text += "\nm_isPluginsInstalled:"+m_isPluginsInstalled+":::AirLoaderStatus:"+AirLoaderStatus;
trace("\nm_isPluginsInstalled:"+m_isPluginsInstalled+":::AirLoaderStatus:" +AirLoaderStatus);
switch(event.currentTarget)
case m_launchInstallBtn:
if(AirLoaderStatus == 1)
installAirsetup();
else
if(!m_isPluginsInstalled)
airSWF.installApplication(m_url, m_runtimeVersion, m_argsToPass);
airSWF.launchApplication(m_installerFileName, m_pubID, m_argsToPass);
else
airSWF.launchApplication(m_installerFileName, m_pubID, m_argsToPass);
break;
in the above code snippet I pass localConnection for send and recieve as an argument in m_argsToPass.
the connection names strarts with "_".
In the air application I I split the event arguments like given below
argsArray = event.arguments.toString().split(",");
and then try to establish connection.
Please suggest, how could I clean the connection on lost/ abort of browser, since then swf object embeded in browser also get lost. -
How to Call a AIR application from Flex Application
Hi,
I have Used AIR (Desktop application) in Flex Builder to Upload a File from a local path and save it it a server path.
I need to Call this AIR(Desktop application) from my Flex Application.... i.e
I am using a link button to send a event using Script and Forward that Desktop application from Flex Screen
But it doesnot load that (Desktop application) in Screen. Only Balnk screen is loaded from path
Here is the code
AIR(Desktop application)
<?xml version="1.0" encoding="utf-8"?><mx:WindowedApplication
xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="openBrowseWindow();">
<mx:HTTPService id="urlpath" showBusyCursor="true" useProxy="false" method="
POST" url="http://localhost:8080/nat/FlexAction.do?method=UrlPath"result="pathresult(event)"
fault="faultHandler(event)"
>
</mx:HTTPService>
<mx:Script>
<![CDATA[
import mx.events.FileEvent;
import mx.rpc.events.ResultEvent;
import mx.rpc.events.FaultEvent;
import mx.utils.ObjectUtil;
import mx.controls.Alert;
private
var openFile:File = new File()
private
function openBrowseWindow():void{openFile.addEventListener(Event.SELECT, onOpenFileComplete);
openFile.addEventListener(Event.OPEN, load);
openFile.browse();
private
function load():void{Alert.show(
"load");
var imageTypes:FileFilter = new FileFilter("Images (*.jpg, *.jpeg, *.gif, *.png)", "*.jpg; *.jpeg; *.gif; *.png");
//var textTypes:FileFilter = new FileFilter("Text Files (*.txt, *.rtf)", "*.txt; *.rtf");
var allTypes:Array = new Array(imageTypes);openFile.browse(allTypes);
private
function faultHandler(event:FaultEvent):void {
//Alert.show("Fault")Alert.show(ObjectUtil.toString(event.fault));
private
function pathresult(event:ResultEvent):void{Alert.show(
"res")
//Alert.show(ObjectUtil.toString(event.result));}private
function onOpenFileComplete(event:Event):void{
//mx.controls.Alert.show("event: "+event.target.nativePath +"UR!!!");
var pPath = event.target.nativePath;
var parameters:Object = {FlexActionType:"PATH",path:pPath};
// Alert.show("Image Selected from Path : "+pPath); urlpath.send(parameters);
//Alert.show("Passed.."+parameters);}
]]>
</mx:Script>
<mx:Button click="openBrowseWindow();onOpenFileComplete(event)" name="Upload" label="Upload" x="120.5" y="10"/>
Here is Mxml Code for Flex Application
<?xml version="1.0" encoding="utf-8"?><mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns="http://ns.adobe.com/air/application/1.0.M4" >
<mx:Script>
<![CDATA[
import mx.controls.Alert;
private function Upload():void{
// CursorManager.setBusyCursor();
//var url:String = "HomeAction.do?method=onLoad";
//var url:String = "assets/Air.swf";
var url1:URLRequest = new URLRequest("assets/Air.swf");navigateToURL(url1,
"_self");
// CursorManager.removeBusyCursor(); }
]]>
</mx:Script>
<mx:LinkButton id="up" click="Upload()" x="295" y="215" label="UpLoad"/>
In this code i forward using s url to Open tat Desktop application but a blank screen appears with out the proper output...
Please Help me in this to forward AIR from Flex Screen..
Thanks in Advance
With Regards
Gopinath.A
Software Developer
First Internet Systems Pvt. Ltd.,
Chennaitry this
http://www.leonardofranca.com/index.php/2009/09/17/launching-an-installed-air-application- from-the-browser/
regards
Leonardo França
Adobe Certified Expert Flex 3 with AIR
Adobe Certified Expert Rich Internet Application Specialist v1.0
Adobe Certified Expert Flash CS3 Professional
Certified Professional Adobe Flex 2 Developer
Adobe Certified Professional Flash MX 2004 Developer
http://www.leonardofranca.com
http://twitter/leofederal
Manager AUGDF - Adobe User Group do Distrito Federal
http://www.augdf.com.br
http://twitter/augdf
Maybe you are looking for
-
How do I add to a pdf created through InDesign?
I want to add some more text to a book cover that someone else created in InDesign. They only gave me a pdf. What's the best way to do it? Also, the new text has to be a specific yellow Pantone color. Thank you!
-
17 inch mac book pro dvd jitters
I experienced a problem with the MBP DVD drive on my new mac book. I have been hearing a lot of information about the new model (related to optical drive problems) Although it's too late to get my 17 inch g4 powerbook back (sold it on ebay last week)
-
About listeners for different databases in the same ORACLE_HOME
Hello experts, I have a doubt I have installed 3 different databases in the same server which OS is Suse Enterprise 10. At this moment I have just one listener that registers all the services. The number of connections are big for two of the three da
-
Message Monitoring - Search XML tags
Hi Do you know if there are any search tools in XI v3 that enable the administrator to search messages that go through XI by the data within the tag name. For example,in the message below I would want to search on the data held in the tag <Order> i.e
-
Dear All, While calculating the tax in PO, system is showing incorrect tax calculation, Base amt- 10000 BED Setoff % - 16% = 10000, which should be 160 BED Setoff total-100% =