Question referencing Variables

Hello

Can someone explain to me what's the use of the @ sign when you reference a variable in Workbench?

For example: /process_data/@myVar

Sometimes you need to use it, sometimes you don't have, sometimes Workbench adds for you, but you should not use it, I'm confused.

If you have a link to the help online explaining this, would be great.

Thank you

NIC

The @ symbol is used to get the value of a node when it's a simple data type (string, int, long, etc.).

At one point the variables converted internally in a xml structure. That's why we can use xPath to obtain the value.

If you have a simple type, which can return a single value (string, int, long, etc.), then you use the symbol @.

If you have a complex object (e.g. FormsResult), so it depends what node question you. If you want to get the value of the action the xPath will be process_data/test/object/@action. You get the @action, because it returns a string for this property.

If you want a list of the attachents, the XPath is/process_data/test/object/attachments. The attachments property does not contain an @ because that is not a simple type, but a complex type (list of attachments).

Also the xml variable is considered to be a complex type.

I have never known a case when the Workbench is added the @ and I didn't need to use it.  Let me know if you have a specific example.

Jasmine

Tags: Adobe LiveCycle

Similar Questions

  • Newbie question - passing variables (aka why this work?)

    I spent a few hours in vain trying to pass the value of a html text box to a coldfusion page 2nd via the URL (query string).

    However, it seems that I can't do this because the 2nd page seems to be able to reference the value in box of text in any case.  My question is: is this a coincidence, or is this the normal procedure, things work?  When I click the "Run report" button, everything I typed in the text box appears on the screen of page2.cfm.  I thought I should pass this value somehow (via the variables session or the URL string or something).

    So my newbie question is: is this the way it should work (a simple answer Yes or no is fine)A text from one box. CFM file can reference the value of text box on the other. CFM page? Thanks in advance

    Here is the page 1 (page1.cfm):

    <! DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional / / BY" > ".
    < html >
    < body >

    " < CFform action = ' http://www.mywebsite.com/page2.cfm "method ="get"> "
    Cust ID: < cfinput type = "text" name = "CustomerID" >
    < input type = value = "run report" >

    < / CFFORM >
    < / body >
    < / html >

    Page 2 (page2.cfm) here which works fine and shows what I typed in the text box:

    < CFOUTPUT >
    #CUSTID #.
    < / CFOUTPUT >

    I was already typing this until Ian replied. But I may as well post it in case it helps...

    > I spent a few hours * in vain * trying to pass the
    > value of a html to a coldfusion page 2nd text box via the
    > URL (query string).

    If you know that he or she is actually what you 're doing.

    "> http://www.mywebsite.com/page2.cfm" method = "get" >
    > Cust ID:

    When you use method = "get", the form field, the variables are passed in the query string. So, if you enter "abc" in the text box, the URL submitted will be:

    http://www.mywebsite.com/page2.cfm? CustID = abc

    So 'CustomerID' will be available as a variable within the scope of the URL on page 2.

    > * Here's page 2 (page2.cfm) which works fine and shows
    > what I typed in the text box: *.
    >
    > #CUSTID #.
    >

    The reason for which he works is a little magic CF. The variable #custID # not be bounded, CF search this variable in a predefined list of staves (see link below). It looks in each of them, and uses the first value it finds. Although not the exact search order, CF will check the

    http://livedocs.Adobe.com/ColdFusion/8/Variables_32.html
    -VARIABLES in scope (at the time..)
    -Reach URL (at the time..)
    -FORM scope (at the time..)
    ... etc...

    In your case, the variable exists in the scope of the URL. If your code is equivalent to saying

    #url. CUSTOMERID #.

    It is in fact a practice better coding. Although the original code works without the scope of variables, providing an explicit framework is more efficient and avoids unitentional errors.  For example if the code on page 2:


         #CUSTID #.

    ... the output may not be what you would expect ;-)

    So to answer the question: Yes, that's what must happen.  However, you must explicitly scope your variables page 2 IE use #url.custID #.

  • Question of Variable text "Date"?

    How can I get my release date and created to resemble my modification date? Here it is what it looks like now in the script.  I like just the look of the modified date string. If it is not possible to give them a look in this way, not much, I'm just curious.

    Date modified: June 7, 2016 15:52

    Release date: 06/06/16

    Creation date: 06/06/16

    The above script function is to get the format string of the Date object.

    Another simple solution is:

    In order to change the format of the variable Date of Modification, you can do so below:

    Using the Script

    var md = doc.textVariables.itemByName("Modification Date");
    md.variableOptions.format = "MMMM dd, yyyy hh:mm a";
    

    Through the user interface

    Go to the Type->-> set text Variables

    Select the change Date and click the button change.

    In the Date Format, enter the following:

    MMMM dd, yyyy hh: mm a

    Now, all instances of text Date of change variable will have the desired format.

  • Question of Variable presentation

    Hello

    I am facing a problem with the variable behavior of presentation.

    I'm having a problem where if I use the variables of presentation of a line of dashboard in two reports in the dashboard, its gives me the same results for the two reports.

    -WS_Origin1

    -WS_Destn1

    are two variables of presentation in the dash prompt. I use these two reports

    Report of departure and Destination

    where origin = @{WS_Origin1} and Destn = @{WS_Destn1}

    Second report

    Origin-destination report

    where origin = @{WS_Destn1} and Destn = @{WS_Origin1}

    When I select values in the dashboard line say Origination = YYC and Desntination = YOW, reports above give me the same results. When I look at the SQL are filtered even.

    That is to say

    Report of departure and Destination

    where origin = YYC and Destn = YOW

    Second report

    Origin-destination report

    where origin = YYC and Destn = YOW

    (Note: it must be original YOW = and Destn = YYC)

    Thank you

    Hi guys,.

    Thanks for the reply, I tried all the solutions provided above but did not receive the expected result. I think I have the solution, I used guests from the column in the line of dash and the same columns were also using in reports, I changed the variable column guests guests and solved the problem.

    All you guys, appreciate a lot for the answer so quickly. Thank you.

  • Question about variables and actions put forward in CP7 - display button once the user has clicked on many areas of click

    Hi all

    Can't seem to understand this one. I had assumed it should be fairly easy, but not... I'm quite inexperienced with variables so, maybe someone could help?

    Basically, the case is quite simple: I want a next button to be invisible until a user has clicked on several areas of click on a slide. Each box click click should disclose additional information on a topic. When all topics have been read, I want the nest button to appear.

    Any suggestions on how I could do it with as little effort as possible? Maybe I don't even have to use variables?

    Help much appreciated!

    Rgds,

    Casper

    Here's a forum thread where I introduced myself as a combination of two decisions:

    Re: Can I use conditional and advanced actions on the same button?

    An old article in which I have explained how to combine a standard action with a conditional: combining conditional in a fast action and standard

    Slightly different, because there is a sequence (which is not the case for you) and so that a variable is required: Blog after Posterous? - ClickClick - Captivate blog

    Learn more about the possible events to trigger actions: http://blog.lilybiri.com/events-and-advanced-actions

    Lilybiri

  • Another question about variable presentation

    Hello

    I have a new requirement on variable presentation.
    for example
    A single column, year of guest. anothor column, year1 to demand.
    I want to get/see a value of all if the prompt is empty. Is it possible to do that?

    Kind regards
    Anne

    Published by: anne on November 14, 2011 02:17

    Hi Anne,.

    To manage the "all choices" Null values and try this, add two filters with OR clause (using filter->-> convert this advanced SQL filter)

    Cast (CALENDAR." (YEAR' as varchar (10)) = ifnull (' @{year} ',' ') or ifnull (' @{year} ',' ') =' '

    OR

    CALENDAR. ' ' YEAR ' as ' @{year} {%}'

  • Question of variables and file download.

    Hello

    I have a uploader of file in AS3 and can successfully save a file using php.

    I would also like to send variables with the file, php to process variables and display in Flash.

    Separated, I was able to include flash-flash-php variables in a project, but I can't work on how to do this while also downloading a file.  I get a null reference error in the completeHandler function when flash tries to display the reactive power coming back from php.

    Here is my AS3:

    create a file from a string of text, it records, the bed, then download:

    var newFile:File;

    newFile = File.desktopDirectory.resolvePath ("my.xml");
    var stream: FileStream = new FileStream();
    Stream.Open (newFile, FileMode.WRITE);
    stream.writeMultiByte (str, "utf - 8")
    Stream.Close ();
    stream.openAsync (newFile, FileMode.READ);

    stream.addEventListener (Event.COMPLETE, uploadFile);

    function uploadFile(evt:Event):void {}

    var URLrequest:URLRequest = new URLRequest ("http://www.mysite.com.au/uploader_script.php");
    var variables: URLVariables = new URLVariables();
    variables.todayDate = new Date();
    variables. Name = "Dude."
    variables. Email = "[email protected]"; ""
    variables.saveThisXML = "test record this";
    variables.passwordString = 'parse ';
    URLrequest.method = URLRequestMethod.POST;
    URLrequest.data = variable;

    newFile.addEventListener (Event.COMPLETE, completeHandler);
    newFile.addEventListener (ProgressEvent.PROGRESS, progressHandler);
    newFile.upload (URLrequest);

    }

    function completeHandler(evt:Event):void {}

    var phpVar1 = evt.target.data.var1;
    var phpVar2 = evt.target.data.var2;

    result1_txt. Text = phpVar1;
    result2_txt. Text = phpVar2;

    uploaderMC.status_txt.text = newFile.name + 'has been uploaded.';

    }

    My PHP:

    <? PHP

    $Name = $_POST ['name'];
    $filename = $_FILES ['Filedata'] ['name'];
    $filetmpname = $_FILES ['Filedata'] ['tmp_name'];

    $uname = $_POST ['email'];

    Print two vars back-Flash, you can also use 'echo' instead of printing
    print ' var1 = the domain name with a variable of $uname was sent to PHP and is back.';
    print '& var2 = $uname is also defined in the variable 2 php.';

    File on the server:
    move_uploaded_file ($_FILES ['Filedata'] ['tmp_name'], $filename);

    ? >

    It works fine download, but falls into the AS3 to var phpVar1 = evt.target.data.var1;

    Is there an obvious reason that I'm missing?

    Thanks for your time.

    Shaun

    Add your variables in your URLs and use $_GET in your php file to analyze the variables:

    create a file from a string of text, it records, the bed, then download:

    var newFile:File;

    newFile = File.desktopDirectory.resolvePath ("my.xml");
    var stream: FileStream = new FileStream();
    Stream.Open (newFile, FileMode.WRITE);
    stream.writeMultiByte (str, "utf - 8")
    Stream.Close ();
    stream.openAsync (newFile, FileMode.READ);

    stream.addEventListener (Event.COMPLETE, uploadFile);

    function uploadFile(evt:Event):void {}

    var URLrequest:URLRequest = new URLRequest ("http://www.mysite.com.au/uploader_script.php?var1=" + all + "& var2 =" + whateverelse);
    var variables: URLVariables = new URLVariables();
    variables.todayDate = new Date();
    variables. Name = "Dude."
    variables. Email = "[email protected]";
    variables.saveThisXML = "test record this";
    variables.passwordString = 'parse ';
    URLrequest.method = URLRequestMethod.POST;
    URLrequest.data = variable;

    newFile.addEventListener (Event.COMPLETE, completeHandler);
    newFile.addEventListener (ProgressEvent.PROGRESS, progressHandler);
    newFile.upload (URLrequest);

    }

    function completeHandler(evt:Event):void {}
           
    var phpVar1 = evt.target.data.var1;
    var phpVar2 = evt.target.data.var2;
       
    result1_txt. Text = phpVar1;
    result2_txt. Text = phpVar2;
     
    uploaderMC.status_txt.text = newFile.name + 'has been uploaded.';

    }

    My PHP:

    <>


    $var1 = $_GET ['var1'];

    $var2 = $_GET ['var2'];

    $Name = $_POST ['name'];
    $filename = $_FILES ['Filedata'] ['name'];
    $filetmpname = $_FILES ['Filedata'] ['tmp_name'];

    $uname = $_POST ['email'];

    Print two vars back-Flash, you can also use 'echo' instead of printing
    print ' var1 = the domain name with a variable of $uname was sent to PHP and is back.';
    print '& var2 = $uname is also defined in the variable 2 php.';

    File on the server:
    move_uploaded_file ($_FILES ['Filedata'] ['tmp_name'], $filename);

    ?>

  • Referencing variables in a function without causing 'access undefined... '. "

    I have a function called once creates new variables

    function createPane(event:Event):void
    {
         var manager:IPaneManager = map.getPaneManager();
         var markerPane:IPane = manager.getPaneById(1);
         var markerIndex:int = manager.getPaneIndex(markerPane);
         var pane:IPane = manager.createPane(markerIndex);
    }
    

    I have another function that refers to some of the variables created in the function above

    function paneClear(e:MouseEvent):void
    {
         manager.removePane(pane); 
    }
    

    If I have both in my code, FLASH will throw an error because the variable Manager and the pane are not created until the createPane function is called.  I understand that if I created these variables outside a function, this error does not happen, but this isn't an option that I have to wait to call createPane.

    I also found that if I embed the function of paneClear within the createPane function, I will not get an error (see below).  I thought that the nesting of functions is bad practice, so I'm Director of this approach.

    function createPane(event:Event):void
    {
         var manager:IPaneManager = map.getPaneManager();
         var markerPane:IPane = manager.getPaneById(1);
         var markerIndex:int = manager.getPaneIndex(markerPane);
         var pane:IPane = manager.createPane(markerIndex);
              function paneClear(e:MouseEvent):void{
              manager.removePane(pane); 
              }
    }
    

    I hope this explains my situation clearly.  I'm just trying to understand how you can reference a variable in a function, even if this variable has not yet been created.

    Thanks in advance,

    Josh

    What you would normally do, is to declare the variable outside the function and assign the value inside...

    var Manager: IPaneManager;
    var markerPane:IPane;
    var markerIndex:int;
    var component: IPane;

    function createPane(event:Event):void
    {
    Director = map.getPaneManager ();
    markerPane = manager.getPaneById (1);
    markerIndex:int = manager.getPaneIndex (markerPane);
    component = manager.createPane (markerIndex);
    }

  • problem referencing variable parentDocument

    I have a file with a popup main.mxml. I can reference variables in the main.mxml easily using parentApplication. [variable_name_here]

    However... in my component popup called SelectAccount.mxml, I still have another window pop up (with the popupmanager). When I'm this 3rd window (2 levels of the main.mxml parentApplication)... I want to reference a variable of level 1 upward in the SelectAccount.mxml. but when I reference parentDocument. [variable_name_here] or same parentApplication. [variable_name_here] Flex is always looking the file main.mxml (the highest level).

    How can I make reference to intermediate level that actually generated the 3rd popup window?

    Here is the code I use to generate the popup on SelectAccount.mxml:

    private function filterAccts():Sub

    {

    var victory: FilterAccts = PopUpManager.createPopUp (thisFilterAccts, real( ) as FilterAccts;

    PopUpManager.centerPopUp (win);

    win.initComponent ();

    }

    Then, you need to create your own property something like myCustomParent in the context menu and then assign the parent to this. The parent you are trying to view is internal to the flex, so you cannot assign whatever it is him. See the example here

    private function filterAccts():void
          {
           var win:FilterAccts = PopUpManager.createPopUp(this, FilterAccts, true) as FilterAccts;
           win.myCustomParent = this; //myCustomParent is the property you create in the popup
           PopUpManager.centerPopUp(win);
           win.initComponent();
          }
    
  • Questions of variables

    I am currently working on a project where I'm having to deal with a lot of different variables and wonder if there is a way to reduce my statement those (there are currently 152 variables dedicated to a small part of the project).

    What I have is a guy who has some subtypes (4), who have even several subtypes (subtype 1 a - c: 7 types, subtype 01:00), who still have another series of subtypes (which are basically subtype 1 a - c + some more and they are all applied to typer. 1 d)  Can someone offer me some suggestions?  If there's more, I can post the code here...

    While you should always define/store all 152 or whether it is, you can probably reduce the statements by creating objects...

    private var itmEquipBlade:Object;

    itmEquipBlade.Name:Array = [];
    itmEquipBlade.Amt:Array = [];
    itmEquipBlade.Str:Array = [];
    itmEquipBlade.Des:Array = [];
    itmEquipBlade.Ele:Array = [];
    itmEquipBlade.Eff:Array = [];
    itmEquipBlade.Num:int;
    itmEquipBlade.Total:int;
    itmEquipBlade.Has:Array = [];

    I forgot if declaring the array type as I show above is correct or not in these circumstances, but now you have a variable containing all of them for this group

  • Problems of variable references

    Hello!
    I have big problems referencing variables in Flash! It turns out that there is no way to reference a variable (whether any type) that is declared in the timeline to the current relative... :(
    My setup is as follows: I have a couple of nested clips... I declared a variable (of type Boolean, say) on the stage. Trying to reference it via stage.bVariable , I get an error message saying that I am now making reference to an undefined property, yet it is very well defined.
    Yes, is there a way to make this simple operation? ... :(
    Thank you in advance!

    You can try:

    .bVariable (this.parent as MovieClip) =...

    adding .parent references as in "this" as necessary to return to the main timeline.

    I'll keep an eye on this one to see if a better answer appears. I had similar problems a few weeks (talking to/from nested stuff), and my ad met someone telling me to look thru Flash help without specific reference. I found the solution parent via a web site that answered the question "what happened to my _parents '.

  • name of the variable to variable

    Hello to all (especially @Niel & @Stivejobstan123 & @Camelot)

    next beginner question:

    can I ask (and, in fact, create) a variable by its name in this way:

    Repeat 3 times

    I put 1

    I value a (i) * 6

    Set i to i + 1

    end repeat

    back to (2)

    return etc.

    PS I know all 'on something () - end to something'

    but question on variable

    I'm not entirely sure what you hoped your code wouldn't, but if you ask to create dynamically named variables, the short answer is no - variables must be defined at the time of compilation, and you cannot create dynamic variables when running.

    The sole (?) exception is create a variable as a list object and which fill with your variables created dynamically, but that might not meet your needs.

  • Shared variables, analysis engine and multiple targets

    I'm looking for some general tips on my LabVIEW project structure.

    The project consists of a laptop with LabVIEW, a connected joystick and a CompactRIO connected via ethernet. I ran the cRIO mode Interface FPGA, but a change in some things causes the project to have be moved to scan mode.

    From now on, the code on the portable computer updates the shared variables on the cRIO and bed from the variables shared on the cRIO for surveillance. I want to shared variables on the cRIO because he will also need to work without the connected laptop. Before moving the cRIO for scan mode, I found that I had to first run the code of the laptop and then run the code cRIO, or shared variables would not release properly. Now that I spent to scan mode, I have to run the code cRIO first, and even then the shared vars do not properly communicate for more than a few seconds and are well laggier.

    My ideal project solution is a system that can operate with or without the connected laptop and obviously do not have these questions shared variable. I would like the autostart code on the cRIO and ask the user to execute the code of the computer laptop, if necessary, but in the past, it doesn't seem to work with shared variables.

    I'm really confused about why this is happening. I hope I explained my problem well enough. I really don't want to display the entire project here, but I can email to people if they are willing to take a look. Thank you for taking the time to read this.

    I'm under LabVIEW 2010 SP1 with FPGA, DSC modules and robotic in real time. I have the updated Feb 11 driver and NOR-RIO 3.6.0 installed and completed all updated on my RT cRIO.

    I do this kind of thing all the time...

    Move all your NSV libraries on the cRIO.  Of the project, you must deploy on the cRIO and then they are persistent until you reformat.

    Your windows GUI application, you can set static NSV tags on the block schema or use the API SV dynamic R / w.  Also you can bind GUI controls and

    indicators directly to the NSV cRIO (it's what I do) also I create a library of 'mirror' in the PC HMI that is linked to the library of cRIO.  This library has DSC Citadel

    data record enable and automatically records the historical traces of all my important data - very nice.  Libraries hosted PC can be set to autodeploy in the version of the app.

    the project also has an option of autodeploy to the development environment that normally, I turned off.  If you have a PC at the cRIO binding configuration so be careful

    on any kind of autodeployment because this will eventually force the cRIO app stop when you deploy.  To work around this problem, you can use the PSP (IP address rather than project binding

    process name) and use of the DSC deploy library s vi in your HMI application.  Once you use the scan engine, you can use the app DSM (Distributed System Manager) to view, DIF and

    each of you IOV and NSV graphic on your network.

  • Substitution Variables database

    Hello guys,.

    In the EPM 11.1.2.3.500 system where are stored the substitution variables, wise db?

    Thank you

    Right-click on the server in the EA and then edit > Variables. Here, you will get a list of all the variables, and it will also show if they are set at the level of the server, the application or database level.

    For your next question, where variables are stored. All substitution variables are stored in the file essbase.sec (essbase security file)

    When you try to view the variables, it go from variable substitution, and when you try to edit and save any variable, then it will update the security file.

    Hope this helps

    See you soon

    Amarnath

    ORACLE | Essbase

  • How to use a variable?

    Hello

    I would like to use variables for sym.getComposition () .getStage () .getSymbol ("Rec") so that I can type in Rec.isPlaying (); instead of copy and paste long code 100 times. I put my variables on the stage with a compositionReady event so that when the document comes on it will recognize my variables immediately. However, in the API guide, he says to avoid using global variables and to use var myvar but this means I have to copy/paste in these variables on each single object I want to do what is just stalling.

    So the first thing is first. It WORKS with the global variable and a compositionReady event. So I have a few questions on this topic.

    Global variables are called each .xxxx miliseconds or are they only called when an action is triggered? If this is the first, is there another event that I can put on the chronology of the main stage so that he questions my variables at each first time an action or event is fired? I'm also upgrading efficiency too. A slow game isn't fun.

    Also, I have a quesiton of syntax if anyone can help me to answer this question. Can I condense this code?

    If (circ.isPlaying ())

    Circ.Stop ();

    ElseIf (rect.isPlaying ())

    Circ.Stop ();

    ElseIf (roundedRect.isPlaying ())

    Circ.Stop ();

    on the other

    Circ.Play ();

    Y at - it another way I can just say:

    If (circ.isPlaying ())

    (rect.isPlaying ())

    (roundedRect.isPlaying ())

    SYM. Stop();

    on the other

    SYM. Play

    Thank you all.

    Hello

    If you want to: (circ.isPlaying ()) and (rect.isPlaying ()) and (roundedRect.isPlaying ())

    then you write: (circ.isPlaying ()) & (rect.isPlaying ()) & (roundedRect.isPlaying ())

    JavaScript: logical operators.

Maybe you are looking for

  • Satellite P500 PSPGSE - Start Power button problem

    Hello! Hi, I have a problem with my laptop! Power-start button on my usual (pspgse drivers) Toshiba p500 works, but when I use remote control work.A month AGO portable is in SERVICE of TOSHIBA in Serbia and they say that this is a problem in the bios

  • WNDR3400v3 (N600 router) cannot recognize all printers on Readyshare

    Hi, first time announced! I just bought a N600 (WNDR3400v3) router and has difficulties with ReadyShare. -J' was able to connect an external to the router and I can access through my computer! -However, both printers I've tried to connect have not be

  • Declarations of function call

    If I call a function and pass it a variable, and this function performs a calculation with this variable, the variable in the main function should be changed.  Let me give an example below.  In this example, the Message box displays 1, 2 and 3.  I al

  • Electronic FSK demodulation: Stream of bits of received emission-free output

    Hi all I am trying to receive a stream of output bits of an RF signal demodulation. The signal is a frame of 272 modulated fsk bits. The transmit frequency is 433,92 MHz. Transmission of flow rate is 227,27 to the United States. The frequency deviati

  • Clustering

    Two WindowsServer 2003 ent. in a network with two storage, a node 1 and the other to node2. Is it possible to make the clusters?