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.

Tags: Database

Similar Questions

  • 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 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!

  • 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 to assign the value to the application-level element

    Hello

    I'm learning to APEX.  I use version 4.2.6.

    My question is, I set a text field called 'FINANCIAL_YEAR' in the login page.  I wanted to know how to assign this value to a text element of Application level (on page sent), so that I can get this value through at my request.

    Thank you

    -Anand

    anand_gp wrote:

    Yes, I created a 'text area' under 'HTML' in the 'Home' page  Who accepts the exercise of a table through LOV.  I intend to assign this value to a global variable so that this variable can be read in any of the application to filter the result set from different tables (not yet built the rest of the application).  To do this, I was intending to use "Shared components"-> "Elements of Application".  I'm still not quite sure how it works.

    Start by reading the documentation on elements of application.

    Go to the shared components > Application parts and create your G_FINANCIAL_YEAR item. Value Session State Protection Restricted - can not be set the browser so that the value is not editable by the user, falsification of URLS or scripts.

    On the home page, if there is not already a button to submit the value of the fiscal year, add one in the HTML area, with the Action as a submit Pageclick. Otherwise, you can do without the button and using submit Page in Page Action when the changed value select the parameter in the list so he can undergo.

    Then, in the section of the Page processing, create a calculation:

    Point Type: Application-level element

    Calculate Item: Application: G_FINANCIAL_YEAR

    Point calculation: After submit

    Type of calculation: Value of the element

    Calculation:

    Run the application, select a value in the list of the fiscal year and submit the page. Review of current session state in the viewer of session state by clicking on the link of Session in the toolbar developer. Select the Elements of Application in the view list, and then click set. The element of your application and its current value must be visible. You can now reference value throughout your application by using the appropriate syntax.

    You should also consider if a default value (for example the current year) using a calculation Application from the point of calculation on the new Instance and coordinate the application point and part of the homepage using point application as the Source of value or an expression with Source page element, the value always, replacement of value that exists in the session state.

  • How to transfer values to the popup while the bean in application scope?

    Hi all

    I use JDeveloper 11.1.1.4

    My scenario is that I have a < af:popup > with a component of < af:outputText >.

    I need pass values of output text dynamically according to the scenarios.

    My grain of support is application scope . So I'm not able to pass values using get and methods.

    My Design as,

    < af:popup id = "p1" contentDelivery = "lazyUncached" >

    < af:outputText value = "#{managedBean.getDynamicText}" id = "ot1" / > "

    < / af:popup >

    Now I run the application I'm not get all values in text during debugging output, I am able to set the value, but it didn't reflect on the page.

    How to transfer values to the popup while the bean in application scope?

    Thank you...

    At the bean, why don't you set the value to a variable pageflowscope and point the outputtext popup to the pageflowscope variable?

    () .getpageflowscope, set AdfFacesContext.getCurrentInstance ("nomvar", value);


    Thank you

    Alisson

  • Before the process of pl/sql header to assign values to the elements on the page

    How can I assign values to the elements of a page based on the data structure returned by a pl/sql procedure in the front header process? I think execution of a pl/sql procedure based on a URL parameter value and then assign values to the page elements. Is this really possible using Apex 4.0.2? If so, how can it be done?

    Thank you

    Salome

    The question is not really clear. What kind of "data structure returned by a procedure from pl/sql? Please be much more accurate.

    For a data structure of PL/SQL such as records containing 2 elements (x and there) returned as output parameter for a procedure to be assigned to 2 items p1_x and p1_ypage, all that is necessary in the header before process is something like

    declare
    ...
      l_rec rec_type;
    ...
    begin
    ...
      the_proc(..., p_out => l_rec, ...);
    
      :p1_x := l_rec.x;
      :p1_y := l_rec.y;
    ...
    end;
    
  • Values of the data point on the cards

    How to display the values of the data point on the graph? They show the overview, but I need them in a printed version.

    Use the cfchartseries dataLabelStyle attribute.
    For example: dataLabelStyle = "value"

    See:
    http://livedocs.Macromedia.com/ColdFusion/7/htmldocs/00000228.htm

  • Access to the value of the application using javascript

    How can we access the value of the APPLICATION using javascript? I tried $x ('REQUEST'), but it does not work.

    Thank you

    Hello

    If you use & ASK. (including the & and the.) in your javascript directly it will be replaced by Apex with the value of the actual demand

    Andy

  • If I want to hide an object in the back how I would do on the application on my phone?

    If I want to hide an object in the back how I would do on the application on my phone?

    Hi erikag,

    You wouldn't be able to do it on the Mobile with Lightroom application.

    You must use the Lightroom / Photoshop on your computer for such purposes.

  • How to sign out of the application of the shape on iphone?

    How to sign out of the application of the shape on iphone?

    rolandomarazzi Here's how you disconnect (disconnect) the form of Adobe on iPhone application:

    • Out again the form of Adobe, then launch Adobe application forms app.
    • Press 'x' in the lower left corner to move the camera view of the library.
    • In the library view tap the icon in the upper left corner of the screen. The settings screen is displayed.
    • On the settings screen, tap my account. The account appears.
    • Tap Adobe ID email address listed below.
    • On the shortcut menu that appears, press disconnect.
  • Assign the value to the Application Variable via javascript

    Hello

    How can I assign value to an element of the application (not the page element) through javascript.

    I tried to assign the value as follows:

    $s ('F150_REGION_TEMP', region);

    where F150_REGION_TEMP is the application variable and 'region' is populated value in javascript.

    Kind regards
    Benz

    Hello

    Try

    
    

    BR, Jari

    Published by: jarola on March 1st, 2010 14:47

  • How to change the value of the Application for all users?

    Hi, I work on Apex 3.2.1.00.12 which is installed on a database of Oracle 10 g Enterprise Edition Release 10.1.0.5.0

    I'll explain my problem... At the beginning of the application, the user choose a year, each year can have 3 status and based on the State to restrict or grant access to certain tabs, pages and options. I put the status of the year selected in an Application element and then I just use an authorization scheme to check if the user can access pages or options.

    The problem is that if the administrator changes the status of the current year (for example, 1-2), users who are currently in the application will have access to the options of the State 1, instead of the State 2 options. is there a way to change the value of this element for all users?

    Thank you.

    Force a disconnection of all users? You can't really affect the values of the sessions other than your own via a browser, and from the point of application is part of a single session...

    You could re-read the value of point of application of its source whenever you load a page or tab game...

    Thank you

    Tony Miller
    Ruckersville, WILL

  • How to upgrade the Application point Page Item (not submitted) in the IR?

    Hello

    I have a region with show/hide elements in an international registration. These elements are used in the query SQL of IR and part of Page elements to submit in IR Page advanced attributes. When I press the Go button, that these positions are filled and IR works very well. I have also some elements of Application that their values are used to fill my Page list when entering the IR Ce I want to do now, is that when I change these elements on the Page, then press Go in IR, my elements of Application updated with the (new) values of Page elements. Someone has done something like this in a front IR?

    TIA

    Hello:

    Put this piece of JS in the header HTML of the page definition

     
    

    For the elements of the page you want to record off in an application element values, set the attributes of page - element like HTML form elements

      onchange=doSet('',this.value) 
    

    CITY

    Published by: city has on October 21, 2009 06:29

