How to assign values to varaible without full page refresh

Hello

I am very very new to the development of the apex. I'd like to understand how I can get the suite in the form of the Apex,

I have a LOV (p2_dept) form with certain values. Depending on the value selected in lov, another control (textbox p3_dept_loc) must be made visible.

I use apex 4.1.1.00.23


Help, please.

Use the dynamic Action.
based on changes in the LOV field (I assume it's a Select list), you can define visible any other section or region.
Following links should help.
http://St-curriculum.Oracle.com/OBE/DB/Apex/R40/apexdynactions/apexdynactions_ll.htm

Tags: Database

Similar Questions

  • How to assign values to the application points to leave on a table

    Hello

    I have a FORM on a table with two or three elements. How to assign values to the elements of the application with the values in the elements of form, every time the value of the element is entry, change or page is sent?

    I created a dynamic action to the region level with Event - change to run the suite of PL/SQL, I tried with 3 different ways in PL/SQL, as shown below, but it didn't work.

    BEGIN

    : APP_FY: =: P1_FY;

    END;

    BEGIN

    APEX_UTIL. SET_SESSION_STATE ('APP_FY', v ('P1_FY'));

    : APP_FY: =: P1_FY;

    END;

    BEGIN

    APEX_UTIL. SET_SESSION_STATE ('APP_FY', v: P1_FY);

    END;

    Then I created an action dynamic at the ITEM level with change event to run the suite of PL/SQL and tried with PL/SQL, as shown below, but it didn't work.

    I need to assign values to the elements of the request form as these elements of the application will be used in many other pages in the application. How to I get there?

    Thank you.

    If a dynamic action of PL/SQL execution, you must send your list of page elements in the parameter "Elements of Page to submit.

    See the section 'run pl/sql' for this post.

    If the page is submitted, the elements of the page will be automatically set to session state, and you can have a page process make the code you have.

  • 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 can I see webmail on a full page, not as a sidebar?

    I can't access webmail except on the left side bar, and it is too narrow to read or maintain this form. How can I remove it from the home page and see it full screen?

    You load your e-mail using a bookmark? There is an obscure framework for bookmarks that directs them to the sidebar instead of the area of the home page. This is usually set by clicking a link in a page to your Favorites page instead of using Firefox built-in to add the bookmark function.

    To fix this, right-click on the bookmark, click on properties, then uncheck "load this bookmark in the sidebar". Does it work?

  • How to assign values in the first array 2D array

    Hi in my 2D array, I would like to store the Sessions in the first table and identifiers reserved for these sessions in the second table. I want to accept three booking by session and there are altogether 4 sessions. And I want to name the session as "session1", "session2" and "session3" but I don't want to set the value of the user ID since they are going to be some user input. So I have this table 2D.
    String [] [] booking = new reservation [4] [3];
    How can I assign the first table (the part of session), with values session1... pleniere4 please? Hope that makes sense for you.
    I tried
    Reservation [0] = "session1". but it showed an error.
    Thank you.

    Reservation [0] = "session1". but it showed an error.

    Won't work because your table looks like this.

    String[][] booking = new booking[4][3];
    /*
     * booking[0][0]
     * booking[0][1]
     * booking[0][2]
     *
     * booking[1][0]
     * booking[1][1]
     * booking[1][2]
     *
     * booking[2][0]
     * booking[2][1]
     * booking[2][2]
     *
     * booking[3][0]
     * booking[3][1]
     * booking[3][2]
     */
    

    If you use both indices to define each reservation

    booking[0][0] = "session 1";
    
  • How to assign values to the current element where the cursor is?

    Hi all

    I have a block of "tabular" data, B_Emp (from the Employee table) and the other non-database & non tabular block consisting of a text_items B_Test.

    'Emp_id' is one of the column in the Employee table and I want to attribute all the values of the Emp_id in all text_items of the B_Test in order, when you press a particular key.

    Here's what I wrote in the trigger

    Declare

    i the number;

    number of l_last_record;

    next varchar2 (40); -to hold the values of cursor system of the next item in the block of B_Test

    next_r varchar2 (40); -to hold the values of cursor system of the next record in the block of B_Emp

    Begin

    go_block ('B_Emp');

    Set_Block_Property ('B_EMPLOYEES_ALL', DEFAULT_WHERE, "Emp_id is not null");

    execute_query (no_validate);

    last_record;

    l_last_record: =: system.cursor_record;

    premier_enregistrement;

    next_r: =: SYSTEM. CURSOR_ITEM;

    go_block ('B_Test');

    Next: =: SYSTEM. CURSOR_ITEM;

    because me in 1.l_last_record

    Loop

    go_item (Next);

    : next: =: B_Emp.Emp_id;-here is the problem

    next_item;

    Next: =: SYSTEM. CURSOR_ITEM;

    go_item (next_r);

    next_record;

    next_r: =: SYSTEM. CURSOR_ITEM;

    WHEN THE OUTPUT: SYSTEM. LAST_RECORD = "TRUE";

    End loop;

    End;

    Now, this gives me the expected bad Bind Variable error as there is no block of data with the name "next".

    However, I checked the value of 'next' and 'next_r' (message (' value = ' | next)) and I'm getting the expected values.

    So if somewhere, I am able to put my value in the current item the cursor (because at the beginning of the loop, my cursor system is exactly to the text element where I need to insert the value) so I did not have to use this " : next: =: B_Emp.Emp_id;"

    OR

    If somewhere, I am able to return the items in my B_test block dynamically so I can simply use

    Loop

    ": B_test." dynamic reference for the element ": = : B_Emp.Emp_id;

    next_record;

    WHEN THE OUTPUT: SYSTEM. LAST_RECORD = "TRUE";



    Please help me out of this!

    Guy! I found a solution for the same thing.

    We can use integrated a 'copy' to set the values of the element where currently is cursor system.

    The syntax will be

    Copy ((new_value): System.Cursor_Item);

    -where new_value is the variable that contains the data to be assigned.

    In addition, we can assign the values from the system cursor to any variable.

    The syntax will be '

    new_value: =: System.Cursor_Value;

    Thanks a lot guys for your help and concern

    See you soon!

  • After insert trigger. How you assign value to variable?

    Was wondering if I could get a little help please... I have no experience in PL\SQL... The underside of the trigger fires when inserting another table and this trigger adds lines to another table... When you try to assign "bdate" one value from another table, I can't compile trigger... The ORA-04084 getting when you try to compile... Can someone tell me what the problem is in the code please?

    Thank you
    Curtis

    CREATE OR REPLACE TRIGGER "HKSM. "' CHILLPK_IAR ' AFTER
    INSERT ON 'CHILLPACK' FOR EACH LINE
    DECLARE
    bdate SAPUPLOAD.mfgdate%TYPE;
    BEGIN
    IF: New.sku NOT IN ("REPRISE", "EMT") THEN
    IF TO_CHAR (: new .adddate, 'HH24:MI:SS'), ' 04:00:00 ' THEN
    -adddate = production, last updated date
    : New.adddate: =: New.adddate-1;
    END IF;

    -bdate = mfgdate (date of slaughter of the inventory)
    Mfgdate SELECT INTO bdate INVENTORY
    WHERE RTRIM (containerkey) = RTRIM(:New.containerkey)
    AND RTRIM (sku) = RTRIM(:New.sku);

    INSERT INTO SAPUPLOAD)
    SKU,
    quantity,
    WGT,
    mfgdate,
    PFLAG,
    rtype,
    containerId,
    batchdate)
    VALUES)
    : New.sku,.
    : New.traysproduced,.
    : New.weightproduced,.
    : New.adddate,.
    NULL,
    'CREATE ',.
    : New.containerkey,.
    bdate);
    END IF;
    END;

    user3954362 wrote:
    Thanks for your reply... So why doesn't this work?

    Create or replace TRIGGER "HKSM. "' CHILLPK_IAR ' AFTER
    INSERT ON 'CHILLPACK' FOR EACH LINE
    DECLARE
    bdate sapupload.mfgdate%TYPE;
    BEGIN
    If: New.sku not in ("REPRISE", "EMT") then
    If to_char (: new .adddate, 'HH24:MI:SS')< '05:30:00'="">
    bdate: =: New.adddate - 1;
    On the other
    bdate: =: New.adddate;
    End If;
    Insert into SAPUPLOAD
    (sku qty, wgt, mfgdate, pflag, rtype, containerid, batchdate)
    Values
    (: New.sku,:New.traysproduced,:New.weightproduced,:New.adddate, null, 'CREATE',:New.containerkey, bdate);
    End If;
    End;

    Because you are not trying to change a new value that you were with this line in your original post:

    :New.adddate := :New.adddate -1;
    
  • How to assign values to specific parts of a channel with VBS?

    I need to change a continuous from one channel to a constant part, like a (30: 50) = 1 in MATLAB. It can be done with a loop, but with a very low speed. I tried for example ch (10:40:5) = 1 which does not work. And I can't think of a good keyword to search for in the help documents.

    Hi reko,

    If it's really just 30 values, then direct access to Channel.Values (i) will be quick plent.  If it's much more values, and if you have them in another channel, you can use the DataBlCopy() command.

    To find a selection of useful commands like this, go to the help system, click on the 'Content' tab, open the node 'Programming Reference', then the 'Thematic Programming Reference' node, then click on "working with data".

    Brad Turpin

    Tiara Product Support Engineer

    National Instruments.

  • How to assign values to the fields (topic-one under the other) in multiple output forms (cursor)?

    Hi all

    I have a form that has text_field columns below, from the RECEIVED_FORM_15G table. This table is empty.

    (1) CUST_CODE with 1 line item. (Number of items displayed = 1)

    (2) ACCT_FD_NO with 10 line items. (Number of displayed items = 10)

    There is more than 1 ACCT_FD_NO to 1 CUST_CODE.

    When I enter the CUST_CODE and press tab, all ACCT_FD_NO values should appear. I take values in another table called KEC_FDACCT_MSTR ACCT_FD_NO

    and in the ACCT_FD_NO, one under the other (topic). So I put in the following code:

    BEGIN

    PREMIER_ENREGISTREMENT;

    FOR CUR_R IN (SELECT ACCT_FD_NO FROM KEC_FDACCT_MSTR WHERE STAUS = 'E' AND ACCT_CUST_CODE =: CUST_CODE)

    LOOP

    NEXT_RECORD;

    : ACCT_FD_NO: = CUR_R.ACCT_FD_NO;

    END LOOP;

    END;

    But the problem is that I'm not able to view the value captured in the next consecutive line items.

    It appears in the first and second line item only.

    The first value gets displayed in the first column, then the cursor moves to the first line item in the second line of command,

    the second value is shown in the second line of billing, (it's because of NEXT_RECORD in my code)

    more later all the values displayed in the second line item only. (I checked with message call.)

    I want it to display one under the other.

    The problem is that the cursor does not move to the third line item after the second line item.

    If the remaining values gets displayed in the second line item only.

    So what is the problem in my code?

    Where should I put the next_record to move the cursor from one line to the next line item item IE the second line item to the third line item

    & the third line item in the fourth line of billing and so on...  Please let me know.

    Thank you.

    Is Oracle Designer 6i

    Oracle 9i.

    The above code is just...

    The only error was in the palette property of CUST_CODE, 'required' was not set to 'Yes'.

    So after the setting for the 'YES', this has worked perfectly well.

  • How a screenshot will develop to fit full page orientation landscape?

    I can't conversion of screenshots in full width on a landscape Orientation.

    I use Word 2011 and the reminder that the use of a much earlier version, it was a simple 2-steps - PrintScreen and then Ctrl V for import into a template that I had previously prepared in some way change the screenshot when importing to full width in Landscape Orientation.

    Of course, what makes for better visibility and I sure would appreciate it if someone could remember how to do it.

    I found a working workaround, it helps Snipping Tool and then paint and finally the copy. But surely there must be a way more zippier to change a screenshot from Portrait to landscape full width.

    There is no word 2011. And here is a link to the Word forums:
    http://answers.Microsoft.com/en-us/Office/Forum/Word

  • How to make msn messenger smaller not full page using windows 8

    new to windows 8... Messenger is full screen and all I want is small little thing in the corner, as if I had Windows xp. someone knows how to do this?

    I thought about it myself, and it can be done. But thanks for trying.

    I'd be interested too... I have Win7 - and the new version is a pain! What happened to multi-tasking?

  • Assign value APEX URL of the page to the redirect of the page element

    Hello
    I have the following hard coded URL routing traffic on page 10:
    href = "f? p = & APP_ID.:10: & SESSION. ::: 10 : »

    However, now I have logic to determine the button of the page which should route traffic and I'm storing in a Page element called P6_PAGE_ROUTE (the value is 10 or 23). How can I get the URL to direct traffic based on the value in P6_PAGE_ROUTE? I did some research and I've tried using the & P6_PAGE_ROUTE. but it does not work:

    href = "f? p = & APP_ID.: & P6_PAGE_ROUTE. : & SESSION. : & P6_PAGE_ROUTE. : »

    Thanks in advance for any help!

    URL addresses by passing the values generally have this format:

    href = "f? p = & APP_ID.: & P6_PAGE_ROUTE. : & SESSION. : ITEM1, ITEM2, ITEM3:VALUE1, VALUE2, VALU3

    Where,
    Question 1 has value 1
    question 2 has value 2
    and point 3A of value 3

    So the stuff LHS of the *: * must be the name of a page element

    + PS: Ensure no space after the comma as its URL. I fell for the first time and it is difficult to meet. +

  • How to assign the variable element of dynamic page?

    Hello

    I am facing following problem:
    I need assign a variable with a value of a page element - for example apex_application.g_f04 (i).
    My problem is, that f04 maybe everthing between f04 and f52 (or whatelse was number of page elements?).
    I've tried several things, among others, something like this:

    v_test: = apex_application.g_f | x | (i) / * where x can be another variable * /.

    or

    v_stat: = 'SELECT apex_application.g_f ' | x | "(i) the double '.
    EXECUTE IMMEDIATE v_stat INTO v_test

    but I do not understand so far...
    Any ideas?

    Published by: DFiles on 06.01.2011 13:57

    apex_application.g_f0x variable package are associative arrays and are not accessible to the dynamic SQL. You must use the dynamic PL/SQL:

    declare
    
      i pls_integer;
      x pls_integer;
      v varchar2(32767);
    
    begin
    
      /* However you get values for x and i... */
      i := 1;
      x := 4;
    
      execute immediate 'begin :1 := apex_application.g_f' || to_char(x, 'fm09') || '(:2); end;'
        using out v, i;
    
      return v;
    
    end;
    
  • How to record values of a tab control page?

    Hello!
    I have a question on the registration of the data to a page on the tab control.
    In my case, alarms (Boolean buttons) can be enabled, it will appear in a page called HISTORICAL (Date / / Time / / room), but when I change to another page and back to the HISTORY page, the table back to null value.

    Here are some screenshots of my program.
    If anyone can help, I will be grateful.

    In your case put structure on the 'Image' case, you have a non-use if Unwired tunnel on the right.  And I see you have some tunnels unwired on it.  If the case structure never executes one of these cases, the default value of an empty table will be passed out and put in the shift register.

    Solution:

    1. right click on this tunnel and disable by default so Unwired.  (In 95% of the tunnels, it should not be used.)

    2 find cases where the tunnel is unwired and pass the wire table in each of them.

  • How to assign the permit system to a page

    I confess that I am clearly missing something, but I've spent the last hour by clicking on the attempt to add a schema authorization to a page - quick easy answer, surely?

    I'm in the definition of the Page and by security section, I saw and create buttons, but all this doing is either see my created authorisation schemes, or create new ones - do NOT connect them to this page.

    Page > edit > authorization

Maybe you are looking for

  • Palash Dey

    Hi... my iphone locked icloud problem... I forgot my password

  • How to uninstall System applications? I want to uninstall pinterest.

    I love the minimalist systems (such as archlinux). That's why I buy a firefox os phone, that gives me more control to applications that can I have or not. I think pinterest isn't a system essential application (like others), so I want to uninstall it

  • Cannot open or remove frozen app

    My app Shazam recently updated and now it is frozen, I can't open it or delete it. I even went to iTunes, but it would not fill the list on the left of the apps where I would normally delete permanently apps. I was going to try to remove it and then

  • Qosmio DX1210 starts plus-mise the Bios updated has no

    Hello I tried to do an update of the BIOS on my DX1210 last night to version 1.5.There is a write failure error message during the update and now the system does not start.Is it possible to reflash the bios when a bios update fails?I have all the fil

  • Toshiba satellite a305-S6905 freeze at startup

    Toshiba phone freeze at the start of window screen... I can't type in the form... Problem laptop: does not start... I put in the disk repair or wipe the hd, but as soon as I clicked on repair or install the following screens are invisible to me. I kn