Calling one variable to other variable ( alphanumeric)

Hi All,
I have scenario where I am calling one variable to other variable in ODI.
For example.
Lets say I have two variable V_SET1 & V_SET2
V_SET1 :
Variable type : alphanumeric , Historize,
Refreshing : SELECT #V_SET1 FROM DUAL to historize value.
Now I am using V_SET1 in V_SET2
V_SET2:
Variable type : alphanumeric , Historize,
Refreshing :
select SOURCE_NAME from EXTRACT_PGSQL_DETAIL where OE_DETAILS = # V_SET1
Both variables are inside scenario I am passing value of V_SET1 at run time as parameter 'TEST'
V_SET1 is executed sucessfully & TEST is stored is historized
BUT in V_SET2 V_SET1 value is getting passed in " quotes & i am geeting error of INVALID IDENTIFIER "TEST"
select SOURCE_NAME from EXTRACT_PGSQL_DETAIL where OE_DETAILS = # V_SET1 ( "TEST") -- error inavlid identifier.
How can I covert the value of TEST from "TEST" to 'TEST' in second Variable V_SET
Edited by: neeraj_singh on Jun 24, 2011 3:15 AM

Hi,
Try this if not,
select SOURCE_NAME from EXTRACT_PGSQL_DETAIL where OE_DETAILS = '#V_SET1'
Thanks,
Guru

