Dashboard of the guests and stored procedures

Hello

I have 7 guests - 2 which are necessary and others are optional. I created guests from Dashboard and grouped 2 those required in a dashboard command prompt and more optional 5 in an another guest of dashboard. All the guests are assigned to the variables and used in calling a stored procedure in SQL Server. Because I have 2 groups there are 2 go buttons on the page. I found that the order in which I enter data and click on the questions of buttons and will disrupt the call to the proc (i.e. sometimes it brings back data but sometimes she will be not based on recorded fast values).

I have 2 questions:
1. is it possible to separate the optional and mandatory guests so I can put them in separate the dashboard sections, but to have only 1 'Go' button to send the data?

2. among the guests, I would like to be a multiple selection. Is it possible to send the options of multiple selections in a stored procedure? I use the variables to other values, but I've read using a variable for multiple selection is not possible.

Any help would be appreciated
Thank you
UNA

Issues related to the:
1. not in the standard, but with a bit of javascript, it is possible
http://sranka.WordPress.com/2008/11/09/how-to-replace-multi-go-button-prompt-by-one/
2. it is not possible in 10 g but possible normally as promised to 11 g. You must create camps prompt or a command prompt with the different possibilities to pass a string instead of an array or a list.

Success
Nico

Tags: Business Intelligence