Maybe you are looking for

  • How to remove the voice that describes my every move?

    As of today, I now hear a voice describing my every move for a blind person. Example: "Firefox has new window;When I listen to the radio, the voice is always there covering the sound of the radio.What can I do?Thank you

  • Error one of the UBS damage connected to this computer has malfunctioned and windows does not recognize it

    Original title: Canon MF 4500 printer inkjet My computer tells me that 'one of UBS damage connected to this computer has malfunctioned and windows does not recognize"it could the cable, as the printer (canon MF 4500) does not work.

  • Cannot open a new meeting.

    When I open Windows Meeting Space and try to start a new meeting, it says "cannot open a new meeting because you have not enabled with valid IPv6 addresses network adapters. I went and watched the network cards I have and they say that IPv6 and IPv4

  • Windows 7 cannot print on the HP LaserJet 5 p printer

    I spent about 5-6 hours on this and am pulling my hair out... I have a new computer HP w / W7 Home Premium 64-bit.  And I connect to my old LaserJet 5 p via a line parallel to the printer, to a man, 25-pin (DB25), which is connected a parallel cable

  • Scheduled reports in appworld do not seem to work at the moment

    Reports can be created, but they have just the tail and do not complete. I made 3 reports... of data groups normally complete within 30 seconds... who have not finished in more than 24 hours. I'm in no hurry to get results, I just have to inform RIM