How to access a variable in if clause?

Hi Friends,
I have declared a varialbe like this
<?xdoxslt:set_variable($_XDOCTX, ’cnt’, 10)?>
Now if i want to access the variable in "if" clause ,something like
<if:cnt=10?>
How can i access it?

Hi,
try the following
<?if:xdoxslt:get_variable($_XDOCTX, 'cnt')= 10?>
Your logic goes here
<?end if?>
regards
Rupesh

Similar Messages

  • How to access system variables in Script Component in data flow task in SSIS

    Hi,
    I am new to SSIS. Can someone tell me how to access system variable in Script Component in SSIS using C# code.
    Thanks

    You can use the System.Environment.GetEnvironmentVariable(...) to read the variables. An example is here:
    http://msdn.microsoft.com/en-us/library/y6k3c7b0.aspx
    Vikash Kumar Singh || www.singhvikash.in

  • How to access _global variables in different domain

    hi
    i am loading a swf in local and this has to be communicate the swf which was in the server(different domain). using the system.security.allowdomail i can access the variables, but i can't able to access _global variable.
    Pls tell how to access _global variable in different domain
    Thanks in advance
    @flash

    Ganesh,
    It should work the way you mentioned it. I don't see why it
    didn't unless there is a spelling mistake or something. If there
    is you should have a got an error message. :-)
    I actually don't recommend using globals at all, I would rather
    use a PL\SQL Package Specification to define Global Variable.
    These variables are valid for the duration of the Session and
    they are restricted to Char(255) limit. It reduces the number of
    mistakes when converting dates and Such. It also forces the
    developers to place all the globals in one place instead of
    multiple places. Read Feurstein's book on PL\SQL Programming for
    more details.
    Sunil
    MS Ganesh (guest) wrote:
    : Hi Steve,
    : I know how to assign values to global variables.
    : I did the following
    : Form Name : FIRST_FORM
    : :global.group_id := 'SUPERVISOR'
    : call_form('SECOND_FORM');
    : In Second Form
    : When New Form Instance
    : Message(:global.group_id);
    : No message is displayed.
    : Please explain to me the steps in detail.
    : Thanks in advance.
    : Bye
    : MS GANESH
    : Steve (guest) wrote:
    : : Just assign value to global variable i.e.
    : : :global.foo := 'anything'; or
    : : COPY('anything', 'global.foo');
    : : to remove global variable
    : : ERASE('global.foo');
    : : Note: global variables are always VARCHAR2(255);
    : : MS Ganesh (guest) wrote:
    : : : Dear OTN Members,
    : : : I would like to pass values between forms,
    : : : I know it is possible to do it by using Parameters.
    : : : But I would like to know how to use global variables to
    : : : accomplish the same task.
    : : : Thanks in Advance.
    : : : Bye
    : : : MS Ganesh
    null

  • How to access a variable from within a symbol.

    How do I access a variable set outside a symbol from within that symbol?
    Thanks

    If you set a variable on stage ,say
    sym.setVariable("stageVariable", "I am stage variable");
    You can access it from within  a symbol using :
    var myVariable = sym.getComposition().getStage().getVariable("stageVariable");
    Basically you need to get handle to the symbol in which the variable is defined.

  • How to access Workflow variables in Form Designer?

    Hello,
    I am wanting to set certain subforms to readonly depending on which part of the workflow the form is currently on. I already have the JavaScript code working to set the subform fields to readonly, but now I cannot figure out how to trigger this and where do I keep a variable to keep track of which part of the workflow I am currently in.
    I assume I will have a variable in the workflow itself and then I can use the Set Value QPAC to change the variable for each workflow step before it goes to the User QPAC, but what about within the form? I don't understand how the form javascript will know to execute, so how does my workflow "talk" to the form to set these fields to readonly?
    Right now the JavaScript code is sitting in the root::initialize part of the form. I was assuming I could have something like "if my workflow variable is equal to XX then set this subform to read only". But, how do I access my workflow variable in the form designer?
    Also, since I have digital signatures, I am having to pass all the form data in document variables, will this affect how I need to do this? I was also thinking of possibly accessing/setting a hidden field in the form, but thought the above way may be better.
    I hope that made sense!
    Thank you,
    Jennifer

    To follow-up, I spoke with Adobe support this morning and they said that I cannot access Workflow variables within Designer (besides those Workflow variables that are already provided).
    He mentioned that if I use the hidden fields, that I would need to Render the form each time before going to the User to trigger this to happen. So, I am not sure what I will do just yet. I probably not worry about making the fields readonly for the time being; it was a little extra thought I had and isn't required for our process.
    Thank you,
    Jennifer

  • How to access Websphere variables using java

    Hi
    I want to access Websphere variables using java.
    Any help is appreciated!!
    Thanks
    P

    WebSphere Application Server has a bunch environmental variables such as log locations. These are held at the "server", "node", and "cell" level.
    To access them, you have to get the right context. Something like this, I believe...
    InitialContext initialContext = new InitialContext();
    initialContext.lookup("foo:bar/baz/blah"); //correct context hereGo to the IBM website for WAS and do a search on namespace bindings. That should give you some more information.
    Good luck.

  • How to access a variable in workflow

    Hi All,
    1)Can a user-defined variable be accessed in workflow? If yes,how??
    2) whether or not every idoc function runs in the workflow or only workflow specific functions can be used there?
    (idoc reference guide says nothing abt whether non-workflow functions working under workflowcustomization area)
    3)I am trying to pull all the metadata options (multiselect) options in a variable and then i want that variable (which will now contain a string) to be used as a token .how can i go for it?
    4)where can we see the output of idoc scripts when we write customization scripts in UCM (apart from the reflection of changes happening if the script is proper)
    Thanks in Advance.

    I think what you are saying is that you want to create a token based on the values in a metedata field that is popuated by a multiselect list. This requires that you have a multiselect list where you add user ids to a metadata field
    To do this from the Workflow Admin applet
    Options > Tokens... > Add
    Give the Token a Name and Description and then paste the following into the script area
    You will have to change the value of xReviewers to the name of your custom metadata field.
    <$rsMakeFromString("wfReviewers",xReviewers)$>
    <$loop wfReviewers$>
    <$wfAddUser(wfReviewers.row, "user")$>
    <$endloop$>
    Is this what you need?
    Tim

  • How to use bind variables using in  clause in SQL

    Hi
    Can any one help me in regards Bind variables usage using in clause in sql for String data?
    thans

    Are you looking for a dynamic IN list? As in something like this:
    SELECT ... FROM .. WHERE some_col IN (<dynamic list of stuff that is always changing>)If so check this out:
    [ How can I do a variable IN list?|http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:210612357425]

  • How to access enviroment variables on 10.1.2.3??

    We would like to add and access the environment variables from jsp/java, does anyone know how to do so? We have added them to the server in the env var section, but are unable to access any of them?! Help!

    Tried that. Throws a genEnv is deprecated error. It does however work on 10.1.3. (which is frustrating) I switched it to use the java.util.Properties p = System.getProperties(); But it doesn't show up in that list either.

  • How to access (call) variables from multiple components

    I have what I think is a basic task, but I cant seem to get it to work.  I have a Flex project with one application.  In addition to the one application, I have many components that are used in the application.  These components vary from simple (a ComboBox) to complex (many sub-components).  What I need to do is define a viable in one component and access it in another component.  I can't seem to do this.  Below is an example of how I think it should be:
    Component1
    <mx:Script>
           <![CDATA[
            [Bindable]
            private var userID:int=0;
           ]]>
    </mx:Script>
    Component2
    <mx:TextInput  text="{Component1.userID}"/>
    Any help you can provide would be beneficial.
    Lee

    Hello,
         You may also want to consider using the mx.core method.
         In your main application script area define all of your public variables and functions. Then from your component, you can reference these absolutely with the following syntax.
    <!-- Main App -->
    [Bindable]
    public var userID:int;
    <!-- Component -->
    private function init():void {
         var com_UserID = mx.core.Application.application.userID;
    Using this method ensures that you will have access to any Function or variable within the scope of the project.
    Kind Regards,
    Dr. Ivan Alexander, Ph.D.
    Sr. Applications Engineer
    FlexAppsStore.com
    Sun Microsystems
    MySQL Enterprise Ready Partner 2009

  • How to access a variable from inside another symbol

    So i did this tutorial, Leveraging Independent Symbol Timelines created by Eliane...it's rockin, btw.  ;-)
    All's well but now i have a symbol on the stage called mc-home.  inside of mc-home is a button called btn-go.
    On the stage in composition ready there's a variable sym.setVariable("current", "mc-home");
    This code works for a symbol that's on the stage but, how do i get this code to work on a button that's inside another symbol that's on the stage?
    var current = sym.getVariable("current");
    if (current != "") {
        sym.getSymbol(current).play("OUT");
    sym.getSymbol("mc-something").play("IN");
    sym.setVariable("current", "mc-something");

    sorry, i was kind of confused myself too, don't worry about it but thanks for your patience for reading it anyway

  • How to access a variable from a dynamically included JSP page

    I have a jsp (say main.jsp) using the following in its code :
    <jsp:include page="menu.jsp" flush="true" />
    I have a variable in menu.jsp which I would like to use in my main.jsp.
    How do I get the value of the variable defined in menu.jsp ?
    I called this variable in menu.jsp, Public, but this didnot help me use the value of that variable in main.jsp
    Any help is highly appreciated.. thnks a lot

    I do notice the variable var1 has the value populated - in menu.jsp - (from View -->
    Source in the browser) but for some reason not able to use it in main.jspI'm not quite sure of the way your jsps are structured from your code snippet but I think there is something to be aware of here that may be part of your problem, namely the difference between the include directive and the include action.
    You are currently using the include action, this treats the included resource as a dynamic object - i.e. a request is sent to that resource and the resulting response is included in your page. So when you think of what there is no java variable actually included - you'll just get the resulting HTML that is generated by menu.jsp
    The include directive, as in <%@include file=�menu.jsp � %>, on the other hand treats the resource as a static object. This means the actual bytes in the included resource are inserted into the including jsp and then the result of that is compiled and processed, effectively you are cutting and pasting the menu.jsp into your calling jsp. In this case the variable would be available to the calling jsp.
    However this approach does bring other difficulties that may break your current code, you'll just have to try it and see what happens.
    Hope that's relevant to your problem,
    Matt

  • How to access a variable from one mxml to another mxml?

    I have Vbox having Hbox in turn hbox has some components ...TextInput...
    I m adding this Vbox in another mxml file....iteratively ....
    I need the sum of all the enetered values in the text boxes to be displayed on the textbox in another Mxml ...
    I am taking sum in a variable and want to show tha some in another file...
    How can I get that variable in my resultant mxml??
    TIA

    In this case it is best to use custom events to pass data. Here are some resources:
    http://chikaradev.com/learning/flex3/customevents/StudentsTutoringCustomEvents1.pdf
    http://chikaradev.com/learning/flex3/customevents/CustomEvents3/CustomEvents3.html
    http://livedocs.adobe.com/flex/3/html/help.html?content=createevents_3.html
    If this post answers your question or helps, please mark it as such.
    Greg Lafrance - Flex 2 and 3 ACE certified
    www.ChikaraDev.com
    Flex / AIR Development, Training, and Support Services

  • How to access a variable from one program to another (independent)

    Hi,
    My requirement is to use a variable(value) from one program(prog1) to another (prog2). how is it possible.
    Regards
    Arani Bhaskar

    Go for memory id .
    passing on values from one program to another program
    Program1
    EXPORT (variable) TO MEMORY ID 'LOC'.
    Program2
    IMPORT (variable) FROM MEMORY ID 'LOC'.
    LOC is the address , for more press f1 on export in abap editor.

  • How to access javascript variable's value in a jsp tag?

    Is there any way to access the value of a javascript variable in jsp?

    Hi
    by the way your question is ambigous, i understand the question to some extent here i there is a sample code which may be help full to you. As this problem is faced by me when i was developing some dynamic pages in my company.
    <%@ page language="java" %>
    <html>
    <head>
    <script language="JavaScript">
    var i = 10;
    var k = 20;
    </script>
    </head>
    <%
         String Jspi = "";
         Jspi = ("<script>document.write(i);</script>");
         out.println(Jspi);
         Jspi = ("<script>document.write(k);</script>");
         out.println(Jspi);
    %>
    </body>
    </html>
    This will help u out.
    Cheers
    Rambee

Maybe you are looking for

  • Web Gallery troubles

    I published a web gallery (album of pictures) to my .mac account, and it worked properly. But I then had to change one of those pictures (actually a title with an error), and I did this by changing it in the iPhoto 08 web gallery. That, too, worked p

  • H.264/AVC Encode

    Hiya, we all know our video guru el_loco whom I have known a long time and who helped me two consecutive years to get MY PHONE. This process is based on him. Our N95 8GBs are HW accelerated for 640X480 REZ'd MPEG4/MP4s and 320X240 REZ'd H.264/AVCs. I

  • I need Bluetooth on my Pavilion.

    I don't have Bluetooth on my  Pavilion. I was asked to upgrade. I got following message when i entered the product number.   "HP has not tested this PC.   For this reason, HP is unable to provide upgrade instructions or Windows 8 drivers. You may los

  • What is the best way to backup a 1 Terabyte external USB drive?

    In order to keep my MacBook Air running speedily along and to free up space, I use this strategy to store my iTunes Library on an external USB drive. I'm trying to think of the best way to backup a 1 Terabyte external USB drive. I'm told the hardware

  • File-XI-File

    One more on File-XI-File scenario... Unable to pick the sender file test.dat located on /oracle/XI3 folder. Sender comm channel created as: NFS. Source Dir: /oracle/XI3 File: test.dat Poll int: 5 secs Proc mode: Delete File type: Text I already have