Adding blank lines to collections is displayed in an area of report

How can I add blank lines to a collection that appears in a report from the region? I am viewing a collection area of report and have created a button 'Add as many lines' in the context of this region. I would like to add blank lines to the collection and displays the region again when the user clicks this button. Is this possible in Apex 4.0?

Thank you

Salome

Hi Marc,

Of course, this is possible.

Pretend I'm a before the process of header on my page that creates my collection like this:

BEGIN
   IF NOT APEX_COLLECTION.COLLECTION_EXISTS('EMP') THEN
      APEX_COLLECTION.CREATE_COLLECTION_FROM_QUERY_B (
           p_collection_name => 'EMP',
           p_query => 'SELECT EMPNO, ENAME FROM EMP');
   END IF;
END;

And I have a report like this region source:

SELECT APEX_ITEM.TEXT(1, c001) empno,  -- be sure to define column as Standard Report Column
       APEX_ITEM.TEXT(2, c002) ename   -- be sure to define column as Standard Report Column
  FROM apex_collections
 WHERE collection_name = 'EMP'

Then I can set a button called Add Row and made it to trigger a process of PL/SQL like this:

APEX_COLLECTION.ADD_MEMBER(p_collection_name => 'EMP');

You can improve this option to add a set number of lines by calling add_member in a loop, or go further and have an element of the list with values of 1, 2, 5 etc., so that the user can select the number of lines to add before clicking on a button to add lines.

Hope this helps,
John

If you find this information useful, please do not forget to mark the 'useful' or 'correct' post so that others benefit as well.

Tags: Database

