Limit maximum arbitrary lines, being hit with apex_plugin_util.get_data?

I'm building a plug-in on apex.oracle.com based on a list of values and spin on a question of lines maximum.  I did some research online and in this discussion forum and not found what Miss me.  I'm sure I'm missing something simple, but just can't put your finger on it.

The rendering of PL/SQL code contains the following statement:

l_column_value_list := apex_plugin_util.get_data
                              ( p_sql_statement  => p_item.lov_definition,
                                p_min_columns    => 2,
                                p_max_columns    => 2,
                                p_max_rows       => 6,
                                p_component_name => p_item.name );

Although I am passing a value to limit the number of rows, the result of the query when you run the page is limited to two records.  Even when I let the value of p_max_rows out, the result is limited to two records.  I tried to use the get_data and get_data2 procedures in the apex_plugin_util package and both result in the same thing.  For testing purposes, I use the following query:

select ename, empno from emp

I add "order by ename" and see two of the emp files.  I add "order by desc ename" and see the two different rows in the emp table.

When I run the page in debug mode, I see the following instruments:

...Execute Statement: select a.* from (select ename descr, empno cd
  from emp
)a
where ROWNUM <= :p$_max_rows

If if it's the thing that controls the number of lines displayed, where is this p$ _max_rows being defined as part of the plug-in and how can control it?  If this is not the mechanism that controls the number of rows returned, can someone tell me what I'm missing?

Shane.

I found the bug in my code; It was something simple.

For those who may have this problem in the future, my solution was this.  The apex_plugin_util.get_data returns a tables object.  The online samples show the following code to loop through the results through.

because me in 1... l_column_value_list (1) .count

I had accidentally used the following code:

because me in 1... l_column_value_list. Count

Since I had two columns in my LOV, a description and a code, there were two paintings returned, so I only twice by a loop.  Just took me a few days to see clearly.

Tags: Database

