APEX how to create an apex_collection

Hello

I currently work in a 'Survey' application and I want to store data and at the end to submit them.
I read some topics and oracle bind on apex_collection, but I have the problem to the implementation, I don't know where and how to start:
1. I have a page containing:
A. report brings me data from a database. (these are questions)
B. 1 point with 5 values (radio button) different types of responses
I want to accomplish is to answer all questions and save all the answers at the end of DB. For this I thought to use the apex_collection to collect the information and after will see :).

Can someone tell me how to create a collection (it's a process?) and How to store the responses ?
Select a.question_num ||'.',
       b.text
from xxgrp.xxgrp_hr_survey_dtl_360 b,
     xxgrp.xxgrp_hr_survey_dtl a
where a.question_id = b.question_id  
Thank you

Indeed, the collection is a process.

I'm still waiting in my business logic where the best place is to create. You say you have need some kind off investigation app.

In this case, I would create when you open the first page off your App survey know that you can create it only once. If there is already let them down but in the API, there are procedures like create or truncate the collection.

Everything you use in the API are procedures of the apex.

Concerning

Nico

Tags: Database

Similar Questions

  • How to create a session of apex in example of SQL * more?

    I would like to establish a session to the apex with a different tool for SQL Workshop.

    How can I achieve this for example using SQL * Plus or SQL Developer?

    Is there a document on the internet that answers this question? I couldn't even find.

    Martin Giffy Souza on Oracle APEX: how to create a Session of the APEX in PL/SQL

  • How to create a column width fixed in an interactive report 4 APEX?

    This thread is a continuation of {message identifier: = 9191195}. Thank you fac586.

    Partial success: the following code provided by fac586 limit the width of the column of the Apex 4 interactive report as long as the data in the column contains a white space in a browser Firefox 3.6:

    < pre class = "jive-pre" >
    < style type = "text/css" >
    e #T_DESCRIPTION {}
    Width: 300px;
    }
    TD [headers = "T_DESCRIPTION"] {}
    Width: 300px;
    dressing: break-Word;
    }
    < / style >
    < / pre >

    Notes:
    1. the above code is placed in the HTML header for the page section.
    2 T_DESCRIPTION is defined as VARCHAR2 (2000).
    3. the above code works in Firefox 3.6.12 browser but does not work in the browser Internet Explorer 7.0.5730.13.

    I tried to add "float: left;":

    < pre class = "jive-pre" >
    < style type = "text/css" >
    e #T_DESCRIPTION {}
    Width: 300px;
    }
    TD [headers = "T_DESCRIPTION"] {}
    Width: 300px;
    dressing: break-Word;
    < font color = "red" > float: left; < / police >
    }
    < / style >
    < / pre >

    Notes:
    1 "float: left;" requires no white space and successfully splits the column between the characters instead of whitespace.
    2. "float: left;" reduces the height of the cell and allows the page to show through... could not determine how to solve this fundamental problem.
    3. the above code works in Firefox 3.6.12 browser but does not work in the browser Internet Explorer 7.0.5730.13.

    I've did some more research, but I've yet to discover how to create a fixed-width column in an interactive APEX 4 report that displays correctly in Internet Explorer 7 browser.

    Ideas and help will be appreciated.
    what theme are you using?

    A customized version of the 15 theme.

    You said you were using APEX 4.0, if I was testing on 4.0, but using one of its new themes based on the standards. 15 theme is a theme of legacy from older versions of APEX, mainly to ensure a certain level of support for the despised IE6 browser. The new themes are designed to restore mode standard and those inherited mode quirks (This is explained here). Firefox (and Safari, Opera and Chrome, and...) for your application, it's academic: all the required CSS: selectors attribute, the property max-width and dressing work in two modes.

    Enter Microsoft. They decided that in IE7, backwards compatibility meant that new CSS features would be supported only in standard mode, even if they had never been implemented in older versions, with no previous, behavior that may break. Go figure. Yes, even so the dressing will work in quirks mode (no surprise - Microsoft invented), attribute selectors, and max-width only. The latter is bug in standard mode, so I tried using widthworkaround, but who has always used an attribute selector, which of course is ignored, there are no selectors of friendly quirks mode in uneditable Oracle IR of supplement.

    The best 2 options are:

    1. stop using IE.

    2. use a theme based on standards.

    Less satisfactory would be:

    3. change your theme custom (or some of its pages) in standard mode (but it could break him other stuff).

    4 throw some JavaScript to fix the problem (I'll sleep on this one).

  • How to create the page zero in the apex oracle 4.0?

    Hi all
    How to create the page zero in the apex oracle 4.0?

    Concerning
    Mani

    Hello

    Home > Application Builder > Application xxx > create Page
    There are down to the Center on Wizard Page zero

    Kind regards
    Jari

    Published by: jarola 25 August 2010 19:28

    And here's the chapter on literature
    http://download.Oracle.com/docs/CD/E17556_01/doc/user.40/e15517/UI.htm#BGBFFFGH

  • How to create a session variable in the Apex?

    Hello dear colleagues,

    Is there a person know how to create a session variable in the Apex?

    How to get them?

    Thank you

    Best regards

    Hello

    No problem, PS don't forget to mark messages as 'useful' or 'correct', if you did infact find them useful or correct ;)

    John.
    --------------------------------------------
    Blog: http://jes.blogs.shellprompt.net
    Work: http://www.apex-evangelists.com
    Author of Pro Application Express: http://tinyurl.com/3gu7cd

  • How to create a report based on the item selected from the list of selection?

    Hello

    I created a tables_LOV based on:

    Select table_name table_name user_tab_cols r, d

    where column_name like '% _type % '.

    Then I created a ListOfTables page element, display in a selection list and pointing to tables_LOV.

    I run the page, and I can choose the table I want in the drop-down list.

    How to create a report based on the selected element? (ex: select * from selected_table)

    Thanks in advance

    Salah

    Hi Salah,

    Allright, take a look at this page: http://apex.oracle.com/pls/apex/f?p=vincentdeelen:collection_report

    I think that simulates what you are trying to accomplish. I've implemented the simplest method I could think of.

    The report is based on a collection of apex. If you are not familiar with this, you should study the documentation: APEX_COLLECTION

    To recreate my example, you should:

    (1) create a report (interactive) on your collection

    SELECT *
       FROM APEX_collections
     WHERE collection_name = 'MY_COLLECTION'
    

    (2) create a selection list page_item for the tables that you want to display (in my case, this is called "P38_TABLES")

    (3) create a dynamic action that triggers on the evolution of your selection list page_item. Dynamic action must be a parade of PL/SQL procedure the following code:

    declare
      l_query varchar2(4000);
    begin
      l_query := 'select * from '||:P38_TABLES;
      if apex_collection.collection_exists
            ( p_collection_name => 'MY_COLLECTION' )
      then
        apex_collection.delete_collection
          ( p_collection_name => 'MY_COLLECTION' );
      end if;
    
      apex_collection.create_collection_from_query
        ( p_collection_name => 'MY_COLLECTION'
        , p_query           => l_query
        );
    end;
    

    Make sure that you add your page_item 'Page to send items' section.

    (4) add a real extra action that makes an update of the report area.

    Here are two photos describing the da:

    http://www.vincentdeelen.com/images/OTN/OTN_COLLECTION_REPORT_DA1.PNG

    http://www.vincentdeelen.com/images/OTN/OTN_COLLECTION_REPORT_DA2.PNG

    Good luck and greetings,

    Vincent

    http://vincentdeelen.blogspot.com

  • How to create the default user interface is newly added to the columns in the table

    I added the new columns to the database table existed who got the default values for the user interface to the columns existed.

    How to create the default UI for the new columns.

    I couldn't see the newly added columns change the default UI (object browser-> database-> default UI - Edit-> Table).

    Using APEX 5.0.3

    Can you please help.

    Thank you.

    Find the option "Synchronize with database" under tasks on the interface's default user - Edit

  • How to create the logical tables &amp; how to give joints according to obiee 11g?

    Hello

    I have again to obiee 11g. I want to create the logical tables in MDB layer.

    After that I want to give joins according to MDB.

    I don't know, how to create the logical tables and how to give joints according to obiee 11g?

    Please help me.

    Thanks in advance,

    A.Kavya

    Hello

    The new logical table is right click on the MDB itself, for the join you generally in the business model diagram (again right click on objects).

    Maybe it's better if you start from a kind of tutorial to at least have an overview of what is happening where (layer business and physical layer etc.).

    Take a look at what Oracle has available: Oracle BI EE 11 g

    And no doubt, it can be a good start: https://apexapps.oracle.com/pls/apex/f?p=44785:24:0:NO:P24_CONTENT_ID, P24_PREV_PAGE:9787, 2

  • How to create a horizontal line in the region of html

    Hello

    How can I create the html elements, including a horizontal line in an html area filled with items. I want to use this horizontal line to part elements optically. Moreover, my solution for now is to group the elements belonging together in a separate html area. So I have now 3 parts of html, each filled with 5 columns of elements. Is it possible to align the elements in the 3 regions (together)? Cause at the present time, only the items in each region are aligned.

    I use oracle 11 g 2 with apex 4.1

    wucis wrote:

    Apex version is 4.1

    Theme: Sapphire 17

    Page: Two level Tabs - right Sidebar (optional / based on a table)

    The region is HTML

    Main question is, how to create a horizontal line as visible separator between items.

    My personal preference would be to group the items according to the needs in the subregions and use CSS to display the Visual borders and uniform spacing of control over formatting tables.

    If however you want using HTML single region, is to create elements of the only view to the agenda of the positions of the sequence in the region where you want the jumps to appear, with the following parameters:

    Name: PX_HR_1 / / substitute suffix number and an increment of page as required

    Display in the form: Display only

    Save Session State: NO.

    Start on a new line: Yes

    Start the new field: Yes

    ColSpan: number of columns in your layout

    Label: leave blank

    Horizontal/Vertical alignment: Above

    Model: --choose a model--

    Type of source: Static assignment

    Source of value or expression:

  • How to create a process of erasure for sub form of table

    Hello

    I created two applications and they share the same DB schema to apex.oraclecorp.com.

    One is app purchase order, when user enter 'Purchase requisition number' and select ' ERT HW/Item ID: HW/Item Name.

    and click 'apply changes' in the tabular presentation, the other app in 3rd screenshot, automatically updated data with the ID of the item selected with the "purchase requisition number.

    I did it with the following code in the first screenshot.

    I would like to know how to create a delete for this process?

    Does it mean that when I delete one of the item in purchase order app, another application can update the article with this number of requisition (PRM) as null?

    How to specify the item I checked to remove?

    Thank you!

    Alice

    I did itScreen Shot 2015-07-17 at 16.24.22.png

    Screen Shot 2015-07-17 at 16.16.18.png

    Screen Shot 2015-07-17 at 16.18.33.png

    Hi AliceFan-Oracle,

    AliceFan-Oracle wrote:

    I read the thread of the solution you provided. But I think that my case is different.

    I therefore reproduce my apex.com case.

    In the page of the order, I create a process of "Apply change" button, so when you select item ERT ID and press the button 'apply changes', the process will update the column 'PURCHASE_REQUEST_NUMBER' in the table 'ERT_TABLE_ITEM '.

    So it works on the button 'Apply Changes' that hope you that it works and you want to reproduce the same thing for the button 'delete '? as mentioned below:

    So my question is how to create a deletion process, then click on the button Delete, the application of 'buy' in the article ERT Table number must be removed while the selected item with ID ERT point in the purchase order page is deleted?

    Check your Application 81653 - Page 3.

    Made the following changes:

    • Created a process of PL/SQL 'Remove the PRM in ERT_ITEM_TABLE' as follows:
    Declare
    
        j number;
    
    Begin
    
        For  i IN 1 .. apex_application.g_f01.count
        LOOP
            j := apex_application.g_f01(i);
            Update ERT_TABLE_ITEM
            SET    PURCHASE_REQUEST_NUMBER = null
            Where  ERT_ITEM_ID = apex_application.g_f30(j);
    
        END LOOP;
    
    End;
    
    • Subordinate the process of 'Remove the PRM in ERT_ITEM_TABLE' to 'Remove' button request: MULTI_ROW_DELETE
    • Re-sequenced process so that the process of 'Remove the PRM in ERT_ITEM_TABLE' runs before "ApplyMRD".

    Kind regards

    Kiran

  • How to get an apex_collections.clob001 text box without doing bad request error

    For my work, I need to adjust an apex page where copy us paste records to an excel file in a text box to read in the data base. The code for this works very well, except for 1 thing:

    Whenever copy us paste more records as well as the total number of characters is greater than 32767, it gives the following error:

    Bad request

    The request was not understood by the server due to invalid syntax.

    I know that I need to get the content of the textarea component in apex_collections.clob001 and I heard that I need to ajax and javascript to do, but ajax is not my area of expertise.

    Once I have the clob in apex_collections and can be read from in a package I can handle the rest. The text box is called P157_CONTENT.

    Who can explain to me how do I get the content in the text box in apex_collections.clob001?

    I finally got to work with this solution:

    Martin Giffy Souza on Oracle APEX: how send/download a CLOB from the browser at APEX via AJAX

  • How to create the column of the table for long-form Master detail relationship

    Apex 4.1

    Oracle 11g

    I created a form master detail and see the main table hotel_list and table hotel_mapping as detailed below.

    Hotel_list

    ID HOTEL_NAME

    1 Holiday Inn

    Hotel Hilton 2

    Hotel_mapping

    ID HOTEL_NAME MAPPING_NAME

    1 Inn Holiday Inn Select hotel

    2 holiday hotel Holiday Inn Select

    3 hotel Holiday Inn Holiday Inn Hotel

    4 Hilton Hotel Hilton Hotel chain

    Hotel Hilton 5 HiltonHotel

    Table Hotel_name Hotel_list is a linked table Hotel_mapping

    When I add a line to the Hotel_mapping table for the selected row in the hotel_list table, mapping_name of column is null, therefore impossible to create the relationship between the main table and the secondary table.

    I would like to know, how to create the relationship?

    Thank you very much

    Best regards

    Yong Huang,

    simple step see creating a form detailed master with APEX - Assistant Master retail

    and check how to maintain the relationship between two tables,

    simple return the packaged application «Sample of Masters details»

    and try to understand this concept...

    In your example, use Hotel_list.ID as a foreign key in the table Hotel_mapping

    and maintain the relationship with the column ID...

    and choose the display type of the column Hotel_list.ID in table Hotel_mapping as List(Query Based LOV) select.

    otherwise the best way is to create sample on oracle.apex.com

    I hope this helps...

    Leave.

  • How to create the report using the procedure.

    Hi all

    I want to create the report in the apex. But I don't have a sql code. I have a single procedure. Is it possible to create the report using this procedure in the apex.

    CREATE OR REPLACE PROCEDURE headcsv_prc2

    AS

    CURSOR cr_header

    IS

    SELECT ood.organization_code, fm.formula_no AS "FORMULA_NAME."

    FM.formula_vers AS "FORMULA_VERSION."

    FM.formula_desc1 AS "FORMULA_DESC."

    DECODE (fm.formula_status,

    100, 'new ',.

    400, "approved for use in the laboratory."

    700, "allow the general."

    800, "We Hold."

    900, "frozen."

    1000, "obsolete/archived.

    ) AS "FORMULA_STATUS."

    DECODE (fd.line_type, '1', msib.segment1).

    DECODE (fd.line_type, '-1', msib.segment1 ') ingrediant.

    DECODE (fd.line_type, '2', msib.segment1) AS "BY_PRODUCT."

    DECODE (by_product_type,

    "W', 'waste."

    "R',"rework. "

    "Y', 'Yield."

    The of ', 'Sample. "

    NULL VALUE

    ) AS "BY_PRODUCT_TYPE".

    Of org_organization_definitions ood,.

    fm_form_mst fm,

    fm_matl_dtl fd,

    mtl_system_items_b msib

    WHERE ood.organization_id = fm.owner_organization_id

    AND fm.owner_organization_id = msib.organization_id

    AND msib.organization_id = fd.organization_id

    AND fd.organization_id = ood.organization_id

    AND fm.formula_id = fd.formula_id

    AND msib.inventory_item_id = fd.inventory_item_id

    - and fm. FORMULA_NO like '% THE % '.

    AND fd.line_type IN ('1 ', ' 2', '-1' ")

    Ood.organization_code GROUP,

    FM.formula_no,

    FM.formula_vers,

    FM.formula_desc1,

    FM.formula_status,

    FD.line_type,

    MSIB. Segment1,

    by_product_type

    ORDER BY fm.formula_no, fm.formula_vers;

    BEGIN

    Dbms_output.put_line (INITCAP ('the ORGANIZATION CODE')

    || ','

    || INITCAP ('NAME FORMULA')

    || ','

    || INITCAP ('FORMULA VERSION')

    || ','

    || INITCAP ('FORMULA DESC')

    || ','

    || INITCAP ('FORMULA STATUS')

    || ','

    || INITCAP ('PRODUCT')

    || ','

    || INITCAP ('INGREDIANT")

    || ','

    || INITCAP ("PER PRODUCT")

    || ','

    || INITCAP ('PER TYPE OF PRODUCT")

    );

    FOR ch IN cr_header

    LOOP

    Dbms_output.put_line (ch.organization_code

    || ','

    || ch.formula_name

    || ','

    || ch.formula_version

    || ','

    || '"'

    || ch.formula_desc

    || '"'

    || ','

    || ch.formula_status

    || ','

    || ch. Product

    || ','

    || ch.ingrediant

    || ','

    || ch.by_product

    || ','

    || ch.by_product_type

    );

    END LOOP;

    EXCEPTION

    WHILE OTHERS

    THEN

    Dbms_output.put_line (' No error: ' |) SQLCODE. "Error Msg: ' '.

    || SQLERRM

    );

    END;

    EXEC HeadCSV_Prc2



    Thank you

    Rambeau

    Hi Christian,

    In addition to the fact that the Oracle database has an internal Java engine and it would be possible for Apex call a Java stored procedure, the Apex really has nothing to do with Java. To create a report, you discovered, you specify a SQL query. In certain circumstances, you can embed a query in a PL/SQL function, but the incorporation of an arbitrary Java application and waiting for it to be called from Apex for a kind of security is there with the fairies.

    I recommend you research the Apex and then enter your so-called "higher authorities" how things work.

    Concerning

    André

  • How to create checkbox with HTML in the labels?

    How to create checkbox with HTML in the labels?
    If it is possible without the help of APEX_ITEM. BOX?

    Hello

    Yes you can do it. You just need to set * "Escape special characters" = No * in the area of 'Security' of the page box point you. But please be aware that this change could make your application vulnerable to XSS attacks in the case if users are allowed to enter data into the table that is used to fill the entries in the box.

    Concerning
    Patrick
    -----------
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • How to create a list of icon button similar to the application of the timesheet

    Hello
    Can someone tell me how to create an icon, with drop-down list that looks like and similar to the button work, we can find in the application of the timesheet in the following URL: http://apex.oracle.com/pls/otn/f?p=35222:LOGIN

    Thank you!

    Hello
    Click on your list box
    Click on the name of the list
    It is redirects to the list property
    Choose the name of the specific list item, that it will open for the parameter of the attribute
    Choose the small button on the right image will pop up the existing images or
    Download your [shared components] Access image #APP_IMAGES #image1.gif

    Thank you
    Loga

Maybe you are looking for

  • I can't install ios 10 instead of the beta version of ios

    IHAVE apple iphone 64 gb 6plus I have this cell phone os is ios 10 beta. now, I want to install the original version of ios 10 so how do I do it.

  • Is there an optimal resolution for iCloud sharing Photos

    Is there an optimal resolution for iCloud Photos sharing on computers, iPad and Apple TV? I want to scan photo album my grandparents to share with my friends and family. I scanned a few pages of test at 3200 x 2000 pixels. They have look great on my

  • I don't have norton antivirus protection

    I don't have norton antivirus protectionI have no protectionwhere can I download protection

  • sr5605f restoration

    I have a client computer that has a windows 7 upgrade on him and it is not authentic. She said somene installed. The system does not really hurt. I did as far as I know. He's not leaving factory. Can I get a restore? DOE Compaq/HP pay for it? Other o

  • My Acer Aspire E 15 fails to start after 10 upgraded Windows.

    Hello, im having a problem starting my laptop. I have just upgraded to Windows 10 8.1 Windows recently. my laptop does not start upward for the first time (the Acer logo appears and the cycling tour of points, but then the screen goes black) I turned