External Variables

Hi I was wondering if someone have an idea how to make this
work. I have 4 buttons in my flash movie.
btn1,btn2,btn3,btn4 (instance names)
in an external txt file I have variables.
&Etage1=on&
&Etage2=off&
&Etage3=off&
&Etage4=on&
&done=yes&
when I trace the variable it show me on or off but if I make
an if statement to disable btn1 if Etage1._visible = false;
nothing happen. Any Ideas... thanx.

I would probably look into using XML to define the structure of your external text file. There are many good things about that approach.
Your post is also very difficult to read due to all the crazy characters and all. And in the end you ask if there is a way to "fix this?" but it isn't at all clear what "this" is.
Often I recommend if you are having trouble doing something to set aside your current project and create a simplified "test." So can you just read in the project title and does it work? What about if you add just the color? At what point does it break?
My guess is a combination of things.
if you do something like this in your text file:
videoTitle=Some Title Goes Here
&someothervariable=etc
&etc.
You will get the invisible returns from the ends of the lines. So in that case your file should be formatted like this:
videoTitle=Some Title Goes Here&
&someothervariable=etc&
&etc.
I also suspect that everything will be loaded in as text. So
colorHexCode=0xff0000
Will mostly be a string instead of a number, so you might have success with it in certain cases, but in others it will behave as a string. So
trace(colorHexCode-2) // this will trace out a number
trace(colorHexCode+2) // this will trace out 0xff00002
If you want to be sure to convert it to a number you should use parseInt() or parseFloat() to do the conversion.