Similar Questions

  • How to display 5 columns with blank lines

    Hi Experts,

    I need to display in the dashboard column 5 with blank lines. After download in excel I need to see the same thing as the names in columns 5 and that it must contain empty lines. It is one of the requirements of the user.

    So how do you achieve...

    Thanks in advance,
    Sitbon

    Next to all the answers of your son, you should see a button 'OK' or 'useful '.
    Helpful = 5pts,.
    Correct = 10pts

    :-)

    Check the sticky thred:
    http://forums.Oracle.com/forums/Ann.jspa?annID=939

    Welcome to the community, pls help others!

  • How to view the monthly/annual statistics in terms of time past/calories burned, broken down by each individual activity such as run elliptical/outside etc. Y at - it a third party application that can help me to collect and display these data?

    How to view the monthly/annual statistics in terms of time past/calories burned, broken down by each individual activity such as run elliptical/outside etc. Y at - it a third party application that can help me to collect and display these data?

    Hello

    It is not currently possible to review the data the application integrated in activity or training on this basis. If you want Apple to consider adding this feature, you can suggest here:

    https://www.Apple.com/feedback/watch.html

    However, health and fitness data from other sources, iPhone, and Apple Watch are registered and grouped within the health on iPhone app. These data can be exported, which you may find useful to track the cumulative progress and/or analyze your activity more in detail.

    IPhone app activity also has a button for sharing (top right of the screen) that allows to share data - including social media, Messages, Mail, Notes, and a printer.

    Include third-party applications that can be useful, for example:

    Access to QS

    -"Access your HealthKit data in a table so you can Explorer using numbers, Excel, R, or any other tool compatible CSV."

    - https://itunes.apple.com/gb/app/qs-access/id920297614?mt=8

    SpectaRun workouts

    -"View from the workouts of your Apple Watch on your iPhone and to export these workouts so you can download them to your favorite online running community."

    - https://itunes.apple.com/gb/app/spectarun-workouts/id991723862?mt=8

    Data can also be exported directly from the application of the health (Health Data > All - Share at the top button on the right).

    Check the descriptions and support resources for third party applications for supported details of import and data analysis features.

    More information:

    Use the activity on your Apple Watch - Apple Support

    Use of the workout on your Apple Watch - Apple Support

    http://www.Apple.com/watch/health-and-fitness/

  • Word RTF Tem [plate - insert a blank line in the loop

    I'm entering my template like this XML data (this is just an example of dumbed down):

    <? XML version = "1.0"? >

    < LABEL_TEST >

    < LIST_G_TEST >

    < G_LABEL_HEADER >

    < NAME > Parent 1 < / NAME >

    < / G_LABEL_HEADER >

    < G_LABEL_HEADER >

    < NAME > Kid 1 < / NAME >

    < / G_LABEL_HEADER >

    < G_LABEL_HEADER >

    < NAME > Parent 2 < / NAME >

    < / G_LABEL_HEADER >

    < G_LABEL_HEADER >

    < NAME > Parent 3 < / NAME >

    < / G_LABEL_HEADER >

    < G_LABEL_HEADER >

    < NAME > 4 Parent < / NAME >

    < / G_LABEL_HEADER >

    < G_LABEL_HEADER >

    < NAME > Kid 4 < / NAME >

    < / G_LABEL_HEADER >

    < / LIST_G_TEST >

    < / LABEL_TEST >

    In summary, I have a list of Parents, and if they have a child, the name of their children is below. Not all parents have children.

    If the data is a bit like this:

    Name of the parent

    Name of the child

    Name of the parent

    Name of the parent

    Name of the parent

    Name of the child

    When I loop data in my RTF model, I want to be able to insert a blank line before all of the lines 'Parent '. A bit like this:

    Name of the parent

    Name of the child

    Name of the parent

    Name of the parent

    Name of the parent

    Name of the child

    I tried to do this by adding an empty xml tag in the list, like this:

    <? XML version = "1.0"? >

    < LABEL_TEST >

    < LIST_G_TEST >

    < G_LABEL_HEADER >

    < NAME > Parent 1 < / NAME >

    < / G_LABEL_HEADER >

    < G_LABEL_HEADER >

    < NAME > Kid 1 < / NAME >

    < / G_LABEL_HEADER >

    < G_LABEL_HEADER >

    < NAME > < / NAME >

    < / G_LABEL_HEADER >

    < G_LABEL_HEADER >

    < NAME > Parent 2 < / NAME >

    < / G_LABEL_HEADER >

    < G_LABEL_HEADER >

    < NAME > < / NAME >

    < / G_LABEL_HEADER >

    < G_LABEL_HEADER >

    < NAME > Parent 3 < / NAME >

    < / G_LABEL_HEADER >

    < G_LABEL_HEADER >

    < NAME > < / NAME >

    < / G_LABEL_HEADER >

    < G_LABEL_HEADER >

    < NAME > 4 Parent < / NAME >

    < / G_LABEL_HEADER >

    < G_LABEL_HEADER >

    < NAME > Kid 4 < / NAME >

    < / G_LABEL_HEADER >

    < / LIST_G_TEST >

    < / LABEL_TEST >

    But that doesn't seem to work.

    Manny

    I found a solution that works very well.

    I added a new XML field to my data called .  In my model, this field is inserted in the line, but in a location where there is no data being printed. And it is formatted as white text, so that it basically just does not appear.

    So essentially, it's what I have now:

    Parent 1

    .

    Child 1

    .

    .

    Parent 2

    .

    .

    Parent 3

    .

    .

    Mother 4

    .

    Child 4

    .

    If the data is a bit like this:

    The name of the parent.

    The name of the child.

    .

    The name of the parent.

    .

    The name of the parent.

    .

    The name of the parent.

    The name of the child.

    When I loop data in my RTF model, the '. ' is a white text, then I get this:

    Name of the parent

    Name of the child

    Name of the parent

    Name of the parent

    Name of the parent

    Name of the child

  • Insert a blank line after each line grouped

    Oracle 11.2.0.1

    Windows XP

    I need to create a table (who have more to exported to the Excel SQL Developer) something like this:

    The user Scott Table Emp


    create the table temptbl as

    SELECT

    -case when lead (deptno) OVER (ORDER BY deptno) = deptno then empno otherwise null end AS empno.

    -case when lead (deptno) OVER (ORDER BY deptno) = deptno then ename otherwise null end AS ename.

    -case when lead (deptno) OVER (ORDER BY deptno) = deptno then job otherwise null end AS work,

    -case when lead (deptno) OVER (ORDER BY deptno) = deptno then null deptno otherwise end up LIKE deptno

    WCP

    Table created.

    SQL > select * from temptbl;

    EMPNO, ENAME, DEPTNO JOB

    ---------- ---------- --------- ----------

    7782 CLARK MANAGER 10

    PRESIDENT OF 7839 10 KING

    7566 JONES MANAGER 20

    FORD ANALYST 20 7902

    7876 ADAMS CLERK 20

    SMITH CLERK 20 7369

    7521 WARD SALESMAN 30

    7844 TURNER SELLER 30

    7499 ALLEN SALESMAN 30

    EMPNO, ENAME, DEPTNO JOB

    ---------- ---------- --------- ----------

    7900 JAMES CLERK 30

    MANAGER OF 7698 30 BLAKE

    14 selected lines.

    SQL >

    But it is not giving me the last row of deptno.  If I have to display the data on sqlplus then I can use break on jump 1, but since I create my correct query table (around 10 K lines), I just want to insert a blank line after each data grouped.

    Thank you.

    Select empno, ename, job, decode (empno, null, null, deptno) deptno emp

    Group by grouping sets ((empno, ename, job, deptno), deptno)

    /

    EMPNO, ENAME, DEPTNO JOB
    ----- ---------- --------- ----------
    7782 CLARK MANAGER 10
    PRESIDENT OF 7839 10 KING
    7934 MILLER COMMITTED 10

    SMITH CLERK 20 7369
    7566 JONES MANAGER 20
    7782 CLARK MANAGER 20
    SCOTT ANALYST 20 7788
    7876 ADAMS CLERK 20
    FORD ANALYST 20 7902

    7900 JAMES CLERK 30
    7499 ALLEN SALESMAN 30
    7521 WARD SALESMAN 30
    7654 MARTIN SALESMAN 30
    SALESMAN 7698 BLAKE 30
    7782 CLARK MANAGER 30
    7844 TURNER SELLER 30

  • Photo not added to the quick Collection when you click marker

    Recently I have not been able to add photos to a quick collection, when you click on the marker. The marker provides information, but the photo does not appear in the quick collection. This problem occurred at the same time, I couldn't remove the photos in the quick collection that had been added. I had to remove these photos using the menu system. I've upgraded to the new version of Lightroom 5 yesterday thinking that would solve the problem. I still have the problem so I wonder if this is a setting that I missed. Quick collection markers button is enabled in the display options and the button and change when you click them... The thumbnail of the photo is not added to the quick collection.

    It seems that you no longer have the quick Collection, referred to as a collection of target. Is there a small symbol '+' next to the name of the collection? If this isn't the case, you have another collection in your designated collection list.

    To fix, right-click the name of the quick Collection and click the option "set as target Collection.

  • Progress of blank lines to delete the Table

    Hello
    I added the logic to add 10 empty lines and remove empty lines when the form is submitted. But somehow it only deletes the lines in the current screen of the advanced table. If there are 15 lines and I click next to spend the last 5 years and submit the form he removes only 5 blank lines but not the other 10 lines in the previous section.

    where I am doing wrong?

    Thank you
        Row [] row = null;
        ExpAttendeesVORowImpl rowi = null;
        
        if( expattendeesvoimpl1 != null ) 
          {
            row = expattendeesvoimpl1.getAllRowsInRange(); 
           }
            System.out.println("No of items "+row.length);
        for (int i=0;i<row.length;i++)
          {
             pageContext.writeDiagnostics(this, "in loop ", 2); 
             rowi = (ExpAttendeesVORowImpl)row;
    pageContext.writeDiagnostics(this, " in loop row "+ rowi.getName(), 2);
    if((rowi.getName() == null))
    {
    pageContext.writeDiagnostics(this, "deleting row"+ rowi.getName(), 2) ;
    rowi.remove();
    }
    }


    Thanks

    You can try instead to use:

    expattendeesvoimpl1.getFilteredRows ("name", null);

  • &lt; xsl: attribute name = "break-before" &gt; page &lt; / xsl: attribute &gt;-add blank lines

    Hello.
    < xsl: attribute name = "break-before" > page < / xsl: attribute >-add blank lines.
    When to transfer the lines to the next page with the command
    < xsl: attribute name = "break-before" > page < / xsl: attribute >, a new page at the beginning of a blank line, then the data. And so on all pages. If < xsl: attribute name = "break-before" > page < / xsl: attribute > removed, the XML Editor displays all the lines correctly.

    I can send RTF and XML files.

    Does anyone know how can I solve this problem?
    Thank you

    Send me the xml files and the [email protected] model. I'll take a look. Also, can you clarify your needs and deliver a little clearer in your email?

    Thank you!

  • Make blank lines appear in a form field

    I need to move text that I understand a number of places in a record which will be published later in a field. I would like to have a blank line between each group of data (like a blank between paragraphs line).

    The only way I can do this must include < br > < br > after each section. This information appears perfectly everywhere EXCEPT in a form field where appear the br and paragraphs run together.

    The display in the form fields is HTMLEditFormat(). If I come from the information coming from these areas, everything works perfectly. I need to find a way to create the information elsewhere, so it appears correctly in these areas so that the information can be changed.

    The fact of note than when I look at the records in the database, the information which was launched from the form field display like this message. You see returns and empty between the information, but not s < br > lines. The information that generates I also I have include the < br >. So the question is - how do I save this information so that it contains flashbacks without introducing < br > s?

    I thought about it - we use the Chr() function, so the solution is:

    myVar = "#information ##chr (13) ##chr (10) # chr(10##MoreInfo#).

    CHR13 is a return and chr10 is a line break

  • How to write a double waveform in an Excel file without blank lines of cells

    Hello

    I am writing two waveforms in an Excel file, I'm almost there, but the stumper is that after each data line, a blank line appears in the XL file.

    Probably something simple I forgot because I am fairly new to this.

    Thanks in advance,

    Joel


  • How to eliminate blank lines in addresses mailing label?

    I'm merging the address fields in an Excel 2007 spreadsheet to labels in Word 2007.  Not all labels to use all the fields of the address of the spreadsheet, if I want to be able to ignore a blank in this field entry so that there is not a blank line to the address on the label.  I remember in earlier versions this was done automatically.  How can I remove the blank lines in the merged label?

    Thank you for visiting the Microsoft answers community.

    The question you have posted is related to Microsoft Office, and would be better suited in the Group Discussion of Microsoft Excel. Please visit this link to find a community that will provide the support you want.

    Lisa
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • question about wordpad, because the lines are separated by a blank line

    When I type in WordPad, the lines are separated by a blank line, that is, the 1st line climbs to the 3rd line, with the 2nd empty line, it takes double up typing something.  It's the same thing with the types of different fonts.

    I tried to use 1.0 spacing of lines in the tab "paragraph" Section; but this tab doesn't seem to work properly.  The lines are always separated by a blank line.

    Looking forward to your reply and thank you.

    Wu Carlotta

    Set the line spacing to 1.0 and uncheck the ' Add 10pt space after paragraphs... :-)

  • BlackBerry smartphone how to force a blank line after signature

    Hi all!

    I'm trying to force a blank line after the signature "sent from Blackberry. I know how to change the signature, but I do not know how to do a blank line at the end.  When I hit the Enter key, it takes just the cursor to the next field.

    I'm sure it's something simple, but I can't understand it.

    TIA!

    I wrote my signature as I wanted, using line breaks, I typed up in memopad as I wanted, then copied/pasted in the signature field. Worked perfectly.

    Or type it upward in email on computer and send it to your BlackBerry and copy and paste from there.

    According to what is easier or more convienent for you.

  • Sales order form, line status code is displayed as "WITHDRAWN". but the same code appears as "AWAITING_SHIPPING" for the same line in the database. can you please explain, where the value in frontend comes? It differs from the flow_status_code in oe_or

    Sales order form, line status code is displayed as "WITHDRAWN". but the same code appears as "AWAITING_SHIPPING" for the same line in the database.

    Where the value in the frontend is filling?

    It differs from the flow_status_code in oe_order_lines_all?

    Thanks for the correction.

    He slipped right out of my mind!

    Here is a detailed explanation of this case:

    Status of orders picked and picked partial

    Kind regards

    Bashar

  • wildcard characters and blank lines

    After you import a .docx file - well, sometimes we have to do these things - I was hoping to find the blank lines with the familiar (relatively) ^$ generic, but all this is managing to locate is empty cells in a table. Any tips?

    Oops. My mistake. I wrote:

    Search: \p| where I meant \P|

    Replace: [empty]

    Wildcard characters allowed

    The case makes all the difference. There in the screen shot correctly, but I typed incorrectly.

    When you have time, you can try it once again, FieryPantone? I tested on 2015 and have installed 12 at this point.

Maybe you are looking for