creating a variable and passing in a package

Here are the specs
    create or replace package p is
       procedure upd (
                           tab1 in boolean default true, 
                           tab2 in boolean default true, 
                           tab3 in boolean default true, 
                           tab4 in boolean default true);
             end;          
/ 
This is the body
create or replace package body p is
 
procedure mov_tbl1   is 
         cursor tbl1_cur as
         select  src.col1,
                 src.col2,
          from abc_tbl1 tbl1,
               abc_tbl2 tbl2
          where tbl1.no = 1234  -- this is common one here 
                tbl1.id = tbl.id
               -- the record variable declaration is implicit in FOR LOOP
      begin 
            for  tbl1_cur_rec  in tbl1_cur
            loop 
              begin
                insert into tgt.tabl1(col1,col2)
                            values (tbl1_cur_rec.col1,
                                   tbl1_cur_reccol2,
                           );
                        exception 
                     when others then 
                       null; -- May be is better to (somehow) log the error ... 
              end;
            end loop;
      end;


procedure mov_tbl2 is 
       cursor ....
         select col3,col4, col5
           ......
         from abc_tbl1 tbl1,
               abc_tbl2 tbl2,
               abc_tbl3 tbl3
        where   tbl1.no = 1234 and  -- this is a common here 
                tbl1.id = tbl.id and
                tbl2.dept = tbl3.dept
          begin 
         .....
         .... 
          end

proc mov_tbl3 is
       cursor ...
           select ...
             ....
          from abc_tbl1 tbl1,
               abc_tbl2 tbl2,
               abc_tbl3 tbl3,
               abc_tbl4  tbl4
        where   tbl1.no = 1234 and  -- this is a common here 
                tbl1.id = tbl.id and
                tbl2.dept = tbl3.dept
                tbl3.nm = tbl4.nm

  -- common proc
procedure upd (
             tab1 in  boolean default true ,
             tab2 in boolean default true, 
             tab3 in boolean default true, 
             tab4 in boolean default true) is
  begin
  if tab1=true then
     mov_tbl1;
  end if;
 
  if tab2=true then
     mov_tbl2;
  end if;
 
  if tab3=true then
     mov_tbl3;
  end if;
 
  if tab4=true then
     mov_tbl4;
  end if;
end;
end;
/
 
Here's my question
 how do i pass the tbl1.num as a parameter?? 
what I need to do something like that...
  --in spec
    procdure upd( var_tbl1no number,....)

   -- in body 
       -- upd procedure 
         create or replcae upd (var_tbl1no number,....)
               .....

   end;

   Do i need to declare var_tbl1no  as a global varibale of package ??
    All i need is to pass the paarameter and that variable will be the filter 
    for all the procedure's select query ...how to do this gurus ???
Published by: user642297 on March 1st, 2010 17:27

Hello

SQL> create or replace package my_pack
  2  is
  3  procedure upd(var1 number);
  4  end;
  5  /

Package created.

SQL> create or replace package body my_pack
  2  as
  3  procedure tab1(num number)
  4  is
  5  begin
  6  dbms_output.put_line('In procedure tab1: '||num);
  7  end;
  8  procedure tab2(num number)
  9  is
 10  begin
 11  dbms_output.put_line('In procedure tab2: '||num);
 12  end;
 13  procedure tab3(num number)
 14  is
 15  begin
 16  dbms_output.put_line('In procedure tab3: '||num);
 17  end;
 18  procedure upd(var1 number)
 19  is
 20  begin
 21  tab1(var1);
 22  tab2(var1);
 23  tab3(var1);
 24  end;
 25  end;
 26  /

Package body created.

SQL>  execute my_pack.upd(1234);
In procedure tab1: 1234
In procedure tab2: 1234
In procedure tab3: 1234

PL/SQL procedure successfully completed.

SQL> 

No need to explicitly mention IN, as the default parameter mode is always in.

Hope this helps you,
Twinkle

Tags: Database