Similar Messages

  • Call one TF in other TF

    Hi,
    I have two taskflows... in each of the taskflow i have a default activity as home page
    when i am running independently these taskflows initially home page gets displayed
    But when i am calling the second taskflow in the first taskflow i want the home page not to be displayed again in the middle of the session
    So my approach to this is to keep a router activity as default activity in the second taskflow and navigate to home page or some other page as the two options for router
    But if i set some value in session scope in the first taskflow and before moving to second taskflow i want that session scope value to be set back to null so that router condition goes to another option and home page is not displayed.
    How can we Reset the session scope value to null in the middle of taskflow or else can we have the value to be set in request scope so that while moving from one taskflow to other TF will the value of request scope be lost and set back to null , if this option works can somebody let me know how to set the value in request scope programatically.
    Thanks,

    try for view scope or page flow scope as request is to small and session is too big. Also you can have a method activity where you can still set it in session scope

  • Calling one component from other

    Hi,
       I want to call a portal component,with in the event handling routine of cellClick.
    Actually what I need is,in cellClickEvent method,I need to store the clicked value in session and then redirect it to another component based on the clicked value.
    Can any one help me in achieving that?
              Thanks in Advance
    Regards,
    Santhosh

    Hi Santhosh,
    You can do that using the EPCF service provided by the Portal.EFCF is used to communicate between Iviews and pass data between them.Exactly what you need.
    Please reward points, if helpfull.
    Regards,
    Vivek

  • Help with GUI (calling one class from other class)

    Hi everybody,
    I am new at GUI and I need your help..
    I have a JPanel, named "holdAll", layout of which is set to BorderLayout. I have implemented all other JPanels in different class files. For example, I have TopPanel, LeftPanel, etc. as shown below
    LeftPanel myLeft = new LeftPanel();
    holdAll.add(myLeft, BorderLayout.WEST);
    RightPanel myRight = new RightPanel();
    holdAll.add(myRight, BorderLayout.EAST);
    TopPanel myTop = new TopPanel();
    holdAll.add(myTop, BorderLayout.NORTH);
    MiddlePanel myMiddle = new MiddlePanel();
    holdAll.add(myMiddle, BorderLayout.CENTER);
    BottomPanel myBottom = new BottomPanel();
    holdAll.add(myBottom, BorderLayout.SOUTH);
    That works well but I have difficulties in ActionListeners.. For example, in my TopPanel class I have the code below:
    public void actionPerformed(ActionEvent e) {
    if (e.getSource() == btnInsert) {
    int returnVal = fc.showOpenDialog(fc);
    if (returnVal == JFileChooser.APPROVE_OPTION) {
    File file = fc.getSelectedFile();
    myImage newImage = new myImage(file);
    System.out.println(newImage.myHashCode());
    Here, if I have upload new image, then I have to update the listImage in the LeftPanel class.. But, I could not access the lstImage object in the LeftPanel class from the actionListener event in the TopPanel class.
    What should I do? Is my design poor?

    public class TopPanel extends JPanel implements ActionListener { //it doesn't allow "extends JPanel, Observable"
    JFileChooser fc;
    JButton btnInsert;
    JButton btnDelete;
    public TopPanel() {
    setLayout(new FlowLayout());
    setBorder(BorderFactory.createBevelBorder(1, Color.WHITE, Color.GRAY));
    btnInsert = new JButton("Insert");
    btnDelete = new JButton("Delete");
    JLabel myLabel = new JLabel(" Search : ");
    JTextField txtSearch = new JTextField();
    txtSearch.setColumns(20);
    JToolBar searchToolBar = new JToolBar();
    fc = new JFileChooser();
    btnInsert.addActionListener(this);
    searchToolBar.add(btnInsert);
    searchToolBar.add(btnDelete);
    searchToolBar.add(myLabel);
    searchToolBar.add(txtSearch);
    add(searchToolBar);
    public void actionPerformed(ActionEvent e) {
    if (e.getSource() == btnInsert) {
    int returnVal = fc.showOpenDialog(fc);
    if (returnVal == JFileChooser.APPROVE_OPTION) {
    File file = fc.getSelectedFile();
    *//Here I want to send fc.GetName() to the JList in the LeftPanel*
    my LeftPanel class is below:
    public class LeftPanel extends JPanel{
    public LeftPanel(){
    this.setLayout(new BorderLayout());
    setBorder(BorderFactory.createBevelBorder(1, Color.WHITE, Color.GRAY));
    JPanel pnlButtons = new JPanel();
    JButton btnName = new JButton("Name");
    JButton btnSize = new JButton("Size");
    JButton btnDate = new JButton("Date");
    pnlButtons.add(btnName);
    pnlButtons.add(btnSize);
    pnlButtons.add(btnDate);
    pnlButtons.setBorder(BorderFactory.createLineBorder(Color.BLACK));
    JPanel pnlImage = new JPanel();
    JList lstImage = new JList();
    lstImage.setVisible(true);
    pnlImage.add(new JScrollPane(lstImage));
    add(pnlButtons, BorderLayout.NORTH);
    add(pnlImage, BorderLayout.CENTER);
    Is there any simple way?

  • SSIS: How to use one Variable as Input and Output Parameter in an Execute SQL Task

    Hello,
    i need your help,I'm working on this issue since yesterday and have no idea how to deal with it.
    As I already said in the tilte i want to start a stored procedure via a Execute SQL Task which has around 15 prameters. 10 of these should be used as input AND output value.
    As an example:
    i have three  Variable:
    var1    int        2
    var2    int     100
    var3    int     200
    the stroed procedure:
       sp_test
          @var1 int
          @var2 int output
          @var3 int output
       AS
       BEGIN
            SET @var2 = @var2 * @var1
            SET @var3 = @var3 + @var1
       END
    So in the Execute SQL Task i call the Stored Procedure as follwos:
        Exec sp_test  @var1 = ?, @var2 = ? output, @var3 = ? output
    (I use an OLE DB Connection)
    The parameter mapping is as follows:
    User::Var1        input                   numeric              0                 -1
    User::Var2        input/output         numeric              1                 -1
    User::Var3        input/output         numeric              2                 -1
    Now my problem. If i set  Var2 and Var3 as Input parameter the values are still the same after running the package. If i set them to a output value the are both Null because the procedure doesnt get any values.
    I already tried to list them a second time - like
        User::Var2        input                  numeric              1                 -1
        User::Var2        output                 numeric              1                 -1
    or i use a new variable
        User::Var2                  input                  numeric              1                 -1
        User::Var2Return        output                 numeric              1                 -1
    but i alwas get the error
    "Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done."
    Has anybody an idea how I can solve this problem?
    Thanks a lot.
    Kind Regards,
    Alice

    Hi Alain,
    thx for your answer.
    I have around 15 procedures called one after the other to calculated and modify my values. Each procedure is responsible for an other but overlapping set of variables. So i thought it would be a good idea to call them one after the other with the needed variables via a execute sql task.
    So if i use a result set, how i get my stored procedure to return 10 values? I would have to use a Function instead of a procedure, wouldn't i?
    As if i have 15 procedures this would be a lot of work.
    But thanks a lot for the idea. I think an other idea would be to create one function which calls all stored procedures and returns all the calculated values as a result set, wouldn't it?.
    Kind Regards.
    Alice

  • How to call one .SWF from another?

    How do I call one .SWF from another. I built a very beefy
    base .SWF, and want to add music overlay, and an intro slide show
    to the exsting Flash animation, but put it in a second .FLA/.SWF
    file. How do I call one from the other?
    This will be embedded in an HTML file but I assume this is
    superfluous to my question.
    F.Z.

    I think you should open that Another SWF (FLA),
    and add some actionscript..
    For example, you could create a movie clip, and write
    actionscript in the
    first keyframe:
    loadMovie("
    http://www.somewebpage.com/movie.swf",
    this);
    "FredZimmerman" <[email protected]> wrote in
    message
    news:ftnjas$mj5$[email protected]..
    > How do I call one .SWF from another. I built a very
    beefy base .SWF, and
    > want
    > to add music overlay, and an intro slide show to the
    exsting Flash
    > animation,
    > but put it in a second .FLA/.SWF file. How do I call one
    from the other?
    >
    > This will be embedded in an HTML file but I assume this
    is superfluous to
    > my
    > question.
    >
    > F.Z.
    >

  • Is it possible to call one mathscript function from another?

    HI iam bahrath..i need call the operation takin place in one mathscript in another..is it possible?pls help..

    Thanks for your concern..let me explain my project.Iam actually developing a system which provides the stress strain relationship of a material..For calculating strain which is nonlinear in this case we are using image processing techniques.We take a picture of the system initially with light markers and we find the centroid of all the markers(i use four of them).After the force is applied on the particle the centroid of the markers change as the marker positions change.I use this change in the centroid and calculate the strain.Now, 90% of the code is ready in matlab(jus capturing image and usin is needed).But i have been asked to implement it in labview.so iam tryin to put the code in mathscript and try.But the problem i face is incompatibility of many functions like imshow,input etc.so im implementin parts of the code inlabview mwthod and rest in mathscript.In matlab code i have two files and call the function in in another file from one file..thus i thought i might use two mathscripts and call one from the other..pls help.

  • Calling a variable from main class to other class

    How do I call a variable that is initialize in the Test.java into Sub.java?
    I want to call the a, b, c that I have initialize in Test.java into Sub.java.
    import java.util.*;
    import java.lang.*;
    import java.awt.*;
    public class Test{
         public static void main(String args[]){
              int b;
              int c=1;
              int a=11;
              b = c + a;
              System.out.println(+b);
    import java.util.*;
    import java.lang.*;
    import java.awt.*;
    public class Sub{
         public void Subtraction(){
              if(a>c)
                   b = a-c;
              else if(c>a)
                   b = c-a;
              else if(a=c)
                   b = a-c;
              System.out.println(+b);
    }

    This is, and I'm sorry but I don't know how else to say this, a real big mess.
    I'll go through some (most/all) of it but honestly....
    import java.awt.*;Many will tell you that you should use specific imports and not wildcards to increase ease of reading. I am not so personally picky about this but it would help you.
    import java.awt.event.*;
    import javax.swing.*;
    import java.util.*; Don't import things you never use. It just adds confusion get rid of java.util import
    import java.lang.Object.*;Redundant. Remove it.
    import java.applet.Applet.*;Unused. get rid of it
    public class SUBOK {      Terrible class name. Please use the standard [_Java naming conventions_|http://java.sun.com/docs/codeconv/html/CodeConventions.doc8.html]
    public int a = 10;
        public static void main(String[] args) {
             SUBOK runGUI = new SUBOK();
        public SUBOK(){
             JFrame f = new JFrame("Subok");
             f.setSize(150,100);
             f.setVisible(true);
             f.setDefaultCloseOperation(f.EXIT_ON_CLOSE);
             JButton b = new JButton("Sum");
             b.setActionCommand("send");
             b.addActionListener(new Push());
             JPanel p = new JPanel();
             p.add(b);
             f.add(p);
        } Most of that is okay although not great. But I don't think you should be doing anything in Swing at all yet.
      private class Push implements ActionListener{
             public void actionPerformed(ActionEvent e){
                  if(e.getActionCommand().equals("send")){
                       int a = 12;You are aware that this a has nothing to do with your other a? right? I mean this is a method local variable in a whole other class then the other one.
                           Add i = new Add();
                           i.Add();                
        public int aValue(){
             return a;
    } Alrighty then...
    import java.lang.*;Redundant. Remove You never need to import java.lang.
    import java.awt.*;Unused. remove.
    import java.util.*;Unused remove.
    public class Add {
         SUBOK a = new SUBOK();
         int d = a.aValue(); Aiaiaiai.
      public void Add() {
             int b;
             int c = 0;
             b = d+c;
             System.out.println(b);
    }First of all do not name a method the same as a class. Second most of this class appears to be based mainly in the realm of wishful thinking. In programming, wishing that something will "just work" without understanding the basics of why and how it works does, pretty much 100% of the time, not end well.
    You need to take a number of steps back from this code, get grounded in some fundamentals and then make another attempt. I would highly recommend putting the Swing (or any other GUI) code aside for some time now. Inter-object communication is a fundamental part of OO and thus a fundamental part of Java and this code clearly shows that you don't understand it yet at all.
    Start here [_Learning The Java Language_|http://java.sun.com/docs/books/tutorial/java/index.html]
    If you have questions as you go through the tutorial do come back and ask them and someone here will be glad to help you. But in order to help you with code you have to be at a point where you understand things like variable scope, the difference between a class and an Object and how, why and what methods can be used to exchange information between two instances.

  • About give from one query to other the same value of a variable

    Hi Gurus,
    my problem is About give from one query to other the same value of a variable, i have a wad with a view, and this wad has some bottoms in javascript to go to anothers wad with charts, the problem is when i ran the query one, i put a value = calyear:2008 (Obligatory Variable), but when i click the bottom to go to the other query with the same variable, he ask me again a value,
    i want write a value just one time, and the others wad can recieve the first value that i put when the wad opened.
    i really need it , thanks !

    Hello Jorge,
    What you need here is Replacement path variable. Check out this link for more details:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/bd/589b3c494d8e15e10000000a114084/content.htm
    In the second query where you need the value (calyear:2008 from first query) create a Variable for calyear of type Replacement path, in Replacement tab you can select either query or variable by which it has to replaced. In your case, it has to be variable from the first query.
    Do let me know if this works. If this does not work I suggest you to use Web APIs to replace the variable values using Web APIs. Check out the details:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/29/4d15422ecce02ce10000000a1550b0/frameset.htm
    Hope this helps.
    Regards,
    Srini

  • How can I call a variable from another class

    hi
    If I have two classes : one and two
    In class two I have a variable called : action
    In class one I want to check what is the value of action.
    How can I call action?

    Thank you scorbett
    what you told me worked fine, but my problem is that MyClass2 is an application by itself that I don't want to be executed.
    Creating myClass2 as in the following:
    MyClass2 myClass2 = new MyClass2();
    [/code]
    executes myClass2.
    Can I prevent the exectuion of MyClass2, or is there another way to call the variable (action)?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • READING INTO ONE VARIABLE

    HI
    HOW CAN I READ VALUE INTO ONE VARIABLE.???
    ie,
           IN RUNTIME IF IM ENTERING VALUE TO VARIABLE 'A'  MEANS   HW CAN I TAKE THE VALUE TO 'A'.

    DYFIELDS-FIELDNAME ='<Parameter Name>'.
    APPEND DYFIELDS.
    DATA DYFIELDS LIKE DYNPREAD OCCURS 1 WITH HEADER LINE.
    CALL FUNCTION 'DYNP_VALUES_READ'
    EXPORTING
    DYNAME = SY-CPROG
    DYNUMB = SY-DYNNR
    TABLES
    DYNPFIELDS = DYFIELDS .
    READ TABLE DYFIELDS INDEX 1.
    This function module will read out the values into Internal table DYNFIELDS.
    Use this function module at  " On value request for <parameter>.

  • Multiple currency conversion via one variable possible?

    Hello,
    following problem:
    I have a report which contains different currencies (e.g. EUR, CHF, etc.).
    In this report we have different calculated key figures (on cube level).
    Each key figure have different currency conversion (maintained in rrc1).
    Question: Is it possible, when the user starts (execute) a report one variable
    pops up e.g. display all key figures in USD <b>all different currency conversions will be reflected</b>? In the system I don't know where.
    Any idea?

    Ok, I find a solution by myself.
    In the AdminInfo object is a property called MultiCurrencyCheck. When this is set to cc_NoMessage, I can save the journal entry.
    If you want to change this setting in Business One:
    Select Administration --> System Initialization --> Document Settings --> Per Document tab --> Journal Entry tab
    There is a check box "Allow  multiple currency transactions". The description is wrong and it should say "Block multiple currency transactions", like the other. When it is unchecked, I can make multiple currency transaction otherwise not.

  • How to call a variable from another class?

    Greetings
    I�m designing a program that is called Senior.java, and I want to design it�s menus, for simplicity in reading the code, I want to write a separate java file for each menu. For example I want a file.java, edit.java etc�.
    Since I�m not a professional I�m having problems in calling the variable �bar�, that I created in senior.java,
    In Senior.java I have :
    JMenuBar bar = new JMenuBar();
    setJMenuBar( bar );
    In fileMenu.java I want to add file menu to the menu bar �bar�:
    bar.add( fileMenu );
    When I compile the fileMenu.java I got a �cannot resolve symbol � message, where symbol is the variable bar.
    Can you please help me, knowing that i'm using SDK1.4.1?

    Sun has recommendations for naming conventions. Class names should start with a capital letter. You should avoid using class names that are the same as classes provided in the SDK. Following these conventions will make it easier for people to help you. For example, you should not use file, nor should you use File. It's better to use MyFile, replacing My with something that makes sense to your application (SeniorFile?).
    Also, check the Formatting Help link when posting for a desciption on how to use the code tags for posting code.
    1. You need to establish references between your classes. One way is to have a constructor that has a JMenuBar argument.
    2. You can not add a file to a JMenuBar because a JMenuBar adds a JMenu. I don't think you want file to extend JMenu. It may be better for file to have a JMenu.
    I haven't tried to compile this code so no guarantees - just trying to show you an approach.
    public class Senior extends JFrame {
       public Senior() {
          JMenuBar bar = new JMenuBar();
          MyFile file = new MyFile(bar);
    //whatever else you need
    public class MyFile {
       public MyFile(JMenuBar mbar) {
          JMenu menu = new JMenu();
          mbar.add(menu);

  • Passing multiple values to one variable in jsp/javabean

    I have a form, which contains an assortment of fields/checkboxes/etc. What I'd like to see is when someone goes through the form and enters text or checks any fields on the form they want, after they submit it to the next page, the next page will display all those values that they entered or checked. Some of these values entered may be strings or integers. I want all those values (checkbox1, checkbox2, etc) to be stored in one variable in a javabean so I can call upon that value at anytime during the session. Any suggestions?

    why do you want to store so many data in just one variable?

  • Calling a variable by 2 names

    Some times I want to call a variable by an indexed name.
    for (int i= 0; i <5; i++)
    array[i] = from;
    from[0] contains the number of names
    from[1] contains the number o people
    from[2] contains the number of dogs
    from[3] contains the number of cats
    from[4] contains the number of birds
    In other parts of the program, to make it more understandable, I want to refer to numOfBirds rather than from[4]. countOfBirdies = numOfBirdsIs there a way to set up the name equivalence in Java?
    Thank you                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    zscipio wrote:
    I am interested is satisfying both concepts as it is possible in some other languages. One simple way is to introduce named indexes, like
    public class NumberOf {
       private NumberOf(){} // private constructor to prevent instantiation
       public static final int NAMES = 0;
       public static final int PEOPLE = 1;
       public static final int DOGS = 2;
       public static final int CATS = 3;
       public static final int BIRDS = 4
       public static final int SIZE = 5; // number of constants
    }Now you can do,
    for (int i= 0; i <NumberOf.SIZE; i++) {
       array[i] = from;
    countOfBirdies = array[NumberOf.BIRDS];It's probably not exactly what you wanted but at least you're using symbolic names rather than naked indexes.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Maybe you are looking for