Similar Questions

  • How can I create vectors lines. rather than being filled with forms when they are imported into illustrator

    [vector lines being a basic of illustrator element.]

    also, how select/change the individual elements once fired?

    Thank you very much

    To use the SKETCH files in Adobe Illustrator, use the button 'Send to Illustrator' from sketch.  It will open as a bitmap in a first time, but you can extend it in paths by selecting the layer then choose DEVELOP THE railways of (object / Line and Sketch Art / expand to paths)

    2 ¢

    Both apps are not interchangeable with their respective brothers in applications, but you can use them together in order to achieve a certain look stylized, or to enjoy a single track , if you really need, but there is no real overlap.

    Currently, I use more creative process applications.  If you are mobile and want to generate the idea, these applications are perfect.  They can be used for the final work too, but you need to know the current constraints of the export process.

    I'm still tied to a desk for most of my design work (or laptop).

    I can't wait to see what new versions have in store for us.

  • How to limit maximum SSL VPN sessions by group policy on ASA5510?

    How to limit maximum SSL VPN sessions by group policy on ASA5510?

    There are ideas?

    There are 2-Group Policy: within a maximum of 10 connections, in the second - 15 (total licenses for SSL VPN 25 connections).

    Hi Anton,.

    It is an interesting question.

    Please check the following options, depending on your scenario:

    simultaneous VPN connections

    Pour configurer configure the number of simultaneous connections allowed for a user, use the command simultaneous vpn connections in the configuration of group policy or username configuration mode. To remove the attribute from the running configuration, don't use No form of this command. This option allows inheritance of a value from another group policy. Enter 0 to disable the connection and prevent the access of the user.

    simultaneous vpn connections {integer}

    No vpn - connections

    http://www.Cisco.com/en/us/docs/security/ASA/asa84/command/reference/uz.html#wp1664777

    There is a global command, although may not be useful, I wanted to share it with you:

    VPN-sessiondb max-session-limit

    --> To specify the maximum limit of VPN session.

    Best option:

    What you can do is to create a pool of IP 10 IP addresses in one and 15 in the other, this way you let only 10 connections and 15 respectively.

    IP local pool only_10 192.168.1.1 - 192.168.1.10

    IP local pool only_15 192.168.2.1 - 192.168.1.15

    Then,

    attributes of the strategy of group only_10

    the address value only_10 pools

    !

    attributes of the strategy of group only_20

    the address value only_20 pools

  • An amount of maximum code lines exist?

    Hello

    Some time ago, I posted this thread: http://forums.Adobe.com/thread/983062 and nobody has been able to help me yet.

    I started to do a lot of testing, which notably to make a copy of the project data and commenting on some of its parts. After some time trying to find a model to the error, I noticed, that the construction of the ipa process was successful not according to what I comment out but on how much.

    My main function has 2416 lines of code. Earlier, I tried commenting on about 200 lines and it came out, it didn't matter if I did at the beginning of a certain function, or the end of it.

    The ipa was built successfully without the 200 lines at the beginning or 200 lines at the end. But when I leave the complete code, I get the error out-of-memory such as mentioned in the thread the link that I posted above.

    The other idea is that maybe there is a limit of memory to save data in the tables. I use two-dimensional arrays and function in that I use nearly consists of 2000 lines with code, storying data in them. There are a 18 paintings together with 3 medium subtables that store about 20 entries each, resulting in cells of table filled about 1080. 200 lines, that I made comments are part of 1/8 of the whole function.

    So now the three questions are:

    1. is there a limit to the lines of code?

    2. is there a limit to the tables/table entries?

    3. is there a way to increase the memory for the ipa, construction process?

    Thank you very much

    GDdept

    Seems ok I found a limit. The limit is of about how strings can be stored in the tables within a function. I separated just the function in 6 functions and the building has operated.

  • Cannot start a process managed after the attempt limit maximum

    Hello

    Get the following error

    / app/oracle/product/101202/opmn/bin (OID) > opmnctl startproc ias-component = OID
    opmnctl: from opmn managed the process...
    ================================================================================
    opmn id = smtest02:6202
    0 out of 1 process started.

    IAS-instance id = infra .smtest02
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    IAS-component/process-type/process-set:
    DIO/DIO/DIO

    Error
    -> Process (pid = 26032)
    Cannot start a process managed after the attempt limit maximum
    Journal:
    / app/oracle/product/101202/opmn/logs/OID ~ 1


    Any suggestions

    Thank you
    Kedar

    Hello

    The deadlock problem in your journal that happens because the database user SCOTT has his account has expired or locked.

    To resolve this issue, you will need to:

    1 unlock the account with the command

    ALTER USER SCOTT ACCOUNT UNLOCK;

    2. set the password for SCOTT with the command

    ALTER USER SCOTT IDENTIFIED BY TIGER;

    3. confirm the status of the account with the command:

    Select the username, account_status from dba_users where username = 'SCOTT ';

    I hope that this will help solve your problem. I need to go to sleep now here, it's already after 01:00.

    See you soon,.

    Francisco Munoz Alvarez
    www.oraclenz.com

  • video game like the 'w' key controls are being powered with numbers specifically a sequence relies on more than once

    the old switchero
    video game like the 'w' key controls are being powered with numbers specifically a sequence relies on more than once

    Hi mag1475,

    I suggest looking up the keyboard key parameters in the game and reset the default settings, check to see if it helps.

    Also connect another keyboard to the computer and check if it the question persists in the game.

  • My Vista Home Premium computer was hit with lighting.

    My computer Vista Home Premium preinstalled was hit with lighting and I put the hD in another case with processor simular, it starts and drivers installed. Then start uo it installs the same drivers, no oem dvd, no recovery. What can I do? Vender is the ether.

    Joe

    Hello

    You can't transfer legally youtr preinstalled license.

    Pre-installed Licenses OEM (HP, Acer, etc.) and the Microsoft System Builder OEM licenses are tied to the first machine that they are installed on and channels of license when this machine dies.

    OEM licenses are not transferable.

    See you soon.

  • What Application/utilities are being bundled with the Playbook

    I couldn't find a similar thread, so excuse me if I ask the same question. What utilities/applicaitons base being supplied with the playbook out of the box? For example, Notepad, calculator, voice recorder, etc.

    I don't think that the information was disclosed by RIM for the moment.

  • How can I get rid of the 2nd line of signature with an email requested line under form after its creation in a widget

    So I created a widget or a hosted form, and after finishing to complete to have a single view of signing, he puts another section or area below which requires another signature and send an article I don't want to have there. It creates another page as well because my original signature line is down.

    Then... How can I get rid of the 2nd line of signature with an email requested line under form after its creation in a widget

    Hello

    By default the Widget to always an email and if you have not added field which, E-Sign would put a signature block (which consists of Email field) at the bottom of the document.

    Kind regards

    -Usman

  • Error: The lines of data with unmapped dimensions exist for period "1 April 2014".

    Expert Hi

    The below error when I click on the button Execute in order to load data in the area of data loading in 11.1.2.3 workspace. Actually, I already put in the tabs global mapping (add records of 12 months), mapping of Application (add records of 12 months) and map sources (add a month "1 April 2014' as the name of period with Type = Explicit mapping") in the service of the period mapping. What else should I check to fix this? Thank you.

    2014-04-29 06:10:35, 624 [AIF] INFO: beginning of the process FDMEE, process ID: 56
    2014-04-29 06:10:35, 625 [AIF] INFO: recording of the FDMEE level: 4
    2014-04-29 06:10:35, 625 [AIF] INFO: FDMEE log file: null\outbox\logs\AAES_56.log
    2014-04-29 06:10:35, 625 [AIF] INFO: user: admin
    2014-04-29 06:10:35, 625 [AIF] INFO: place: AAESLocation (Partitionkey:2)
    2014-04-29 06:10:35, 626 [AIF] INFO: period name: Apr 1, 2014 (period key: 4/1/14-12:00 AM)
    2014-04-29 06:10:35, 627 [AIF] INFO: category name: AAESGCM (category key: 2)
    2014-04-29 06:10:35, 627 [AIF] INFO: name rule: AAESDLR (rule ID:7)
    2014-04-29 06:10:37, 504 [AIF] INFO: Jython Version: 2.5.1 (Release_2_5_1:6813, September 26 2009, 13:47:54)
    [JRockit (R) Oracle (Oracle Corporation)]
    2014-04-29 06:10:37, 504 [AIF] INFO: Java platform: java1.6.0_37
    2014-04-29 06:10:39, 364 INFO [AIF]: - START IMPORT STEP -
    2014-04-29 06:10:45, 727 INFO [AIF]:
    Import of Source data for the period "1 April 2014".
    2014-04-29 06:10:45, 742 INFO [AIF]:
    Import data from Source for the book "ABC_LEDGER".
    2014-04-29 06:10:45, 765 INFO [AIF]: monetary data lines imported from Source: 12
    2014-04-29 06:10:45, 783 [AIF] INFO: Total of lines of data from the Source: 12
    2014-04-29 06:10:46, 270 INFO [AIF]:
    Map data for period "1 April 2014".
    2014-04-29 06:10:46, 277 [AIF] INFO:
    Treatment of the column mappings 'ACCOUNT '.
    2014-04-29 06:10:46, 280 INFO [AIF]: data rows updated EXPLICIT mapping rule: 12
    2014-04-29 06:10:46, 280 INFO [AIF]:
    Treatment of the "ENTITY" column mappings
    2014-04-29 06:10:46, 281 [AIF] INFO: rows of data updates to EXPLICIT mapping rule: 12
    2014-04-29 06:10:46, 281 [AIF] INFO:
    Treatment of the column mappings "UD1.
    2014-04-29 06:10:46, 282 [AIF] INFO: rows of data updates to EXPLICIT mapping rule: 12
    2014-04-29 06:10:46, 282 [AIF] INFO:
    Treatment of the column mappings "node2".
    2014-04-29 06:10:46, 283 [AIF] INFO: rows of data updates to EXPLICIT mapping rule: 12
    2014-04-29 06:10:46, 312 [AIF] INFO:
    Scene for period data "1 April 2014".
    2014-04-29 06:10:46, 315 [AIF] INFO: number of deleted lines of TDATAMAPSEG: 171
    2014-04-29 06:10:46, 321 [AIF] INFO: number of lines inserted in TDATAMAPSEG: 171
    2014-04-29 06:10:46, INFO 324 [AIF]: number of deleted lines of TDATAMAP_T: 171
    2014-04-29 06:10:46, 325 [AIF] INFO: number of deleted lines of TDATASEG: 12
    2014-04-29 06:10:46, 331 [AIF] INFO: number of lines inserted in TDATASEG: 12
    2014-04-29 06:10:46, 332 [AIF] INFO: number of deleted lines of TDATASEG_T: 12
    2014-04-29 06:10:46, 366 [AIF] INFO: - END IMPORT STEP -
    2014-04-29 06:10:46, 408 [AIF] INFO: - START NEXT STEP -
    2014-04-29 06:10:46, 462 [AIF] INFO:
    Validate the data maps for the period "1 April 2014".
    2014-04-29 06:10:46, 473 INFO [AIF]: data rows marked as invalid: 12
    2014-04-29 06:10:46, ERROR 473 [AIF]: error: the lines of data with unmapped dimensions exist for period "1 April 2014".
    2014-04-29 06:10:46, 476 [AIF] INFO: Total lines of data available for export to the target: 0
    2014-04-29 06:10:46, 478 FATAL [AIF]: error in CommMap.validateData
    Traceback (most recent call changed):
    Folder "< string >", line 2348 in validateData
    RuntimeError: [u "error: the lines of data with unmapped dimensions exist for period" 1 April 2014' ""]

    2014-04-29 06:10:46, 551 FATAL [AIF]: COMM error validating data
    2014-04-29 06:10:46, 556 INFO [AIF]: end process FDMEE, process ID: 56

    Thanks to all you guys

    This problem is solved after I maped all dimensions in order of loading the data. I traced only Entity, account, Custom1 and Custom2 at first because there is no source map Custom3, Custom4 and PIC. After doing the mapping for Custom3, Custom4 and PKI, the problem is resolved. This is why all dimensions should be mapped here.

  • Remove a line of table with a button in Livecycle Designer SS3

    I have a table in Livecycle which includes 16 static lines. Several lines can be added or removed dynamically at the end of the table.

    I want the user to be able to remove one of the static lines if they want to however I can't get the script to work.

    I have a button at the end of the line with the script:

    driverTable._Row2.removeInstance (true);

    I tried various forms of this script such as do not use the abbreviation for 'instanceManager', leaving 'real' outside, etc. Where it says 'Row2' I would like to use this script for the following lines, Row3, etc. Row4.

    I tried with the initial counter value of 1 and tried to zero. The table is in a fluid subform.

    Can anyone help?

    Hello

    A line cannot be set to 0 cases, if you want to remove a line, you need to hide by using its property of presence...

    But if you use 1 table for 16 different ranks, why don't you set the table with dynamic lines and have an initial 16 meter, then you can delete the lines you want with the removeInstance method

  • When you open a new session and after a decline in all the video files in the content area (the sound and the video is very good). After you have chosen a selection of clip the first clip that I post on the time line is equipped with sound. then the next

    When you open a new session and after a decline in all the video files in the content area (the sound and the video is very good). After choosing a selection of clip, the first clip that I post on the time line is equipped with sound. then the next clip, I chose (not dose issue)
    will have no sound. (but in the contact box everything its fine) Why is this?

    Why is this?

    Because you forgot to patch source audio track.

  • -A file association problem exist, which prevents the file you are trying to download from being associated with the correct application of the operating system using the windows 7 IE 11

    --Is a file association problem, which prevents the file you are trying to download from being associated with the correct application of the operating system

    IN USING THE WINDOW 7 IE 11 HOW CAN I FIX IT?

    Try to download the installation offline programs:

  • It is possible to capture the lines of delete with the CHECK feature operations?

    10.2 using triggers I can connect the deleted lines, but is it possible to capture the lines of delete with the CHECK feature operations?

    Thank you.

    You can find Fine grain auditing and capture strategy audit records (for example, access to a column), and also capture the SQL text.

    But that still won't 'copy' on all lines accessed by the user who runs the verified order (for example a DELETION).
    If you want to "save a copy" of the row that has been deleted by a user, you would still have to write your own trigger ON DELETE.

  • Why "limit maximum instances of this event in the queue" in the dialog box change events?

    Why I "would limit the maximum instances of this event in the queue" in the dialog box change events?

    I think that this is new for LV 2014, but I couldn't find an explanation for an instance of good use. A research on OR displays only the 2014 help text, which explains what it does, but not why?

    Does anyone know good arguments to use this option?

    Thanks in advance.

    Justin Tyme

    It is useful for user interface elements that can enqueue actions as quickly as they can be made.

    For example, say it takes takes 1 second to take a picture and save it. The user presses the button "Take a photo", but they do not see a new image file again after a wait of 250 ms (human beings humans can be impatient) so they press twice. Finally, they see a new file image... and then another... and then another... To get rid of this possibility, check this box.

    Or that you have a cursor to adjust some settings. Moving the cursor updates very fast! If the user swipes from 0 to 1 then the program might try to send all the rest as a parameter to your instrument, which takes some time. Instead of sending all of these values, it is probably better if the software can keep up with the cursor and send a value of about 1 at the same time, the cursor said 1. If you do not check this box, the user can be 1, but the unit will continue to receive values from 0.53, 0.54, 0.55...

Maybe you are looking for

  • Newbie! With not so new tablet...

    Hey guys, I recently bought a 2ndhand Iconica W510 from someone who said that it's barely a year and used only a few times - and since he had no power cord, he could not make his files on it. I ended up buying one, but as I've gotten from him was a T

  • OfficeJet 4630: When on a phone call, the fax is trying to take charge

    When I'm on a phone call, the call is interrupted and the printer acts like it is trying to accept a fax.  I'm off auto answer.  If I have turned the printer off, the call returns (if any). When the call is made and I turn on the printer, I get a pow

  • Active Desktop blocked by ZoneAlarm

    title says it all I need to unlock to re - activate my Active Desktop?

  • problem with format PDF ePrint

    I recently bought a printer from web HP6600 and problems printing PDF documents via ePrint.  Print Word and JPEG files with no problems.  Any suggestions?

  • someone has hacked into my Inbox and sent emails on my behalf.

    I discovered this when I received mail non-delivery failure notice. Why security was broken in my hotmail Inbox? The email sent was advertising med good viagra market that can be ordered online. Friends notified me that they have received this e-mail