Similar Questions

  • Dashboard of the guests and by setting a variable presentation selection

    I have two columns in the table fast edge State Agency (prompt1) and Region (prompt2). State Agency drop-down list values from one column in the db table, but the values of a column different region depends on the selection of the national agency. Each State has a different set of values of the region.

    Example: State Agency has values in drop-down list S1, S2, S3, S4 etc... all in the same column db State Agency. On S1 selection in prompt1, list values drop-down area (orders2) must be filled with the column "S1-regions", in the same way on the selection of S2 to prompt1, values in the orders2 must come from the column 'S2-regions' etc...
    I defined a variable presentation for prompt1 @stateAgency and written a Case statement for orders2 something like that

    SELECT
    CASE
    WHEN '@stateAgency' = 'S1' THEN 'State Sun '. "" S1-regions. "
    WHEN '@stateAgency' is 'S2' THEN 'State Sun'. "" S2-regions. "
    WHEN '@stateAgency' is 'S3' THEN 'State Sun'. "" S3-regions. "
    ON THE OTHER
    "Sun State '." Regions by default"
    END
    IN THE "domain".

    It load regions by default for the first time but no change in the values of orders2 once I make selection in prompt1. Any suggestion would be appreciated.

    FYI: It's OBIEE 11 g.

    Thank you
    Tom

    Published by: user3130064 on July 26, 2011 07:43

    Alright... your syntax of presentation variables is wrong. It should be
    SELECT
    CASE
    WHEN ' @{stateAgency} "="S1"and"State Dim"THEN". "" S1-regions. "
    WHEN ' @{stateAgency} "="S2"THEN"State Dim"". "" S2-regions. "
    WHEN ' @{stateAgency} "="S3"THEN"State Dim"". "" S3-regions. "
    ON THE OTHER
    "Sun State '." Regions by default"
    END
    IN THE "domain".

    Missing parentheses... Also, be sure to change the formula of the second guest to all static values column in the "orders2.

    I hope this helps...

  • Constraint values in the dashboard of the guests

    Hello

    I have a question about the values of constraints in the dashboard of the guests. All fields must come from the same table I think binding values does not work when I select some values of different tables:

    For example

    Start - Fact Table
    End date - fact Table
    Seller - Org Sun
    Market - Org Sun
    Introducer - Org Sun
    Customer - Org Sun

    I'm trying to coerce values beginning with the seller and so on, but it does not work.

    This is the expected behavior? all values retrieved from the same table so that it works?

    Thank you

    Look in the administration - view session management to see what SQL is produced by the command prompt, this should help you identify the problem. You can take SQL logic and create a report more than to see what is returned and trace this or the quick logbook to the physical level, so you can see why no results are returned by SQL.

    Matt

  • The call PLSQL stored procedure from the HTML form Submit button

    Hello

    I'm having a little difficulty with the appellant a stored procedure using a html form button. Here is the code I have right now...
    HTP.PRINT('<form action=ZWGKERCF.P_confdelete>');
    HTP.PRINT('<input type=''submit'' value='' Yes '' onClick=''document.getElementById("mypopup").style.display="none"''>');
    HTP.PRINT('</form></div>');
    Here's the question - I need to find a way to pass variables to this stored procedure, so he knows what data to operate on. This stored procedure removes the data in a specific database record and I have to pass three variables to this procedure to run.

    Allows to call class_number, term, conf will impact these three variables and the data will be deleted and the person will see a confirmation screen once the deletion request completed.

    So ideally I would want: ZWGKERCF. P_confdelete (class_number, term, conf), then the stored procedure would deal with the rest!

    Seems simple enough, but I don't know how to make this happen... My thoughts were:

    Transmit data to this (the three areas that I need) html form in hidden variables. Then somehow pass them using the POST method to the procedure and read using GET?

    Can someone clarify what the best way to do it? I feel that its little something miss me you - but I would really like an idea expertise :-)

    Thank you very much in advance!

    -Jeff

    >
    ...

    I would like to assign a variable, the duration, the conf crn all variables in this procedure and then act on them accordingly.

    But you already have it in a variable. If you want you can assign the value again to another variable.

    example of

    PROCEDURE P_confdelete(CRN NUMBER,TERM NUMBER, CONF VARCHAR2)
       IS
          v_crn number(38);
          v_term number(38);
          v_conf varchar2(1000);
    
      BEGIN
           HTP.PRINT('test1 '||crn||'/'||term||'/'||conf); 
    
          v_crn := crn;
          v_term := term;
          v_conf := conf;
    
          HTP.PRINT('test2 '||v_crn||'/'||v_term||'/'||v_conf); 
    
    END P_confdelete;
    
  • Insert multiple records in a database using the DB adapter and stored procedure

    Hi all

    I want to insert multiple records in a database using a stored procedure. I wanted to insert these records using a data adapter and data adapter must be called by a mediator.

    Can anyone suggest me some ideas if it's possible with capabtilities OOB in SOA suite or not?

    Thank you for your help in advance.

    Thank you
    Shiv

    The trick is in the stored procedure. You must use a data type that will handle multiple records I use varray. An example can be found in this post.

    Re: Mutiple calls to AppsAdapter (pl/sql) when the payload has multiple records

    When you read the procedure stored in the db adapter wizard looks and xsd / xml if you have maps accordingly.

    see you soon
    James

  • PLS-00201 error occurs when the batch a stored procedure in SQL * more

    I have a batch file to run a stored procedure and the coil results in file. When I enter orders manually in sql * plus the output works very well and my results are spooling in the output file. But when I run the same commands in the script I get an error batch.


    Any ideas?

    Stored procedure:

    create or replace procedure MMP (p_cursor in the SYS_REFCURSOR)

    as

    Start

    Open p_cursorfor select name, id from table;

    end;

    batch file 1:

    sqlplus-s user/pw@REPORTDV @sp_output_spooled.sql

    sp_output_spooled.SQL script file

    Paste these commands directly on the SQL * more guest wraps the result as expected the value leader.

    the colsep value ' |'

    trigger the echo

    Set feedback off

    termout off Set

    set the position

    set linesize 9000

    set pagesize 0

    Set trimspool on

    headsep off Set

    output of the coil. TXT

    var refcursor rc

    run MMP(:rc)

    print the rc

    spool off

    output

    Errors printed to the output. TXT file after the batch is executed and error occurs:

    BEGIN MMP(:rc); END;

    *
    ERROR on line 1:
    ORA-06550: line 1, column 8:
    PLS-00201: identifier 'MMP' must be declared.
    ORA-06550: line 1, column 8:
    PL/SQL: Statement ignored


    ERROR:
    ORA-24338: statement handle not executed


    SP2-0625: variable printing error "rc".

    Hello

    Your code worked fine for me.

    Procedure MMP is owned by the same user that runs the batch file or does it means and appropriate privileges?

    VR,

    Sudhakar

  • ADF view object and stored procedure

    Hi all

    I am facing a problem with the view object, the case is, I created a stored procedure with an input and an output parameter

    view object I need to call this procedure inside the request object view and define the attribute transient output parameter

    could you please help me in this case, please give an example

    Thanks in advance

    Mohamed,

    Can you explain your use case to help you.

    Is it possible to convert the stored procedure in function (and change the output parameter to return the parameters) and create a display object using the function.

    Ex: Create a display object "read access only via the SQL query" for the query: SELECT HR. PLSQLTEST2 staff (first_name) OF

    K

  • Creation of XML report using the PL/SQL stored procedure

    Hi friends,

    I'm working on a report xml with the xml source as a PL/SQL stored procedure.

    I mean the fiscal year indicated in the following link to understand the process:

    http://orclapp.blogspot.com/2012/02/developing-xml-publisher-report-using.html

    In the example shown in the link above, I did not understand the following:

    (1) in the following procedure, setting out "retcode" is not used at all.

    What is the importance of this parameter.

    REPORT PROCEDURE (errbuf OUT VARCHAR2, retcode OUT VARCHAR2, p_product_id in NUMBERS)

    (2) after the xml data are prepared and updates 'l_result' variable Clob, what follows

    Loop is executed. I am not able to understand why the following loop is required.

    LOOP

    EXIT WHEN l_length = l_retrieved;

    IF (l_length - l_retrieved) < 32000

    THEN

    SELECT SUBSTR (l_result, l_retrieved + 1) IN l_xmlstr FROM DUAL;

    l_retrieved: = l_length;

    fnd_file.put_line (fnd_file.output, l_xmlstr);

    ON THE OTHER

    SELECT SUBSTR (l_result, l_retrieved + 1, l_offset)

    IN l_xmlstr

    FROM DUAL;

    l_retrieved: = l_retrieved + l_offset.

    fnd_file.put_line (fnd_file.output, l_xmlstr);

    END IF;

    END LOOP;

    (3) in the example it is not explained how the concurrent program gets the xml data?

    I guess that it is written to a file by using the following line of code:

    fnd_file.put_line (fnd_file.output, l_xmlstr);

    I would be grateful if someone can shed some light in my questions above so that I can well understand the process.

    Thanks and greetings

    Hawker

    Hi 32000 in the code is a 'safe' than 32767 available max mesh, loops is intended to get around the entire thing into pieces that can be managed within the limits of the data type.

    BTW; If you are in the following Oracle e-business, you can also use the Oracle reports very simply to create the XML output.

    If you have reports developer all you need to do is put raw sql (create XML without any "Fireworks") in the SQL report and then set reporting in XML format in the definition of program in Oracle e-business.

    Best regards

    Robert.

  • Privileges differ between SQL * more and stored procedure

    A user with the dba role can access dba_role_privs. But this is not possible in a stored procedure created by the same user.
    Normally, the example should work fine
    But with Oracle XE 11.02 - cost free database with some limitations - I get error 942

    I show a simple example in SQL * more:

    SQL > r
    1 * select distinct dba_role_privs recipient where the recipient as "SY %.

    DEALER
    ------------------------------
    SYSTEM
    SYS

    SQL > create or replace procedure x as
    2 start
    3 for rec in (select distinct dba_role_privs dealer where the beneficiary as 'SY %')
    4 loop
    5 zero;
    6 end of loop;
    7 end;
    8.

    Warnung: Prozedur wurde mit Kompilierungsfehlern standing.
    English translation: procedure created with compilation errors

    SQL > show error

    LINE/COL ERROR
    -------- -----------------------------------------------------------------
    3/14 PL/SQL: statement ignored
    3/43 PL/SQL: ORA-00942: table or view does not exist
    SQL >

    How can I fix?

    Why do you think the example should work properly?

    Normally, regardless of the version, the privileges granted through roles (such as DBA) not available for stored procedures. Stored procedure of a DEFINER rights can only take advantage of the privileges granted directly to the owner of the procedure. Stored procedure of the invoker rights can enjoy privileges granted by a role, but that requires that the appellant has independent privileges to query the table in question (and, in this case, would require dynamic SQL usage).

    Generally, the simplest approach would be to grant the privilege to CHOOSE ANY DICTIONARY to the owner of the procedure.

    Justin

  • A wrong number or types of arguments in the call to stored procedure

    Hi all...
    I'm missing something simple here, but I don't see what it is.
    I have looked around and cannot know what the problem is.
    Calling a stored procedure in Oracle 11g of Java 6.

    Here is my code:
       CallableStatement proc = null;                
       proc = conn.prepareCall("{ call storedProc(?, ?, ?, ?, ?) }");
       proc.setString("p_header", "8YR6TG");
       proc.setString("p_optype", "A");
       proc.registerOutParameter("p_headerCursor", OracleTypes.CURSOR);
       proc.registerOutParameter("p_detailCursor", OracleTypes.CURSOR);
       proc.registerOutParameter("p_status", OracleTypes.VARCHAR);
       proc.execute();
    Here are my stored procedure:
    PROCEDURE storedProc (
    p_header IN VARCHAR2,
    p_optype IN VARCHAR2,
    p_headerCursor OUT R_CURSOR,
    p_detailCursor OUT R_CURSOR,
    p_status OUT VARCHAR)
    Here's the exception I get:
    java.sql.SQLException: ORA-06550: line 1, column 7:
    PLS-00306: wrong number or types of arguments in call to 'storedProc'
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:305)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:272)
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:626)
         at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:181)
         at oracle.jdbc.driver.T4CCallableStatement.execute_for_rows(T4CCallableStatement.java:870)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1081)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2905)
         at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:2996)
         at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:4120)
    Can you see what I'm doing wrong here?
    Thanks in advance for your comments!

    Published by: Brady on February 16, 2012 13:02

    try to use digital indexes instead of parameter names.

  • DbDataAdapter and stored procedures with Oracle cursors,

    Because of the problems I've mentioned here ([PL/SQL stored procedure causes OracleException.. .but only sometimes | https://forums.oracle.com/forums/thread.jspa?threadID=2267290]), I am trying to replace a specific layer of data ODP.NET with the code that uses the related classes, independent provider and DbProviderFactory. Things seemed to go right up to the point where I'm trying to use a DbDataAdapter object to fill a DataSet. The stored procedure, I call looks like this...

    /* - - - - - - - - - - - - - - - - - - - - */
    PROCEDURE GET_SOME_DATA)
    IN_PARAM1 IN VARCHAR2,
    O_RESULTS TO SYS_REFCURSOR);
    /* - - - - - - - - - - - - - - - - - - - - */

    Normally, I could do something like this...

    /* - - - - - - - - - - - - - - - - - - - - */
    var adapter = new OracleDataAdapter (cmd);
    adapter. Fill (ds, cmd (OracleRefCursor). Parameters [1]. (Value);
    /* - - - - - - - - - - - - - - - - - - - - */

    .. .but that is not possible when you use DbProviderFactories since there is no equivalent of the Ref Cursor. I can use a DbDataAdapter instead of an OracleDataAdapter object, but I can't understand how to fill it with the cursor. All the examples I've seen (even the specific Oracle ones) seem to assume one is writing queries like "SELECT FOO FROM BAR" or something like that.

    Am I going about this all wrong? Or is it simply not possible to use a DbDataAdapter to fill a DataSet like this? I was really hoping to be able to use the provider-independent code I could use the System.Data.OracleClient provider with my 9i database and then switch to the Oracle. DataAccess.Client once we have upgrade to 11g. Looks like I'll have to completely replace the data layer code and references. I knew that the former was necessary, but I hope this could be managed by interfaces of independent provider with concrete implementation changed via the config and/or my IoC container.

    NOTE: I found this thread in the forums, but the posters to stop before the point at which they return the sliders and make use of them: [ODP.Net Ref Cursor and DbProviderFactory | https://forums.oracle.com/forums/thread.jspa?messageID=1278007]

    Thank you!

    I did yesterday a similar thing.

    The code was specific ODP.NET (that always, it is and should be), but I didn't rely on a reference to Oracle.DataAccess directly in my particular case:

    The code I ended up with is not very pretty, but it works.

    var refCursorType = Enum.Parse (((dynamic) plant.)) CreateParameter()). OracleDbType.GetType (), "RefCursor");
    dynamic oracleParameter4 = factory. CreateParameter();
    oracleParameter4.Direction = ParameterDirection.Output;
    var piInstance = oracleParameter4.GetType (). GetProperty ("OracleDbType");
    piInstance.SetValue (oracleParameter4, refCursorType, null);

  • appellant the pl/sql stored procedure

    Jdev11g R2, ADF BC

    I have a stored procedure 'COPY_BKG_E2I' and it has three input parameters to generate a new record in the database.
    ===========================================================================
    I created the AM method as follows and defined as method of the client AM class:
    =========================================================

    helper method:
    ===========

    protected void callStoredProcedure (String stmt, Object [] bindVars) {}
    PreparedStatement st = null;
    try {}
    // 1. Create a JDBC PreparedStatement for
    St = (PreparedStatement class) getDBTransaction () .createPreparedStatement ('start' stmt + ";"end;", 0);
    If (bindVars! = null) {}
    // 2. Loop on values for the bind variables passed, if any
    for (int z = 0; z < bindVars.length; z ++) {}
    // 3. Set the value of each variable binding in the statement
    st.setObject (z + 1, bindVars [z]);
    }
    }
    // 4. Execute the statement
    st.executeUpdate ();
    }
    catch (SQLException e) {}
    throw new Aexception.getLocalizedMessage (e);
    }
    {Finally
    If (st! = null) {}
    try {}
    // 5. Close statement
    St.Close ();
    }
    catch (SQLException e) {}
    }
    }
    }


    call the stored procedure:

    {} public void callProcWithThreeArgs (String V_BKG_NO, String V_VESSEL_ARRIVED_REMARKS, Date V_ATA_POD_D)
    callStoredProcedure ("COPY_BKG_E2I(?,?,?)", ")
    New Object [] {V_BKG_NO, V_ATA_POD_D, V_VESSEL_ARRIVED_REMARKS});
    }


    Now, I created back bean and page fragment,
    =================================

    in my page fragment, I bind the field three entries to the bean back:
    ============================================

    package olfms.view.backing;

    Import oracle.adf.view.rich.component.rich.input.RichInputDate;
    Import oracle.adf.view.rich.component.rich.input.RichInputText;
    Import oracle.adf.view.rich.component.rich.output.RichOutputText;

    public class saveBkgUpd {}
    Private RichOutputText bkg_no;
    Private RichInputDate arrive_date;
    Private RichInputText arrive_remarks;

    public saveBkgUpd() {}
    Super();
    }

    {} public void setBkg_no (RichOutputText bkg_no)
    This.bkg_no = bkg_no;
    }

    public RichOutputText getBkg_no() {}
    Return bkg_no;
    }

    {} public void setArrive_date (RichInputDate arrive_date)
    This.arrive_date = arrive_date;
    }

    public RichInputDate getArrive_date() {}
    Return arrive_date;
    }

    {} public void setArrive_remarks (RichInputText arrive_remarks)
    This.arrive_remarks = arrive_remarks;
    }

    public RichInputText getArrive_remarks() {}
    Return arrive_remarks;
    }

    My question:
    //?????? How to call the callProcWithThreeArgs with these three bkg_no; arrive_date; arrive_remarks; Help, please! Thank you!

    ?
    }

    Check your imports
    especially: import oracle.binding.BindingContainer;
    This is the bean of tire

    import oracle.adf.model.BindingContext;
    import oracle.binding.BindingContainer;
    import oracle.binding.OperationBinding;
    
    public class Test {
        public Test() {
        }
    
        public BindingContainer getBindings() {
            return BindingContext.getCurrent().getCurrentBindingsEntry();
        }
    
        public String callProcedureProgramatically() {
            BindingContainer bindings = getBindings();
            OperationBinding operationBinding = bindings.getOperationBinding("callProcWithThreeArgs");
            operationBinding.getParamsMap().put("param1", "first value");
            operationBinding.getParamsMap().put("param2", "second value") ;
            operationBinding.getParamsMap().put("param3", "third value");
            Object result = operationBinding.execute();
            if (!operationBinding.getErrors().isEmpty()) {
                return null;
            }
            return null;
        }
    }
    
  • Difference between function and stored procedure

    Hi guys, I don't understand the exact difference between a function and a stored procedure. I have a lot of google but still. Can someone explain in simple terms. Thank you.

    Hello

    Here is an example of a user-defined function:

    CREATE OR REPLACE FUNCTION     factorial
    (      in_num       IN     PLS_INTEGER
    )
    RETURN     PLS_INTEGER
    DETERMINISTIC
    IS
    BEGIN
         IF  in_num IS NULL
         THEN
              RETURN     NULL;
         ELSIF in_num <= 1
         THEN
              RETURN  1;
         ELSE
              RETURN  in_num * factorial (in_num - 1);
         END IF;
    END     factorial;
    /
    SHOW ERRORS
    

    This function returns an integer. You can use the function (or, more exactly, the integer returned) everywhere where a whole expression is allowed.
    For example

    SELECT     ROWNUM
    ,     factorial (ROWNUM)     AS f
    ,     loc
    ,     SUBSTR ( loc
                , 1
                , factorial (ROWNUM)
                )          AS s
    FROM     scott.dept;
    

    Output:

    `   ROWNUM          F LOC           S
    ---------- ---------- ------------- -------------
             1          1 NEW YORK      N
             2          2 DALLAS        DA
             3          6 CHICAGO       CHICAG
             4         24 BOSTON        BOSTON
    
  • do not display the values in the dashboard of the guests

    Hi friends,

    I have a rek suuch who... I have a guest access found nameid in which she

    NameID
    Sunny
    Katie
    David
    scare

    but I need only

    NameID

    Sunny
    scare

    How to display these values by using Dashboard prompts.any please

    Hello

    GoTo NameID guest-> Select SQL results of the Show and enter the following query

    "SELECT"Table. " NameID' OF 'SubjectArea' WHERE 'the Table '. "" NameID ' IN ('sunny', 'fear')

    Thank you
    Oldia...

  • Dashboard of the guests

    Hello

    Can someone help, I have guests from page of dashboard installation 5 as below

    Proposal date-specific default date value
    Proposal Date-specific default date
    Market - drop-down list
    Name of the person selling - drop-down list
    Introducer name - drop-down list


    The dashboard page of the filters on dates with success by using the default settings of the date, but when I select a 'market', 'Sales Person Name"etc. to list the other reports on the dashboard page does not filter on these.

    Are there rules that apply for the guests of dashboard to work on the page?

    Thank you

    Even if the columns in the report have underlying filters on them these should be overridden by the values of the chosen line. It is based on the filters are not protected (I am assuming you are using OBIEE10g) on the report, click the small box next to the filter at the bottom and see if there is a check mark next to the "Filter to protect" part, if there is then the prompt will not override, then click on the option to make the tick disappears and then save.

    Is it that help at all?

    Kind regards

    Matt

Maybe you are looking for

  • cleaning the dust inside my MacBook pro

    I opened the bottom of my MacBook Pro recently and was shocked to discover how the dust (and a few dead gnats) was there. It is mostly around the perimeter. Is there a way I can safely clean or do I need to take it to a professional? I apologize if t

  • Different versions of instrument drivers

    Hello Version of labVIEW drivers are specific? If I have an instrument not - NOR and the only driver available for the version of labVIEW 8.2 for interpreter, this driver may work with newer versions of labVIEW 8.6, 2009and 2010.

  • What type of file is $RECYCLE. BIN?

    Referring to the following picture, I would like to know what $RECYCLE. East-BIN\? is this a virus? Does anyone have any suggestions? Thanks in advance for your suggestions http://I1093.Photobucket.com/albums/i438/junk000/recycle.jpg

  • How to remove Vista antispyware 2012

    can my laptop that come with this antispyware WARNING 2012, how I get rid of it

  • How to configure das MD3200i load balancing

    I would like to connect a MD3200i (with two raid controllers) to one of our Windows 2003 R2 servers without the aid of a switch. After most of the documentation, some things remain pretty obscure to me. I'm new to MPIO/balancing and cannot figure how