Assign container with value of another container

Hello,
I would like to assign the parameter (defined as referenced container) of a subsequence with the value of another container. Something like this:
"Parameters.OUT_CONSTANTS = FileGlobals.CONSTANTS"
But in my expression windows, I get the message:
"Evalutation error
Variable or property types do not match or are not compatible."
What do I have to do to make it works?
Cheers,
Risotto

Hi Risotto,
One concept that you need to watch out for is making sure that the variables defined inside both of your containers need to have the same names. So if your Parameter container had a numeric variable called "Temp", then your FileGlobals container would need a numeric variable called "Temp". The naming conventions need to be the same as well as the data type. The order of the variables inside the cluster doesn't matter. If you don't use the same names for the variables, you will receive the error you mentioned.  Attached is a short snippet of code that shows you how to correctly assign containers. 
Hope this helps!
Jonathan N.
National Instruments
Attachments:
Example.seq ‏29 KB

Similar Messages

  • Assigning Parameter with Values Using A Loop,

    I have the following requirement.
    I have a form that has 40 parameters defined. I have another table where these 40 parameters have been defined. i.e. the same name in the table is the same name I have given to the parameter. e.g. In the table I have a parameter P10000 and in the form I have the same parameter P10000. My Requirement is to Assing the Parameters in the Form With Values from the table by Looping through the records in the table where they have been defined.
    My Table Structure
    create table ad_user_limits
    ul_usr_code varchar2(20 char),
    ul_limit_code varchar2(20 char),
    ul_limit_yn varchar2(1 char),
    ul_limit_value varchar2(255 char)
    Sample Data
    Insert into ad_user_limits(ul_usr_code, ul_limit_code,ul_limit_yn, ul_limit_value)
    values('100','P10000','Y', 10000000);
    Insert into ad_user_limits(ul_usr_code, ul_limit_code,ul_limit_yn, ul_limit_value)
    values('100','P10001','N', 10000000);
    Insert into ad_user_limits(ul_usr_code, ul_limit_code,ul_limit_yn, ul_limit_value)
    values('100','P10002','Y', 30000);
    Insert into ad_user_limits(ul_usr_code, ul_limit_code,ul_limit_yn, ul_limit_value)
    values('100','P10003','Y', 10);
    I am using the Following Code at WHEN-CREATE-RECORD trigger at form level.
    PROCEDURE populate_cert IS
    pl_id paramlist;
    pl_name VARCHAR2 (20 CHAR) := 'cert_list';
    v_limit_code VARCHAR2 (20 CHAR);
    v_pad VARCHAR2 (1 CHAR) := '''';
    BEGIN
    pl_id := GET_PARAMETER_LIST (pl_name);
    IF NOT ID_NULL (pl_id) THEN
    DESTROY_PARAMETER_LIST (pl_id);
    END IF;
    pl_id := CREATE_PARAMETER_LIST (pl_name);
    FOR cert IN (SELECT UPPER (ul_limit_code) ul_limit_code, ul_limit_yn,
    ul_limit_value,
    'P' || SUBSTR (ul_limit_code, 3) p_limit_code
    FROM ad_user_limits
    WHERE ul_usr_code = :parameter.user_code
    ORDER BY ul_limit_code) LOOP
    alert_no(length(cert.p_limit_code));      
    IF NOT ID_NULL (pl_id) THEN
    ADD_PARAMETER (pl_id,
    cert.p_limit_code,
    text_parameter,
    cert.ul_limit_value
    END IF;
    END LOOP;
    END populate_cert;
    My Question is;
    After the Loop, I expect the Parameters to have Values. e.g. P10000 value should be 10000000. Why is this Parameter Null even after the Loop?
    Any Help is Appreciated.
    Regards,
    Eric.

    It's not necessary a name_in
    Following your code... and if you have defined the parameters in the form:
    ORDER BY ul_limit_code) LOOP
                                                                               IF NOT ID_NULL (pl_id) THEN
                                            copy(cert.ul_limit_value,'PARAMETER.'||cert.p_limit_code);
              END IF;
                                            END LOOP;
                                            message(':parameter.p0000->'||:parameter.p0000);
                                            message(':parameter.p0001->'||:parameter.p0001);
                                            message(':parameter.p0002->'||:parameter.p0002);
                                            message(':parameter.p0003->'||:parameter.p0003);
    END populate_cert;

  • Update Nulls With Value from Another Row

    Good Morning,
    I word for a car manufacturer. I am pulling an excel spreadsheet into SQL 2012.The spreadsheet lists one line for each dealer, each carline. So if there are 6 carlines and 65 dealers there will be 390 lines. when the spreadsheet gets to me it looks like
    this:
    Dealer          
    Carline         District         Data         Data         Data
    East Side Craworld Model1
    1 0
    0
    Model2
    1 0 0
    Model3
    1 0
    0 0
    So the Dealer is only listed once. When I pull this into SQL the blank lines are nulls and I want them to be the Dealer name in there. How can I accomplish this with an update.
    Just one thing more. When I programmed in access, I would loop through a table and set a variaiable =Dealer name and not change the variable until the next not null row and then make that the new variable all the while making nulls=the variable. Is there
    a way to accomplish that here.

    The only issue is this file will eventually be a feed and an ftp agent will grab the feed place it somewhere and and there will be a stored package to import it.
    Can I do an update on a null field with the field from the previous record, or am I dealing witht he ordering thing again. I found this code. Will it work?
    select Date
    , GroupId
    , case
    when Comment is not null then Comment
    else
    select Comment
    from YourTable yt2
    where yt1.GroupId = yt2.GroupId
    and yt2.Comment is not null
    and yt2.Date < yt1.Date
    and not exists
    select *
    from YourTable yt3
    where yt1.GroupId = yt2.GroupId
    and yt2.Comment is not null
    and yt3.Date < yt2.Date and yt2.Date < yt1.Date
    ) end as Comment
    from YourTable yt1

  • Problem in assigning a variable value to another one

    hi
    i am just trying to develop class calculating the selling price of car as 15% of the purchase price addeed on the purchase price
    and i developed the next code which is a part of longer code :
    package cardealer;
    public class Car4Sale extends Car {
      public static void main(int[] args) {
        Car4Sale pur , sell; //pur is purchasing price , sell is selling price
        sell = pur *(1+ 0.15) ;
    }the proplem is in the line : sell = pur *(1+ 0.15) ;
    the program says: the variable pur might have not been intialized . operator * can not be applied .
    Note: when i delete this line the variable pur returns intialized in the upper line

    Here is a simple example of what (i think) your
    trying to do.
    //Car class
    public class Car
         private double purchasePrice;
         private String type;
         public Car(double price, String type)
              this.purchasePrice=price;
              this.type=type;
         public double getPurchasePrice()
              return purchasePrice;
         public void setPurchasePrice(int price)
              this.purchasePrice = price;
         public String getType()
              return type;
         public void setType(String type)
              this.type = type;
    //Car Sales class
    public class CarSales
         private Car car = new Car(100,"Porsche");
         private double sellingPrice;
         public static void main(String[] args)
              CarSales cs = new CarSales();
    System.out.println("Car Type :"
    :" +cs.car.getType());
    System.out.println("Car Purchase Price
    ce :"+cs.car.getPurchasePrice());
    System.out.println("Car Selling price
    ce
    :"+cs.getSellingPrice(cs.car.getPurchasePrice()));
         public double getSellingPrice(double purchasePrice)
              return purchasePrice += (purchasePrice / 100) *15;
    }modify it to suit your needs.thank you for this great reply but what i am really looking for is to enter attributes for the car. the attributes are number , manufacturer , size, color . after then adding the purchase price in a subclass and calculating the selling price .
    Ihave no problem whith input code but i am not sure about it is how to deal with these attributes

  • How to update this table with values from another table ?

    Hi
    I have a table "regies". I want to replace the values of the column "regies.agent" by the value of the column "regies_personnes.id"
    As you see the tables have a common values column. ie regies.agent = regies_personnes.nom
    Table "regies" :
    Insert into "regies" (AGENT) values ('Humberdot Alain');
    Insert into "regies" (AGENT) values ('Danard Patrick');
    Table "regies_personnes" :
    Insert into REGIES_PERSONNES (NOM,ID) values ('Humberdot Alain',1);
    Insert into REGIES_PERSONNES (NOM,ID) values ('Danard Patrick',2);
    Before we have this
    sql>select agent from regies ;
    Humberdot Alain
    Danard Patrick
    After the update, the result should be
    sql>select agent from regies ;
    1
    2
    Thank you for your kind answer.

    You will face error if you have duplicates
    ORA-01427 Single row subquery returns Multiple rows.Try this way
    create table regies(agent varchar2(30));
    create table regies_personnes( nom varchar2(30),id number);
    Insert into regies (AGENT) values ('Humberdot Alain');
    Insert into regies (AGENT) values ('Danard Patrick');
    Insert into REGIES_PERSONNES (NOM,ID) values ('Humberdot Alain',1);
    Insert into REGIES_PERSONNES (NOM,ID) values ('Danard Patrick',2);
    Insert into regies (AGENT) values ('Humberdot Alain');
    Insert into regies (AGENT) values ('Danard Patrick');
    Insert into REGIES_PERSONNES (NOM,ID) values ('Humberdot Alain',1);
    Insert into REGIES_PERSONNES (NOM,ID) values ('Danard Patrick',2);
    commit;
    update regies r set agent = (select id from regies_personnes p where r.agent = p.nom
    and rownum=1)
      where exists (select id from regies_personnes p where r.agent = p.nom
    commit

  • The document contains no posting lines with value other than zero

    Hi!
    We are having problems posting a invoice in MIRO. When entering the PO number we receive the error message "The document contains no posting lines with value other than zero".
    What could be the problem?
    /Anders

    Hi!
    The GR_BASEDIV is set in the PO. The PO is replicated from SRM where this flag has been set for no reason. Only GR and IV are set and we have implemented a note 1155266 so that Confirmation-Related IV will not be set.
    How come it is set anyway?
    Sincerely
    Anders

  • Assigning a Numeric Value in a Cell Based on Text in Another Cell

    In advance, thanks for your assistance. I'm trying, in vain, to assign a numeric value in a cell based on text (from a dropdown menu) in another cell. For example, in cell A5 I have a dropdown list that includes the options "blue", "red", "white", and "gold." I want cell C15 to be 2 if A5="blue"; I want C15 to be 0 if A5="red"; I want C15 to be 2 if A5="white"; and, I want C15 to be 1 if A5="gold."

    Tippet,
    This is a job for LOOKUP.
    The expression for the Result cell is: =LOOKUP(A2, Lookup :: A1:A4, Lookup :: B1:B4)
    The aux. table contains the matches that you assign for the colors.
    Regards,
    Jerry

  • How to assign One Dimension Property value to another Dimension ID

    Business senario:
    There are two dimensions Entity and Plant. Plant also has a property Entity.
    In my Input Form, I need to derive Entity Property based on PLANT selection and should map it to ENTITY Dimension.
    I have selected PLANT Dimension and ENTITY Dimension in Page Axis. I have updated EPMOLAPMember() formula with EPMMemberProperty() for deriving Entity values. When I tried to save data an error message appears saying TOT_Code is not a base level member. So I checked Edit Report window and found that ENTITY Dimension is automatically moved to default left panel from Row Axis and Entity Dimension Context Menu is mapped to TOT_Code which is the top node of the total hierarchy.
    I tried EPMMemberOverride() function to overwrite ENTITY Dimension values with Entity Property of PLANT Dimension but unable to overwrite it.
    In Simple Words:
    ENTITY Dimension = PLANT Dimension (Entity Property)
    Is there any way to map/assign property value to another dimension??? Please help me.
    Thanks in advance.

    Hi,
    see please this thread for a possible solution http://scn.sap.com/thread/3230754
    Regards
         Roberto

  • Assign one filed symbol to another and changing with out impact on other

    Hi,
    i'm assigning one field symbol to another.
    assign <fs1> to <fs2>.
    if i change <fs2> that will impact <fs1> too. How to copy the value in <fs2> to <fs1> and at the same time if i change one of those fields, it should not impact another.
    Thanks,
    KK.

    Thanks for the quick response robert.
    if i want to copy a dynamic structure with out modifying the original, how to ...
    hope my question is clear.
    thanks,
    KK.

  • Creating Variable with Replacement Path to get value from ANOTHER Variable

    Hi all,
        Is anyone has created the Variable with Replacement Path to get the value from another User Entry Variable, PLEASE ? 
    First created the User Entry Variable (ZV_X) and it accepts the date range like '01/01/2009 - 01/31/2009'. Next created the Characteristic variable (ZV_Y) of Replacement Path for which source variable will be ZV_X and we should get the 'FROM Date' (01/01/2009) from the selection (ZV_X) into it (ZV_Y).
    While creating the Characteristic variable (ZV_Y) of Replacement Path, I didn't find my newly created ZV_X variable in the list of available variables under 'Variable' header in 'Replacement Path' tab and it is causing the error 'Source to replace variable ZV_Y is not defined'. How could I create the Characteristic variable of Replacement Path for my requirement, PLEASE ?
    The following is from help.sap..com:
    Replace with Characteristic Value
    Text and formula variables with the processing type Replacement Path can be replaced with a corresponding characteristic value. In the variable editor, on the General tab page, you specify under Reference Characteristic the characteristic that is to be referenced by the replacement. On the Replacement Path tab page, you can choose whether the variable is replaced with the From or the To Value and with the Key or the Name of the characteristic value. You can also specify the Offset Start and Offset Length for the output.
    Replace with Variable
    Characteristic value variables, hierarchy variables, text variables, and formula variables with the Replacement Path processing type can take their values from a different variable.
    The following prerequisites need to be fulfilled:
    Variable
    ●      The variable must not be input-ready
    ●      The variable must represent a single value
    Source Variable
    ●      The source variable must not be a hierarchy node variable
    ●      The source variable must be input-ready
    ●      The source variable must be available in the query
    ●      The source variable must represent a single value or an interval
    In the variable editor, on the Replacement Path tab page, you specify the source variable from which the value is to be determined. The value is either determined from the key, the external attribute of the key, the description, or the attribute value. You can specify an Offset Start and an Offset Length for the output here. The variable is replaced on the variable screen upon each data release.
    Thanks,
    Venkat.

    Hi Eve,
    It is possible to connect the 2 queries using a Replacement Path characteristic variable. You would need to create the variable on the char whose values you want to pass from Q1 to Q2. The variable will be of type replacement path and you will need to enter the name of Q1 from which it will get the values. Make sure that you include this char in the query definition of Q1 and Q2. In Q2 you will restrict the characteristic using this variable. DO not use this variable (replacement path) in Q1.
    In your query properties check if you have turned on the checkmark for Release for OLE DB for OLAP (3rd tab). If the check mark is there, then remove it.
    We are using the scenario in a couple of places, and it works very well.
    Hope this helps...

  • Save the selected value from listbox with its respective tab control dropdown selcted values in another listbox

    Hi all,
    I am making a vi where I have to save the selected value from listbox with its respective tab control dropdown selcted values in another listbox.Whenever I select Item1 then the heading change and respective tab will open for that item.But Now I just want to save the selection and put it in another ListBox.SO that I can renmove or add according to my wish. Plz help me.
    Solved!
    Go to Solution.
    Attachments:
    my_vi.png ‏83 KB

    Hi, I successfully make the vi to insert itmes from listbox1 to listbox2.Whenever I select itmes 1 in listbox 1 it display same elected item in listbox2 , but it not appending the items in listbox2.Like If 1 is selected in listbox1 then 1 will display , next time after saving when I selct next item like 3 then in listbox 2, 1 is replaced by 3,it dont come in second row of listbox2.Hope I am able to explain.\
    Plz help me to resolve this.
    Attachments:
    listbox_update.vi ‏11 KB

  • How to call a dialog program with return value in another dialog program

    Dear All,
    How can I call a dialog program with return value from another dialog program?
    Regards,
    Alok.

    Hi Alok,
    You can you SET/GET parameters to do this.
    This is some information about this.
    To fill the input fields of a called transaction with data from the calling program, you can use the SPA/GPA technique. SPA/GPA parameters are values that the system stores in the global, user-specific SAP memory. SAP memory allows you to pass values between programs. A user can access the values stored in the SAP memory during one terminal session for all parallel sessions. Each SPA/GPA parameter is identified by a 20-character code. You can maintain them in the Repository Browser in the ABAP Workbench. The values in SPA/GPA parameters are user-specific.
    ABAP programs can access the parameters using the SET PARAMETER and GET PARAMETERstatements.
    To fill one, use:
    SET PARAMETER ID pid FIELD f.
    This statement saves the contents of field f under the ID pid in the SAP memory. The ID pid can be up to 20 characters long. If there was already a value stored under pid, this statement overwrites it. If you double-click pid in the ABAP Editor, parameters that do not exist can be created as a Repository object.
    To read an SPA/GPA parameter, use:
    GET PARAMETER ID pid FIELD f.
    This statement places the value stored under the pid ID into the variable f. If the system does not find any value for pid in the SAP memory, sy-subrc is set to 4. Otherwise, it sets the value to 0.
    Thanks,
    SriRatna

  • Field with a default value from another field

    I need to populate a field as the default value from another field that the user inputs. I've tried the scripting that I found from the below Topic in the Archived Forums, but I'm not able to make it work. I've tried numerous variations and still to no avail. I tried to make the scripting work in Acrobat 6 and then decided that maybe I needed to upgrade, so I'm now trying it in Acrobat 8 with no results. Can anyone help?
    Topic
    Acrobat 5 - field with default value of another field
    Ben PF - 03:31am Mar 23, 2007 Pacific
    How can I have a field date2 which has the default value of field date1, but which can be edited by the user if necessary without changing the value of date1.
    I've tried, but I just can't figure it out!
    Any help much appreciated.
    Ben
    | Back to Topic List | Bookmark | Subscribe
    To start a NEW discussion click on the Back to Topic List link and select Add Topic.
    If you are in an archive forum please go up to the main topic list (archives are read only).
    Messages
    2 messages. Displaying 1 through 2.
    First Previous Next Last Show All Messages
    Gene Dianoski - 5:22am Mar 23, 07 PST (#1 of 2)
    This, or some variation of this, should work:
    if(this.getField("date2").value == ""{
    this.getField("date2").value = this.getField("date1).value;
    | Bookmark back to top
    Ben PF - 6:49am Mar 23, 07 PST (#2 of 2)
    Thanks very much.
    I put it in at document level to start, but it didn't run the script automatically when date1 was first filled in, so I have put it in as a mouse exit action in date1 and it works a treat.
    Thanks for your help.
    Ben

    Okay forget what I posted above and lets start over. Go to your first field and under Properties -> Actions Tab -> Select Trigger -> On Blur Run A JavaScript.
    Put this:
    this.getField("myField2").value = event.target.value;
    Make sure that you replace ("myField2") with the actual name of your second field. I just tested this and it works for Acrobat version 6.
    I haven't been doing as much javascripting as I used to, so sometimes I too make some basic mistakes.

  • Is it possible to add a string inside a textbox with a value of another textbox for Acrobat Forms?

    Is it possible to add a string inside a textbox with a value of another textbox?
    ex.
    Textbox1 = Happy
    Textbox2 = Sad
    Textbox3 = "I am Happy therefore I am not Sad"
    "I am (value of textbox1) therefore I am not ( value of textbox2)"

    Use this code as the custom calculation code of Textbox3:
    event.value = "I am " + getField("textbox1").value + " therefore I am not " + getField("textbox2").value;
    Notice that the field names are case-sensitive.

  • Passing value to another form with on demand process

    Hi,
    This is my first post and I am an absolute beginner to apex (using 4.1)
    I would like to pass a value to another form, but to no avail.
    I have an on demand process that is being called when a button is clicked (ISSUE)
    This process is being called from P33 and I need the value to go to P33_ST_NUMBER_HOLD
    DECLARE
      v_rownum NUMBER;
    BEGIN
      for i in 1..apex_application.g_f01.count
      loop
        v_rownum := apex_application.g_f01(i);
        apex_debug_message.log_message('row selected: '||v_rownum);
        apex_debug_message.log_message('value: '||apex_application.g_f03(v_rownum));
        htp.p('$x_Value("P17_ST_NUMBER_HOLD",apex_application.g_f03(v_rownum));');
    end loop;
    END;What am I doing wrong?
    Edited by: Hansen_____ on 2012/06/15 1:15 AM

    Hansen_____ wrote:
    htp.p('$x_Value("P17_ST_NUMBER_HOLD",apex_application.g_f03(v_rownum));');This is PL/SQL and you have to use one of these methods to set the item value, But you are using javascript API's in PL/SQL.
    FYI - javascript is a client/browser side and it got nothing to do with PL/SQL
    :P17_ST_NUMBER_HOLD := apex_application.g_f03(v_rownum);
    //OR
    APEX_UTIL.SET_SESSION_STATE('P17_ST_NUMBER_HOLD',apex_application.g_f03(v_rownum));http://docs.oracle.com/cd/E17556_01/doc/apirefs.40/e15519/apex_util.htm#AEAPI181

Maybe you are looking for

  • Web services in OBIEE 11g

    Hello, I have few Questions on webservices usage in OBIEE 11g(11.1.1.7.0). Can we use/invoke the web service in OBIEE 11g?If yes,please provide me details. If we install OBIEE 11g ,can we get the BI publisher as free product or do i need to configure

  • The JavaScript for this page failed to load correctly

    I keep getting this message "The JavaScript for this page failed to load correctly" when I try to access my Shutterfly accounts. This is a new problem since upgrading to Mavericks.  It does not happen on my Macbook Pro running Mavericks. John

  • Java.lang.StackOverflowError Error?

    I have added a EJB diagram with two tables from HR database and created Java Serice Facade and call findall method in once of the business method (getDepartmentsFindAll). I am getting the the error below when I run the java service facade. Please hel

  • Why can't I get App Store updates?

    I have been given my Auntie's Mac to use and I can't get the updates in the App Store because I can't log in. Why?

  • Editing a document with a group

    I edit reports & documents in a group how do you use pages where it will line through a txt & dispplay your suggested change in a different color or type?