The records retrieved maximum property programmatically setting

In my data block, I want to restrict the number of record queried dynamically, which is, in some cases, it should display all the archives and in some case scenario only 5.

I have a global variable, I put that scenario. And inspiring that I put the property block as follows, at the request of pre(I think this is the place, advice me if I'm wrong)


IF: OVERALL. VAR_Q = N THEN

set_block_property ('MY_BLOCK', MAX_RECORDS_FETCHED, 5);

n: = Get_Block_Property ('MY_BLOCK', RECORDS_TO_FETCH);

on the other

set_block_property ('MY_BLOCK', MAX_RECORDS_FETCHED, 1000);

n: = Get_Block_Property ('MY_BLOCK', RECORDS_TO_FETCH);

END IF;

message('MAX_RECORDS_FETCHED:'|| n);

But these changes do not take effect. and to this message I'm always 0 in both cases.

I thank in advance.

Here's how to fix it

For limited scenario, I put the variable as "n" and in the other scenario he set to 'Y '. Then, in the previous query write something similar to below

IF: OVERALL. VAR_Q = N THEN

one_where: = one_where | "AND H_DATE > = (SELECT MIN (H_DATE))

SELECT * FROM MY_TABLE WHERE H_CODE = "' | : MY_TABLE. H_CODE |

(' ORDER BY DESC H_DATE)

WHERE ROWNUM<=>

END IF;

This dynamically allow me to restrict the number of recording during execution.

Thank you very much, Zlatko Sirotic, I appreciate your help in time to accomplish my task.

Kind regards

Tags: Oracle Development

Similar Questions

  • Looking for a way to programmatically set the visible front part when opens a Subvi

    I'm looking for a way to programmatically set the visible portion of the front panel, when a Subvi opens.  Did not find all the messages that are related, but I do not know how to ask the right question.  To be clear, I want to write a VI assistance programme through a list of subVIs to ensure that background images are all in the same place when to open their respective subVIs.  I hate to play manually with scroll bars before I save each of the screws...  I'm thinking I need to find the top/left of the background image location (know already do) and then to set a property of the VI FP some offset or these values, but I can't find the corresponding property. FP:run - timeposition:custom looked promising, but only affects the location of the window, and not the area of the front panel displays the window.

    I should have added that the idea of using the background image does NOT change the origin.  Therefore, always be close enough, as your controls and indicators won't move, just the image.

    I personally use the OpenG VI and the open method of front panel, when I am in your situation.

  • I can capture the number of records retrieved by page in the Apex Interactive report?

    Hello

    I have a requirement in which I need to conditionally hide / show button on an interactive report.

    To achieve this, I need to compare the number of reows read by v/s lines page number to be

    read as specified by the user (defined using Actions-> lines per page).

    Please help me to know if there is a way to capture these 2 values:

    1. number of records retrieved in a report by page

    2. the value set by the user for the number of rows must be extracted (Actions--> lines per page).

    Quick help is really appreciated. Thank you.

    Hello

    You can use by jariola in his blog

    http://dbswh.webhop.NET/Apex/f?p=blog:read:0:article:41900346848694

    Thank you

    Benjamin

  • programmatically set the display format minimum field width

    Hi all

    I am designing a user interface for a digital ASIC assessment and I wanted to programmatically set the minimum field width of a digital control that takes a binary value. Is it possible to do?

    Thank you

    Nick

    Hi Nick,

    Yes, it is possible.

  • How do you programmatically set the value of an enumeration

    I would like to be able to select the value of an enumeration (programmatically).  I don't seem to be able to find a reference on how to do it.

    Thank you.

    Hummer1 wrote:

    Right... When you change the value (windows) or value property... You change it the number of the slot in the ring (1,2,3...) or the word that is in this location... (Single, double, triple...) ?

    Thank you.

    Provided that the nodes property is for a ring, you present with the value numric. The text of the ring is just a tip chart fantasy and has nothing to do with the value of the ring (no similar enums where the numbers and strings are part of the data type).

    Ben

  • How to manually or programmatically set the pointer speed to mouse to a value exceeding the threshold available in Control Panel?

    I have a disability that limited my range of motion. The maximum setting in the control panel to the speed of the mouse pointer is not enough for me, especially on the horizontal axis. Is it possible to manually adjust this setting beyond what is available in the control panel? A registry setting? A call to the Windows API? Please notify.

    In the registry, go to:

    HKEY_CURRENT_USER\Control Panel\Mouse

    Set the key: MouseSensitivity

    Range of values set via the GUI is: 1 to 20

    You can try to set the value above 20 (the highest speed set via the GUI).

    I tried to change the values in the registry, however since the driver does not reload the values I don't know how do to cause the changes to take effect.

    Since you mentioned the API call, here are a few discussions deep in to the mouclass.sys (file of class system, Microsoft HID-compliant mouse):
    http://www.eggheadcafe.com/forumarchives/win32programmerkernel/Nov2005/post24565529.asp

  • I accidentally delete the record microphone to sound property. sleekbook 14 tsb132tx

    help please, I accidentally delete the record microphone to sound property.

    where can I download the microphone for my sleekbook 14 B132tx TS.

    help please someone.

    Thanks in advance.

    Hello

    Do a right-click the speaker icon in the taskbar, then select recording devices.

    Right-click on an empty area of the next window and enter a tick against the "Show disabled devices" and "Show disconnected devices".

    If your microphone will now appear in the list of devices, right click, and then select activate.

    Kind regards

    DP - K

  • retrieve the records from the oracle sql query

    Hello

    I'm stuck with a requirement where I need to retrieve some recordset based on the conditions. I won't be able to produce the same data and table here, but I can explain the problem with the example statement:

    If col2 contains 'y' to any folder, then select only the records. Where, as if no line contains the value 'y' for col2 then retrieve all records.

    Database version: Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64 bit Production

    with temp (col1,col2)
    as
    (select level,decode(mod(level,2),0,'y',1,'n')
    from dual
    connect by level < 10)
    select * from temp;
    
    

    Please help, if possible through sql.

    Thank you

    Vikram

    Something like below... Considered as non-null column col2...

    with the temp (col1, col2)

    as

    (select level, decode (mod(level,2), 0, 'y', 1,' no))

    of the double

    connect by level<>

    Select * from temp

    WHERE col2 = NVL ((SELECT col2 FROM temp OÙ col2 = 'y' ET rownum = 1), col2);

  • How can I improve the sound quality when the Sync property is set to 'stream '.

    I recently had a problem with the text in synchronization with sound (Narrator). For example, when a user has typed a button a Narrator reads the text on the page and want words to point out that the Narrator read the words. The problem that I ran was that she place well on the desktop, but the timing was off on some mobile devices. So I put the 'Stream' sync and it worked fine. But I ran into another problem; the sound quality is down, sounding muffled.

    How can I make the sound better when the Sync property is set to 'Stream '?

    You can control streaming sound quality in your publish settings that can replace the sound quality settings that you can set by clicking on properties of the sound of the library (click right/properties).

  • LOBs and how to retrieve the record inserted with EMPTY_BLOb()

    Hi guys


    How to retrieve the records inserted with EMPTY_BLOb() instead of NULL value.


    Best greetings
    A.G.

    There must be a better way, but these work:

    SELECT... from tableX where length (lob_column) = 0;
    SELECT... from tableX where dbms_lob.getlength (lob_column) = 0;

    Concerning
    Jonathan Lewis
    http://jonathanlewis.WordPress.com
    http://www.jlcomp.demon.co.UK

    "All experts it is a equal and opposite expert."
    Clarke

  • How to set a default file for the recording of the work type

    Looking and looking, is there really no way to define the type of default file for the recording of the Photoshop work?

    Not save as.  After this adjustment, just use Ctrl s

    Try this:

    Make a new file

    Save as and Ctrl, click on the PNG format

    Be another file and use Ctrl s.  The Save dialog box opens and the format will always be PNG

    Use Save as, and Ctrl-click on PDF

    Make another new file and Ctrl s.  PDF will now be the format.

    Who is?

  • Oracle function to retrieve the records randomly

    I need function to select a random DB folder.

    For example, we have 500 records and an input to the function value is 5 ways, it must display the records randomly between 1 to 5

    Thank you

    Question is not clear, I thought that Oracle has always returned entries in random order... Do you expect the number of records between 1 & 5?

    Kind regards

  • Defining the limits of maximum and minimum of a result set

    I'm putting the upper and the lower limit of a result set values. Which means, I want to limit the values in my game to be not below/above a certain number of results, BUT I want that in my result set which is bottom/top/down bound that I have designated to be decoded in the lower/upper bound number which I have appointed. Here is an example to help clarify:
    WITH temp_table AS
    (
     SELECT 1231.12 AS col FROM dual UNION ALL
     SELECT 1001.00 FROM dual UNION ALL
     SELECT -32.0 FROM dual UNION ALL
     SELECT -3.0 FROM dual UNION ALL
     SELECT 332.0 FROM dual UNION ALL
     SELECT 211.0 FROM dual 
     )
    SELECT CASE WHEN col < 0 -- 0 is the lower bound
                THEN
                     0
                WHEN col > 1000 -- 1000 is the upper bound
                THEN
                     1000
                ELSE
                     col
           END as desired_result 
    FROM   temp_table
    desired results set:
            DESIRED_RESULT
         1000
         1000     
            0
         0
         332
         211
    I was wondering if there was another function or method to achieve my goal without having to use a CASE statement? I must do this to multiple columns and it seems not very effective to launch a CASE statement around each of them.

    LESS and more GRAND that will also:

    SQL> WITH temp_table AS
      2  (
      3   SELECT 1231.12 AS col FROM dual UNION ALL
      4   SELECT 1001.00 FROM dual UNION ALL
      5   SELECT -32.0 FROM dual UNION ALL
      6   SELECT -3.0 FROM dual UNION ALL
      7   SELECT 332.0 FROM dual UNION ALL
      8   SELECT 211.0 FROM dual
      9   )
     10  SELECT least(greatest(col, 0), 1000)
     11  FROM temp_table
     12  ;
    
    LEAST(GREATEST(COL,0),1000)
    ---------------------------
                           1000
                           1000
                              0
                              0
                            332
                            211
    
    6 rows selected
     
    

    I must do this to multiple columns and it seems not very effective to launch a CASE statement around each of them.

    No matter what test case showing the case as not effective?

    Published by: odie_63 on 25 July. 2012 23:20

  • All the default values of control programmatically (arduino distribution)

    So I know this has been discussed before, but I have a unique situation.  I will download code to Arduinos using Labview for Arduino toolkit compiler.  I want to programmatically set some default control values on each Arduino using a Labview GUI.  The Arduino kit that I use has a VI of compilation which takes a VI, it compiles, and then it downloads to the Arduino.  How can I change the default value for controls of the VI before he compiled and downloaded?

    Have you tried to use nodes property to set values and nodes of the method of "current default" and save the VI then?

  • How to get the selected row in a programmatic table of the ADF (table generated from a bean)

    Hi all


    We use JDeveloper Studio Edition Version 12.1.3.0.0 and deployed on GlassFish Server Open Source Edition 3.1.2.2 (build 5) and connect to the SQLServer database.


    How to get the selected line in a programmatic (using a SortableModel custom not a display object) ADF table (generated from a bean)?


    We are trying to get the selected row in a bean of a programmatic ADF table to retrieve data based on the selected line.


    Any idea?

    Well, you can use selectionListener to set the selected line to a variable of bean (but this bean must be in extended view or some superiors)

    Something like this: http://www.awasthiashish.com/2015/07/get-selected-row-singlemultiple-from.html

    Dario

Maybe you are looking for

  • My notes "on my phone" disappeared.  How can I get back them?

    Recently, I synced my yahoo email account on my gmail account.  It seems that had an impact on my Notes app on my iphone 5s.  All my notes (on my phone) has disappeared and now it shows when I click on the icon of the application Notes is a title tha

  • Time capsule - connection problem

    between my IMac and time capsule ethernet cable does not connect. Airport utility cannot find the time capsule. I tried another cable - also unsuccessful. Any suggestions to fix the problem? He had worked so well until I had to unplug from the time c

  • Handycam DCR-PC55B where can I get the latest version of the software?

    I have a Sony Handycam DCR - PC55/B Where can I get the latest software and drivers for this?I'm running Windows 7 64 I looked on the site and find several options, but as much as those to whom I am supposed to download I have no idea. I don't have t

  • How can I configure my computer for a wireless network provider?

    is my windows XP computer, set up a new wireless network?

  • Move the cursor between several fields

    Hello, I have a screen like this: Just don't worry about the incorrect page layout: I would like to know, how I can move foccus properly among the buttons? Behavior when I press on the left and the right is not desired. I leaned on some related posts