hide and show the region and pass values to the region

I have a p_dept lov static 10,20,30 and submit button

I have 2 areas with the name dept10, dept20

When I select lov p_dept = 10 and submit button then see the region of dept10 (do not know how to pass values from: p_dept suggest key)

dept10 region query is
Select * from emp where deptno =: p_dept

dept20 region query is
Select * from emp where deptno =: p_dept

Please someone help me how can I achieve it with stetp by step.

Hello

You can simply set the display state of your regions.

- Edit dept10 region set condition [item / column = value]
- Expression 1
       p_dept
- Expression 2
       10

Do the same for the dept20 region

- Edit dept20 region set condition [item / column = value]
- Expression 1
       p_dept
- Expression 2
       20

When you submit a page, your selected items will be defined in the session if you do not need to pass any parameter.

Thnks

Tags: Database

Similar Questions

  • Hide or show the components

    Hi friends,

    I'm creating a JXML application. I need to hide or show the components on the screen. To do this, I'm looking for some attribute of control as 'rendering' of the JSF is work in the same way on JXML. Anyone know to do?

    Thank you in advance.

    Published by: paulonep on 02/27/2012 10:07

    I guess you mean 'FXML '? I'm not an expert in JSF, so I'm not sure, there is an exact match, but have you looked at the property 'visible '? For example:

  • 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

  • Reports 2-navigate and pass values between 2 different columns

    Hello

    I have a question about navigate from 1 report to another while passing the value of column 1 to column 2 in the second report...

    In OBIEE 11 G, I create link action report 1, column 1 and this action link is access BI content and the destination is report 2. Now, report 2 column 2, which 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 navigate to point out 2, however, the value in column 1 which I clicked on run navigation, not transmitted in column 2 in the report 2...

    Is there a way around this problem?

    Let me know if I need to elaborate

    Thank you

    Hello

    1 > create a report with the column 1 and column 1 of the brand is requested in this report (this will be your interim report).
    2 > in the second report of the condition implemented column2 filter is equal to (filter based on another through the analysis of the above-mentioned report and give the column).

    Please let me know if it solves your 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.

  • Automatically expand a Hide and Show model region when the Page loads

    Hello

    I work with a Hide and Show region model, and I'm trying to accomplish the following:

    When my Page loads, if a PX_ID is not null, hide it and see the area should be extended automatically.

    I use Apex 4.1.1.

    Any ideas?

    Thank you

    Erick

    Hello Joe,

    Thank you for your response.

    This morning, I was looking for a solution in the forum and I could not find anything. Now, I decided to keep looking for more careful and I found a solution.

    For those interested, check this thead element: Re: hide/show the region

    Basically, I created a dynamic Action with the Code JavaScript: $('.t20RegionHeader') ('img') .children ravishing ();

    Thank you

    Erick

  • Y at - it shows a bug with Hide and regions in 4.1.1.00.23?

    Hi all

    I tried to put a subregion Hide and Show area on a page. It is supposed to have a subregion of the form of each side (i.e. above and below).

    'View' of the region will show a "View only" control with a text and a picture inside.

    When I create the subregion Hide and Show area and add the control. everything seems to work as expected. However, when I then moves the subregion so that it is now between the subregions two form, 'view' is no longer something watch. The arrow changes, but that's all. It's as if the display control had ceased to exist. Move that the subregion any where from there does not change the behavior - show it only control is not displayed.

    Does anyone know if this is a known issue with 4.1.00.23? If so, is there a workaround?

    Thank you very much

    PT

    There seems not to be a bug and it seems not be a workaround.

    To recreate (at least in version 4.1.1), in the tree, create two subregions of form and add some controls. Create a subregion Hide and Show, and then add a control. If you run the page now, it should appear normal (i.e. the content in the skin and see the subregion will be visible when you click on show). Now, move the sub-region Hide and Show via drag and drop to between the two sub-regions form. If you run the page now, it should appear that there is no content in the skin and see the sub-region, despite the fact that, in the design view control is always there.

    See the bug itself, swap component mode. You will notice that even if the sequence of sub region numbers appear correct, the physical order of the sub regions will always be as they were when the subregion to hide and see the creation.

    Thus, it will look something like this:

    Shape 90 1 sub-region

    Subregion 230 form 2

    100 hide / display the subregion<-- in="" tree="" view,="" this="" will="" appear="" to="" be="" between="" form="" sub="" region="" 1="" and="" 2,="" in="" component="" view,="" it="" still="" appears="" at="" the="">

    To fix, go back to tree, drag hide and show of the subregion at the bottom, return to the view of the component, change hide and show of the subregion it and manually change the value of the sequence to a value between Sub regions 1 and 2 form. This will be:

    • go hide and show the sub-region to form Sub region 1 region 2 Sub form
    • the content of the Hide and Show under region now appears when you click to perform the operation to see the

    Hope this helps someone someday.

    PT

  • Hide and show region - open if Item not Null

    Hello
    I use APEX 4.0 and can not find a way to get the skin and see the region develop if a Page element has a value (is not Null) in the region, without clicking the sign more. I would like it done automatically based on an item that has a value or not. null or not null. I know how to have always hide it and see the region see the/develop once the shape is present. But if the item is null the region hosts not on the loading of the page, but when an element has the value when the page opens, I want the area to be open / extend without having to click the sign more. I searched the forum and found a large number of threads to have just the Hide and Show open area / develop once the form on the page is open, but not what I need now. Thanks for reading this thread and look forward to a support for this issue.

    Hi Charles,

    I created a dynamic action on page 7, it works as expected.

    This code will only work with your current theme, because the rocker is made according to the css class of the > icon (as you can see in the live action)

    Thank you

  • Hide/show the series (online) and to redraw the map

    I created a box for each lineserie in my linechart and when you click the checkbox I hide/show the on my list.

    myChart.series [5] .visible = myCheckbox5.selected;

    It works fine but I want to redraw the map and this time he doesn't have to calculate the axis according to the values in my series hidden... Someone knows how to do this?

    I tried without success includeInLayout property.

    Found a solution for the exchange of experts, but it was difficult to finish the removal/addition of series from myChart.series and then force a new drawing by resetting myChart.series.

  • Lack of "automatically hide and show the menu bar.

    Hi all, I want to hide my menu bar. I watched how disappear - it turns out that the checkbox "automatically hide / show menu bar" is missing. It is supposed to be under "use donkere menubalk en donker Dock. Why is it missing?  Thank you very much!

    Hi Mjappie

    This feature has been added in El Capitan.

    You must update to 10.11.3 to hide and show the menu bar.

  • Values element autologin and passing in the URL of the APEX

    We call APEX JSP URL.

    I am able to autologin to APEX application:

    http://host/pls/dad/f? p = 555:101:BRANCH_TO_PAGE_ACCEPT:NO:P101_USERNAME, P101_PASSWORD:username, password

    The problem is that I have to pass values of the item to page 10. How can I do?

    I created an item hidden in the login page (101) and created a process (before header) that sets the values of point of application.

    I tried to spend the new item values in the URL, but get an error "cannot find an id element for P101_TEST element.

    http://host/pls/dad/f? p = 555:101:BRANCH_TO_PAGE_ACCEPT:NO:P101_USERNAME, P101_PASSWORD, P101_TEST:username, password, the value

    Please suggest how to solve this problem or if there is a better way to do it.

    I discovered another way to do it is another way to do this by creating the elements of an application and passing these values in the URL.

    Create the point of application: APP_ITEM1, APP_ITEM2

    http://host/pls/dad/f? p = 555:101:BRANCH_TO_PAGE_ACCEPT:NO:P101_USERNAME, P101_PASSWORD, APP_ITEM1, APP_ITEM2:username, password, value1, value2

  • ADF LOV-&gt; UI: main table showing the fields ID and not the search values

    Hello
    I am very new to the development of the ADF and will have a simple question that I can't solve.

    Using Oracle JDeveloper 11.1.2.0.0 I create my views and objects of entity without incident. I have an entity object that has several "search values" (these are all optional references to foreign keys to tables 'children'). Objects and relations are perfectly mapped the ADF.

    In the views of child object I created the list UI tips
    -Type: Combo box with list values
    -the "selected" column is the "description" of the research

    in the editable display object, I traced the fields 'id' to use the predefined LOVs.

    This works as expected in the user interface, I created with an ADF table can be updated.

    However (here's the noob question), the "id" is displayed in the search on the table column. When I click the menu drop-down I can see the description, etc, but for a professional user when they look at the table, they see an unfriendly identification number.

    How can I get the part of the LOV display to show the description, while remaining linked to the ID of the parent entity.

    for example, it shows
    Country             LOV1        LOV2     LOV3
    United States     15           18           2
    while I want to display:
    Country             LOV1            LOV2       LOV3
    United States     Washington  Seattle     Rain
    If this has been answered several times or walk through there, sorry for the redundant question, I simply can't find a solution!

    Hello

    There are several ways to do this, you simply need an additional outputText next to the lov component field to display the value of the description.

    If you search the forum or adf blocks, you'll find several implementations.

    And here's one: http://andrejusb.blogspot.com/2010/06/lov-description-text-with-groovy.html

    Gabriel.

  • Photoshop Elements 8, how to show the value, the hue and saturation of a specific area of a pickture?

    Hello

    Photoshop Elements 8, how to show the value, the hue and saturation of a specific area of the image?

    How to choose the area? Which tool?

    Thank you in advance, Karl

    Make sure first that your range of information is visible: window menu / Info (shortcut F8)

    In this palette, click the small icon 'more '.

    Select "Palette Options".

    and choose HSB to second reading of palette.

  • hide and show the icon view using if else statement

    is - it possibleto hide and expose the display icon using if else statement? I try to use erase them but I don't know how show it on again after that I want to come back. Thank you

    There are two functions... EraseIcon and Exposeicon

    Mike

  • call another proc and passing the values in the exception block

    Hello
    I'm trying to call the procedure another passing values in the exception block... but I couldn't m figure out how would the values in the exception block
    create or replace procedure test_proc 
    is 
       cursor test_cur is 
         select update_dt from test_tbl;   
         
         test_rec test_cur%rowtype;
    
        begin
            for test_rec in test_cur
            loop
                begin 
                    insert into test_tbl values (test_rec.update_dt);
                    commit;
                    exception 
                       when others then
                         rollback;
                    --      test_proc2(update_dt)       --     want to call another procedure and want to pass that update_dt here ; this process will insert the update_dt into the message table    
                       commit; 
                     
            end loop;  
            
        end;
         
     
    
    My question is how do i pass value(update_dt) into the exception block or do i need to create any varaible ?? any idea 
    Thank you very much!!

    BTW, you can still use SQL % BULK_EXCEPTIONS even if you don't use EXCEPTION to LOG. You just can't use ORA-24381, since it will not be raised. Using SO many OTHER instead. And of course, there will be only one element in SQL % BULK_EXCEPTIONS:

    SQL> CREATE TABLE emp_temp AS SELECT * FROM emp;
    
    Table created.
    
    SQL> DECLARE
      2     TYPE empno_tab IS TABLE OF emp.empno%TYPE;
      3     emp_sr empno_tab;
      4     errors NUMBER;
      5     dml_errors EXCEPTION;
      6     PRAGMA EXCEPTION_INIT(dml_errors, -24381);
      7  BEGIN
      8     SELECT empno BULK COLLECT INTO emp_sr FROM emp_temp;
      9       FORALL i IN emp_sr.FIRST..emp_sr.LAST --SAVE EXCEPTIONS
     10         UPDATE emp_temp SET job = job || '_SR'
     11            WHERE emp_sr(i) = emp_temp.empno;
     12  EXCEPTION
     13    WHEN OTHERS THEN -- Now we figure out what failed and why.
     14     errors := SQL%BULK_EXCEPTIONS.COUNT;
     15     DBMS_OUTPUT.PUT_LINE('Number of statements that failed: ' || errors);
     16     FOR i IN 1..errors LOOP
     17        DBMS_OUTPUT.PUT_LINE('Error #' || i || ' occurred during '||
     18           'iteration #' || SQL%BULK_EXCEPTIONS(i).ERROR_INDEX);
     19            DBMS_OUTPUT.PUT_LINE('Error message is ' ||
     20            SQLERRM(-SQL%BULK_EXCEPTIONS(i).ERROR_CODE));
     21     END LOOP;
     22  END;
     23  /
    Number of statements that failed: 1
    Error #1 occurred during iteration #2
    Error message is ORA-12899: value too large for column "SCOTT"."EMP_TEMP"."JOB"
    (actual: 11, maximum: 9)
    
    PL/SQL procedure successfully completed.
    
    SQL> DROP TABLE emp_temp;
    
    Table dropped.
    
    SQL> 
    

    SY.

Maybe you are looking for