Similar Messages

  • Error while deploying project with external variables

    Hi,
    We are facing issue to deploy a project which contains external variables. In the process of publishing, we check true - Smart Publish. In the deployment process I get a screen where we define the Deployment Topology. On clicking Deploy button, the next screen we get an error which says:
    Error(s) found while creating external variables for the following engines: <Engine_Name>: Login failed for the user '<DB User>'.
    The DB User and the databases are created by the ALBPM Configuration wizard while configuring. We are able to login to SQL using the same userId and also can access the tables in the database. Also, we use the same DB userId for the Engine Databse too.
    We are using ALBPM Enterrpise 5.7 MP3
    WebLogic 9.2
    SQL Server 2005
    If anyone has resolved such issue earlier, we need your urgent help.
    Please suggest
    Thanks and Regards
    Jayant

    Hi,
    When you initially ran the wizard to create the Engine tables you used a user and password that had been granted CREATE table authority for Sql Server.
    When you publish and deploy a project with External Variables (project variables in 6.0), you are adding columns to one of the Engine's tables. When you get the error you're getting, this normally means that the database user you specified has not been granted ALTER privileges for the database tables.
    This should be pretty easy for your DBA to check out and fix. Once they do the GRANT, do the publish and deploy once again.
    Hope this helps,
    Dan

  • Loading an External Variable

    Hello all,
    I am having a little difficulty loading an external variable
    into my flash movie.
    The principle of the movie is to load some XML data and
    display expected data in loop. This all works fine and as it
    should.
    My problem starts when I remove the internal variable used
    for testing and try and insert the same variable externally, as
    this will be changing depending upon the teams displays. I have
    tried adding in the variable like
    <param name="flashVars" value="teamName=teamA" />
    and
    <param name="movie"
    value="flash/plasma.swf?teamName=teamA" />
    And then tried using a variety of methods in AS3 to display
    the name. Just getting it to trace "teamA" would be all I need, but
    it is having none of it.
    Any help would be greatly appreciated.
    Kind Regards
    Tim

    Thanks 7johnson,
    I have tried that very method once already and unfortunetely
    nothing seems to work when I do it. I must be doing something
    wrong... I am quite new to AS3 and it is beating me into the
    ground... :o)
    On my HTML
    <object
    classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0"
    width="1024" height="768" title="Flash Plasma Display">
    <param name="movie" value="flash/plasma.swf" />
    <param name="quality" value="high" />
    <param name="flashVars" value="teamName=teamA" />
    <embed src="flash/plasma.swf" flashVars="teamName=teamA"
    quality="high" pluginspage="
    http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash"
    type="application/x-shockwave-flash" width="1024"
    height="768"></embed>
    </object>
    FLASH
    var team = root.loaderInfo.parameters.teamName;
    Does it look wrong to you.
    Cheers for the speedy response.
    Regards
    Tim

  • SCM export as SCAP: Issue with external variables

    SCM can export some of the baselines as SCAP v1.0 XML files (including CPE, OVAL and XCCDF).
    Here's an excerpt of an OVAL file generated by SCM for Windows 7:
    <definitions>
    <definition ...>
    <title>Network security: Do not store LAN Manager hash value on next password change</title>
    <criteria>
    <criterion negate="false" test_ref="oval:microsoft.com:tst:1" ... />
    </criteria>
    </definition>
    </definitions>
    <tests>
    <registry_test id="oval:microsoft.com:tst:1">
    <object object_ref="oval:microsoft.com:obj:1" />
    <state state_ref="oval:microsoft.com:ste:1" />
    </registry_test>
    </tests>
    <objects>
    <registry_object id="oval:microsoft.com:obj:1" ...>
    <hive>HKEY_LOCAL_MACHINE</hive>
    <key>System\CurrentControlSet\Control\Lsa</key>
    <name>NoLMHash</name>
    </registry_object>
    </objects>
    <states>
    <registry_state id="oval:microsoft.com:ste:1" ...>
    <value var_ref="oval:microsoft.com:var:1" datatype="int" operation="equals" />
    </registry_state>
    </states>
    <variables>
    <external_variable id="oval:microsoft.com:var:1" ... />
    </variables>
    As you can see, "oval:microsoft.com:var:1" is defined as an external variable. Unless the value of this external variable is specified, no OVAL tool (such as OVALDI) can evaluate this XML file against a given Windows 7. (In fact, there are over
    400 external variables in this XML file.)
    Can SCM export an OVAL file which includes the value of the external variables?

    Well, I went back into Best Buy to test on 3 other laptops (2 Asus, and their floor model for this Sony). It seems to be doing the same problem so at least I was able to rule out broken hardware issue on my particular laptop.
    Here's what I did to test:
    Since I couldn't really install Adobe Premiere on their machines, I used the DVIO software (http://www.carr-engineering.com/dvio.htm) and a 5 min clip I captured.  I transferred onto their machines, hooked up my Sony D8, and attempted to play the video.  It would play for 15 seconds and then stop and jitter with a loud noise (like it does on my laptop).  I even tried changing each machine's firewire driver to the legacy one and same results.  I pulled a brand new 4 pin to 4 pin firewire cable off their shelf and still the same problem.
    I think I've nailed it down to Win7x64 bit Home Edition not playing nice with Firewire driver.  Very annoying.  I can't find any concrete evidence of this from other users on any of the forums that have my particular problem, but from my own testing, it's all I can conclude.
    I have 2 other things I can try:
    1.  Opening the laptop and looking at the firewire to maybe find appropriate driver (ugh, I don't want to have to open this thing up).
    2.  Upgrading to Win7x64bit Pro and possibly testing with XP on the new MS Virtual PC (http://www.microsoft.com/windows/virtual-pc/).  I can't do it with my Home edition apparantly.
    Who needs to view video on an external TV anyways....sheeesh...(scarcasm).
    Tim

  • Using external Variables between proxies in OSB

    Hello there,
    Im trying to figure out if it is possible, to store some kind of message (could be payload, XML, or just a string) to an external variable so it could be reused among different proxies. Anyone knows if this is possible, and if yes, how can it be implemented? I have seen in "The Definitive Guide to SOA: Oracle Service Bus, Second Edition" an approach with xquery, but im not sure if that is helpful: +"OSB has the ability to store XQuery, WSDL, XML Schema, XSLT, WS-Policy files, and more as reusable resources. The ability to store these resources (sometimes referred to as assets or artifacts) along with proxy services makes OSB a lightweight service repository. It's certainly a best practice to reuse these resources whenever possible."+
    Thank you in advance

    As I said in my previous post, my case is this: I would like to be able, to have a common variable that I would be able to assign inside one proxy, and used from another proxy. I don't know if it can be implemented. Calling from one proxy to another in order to pass the variable is not my case. One scenario is that one proxy will be able to save in runtime a value in an external variable and another proxy would be able to use it. By saying :+"You can definitely reuse them without any problem, but you can hardly put any value into them from proxy service (in runtime)."+ you mean that I can have an external variable pre-assigned, but I will not be able to update in runtime? Is this 100% sure?
    Thank you for your quick answer.
    Edited by: nkod on Dec 4, 2009 5:23 AM

  • External variable and ExternalVariableReference T

    Hi everybody I have a problem writing External variable from workflows; I've found example about ExternalVariableReference<T> but to use it I need to edit the xaml and to use "fixed" name and type of the external variable:
    <Assign>
     <Assign.To>
       <OutArgument x:TypeArguments="p:DynamicValue">
      <p:ExternalVariableReference x:TypeArguments="p:DynamicValue" Name="EXTERNALVARIABLENAME" />
       </OutArgument>
     </Assign.To>
     <Assign.Value>
       <InArgument x:TypeArguments="p:DynamicValue">
      <mca:CSharpValue x:TypeArguments="p:DynamicValue">DYNAMICVARIABLE</mca:CSharpValue>
       </InArgument>
     </Assign.Value>
    </Assign>
    in this example I assign the variable DYNAMICVARIABLE of type DynamicValue to an external variable named EXTERNALVARIABLENAME (of course of type DynamicValue). My problem is that I need to to this using the designer...so what I need is an activity that I
    can use in the designer where I can specify the name and the type of the external variable. I've try to implement it by myself but without success :(
    Does anyone have an example or any idea about it?

    Hi,
    It works for me
    SQL> set define '&'
    SQL> SELECT &column_name FROM emp;
    Enter value for column_name: EMPNO
    old   1: SELECT &column_name FROM emp
    new   1: SELECT EMPNO FROM emp
         EMPNO
          7369
          7499
          7521
          7566
          7654
          7698
          7782
          7788
          7839
          7844
          7876
         EMPNO
          7900
          7902
          7934
    14 rows selected.
    SQL>Regards,
    Jari

  • External Variable Null Pointer Exception when I publish two projects

    I have the following external variables exception thrown when I publish two projects alongside each other. These projects share the majority of there 50 odd project variables. (I know that this is a bit excessive but the customer wants to be able to search under this many variables). I have checked and found that there are not any differences in the variables across the two projects.
    This exception is brought up when the second of the projects is published, no matter which way around they are published. In two incidences, out of about 30, I have managed to deploy this code without this problem occuring.
    I am using ALBPM Studio Version: 6.0.5 Build: #97234 and ALBPM Enterprise Version: 6.0.5 Build: #97234. I am deploying these to a Sun Solaris 10 environment with an Oracle 10G database.
    I would be very grateful for some assistance with this problem.
    Process '/NCTSProcess#Default-1.0' could not be started. Details:\njava.lang.NullPointerException
    java.lang.NullPointerException
    at fuego.metadata.execution.ExternalVariable.getDirectoryVarName(ExternalVariable.java:46)
    at fuego.metadata.execution.DeploymentInformation.addExternalVariable(DeploymentInformation.java:201)
    at fuego.metadata.execution.compiler.ModelVariableCompilerImpl.compile(ModelVariableCompilerImpl.java:56)
    at fuego.metadata.execution.compiler.ModelCompilerImpl.compile(ModelCompilerImpl.java:72)
    at fuego.metadata.Process.compile(Process.java:1172)
    at fuego.metadata.Process.compileProcess(Process.java:1109)
    at fuego.metadata.Process.loadProcess(Process.java:949)
    at fuego.metadata.Process.initProcess(Process.java:755)
    at fuego.metadata.Process.forName(Process.java:191)
    at fuego.server.BaseActiveProcess.getProcess(BaseActiveProcess.java:110)
    at fuego.server.ActiveProcessImpl.loadMetadata(ActiveProcessImpl.java:1466)
    at fuego.server.ActiveProcessImpl.loadMetadata(ActiveProcessImpl.java:1451)
    at fuego.server.ActiveProcessImpl.<init>(ActiveProcessImpl.java:179)
    at fuego.server.BaseActiveProcess.<init>(BaseActiveProcess.java:55)
    at fuego.ejbengine.EJBActiveProcess.<init>(EJBActiveProcess.java:48)
    at fuego.ejbengine.EJBActiveProcess.createAndAddToMaps(EJBActiveProcess.java:66)
    at fuego.ejbengine.EJBActiveProcessManager.createActiveProcess(EJBActiveProcessManager.java:58)
    at fuego.server.ActiveProcessManager.handleProcess(ActiveProcessManager.java:434)
    at fuego.server.service.ActiveProcessService.startProcess(ActiveProcessService.java:136)
    at fuego.ejbengine.service.EJBActiveProcessService.startProcessImpl(EJBActiveProcessService.java:88)
    at fuego.ejbengine.service.EJBActiveProcessService.access$000(EJBActiveProcessService.java:31)
    at fuego.ejbengine.service.EJBActiveProcessService$1.execute(EJBActiveProcessService.java:76)
    at fuego.server.execution.DefaultEngineExecution$AtomicExecutionTA.runTransaction(DefaultEngineExecution.java:304)
    at fuego.transaction.TransactionAction.startBaseTransaction(TransactionAction.java:470)
    at fuego.transaction.TransactionAction.startTransaction(TransactionAction.java:551)
    at fuego.transaction.TransactionAction.start(TransactionAction.java:212)
    at fuego.server.execution.DefaultEngineExecution.executeImmediate(DefaultEngineExecution.java:123)
    at fuego.server.execution.DefaultEngineExecution.executeImmediate(DefaultEngineExecution.java:80)
    at fuego.server.execution.DefaultEngineExecution.executeWithoutComponentImmediate(DefaultEngineExecution.java:185)
    at fuego.server.execution.EngineExecution.executeWithoutComponentImmediate(EngineExecution.java:86)
    at fuego.ejbengine.service.EJBActiveProcessService.startProcess(EJBActiveProcessService.java:73)
    at fuego.server.service.ActiveProcessService.runProcessesLoader(ActiveProcessService.java:118)
    at fuego.server.service.ActiveProcessService.activateProcesses(ActiveProcessService.java:88)
    at fuego.ejbengine.service.EJBActiveProcessService.doActivateProcesses(EJBActiveProcessService.java:62)
    at fuego.ejbengine.service.EJBActiveProcessService.initialize(EJBActiveProcessService.java:50)
    at fuego.ejbengine.DistributableObjectFactory.initializeActiveProcessService(DistributableObjectFactory.java:60)
    at fuego.ejbengine.Engine.startServices(Engine.java:434)
    at fuego.ejbengine.Engine.start(Engine.java:133)
    at fuego.ejbengine.servlet.SchedulerServlet.init(SchedulerServlet.java:95)
    at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:282)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(Unknown Source)
    at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:63)
    at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:58)
    at weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHelper.java:48)
    at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:507)
    at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:1853)
    at weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(WebAppServletContext.java:1830)
    at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1750)
    at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:2909)
    at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:973)
    at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:361)
    at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
    at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
    at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:117)
    at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
    at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:26)
    at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:635)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
    at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:212)
    at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:154)
    at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:80)
    at weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployment.java:182)
    at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:359)
    at weblogic.management.deploy.internal.DeploymentAdapter$1.doActivate(DeploymentAdapter.java:51)
    at weblogic.management.deploy.internal.DeploymentAdapter.activate(DeploymentAdapter.java:196)
    at weblogic.management.deploy.internal.AppTransition$2.transitionApp(AppTransition.java:30)
    at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:233)
    at weblogic.management.deploy.internal.ConfiguredDeployments.activate(ConfiguredDeployments.java:169)
    at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:123)
    at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:173)
    at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:89)
    at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
    Thanks in advance,
    Simon

    Hi Simon,
    If I were you, I would try installing the latest hotfix. There were some important fixes (such as #8715504) related to variable mappings.
    May be it is a good idea to undeploy that project and deploy it again once the HF is installed.
    Hope this helps,
    Ariel
    PS: Remember to regenerate and reinstall all the EARs once the HF is installed.
    Edited by: Ariel A. on Sep 9, 2010 2:29 PM

  • How to set filter to get instances for external variable

    Hi,
    I am trying to get instances based on external variable. Below is my code
    bp.connectTo(url : Fuego.Server.directoryURL, user : "test", password : "test", process : processName);
    fltr.create(processService : bp.processService);
    fltr.searchScope = SearchScope(participantScope : ParticipantScope.ALL, statusScope : StatusScope.ONLY_INPROCESS);
    //fltr.addAttributeTo(variable : "PREDEFINE_INSTANCE_NUMBER", comparator : Comparison.IS, value : Integer.parseInt(requestId));
    fltr.addAttributeTo(variable : "requestIdExt", comparator : Comparison.IS, value : Integer.parseInt(requestId));
    When I try to set the filter for PREDEFINE_INSTANCE_NUMBER, I am able to get the instance but not for external variable. Is there any other way to get instances based on external variables?
    Thanks in advance

    You can use a inputdate, which allows you to selecte a moth, year and a day. Once the selection is made you convert it to only allow moth and date like
            <af:inputDate label="Label 1" id="id1" autoSubmit="true" value="#{bindings.myMonthYear1.inputValue}">
              <f:convertDateTime pattern="MM/yyyy"/> 
            </af:inputDate>
            <af:outputText value="Selected #{bindings.myMonthYear1.inputValue}" id="ot1" partialTriggers="id1"/>
    then you have a string holding month and year only. This value you split into two variables you or pass it as a whole parameter to the query and split it there.
    Another way is to add two static lovs one for month and one for year and use them to get to the filter values.
    Timo

  • Loading external variables

    Hello I'm trying to multiply an external variable loaded in flash. My code is the following:
    getVariable();
    function getVariable():void{
        var recibir:URLLoader = new URLLoader();
        var url:String = "http://localhost:3525/Website1/boston/Default.aspx";
        recibir.dataFormat = URLLoaderDataFormat.VARIABLES;
        recibir.load(new URLRequest(url));
        recibir.addEventListener(Event.COMPLETE, scoreMultiplier);
        recibir.addEventListener(IOErrorEvent.IO_ERROR, errorHandler);
    function errorHandler(e:IOErrorEvent):void{
        trace("No se cargo la variable");
    function scoreMultiplier(e:Event):void{
        //This is a test dynamic textfield it works correctly so I'm getting the variable
         out.text = e.target.data.multiplicador;
         //This is a dynamic textfield where the variable loaded is multiplied by another variable. The text field shows me NN.
        gameover.showScore.text = score*e.target.data.multiplicador;
    I want to multiply the external variable with another variable. The dynamic textfield where the final score should be printed, prints out NN.
    How do I correct this problem?

    Hi,
    Change this line in your code.
    gameover.showScore.text = score* Number(e.target.data.multiplicador);
    I hope it will work. Check out and get back.
    Saransoft

  • Xslt graph in a rtf template. Can an external variable be used inside the graph definition?

    I'm working with BI Publisher 10g, building an rtf template that would display a table and a graph by iterating on one of the xml tags from the input file.
    I got the table working using am xslt variable set when the xml tag associated value changes (DATAGROUPID).
    <?for-each:(/DATA/SITE/SITE_DATA)?> <?sort:DATAGROUPID;'ascending';data-type='number'?>
    <?xdoxslt:set_variable($_XDOCTX,'SITE',DATAGROUPID)?>
    <?for-each:(/DATA//DIMS/LOCALES[LOCALE = 'en']/TEXT)?><?sort:DIMNAME;'ascending';data-type='text'?>
    <?xdoxslt:set_variable($_XDOCTX,'DIMID',DIMID)?>
    <?round(/DATA/SITE/SITE_DATA[DATAGROUPID = xdoxslt:get_variable($_XDOCTX,'SITE')]/YEAR[SURVEYYEAR = 2012]/DIM[DIMID = xdoxslt:get_variable($_XDOCTX,'DIMID')]/ITEM[ITEMID = 0]/PFAV)?>
    <?end for-each?>
    chart:
    <Graph seriesEffect="SE_AUTO_GRADIENT" graphType="BAR_VERT_PERCENT" autoLayout="AL_AS_NEEDED">
    <LegendArea visible="true" automaticPlacement="AP_NEVER" position="LAP_BOTTOM"/>
    <SeriesItems>
    <Series id="0" color="#FF0000"/>
    <Series id="1" color="#FFFF00"/>
    <Series id="2" color="#00FF00"/>
    </SeriesItems>
    <MarkerText visible="true" markerTextPlace="MTP_CENTER">
    <GraphFont name="Arial" size="20" bold="true" italic="false" underline="false"/>
    <Y1ViewFormat>
    <ViewFormat decimalDigit="0" decimalSeparatorUsed="true" decimalDigitUsed="true"/>
    </Y1ViewFormat>
    </MarkerText>
    <LegendText>
    <GraphFont name="Arial" size="20" bold="false" italic="false" underline="false"/>
    </LegendText>
    <Y1TickLabel>
    <GraphFont name="Arial" size="12" bold="false" italic="false" underline="false"/>
    </Y1TickLabel>
    <O1TickLabel wordWrapEnabled="false" tickLabelStaggered="false">
    <GraphFont name="Arial" size="20" bold="true" italic="false" underline="false"/>
    </O1TickLabel>
    <LocalGridData colCount="{count(xdoxslt:group(/DATA/SITE/SITE_DATA/YEAR[SURVEYYEAR = 2012]/DIM, 'DIMID'))}" rowCount="3">
    <RowLabels>
    <Label>Unfavorable        </Label>
    <Label>Neutral</Label>
    <Label>Favorable</Label>
    </RowLabels>
    <ColLabels>
    <xsl:for-each select="/DATA/DIMS/LOCALES[LOCALE = 'en']/TEXT">
    <xsl:sort select="DIMNAME"/>
    <Label>
    <xsl:value-of select="DIMNAME"/>
    </Label>
    </xsl:for-each>
    </ColLabels>
    <DataValues>
    <RowData>
    <xsl:for-each select="/DATA/DIMS/LOCALES[LOCALE = 'en']/TEXT">
    <xsl:sort select="DIMNAME"/>
    <Cell>
    <xsl:variable name="DIMID" select="DIMID"/>
    <xsl:value-of select="/DATA/SITE/SITE_DATA/YEAR[SURVEYYEAR = 2012]/DIM[DIMID = $DIMID]/ITEM[ITEMID = 0 and PUNFAV != 0]/PUNFAV"/>
    </Cell>
    </xsl:for-each>
    </RowData>
    <RowData>
    <xsl:for-each select="/DATA/DIMS/LOCALES[LOCALE = 'en']/TEXT">
    <xsl:sort select="DIMNAME"/>
    <Cell>
    <xsl:variable name="DIMID" select="DIMID"/>
    <xsl:value-of select="/DATA/SITE/SITE_DATA/YEAR[SURVEYYEAR = 2012]/DIM[DIMID = $DIMID]/ITEM[ITEMID = 0 and PNEU != 0]/PNEU"/>
    </Cell>
    </xsl:for-each>
    </RowData>
    <RowData>
    <xsl:for-each select="/DATA/DIMS/LOCALES[LOCALE = 'en']/TEXT">
    <xsl:sort select="DIMNAME"/>
    <Cell>
    <xsl:variable name="DIMID" select="DIMID"/>
    <xsl:value-of select="/DATA/SITE/SITE_DATA/YEAR[SURVEYYEAR = 2012]/DIM[DIMID = $DIMID]/ITEM[ITEMID = 0 and PFAV !=0]/PFAV"/>
    </Cell>
    </xsl:for-each>
    </RowData>
    </DataValues>
    </LocalGridData>
    </Graph>
    <?end for-each?>
    So, on the table this line gets the correct variable from the input file:
    <?round(/DATA/SITE/SITE_DATA[DATAGROUPID = xdoxslt:get_variable($_XDOCTX,'SITE')]/YEAR[SURVEYYEAR = 2012]/DIM[DIMID = xdoxslt:get_variable($_XDOCTX,'DIMID')]/ITEM[ITEMID = 0]/PFAV)?>
    How can I replicate that logic inside the table definition?
    <xsl:value-of select="/DATA/SITE/SITE_DATA/YEAR[SURVEYYEAR = 2012]/DIM[DIMID = $DIMID]/ITEM[ITEMID = 0 and PFAV !=0]/PFAV"/>
    Input data looks like this:
    <DATA>
    - <SITE>
    - <SITE_DATA> 
    <DATAGROUPID>1032817</DATAGROUPID>  
    <DATAGROUPNAME>My Sales</DATAGROUPNAME>  
    - <YEAR> 
    <SURVEYYEAR>2012</SURVEYYEAR>  
    - <DIM> 
    <DIMID>1</DIMID>  
    - <ITEM> 
    <ITEMID>0</ITEMID>  
    <PFAV>88</PFAV>  
    <PNEU>13</PNEU>  
    <PUNFAV>0</PUNFAV>
    - <ITEM> 
    <ITEMID>40</ITEMID>  
    <PFAV>100</PFAV>  
    <PNEU>0</PNEU>  
    <PUNFAV>0</PUNFAV>  
    </ITEM>
    </DIM>
    </YEAR>
    </SITE_DATA>
    - <SITE_DATA> 
    <DATAGROUPID>1032816</DATAGROUPID>  
    <DATAGROUPNAME>Your Sales</DATAGROUPNAME>  
    - <YEAR> 
    <SURVEYYEAR>2012</SURVEYYEAR>  
    - <DIM> 
    <DIMID>1</DIMID>  
    - <ITEM> 
    <ITEMID>0</ITEMID>  
    <PFAV>71</PFAV>  
    <PNEU>25</PNEU>  
    <PUNFAV>4</PUNFAV>  
    I can include a complete sample on request, I thought this would be enough to illustrate the issue.
    I'll appreciate any help you can provide.

    I kept researching, I found some possible solution in this blog:
    https://blogs.oracle.com/xmlpublisher/category/Oracle/Templates/RTF
    so, I created a local SITE variable inside every cell to get the external SITE info:
    <Cell>
    <xsl:variable name="DIMID" select="DIMID"/>
    <xsl:variable name="SITE" select="{xdoxslt:get_variable($_XDOCTX,'SITE')}"/>
    <xsl:value-of select="/DATA/SITE/SITE_DATA[DATAGROUPID = $SITE]/YEAR[SURVEYYEAR = 2012]/DIM[DIMID = $DIMID]/ITEM[ITEMID = 0 and PUNFAV != 0]/PFAV"/>
    </Cell>
    but I get this error at run time:
    oracle.xdo.parser.v2.XPathException: Error in expression: '{xdoxslt:get_variable($_XDOCTX,'SITE')}'.
        at oracle.xdo.parser.v2.XSLProcessor.reportException(XSLProcessor.java:806)
        at oracle.xdo.parser.v2.XSLProcessor.newXSLStylesheet(XSLProcessor.java:571)
        ... 14 more
    What am I doing wrong?

  • Actionscript 2, Best way to write/read an external variable?

    Hi all
    I currently have a flash video player and I want to add some code that will update a variable in an external .as or .txt file. I then want to be able to pull this variable into a different .swf when required.
    My variable I want to create will be CurrentVideo and it needs to be a number e.g. _global.CurrentVideo = 2;
    If anyone could help I would be very grateful
    Thanks
    Trev

    use the loadvars class to read your textfile:
    var sendLV:LoadVars=new LoadVars();
    var receiveLV:LoadVars=new LoadVars();
    receiveLV.onData=function(src){
    trace(src);
    sendLV.sendAndLoad("yourtextfile.txt",receiveLV,"POST");

  • SetRGB using external variable (LoadVars)

    Hi!
    I'm trying to do following: I'm loading a hexadecimal color
    value (like 0xFFFFFF) from an external file into a Flash-movie. I'd
    then use the value to change a movie clip colour.
    I'm using Flash 8 Professional, but my code should be
    compatible with MX 2004 / Flash 7 too.
    I succeeded to change the color using action script in the
    timeline:
    //Defines the hexadesimal value for tcolor1:
    tcolor1 = 0x990000;
    // my_mc turns red:
    var my_color:Color = new Color(my_mc);
    my_color.setRGB(tcolor1);
    stop();
    But, as I added the LoadVars operation, it seems that I
    cannot load the variable (color value) correctly:
    import mx.data.components.DataHolder;
    var my_lv:LoadVars = new LoadVars();
    my_lv.onLoad = function(success:Boolean):Void {
    my_lv.load("colors.txt");
    // my_mc turns red:
    var my_color:Color = new Color(my_mc);
    my_color.setRGB(tcolor);
    stop();
    There's something wrong with my use of variable or then in
    the Loader. I was able to trace the tcolor value to the Output
    window but somehow it does not show in the movie clip instance
    color (instead, my_mc turns to black)
    External txt file content looks like this:
    &tcolor1=0x000099
    I'm not very familiar with ActionScript 2.0 or LoadVars so
    any help is welcome. THX!

    Nope, the problem remains (flatcoat, thanks for pointin out
    the spelling mistake in tcolor). I get the value in Output
    correctly, but movie clip turns to black whatever I try.
    Could the problem be related to the fact that flash is not
    able to load the variable in time? see topic:
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=15&catid=288&threadid =1233174&enterthread=y

  • External Variable Library?

    How do I have published Captivate project access and show items from an external folder, using variables?  What I would like is to have a folder in which the user can replace my images, audio or movies with their own, and then have Captivate pull and show their image, audio or movie instead on slides in my published project.  The user should not need to have Captivate or know how to program...but simply swap out my media with their own in a folder...that is located next to the published Captvate movie.

    Hi there
    Think of Captivate as you would a Cake. With a Cake you mix several ingredients together and bake it. Therefore you cannot take the cake after it has been baked and substitute something else for the eggs or flour.
    While Captivate does produce Flash output, it isn't Flash. As I understand it, what you are asking may be possible using Flash. So if you are Flash savvy, you might be able to create a Flash movie or possibly a Widget (If you are using Captivate 4) that would do it. Then use that inside your Captivate to achieve your goal.
    You should also complete a Wish Form to ask the Captivate development team to consider adding this capability.
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • Load External Variable

    I am trying to do with the function that Flash read the
    variable from external file (txt) with loadVariablesNum(). However,
    right now I am only success make it read variables from external
    file (e.g. myRotation=45&mySize=150). How can I make the
    external file store a multi-Array?

    as an alternative, you can use a delimited string that can be
    parsed
    into an array. The example below uses a pipe ( | ) and caret
    ( ^ )
    delimited string to define a 2D array...
    your text file contains :
    myArrayDef=element0_var1^element0_var2|element1_var1^element1_var2|element2_var1^element2_ var2
    once this string is received you simply parse it into a 2D
    array...
    my2D_array = new Array()
    my2D_array = myArrayDef.split("|");
    for ( i = 0; i < my2D_array.length; i++ )
    my2D_array
    = my2D_array.split("^");
    kglad wrote:
    > you can't. text files can only store variable and
    strings.
    >
    > after loading is complete you can store your variables
    in an array.

  • Storing and changing an external variable

    Hello...
    Sorry for this question, but I am trying something new to me.
    I need to hold a couple of variables in an outside file that can be
    incremented by user activity -- not just during one interaction
    with the swf, but with every one. I have no problems with using
    loadVars and I get the loadandsend process; it is just that I have
    no background in cgi or asp for holding the variable and being able
    to update it. I know I cannot write to a txt file -- that is what I
    have been using thus far with loadVars for importing values, but
    this will not help me here.
    Any help with the external file to hold a variable that can
    be incremented would be greatly appreciated. I know it should be a
    fairly simple script -- I also know I ought to pick up php, but for
    the moment -- until a greater amount of time comes my way -- I turn
    to you.
    Thank you.

    You simply have the server script read and write the file:
    for example JSP do that. Flash communicates with the server script
    using LoadVars or XML classes.
    See:
    LoadVars.sendAndLoad
    XML.sendAndLoad
    For high volume access or where transactional integrity
    requirement (money involved) is needed, having all users read and
    write the same file is not recommended. For low volume activity and
    not critical if a write to the file is lost, this is ok.

Maybe you are looking for

  • Can't open BIOs Set-up, K8N SLI Platinum, after re-flash

    I used the USB Bio flash tool from the forum to re-flash the BIOs on my K8N SLI Platinum board to the latest BIOS from the MSI site, specs below. After the re-flash, which seemed to go okay, I cleared the CMOS (turned off and unplugged computer, push

  • How can I use premiere pro cc in english language with german keyboard layout/german shortcuts on a mac?

    Hi, how is it possible to use a german keyboard with its german shortcuts on premiere pro cc in english language on a mac? I use all my softwares in english. But aside adobe I can use or change in other softwares (Avid, FCP7, FCPX) to use german keyb

  • CreateInsert And Commit Programmtically

    dear all how i can programmtic CreateInsert action And Commit  action into one commandButton. h

  • INBOUND IDOC Creation

    Hi , Trying to create an INBOUND IDOC for material. Using the FM  MASTER_IDOC_DISTRIBUTE . But the problem is that this is creating an idoc as an outbound .although I have set the parmeter for direction as inbound. Could some please advise me which F

  • Boot camp, non-system disk windows 7 pro

    hello all, I have a 13" Macbook Pro (7,1) mid 2010. I am attempting to use bootcamp to install windows 7 pro. at first, i could not select the "create windows 7 install disk" option. i then added my model and ROM version to the bootcamp info.plist af