Similar Questions

  • Creating a function and passing the value of the query

    I have what I thought, it was a pretty easy to resolve the situation: I want to concatenate two fields of the query, if the 2nd is not empty.

    I created a function:

    < name cfargument = "q1" value = "#query.q1 #" / > "
    < name cfargument = "q1a' value =' #query.q1a #" / > "

    < CFSET variables.myPunct = ":" > "
    < cfset variables. ResultVar = "" >

    < cfif QNE Trim (arguments.q1) "" > "".
    < cfset variables. ResultVar =' #arguments.q1 # ">"
    < / cfif >

    < cfif QNE Trim (arguments.q1a) "" > "".
    < cfif variable. ResultVar NEQ "" > "".
    < cfset variables. ResultVar ='#variables. ResultVar & variables.myPunct # ">"
    < / cfif >
    < cfset variables. ResultVar ='#variables. ResultVar & arguments.q1a # ">"
    < / cfif >
    < variable cfreturn. ResultVar >

    It's basically just the example they provide in online education, with the names have been changed.

    In the strip of the details of my report, I have an expression builder containing field: report.mytestfunction)

    When I run the present, I get: Q1 element is not defined in the ARGUMENTS.

    I tried this ninety different ways (literally). It seems very clear to me that the query.q1 (Incidentally, none of the results of the query) are NOT passed to the function. I tried to make the expression: report.mytestfunction (query.q1). I tried to create an input parameter.

    The documentation on this is ridiculously limited, given that the ability to implement conditional logic is entirely dependent on the 'function', I can say. I can in no way to get the function of interface with the query results. If the value fixed values in the service, rather than trying to use query variables, it shows very well.

    Any ideas?

    Have you tried to remove the attribute "value" of your cfargument tag? The way I see it, you should have:


    ... rest of function...

    And then you have to call it with: report.mytestfunction (query.q1, query.q1a)

  • Create the variable and change it to read the script

    Hi all

    I can creat a reference to a global variable, but it creates only an accessible value in writing.
    How to change to read? Pls help!

  • How to create a variable in a mapping or process_flow

    I am creating a flow where I spend the audit_id of the mapping of a map as input parameters. How to do that.

    I thought create a variable and assign the id verification to this variable and linking this variable mapping that will become the entry for the mapping.

    Thank you

    joining this average assign the variable.

  • I just paid almost $10 to create a PDF from a jpg file, but I did it so that I can change it. Now I find that I needed another Adobe package that would create the pdf AND I would change it. What should I do now?

    I just paid almost $10 to create a PDF from a jpg file, but I did it so that I can change it. Now I find that I needed another Adobe package that would create the pdf AND I would change it. What should I do now?

    If you create a PDF file from an image, it is always a picture, and you cannot change it.

    If the image contains text, then you need to perform the text recognition (OCR) before you can actually change the text.  Acrobat can do that.

  • How can I build and pass a variable to the function getField?

    I need to know how to build and pass a variable to the function getField():

    I have a form of several sections similar to a spreadsheet.  Each section contains 5 rows of 11 columns.  Currently I have calculations in the field I want to consolidate and move to the level of the document.  The field names in each column are identical except for a row identifier.  For example, in the 1st row: a_debtType1, a_debtTerm1, adebtRate1, etc.  I want to be able to pass to a function of level document line identifier and that connect a function "getField.  Here is an example:

    Document-level:

    function calculateLoan (lineNumber) {}

    var myDate = getField("a_debtType"+lineNumber).valueAsString;

    var myDate = getField("a_debtTerm"+lineNumber).valueAsString;

    .. few treatment

    return

    }

    Level of the form:

    change the information in the form is ready for line 1

    function calculateLoan("1");

    Thanks in advance for any help.

    It seems good except how you call the function of what you have. The calculation script should be something like:

    Custom calculate script

    calculateLoan("1");

    Note that you can also get the line number if it is contained in behalf of the field that calls the script if you don't disturb him passing as parameter, assuming you named the fields correctly.

    For example, to calculate the field is called "row_total.1", you can get the line number in the script like this:

    var no_lig = event.target.name.split(".") [1] ;

  • How to create variables and store them?

    How to create variables and store them?

    As someone has already said, we need to learn a little more about what you want to do with these variables, but in general, APEX elements are probably what you want. You can create the elements APEX at the request or Page level. Once you define the value of an element, you can reference anywhere else in the application. So if you have an article on page 1 called P1_ENAME, you can reference it on page 32 using bind variables syntax: P1_ENAME. If you just want to store but not to display certain information, you can use either a hidden page element or an element of Application level. Take a look at day 2 Developers Guide for more information.

    Tyler

  • can I create a class and a package for my inframe AS and go global

    NSN

    I made an application using only inframe actionscript in a .fla;

    variable base transfrerring 1 in box 2 is not reliable.

    Sources say that the persistence on the frames, but I found it not as unreliable.

    The paintings appear to be filled with the right values. Var normal int reported in box 1 fails some time.

    You should use the classes that I hear saying you, and right you are.

    But I did not.

    Now I'm using a reload, re-initing and/or the sharedobject.

    Anyhoe...

    Question:

    If I declare a class for my main .fla file.,.

    then declare, instantiate and load the globals I want in this main class.

    I'll be able to access these variables in my timeline script main .fla?

    If so, I was able to restore my .fla into small objects/classes and make a real application.

    From scratch is. welll... I don't want to even think that.

    Which is higher

    Mac

    Oh, I know your pain. I have used a LOT more time I should have AS2. I got a few apps exceeding 10,000 rows in a single class file and had said to flash my file exceeds the size max and I couldn't even export. I saw also mysteriously loses references to objects or "something else" adjusted or cancelled my variables.

    But it was AS2 and long ago...

    I've never seen AS3 have this problem. You have a ton of code so I expect completely, having been able to Flash for more than a decade, that it is a failure. Flash is not perfect, but AS3 lose variable data between frames seems very likely. I only claim when you arrive that a lot of code, it is easy to forget something that can be reset your variables. If you draw () d them and they are not "undefined", they exist and have apparently been set to 0. This leads me to believe, somewhere in this vast desert of the code, "something else" affects these variables and is not flash.

    I've had several years of blame flash under my belt. In AS2 it actually was the case sometimes. In AS3? I've always found the mistake of being my own...

  • Send a variable and a package file

    Hello
    Can I send a variable and a whole file? So I would use the FileReference upload() method and the LoadVars send() method to send a file and a variable in a PHP file during a reload.

    I remember trying this one year back by adding to the url
    file.upload (" http://www.yourdomain.com/yourUploadHandlerScript.php?var=value"))

  • Using arrary associative as parameter and passing then to the place where the clause of the select statement

    Hello

    I have this scenario where I have to pass multiple values to a parameter of a procedure of monkey and then collect in another variable (the lines can be multiple).

    The parameter must be used in the where clause of the statement select here I create a sample table for the problem.

    Create table test_tab (number of trans_id, cmts varchar2 (50));

    insert into test_tab values (568890112115, ' wnlb-CMTS-11-04' ");

    insert into test_tab values (568890112115, ' wnlb-CMTS-11-04' ");

    insert into test_tab values (568890112115, ' wnlb-CMTS-11-01' ");

    insert into test_tab values (568890112115, ' wnlb-CMTS-11-01' ");

    insert into test_tab values (568890112115, ' wnlb-CMTS-11-01' ");

    insert into test_tab values (568890112115, ' wnlb-CMTS-12-02' ");

    insert into test_tab values (568890112115, ' wnlb-CMTS-12-02' ");

    This is so all cmts have same trans_id but different name

    This query gives the result as -

    Select the cmts, count (1)

    of test_tab

    where cmts ("wnlb-cmts-11-04','wnlb-cmts-11-01", "wnlb-CMTS-11-02'")

    and trans_id = 568890112115

    Cmts group;

    COUNTY OF CMTS

    WNLB-CMTS-11-04 2

    3 WNLB-CMTS-11-01

    Now, I want to use this query in a PLSQL block like where I can spend the CMTS collection and trans_id as a scalar variable and once again an OUTPUT parameter that holds the result of the query.

    I use OUT parameter because it will be called to the JAVA program.

    Here, I write a PACKAGE for it but it gives me compilation error!

    create or replace package CMTS_SUCCESS_FAILED_API

    is

    type t_item_name is table of index varchar2 (50) by pls_integer;

    TYPE t_cmts_count () IS RENDERING

    CMTS VARCHAR2 (30),

    number of NUMBER

    );

    type t_reseg_dtl is table of index t_cmts_count by pls_integer;

    procedure CMTS_SUCCESS_FAILED_RESEG_ORDR (p_item_name t_item_name, p_trans_id in numbers, p_reseg_dtl to t_reseg_dtl);

    end CMTS_SUCCESS_FAILED_API;

    /

    Now that I have created a different PACKAGE BODY, but none don't work!

    1.

    create or replace package CMTS_SUCCESS_FAILED_API

    is

    type t_item_name is table of index varchar2 (50) by pls_integer;

    TYPE t_cmts_count () IS RENDERING

    CMTS VARCHAR2 (30),

    number of NUMBER

    );

    type t_reseg_dtl is table of index t_cmts_count by pls_integer;

    procedure CMTS_SUCCESS_FAILED_RESEG_ORDR (p_item_name t_item_name, p_trans_id in numbers, p_reseg_dtl to t_reseg_dtl);

    end;

    /

    create or replace package CMTS_SUCCESS_FAILED_API body

    is

    procedure CMTS_SUCCESS_FAILED_RESEG_ORDR (p_item_name t_item_name, p_trans_id in numbers, p_reseg_dtl to t_reseg_dtl)

    is

    Start

    I'm in p_item_name.first... p_item_name. Last

    loop

    Select the cmts, count (1)

    bulk collect into p_reseg_dtl (i)

    of test_tab

    where cmts = p_item_name (i)

    and trans_id = p_trans_id

    Cmts group;

    end loop;

    for r in p_reseg_dtl.first... p_reseg_dtl. Last

    loop

    dbms_output.put_line (p_reseg_dtl (r). TRANSACTION_ID | » '|| p_reseg_dtl (r). JOB_STATUS | » '|| p_reseg_dtl (r). CMTS);

    end loop;

    end CMTS_SUCCESS_FAILED_RESEG_ORDR;

    end CMTS_SUCCESS_FAILED_API;

    While I run this procedure it is said TOO_MANY LINES.

    2.

    create or replace package CMTS_SUCCESS_FAILED_API body

    is

    procedure CMTS_SUCCESS_FAILED_RESEG_ORDR (p_item_name t_item_name, p_trans_id in numbers, p_reseg_dtl to t_reseg_dtl)

    is

    cursor c_dtl is

    Select the cmts, count (1)

    of test_tab

    where cmts = p_item_name < < error

    and trans_id = p_trans_id

    Cmts group;

    Start

    Open c_dtl;

    collect the fetch c_dtl in bulk in p_reseg_dtl;

    close c_dtl;

    -for i in p_item_name.first... p_item_name. Last

    -loop

    -end loop;

    end;

    end;

    THIS error GIVES BODY as EXPRESSION IS OF TYPE INCORRECT for where clause where I mark it as "BOLD".

    I think Miss me a small detail to add here, but I can't do even now it seems for me that I'm working on it since the morning and SQL are a little complex in real time who also write.


    I use-

    Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production

    Please suggest me!

    Until then I'm also working on this issue hope will find a solution.

    In the database (we show it with a standalone function, you should put it in a package):

    create or replace function CMTS_SUCCESS_FAILED_RESEG_ORDR (
      p_item_name IN SYS.DBMS_DEBUG_VC2COLL,
      p_trans_id IN number
    )
    return sys_refcursor is
      l_refcur sys_refcursor;
    begin
      open l_refcur for
        SELECT cmts , COUNT(*)
          FROM test_tab
        WHERE cmts member of p_item_name
           AND trans_id = p_trans_id
        GROUP BY cmts;
      return l_refcur;
    end CMTS_SUCCESS_FAILED_RESEG_ORDR;
    /
    

    In Java:

    import java.math.BigDecimal;
    import java.sql.CallableStatement;
    import java.sql.Connection;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    
    import oracle.jdbc.OracleCallableStatement;
    import oracle.jdbc.OracleTypes;
    import oracle.jdbc.pool.OracleDataSource;
    import oracle.sql.ARRAY;
    import oracle.sql.ArrayDescriptor;
    
    public class SQLCollection {
    
        public static void main(String[] args) throws SQLException {
    
            System.out.println("Class SQLCollection started.");
    
            OracleDataSource ods = null;
            Connection conn = null;
            CallableStatement cs = null;
            ResultSet rset = null;
    
            try {
                ods = new OracleDataSource();
                String url = "jdbc:oracle:thin:@//127.0.0.1:1522/orcl.localdomain";
                ods.setURL(url);
                ods.setUser("stew");
                ods.setPassword("stew");
                conn = ods.getConnection();
                conn.setAutoCommit(false);
    
                ArrayDescriptor oracleVarchar2Collection =
                    ArrayDescriptor.createDescriptor("SYS.DBMS_DEBUG_VC2COLL", conn);
                String[] inset = new String[2];
                inset[0] = "wnlb-cmts-11-04";
                inset[1] = "wnlb-cmts-11-01";
                ARRAY ora_inset = new ARRAY(oracleVarchar2Collection, conn, inset);
    
                cs = conn.prepareCall("begin ? := CMTS_SUCCESS_FAILED_RESEG_ORDR(?, ?); end;");
                cs.registerOutParameter(1, OracleTypes.CURSOR);
                cs.setArray(2, ora_inset);
                cs.setBigDecimal(3, new BigDecimal("568890112115"));
                cs.execute();
    
                // Dump the cursor
                rset = ((OracleCallableStatement)cs).getCursor(1);
                while (rset.next())
                    System.out.println(rset.getString(1) + ": " + rset.getInt(2));
    
            } catch (Exception e) {
                e.printStackTrace();
            } finally {
                if (rset != null) {
                    rset.close();
                }
                if (cs != null) {
                    cs.close();
                }
                if (conn != null) {
                    conn.close();
                }
                System.out.println("Class SQLCollection ended.");
            }
        }
    }
    
  • PLSQL local variable assigned to a global package

    I have a situation I want to declare a local variable and assign it to a global package variable.

    such as:

    xyz package_a.my_type := package_a.my_var
    

    This creates a pointer to the global package or Oracle copy the global variable?  I need for oracle deal with this pointer.

    Is there something wrong with that?

    If there is no problem, I'll adopt this approach in 100s of procedures / packages.  I use oracle psp and create a large number of procedures.

    Hello

    Do you really need a separate variable xyz?  Why not just use package_a.my_var?

    What is the big picture here?  What you trying to do?  Explain your business needs, and someone will help you to find a good way to respond.

    What you've posted describes only one way that you thought to meet the requirement; We can guess the real requirement, and guess is not the best way to solve problems.

  • Navigate between the report and dashboard and pass values between another column

    Hello

    I have a question about navigate from 1 report to a dashboard page passing value from column 1 to column 2 in the second report...

    In OBIEE 11 G, I create link action report 1, column 1 and this link from the action is go to the content of the BI and the destination is a dashboard page, which has used 2 column as a dashboard and there are 3 reports that all use column 2 to filter. Now, the dashboard page 2 column is an alias for column 1 report 1, from the point of view of users, these are the same, but OBIEE point of view, they are different.

    My action link is able to access the dashboard, however, the value in column 1 which I clicked on run navigation, not are placed in column 2 as the line of dashboard does not receive this value when navigating...

    Since I can't put column 1 in dashboard 2, nor that I can put the 2 column in the report 1. Because our data model is done in the way that if I use column 1 or 2 in both cases, it will be o-ring...

    Is there a way around this problem?

    Let me know if I need to elaborate

    Thank you

    Hello

    You are going to have three main dashboard page (i.e., dashboad1, 2, 3) in the dashboard you will be having 3 different relationship with different column aliases (e.g. columnx_alias1, columnx_alias2, columnx_alias3) and you're going to have a dashboard more page say dashboardx a report with columnx. Now if you click on report of dashboard1 to go to dashboardx, click on report of dashboard2 also should go to dashboardx, click dashboard3 report should also go to dashboardx.

    1 > you can create 3 variable presentation for column 3 aliases and hide. {{{You can use the union query in sql result say columnx select from table where columnx='@{column1}' union select columnx table where columnx='@{column2}' union select columnx table where columnx='@{column3}'.
    2 > now you can hide these guests with variables.

    Please let me know if you are facing a problem.

    Thank you
    Yacoub

  • How to assign values to the nested table and passes as a parameter for the procedure?

    How to assign values to the nested table and passes as a parameter for the procedure?

    Here are the object and its type

    create or replace type test_object1 as an object
    (
    val1 varchar2 (50).
    val2 varchar2 (50).
    VARCHAR2 (50) val3
    );


    create or replace type test_type1 is table of the test_object1;


    create or replace type test_object2 as an object
    (
    val1 varchar2 (50).
    val2 varchar2 (50).
    VARCHAR2 (50) val3
    );


    create or replace type test_type2 is table of the test_object2;


    GRANT ALL ON test_object1 to PUBLIC;


    GRANT ALL ON test_type1 to PUBLIC;


    GRANT ALL ON test_object2 to PUBLIC;


    GRANT ALL ON test_type2 to PUBLIC;

    Here is the table object type:

    create the table test_object_tpe
    (
    sl_num NUMBER,
    Description VARCHAR2 (100),
    main_val1 test_type1,
    main_val2 test_type2
    )


    NESTED TABLE main_val1 STORE AS tot1
    NESTED TABLE main_val2 STORE AS earlier2;


    -----------------------------------------------------------------------------------------------------------

    Here is the procedure that inserts values into the nested table:

    PROCEDURE INSERT_TEST_DATA (sl_num in NUMBER,
    Description in VARCHAR2,
    p_main_val1 IN test_type1,
    p_main_val2 IN test_type2
    )
    IS
    BEGIN

    FOR rec in p_main_val1.first... p_main_val1. Last
    LOOP

    INSERT INTO xxdl.test_object_tpe
    (
    sl_num,
    Description,
    main_val1,
    main_val2
    )
    VALUES
    (
    sl_num
    description
    test_type1 (test_object1)
    p_main_val1 .val1 (CRE),
    p_main_val1 .val2 (CRE),
    p_main_val1 .val3 (rec)
    )
    )
    test_type2 (test_object2 (p_main_val2 .val1 (CRE),
    p_main_val2 .val2 (CRE),
    p_main_val2 .val3 (rec)
    )
    )

    );

    END LOOP;

    commit;

    END INSERT_TEST_DATA;

    -------------------------------------------------------------------------------------------

    Here are the block anonymoys what values attributed to the object type and pass values in the procedure:

    Set serveroutput on;

    declare

    p_sl_num NUMBER: = 1001;
    p_description VARCHAR2 (50): = 'Test Val1;

    inval1 test_type1: = test_type1();
    inval2 test_type2: = test_type2();

    Start


    inval1 (1) .val1: = "testx1";
    inval1 (1) .val2: = "testx2";
    inval1 (1) .val3: = "testx3";

    inval2 (1) .val1: = "testy1";
    inval2 (1) .val2: = "testy2";
    inval2 (1) .val3: = "testy3";

    CSI_PKG. INSERT_TEST_DATA (sl_num = > p_sl_num,)
    Description = > p_description,
    p_main_val1 = > inval1,
    p_main_val2 = > inval2
    );

    end;
    /
    Someone can correct me.

    Thank you
    Lavan

    Thanks for posting the DOF and the sample code but whenever you post provide your Oracle version 4-digit (result of SELECT * FROM V$ VERSION).
    >
    How to assign values to the nested table and passes as a parameter for the procedure?
    >
    Well you do almost everything bad that could be hurt.

    Here is the code that works to insert data into your table (the procedure is not even necessary).

    declare
    p_sl_num NUMBER := 1001;
    p_description VARCHAR2(50) := 'Testing Val1';
    inval1 test_type1 := test_type1();
    inval2 test_type2 := test_type2();
    begin
    inval1.extend();
    inval1(1) := test_object1('testx1', 'testx2', 'testx3');
    inval2.extend();
    inval2(1) := test_object2('testy1', 'testy2', 'testy3');
    
    INSERT INTO test_object_tpe
    (
    sl_num,
    description,
    main_val1,
    main_val2
    )
    VALUES
    (p_sl_num, p_description, inval1, inval2);
    commit;
    end;
    /
    

    See example 5-15 making reference to an element of nested Table Chapter 5 using PL/SQL collections and records in the PL/SQL doc
    http://docs.Oracle.com/CD/B28359_01/AppDev.111/b28370/Collections.htm#CJABEBEA

    1. you don't even have the procedure because it is a simple INSERTION in the table you can do directly (see my above code)

    inval1(1).val1 := 'testx1';
    

    Since you have not yet created all the elements, there is no element 1 "inval1". You need EXTEND the collection to add an element

    inval1.extend();
    

    And then, there is an empty element, but "inval1" is a container for objects of type 'test_object1' not for scalars as "val1", "val2", and "val3".
    If you can not do

    inval1(1).val1 := 'testx1';
    

    You must create an instance of 'test_object1 '.

    inval1(1) := test_object1('testx1', 'testx2', 'testx3');
    

    And so on for the other collection

    You don't need the procedure (as my code example shows), but once you fill in the variables correctly it will work.

  • How to create Global Variables in Essbase

    Hi gurus,

    In essbase automation, I saw generally the statement below.

    Connection $1 identified by $2 $ 3;

    and of course many other statements also.

    1. now, my question is where and how can we create the variables ($1, $2 and $3).
    2. they are Substitutinal Variables or Environment Variables.

    Pls let me know in detail how to create and define the variables above.


    I tried to create them as variables indirect in environmental assessments, but when you run the maxl order Login $1 $ 2 $3 its saying this $1.. variable cannot find etc.

    They are variable positional parameter and are passed in a maxl script, you can read all about it at:-http://download.oracle.com/docs/cd/E12825_01/epm.111/esb_techref/maxl_syntax_vars.htm#syntax_techref_proj_maxl_ddl_utils_shell_d0e227

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Helps the guest of session variable and dashboard

    Hi, I ran into soemthing that I can't understand.

    In the administration tool, I defined a CURR_MONTH session variable and set the query to find month max in the date dimension. It's all works fine - if I test the variable in OBIEE administration tool, it currently returns "January 2010".»

    In addition, in the responses, I can create a query that moves back calendar information and then put a filter on it so the specific columns is equal to the session variable. It works perfectly - I get the 3 lines of return data that correspond to the 3 days of data we loaded for January 2010.


    However, now that I'm trying to do is set a dashboard with the dimension command prompt date in it. I want the default to months / year equal to the value of CURR_MONTH. However, when I do this, instead of getting the correct value, for some reason some, it becomes the default value I put in place for this variable.

    Any ideas on what I am doing wrong or if it is a bug?

    Thanks in advance,
    Scott

    p.s. using OBIEE 10.1.3.4, with no applied patches. I'll upload pictures when I get home... is not a way to their work stations.

    Hi Scott,.

    I just tested and it works fine for me.

    (1) in your DB guest pass by default to
    (2) select the Server Variable
    (3) NQ_SESSION. CURR_MONTH
    (4) save and test

    Well, that should work for you. Here is a link to a jpg file that you should probably keep for future reference. She'll show you the proper syntax to use in different situations.

    http://shivabizint.files.WordPress.com/2008/10/OBIEE-variables-overview.jpg

    -Joe

Maybe you are looking for

  • Re: Satellite L550 - installation kit is missing

    Hello world my girlfriend asked me to re - install Windows 7 (64 bit) on his Toshiba Satellite L550 because the OS no longer works correctly. Unfortunately she doesn't know where she stored installation and recovery kit. So, I have to assume this med

  • Change of Direction Terminal for input of meter

    Documentantion, the default limits of the USB-6215 for counter source of entry and management (when the counting direction is controlled externally), are the two PFI 0. I tried to change but StartTask fails because it cannot find the selected channel

  • ThinkPad x131e chromebook connectivity

    I'm doing a choice between x131e Chromebook ThinkPad and ThinkPad X131e (AMD). I live in Ghana and travels a lot and would like to be able to connect to the internet while on the move and where there is no points Wi - Fi or USB ports vai dongles or c

  • BlackBerry 10 Questions on app and updates BB10

    I recently got a classic BlackBerry and I have a few questions. First of all, BlackBerry apps world somehow checked or scanned for malware? I'm pretty skeptical of third party software, but I would like to install a terminal emulator any. I was looki

  • I'm trying to remove reg clean pro from my window 7 but it said that the program is corup

    I'm trying to remove Reg clean pro, but I get a message telling me that this program is corrupt and will not remove