Skip to Main Content

Oracle Forms

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Maximum Records Fetched property setting by program

MuzaMar 2 2014 — edited Mar 5 2014

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

I have a global variable i set that according to the scenario. And based on that I set the block property as follow, in the pre query(I think this is the place, advice me if I am wrong)


  IF :GLOBAL.VAR_Q = 'N' THEN

       set_block_property('MY_BLOCK', MAX_RECORDS_FETCHED, 5);

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

  else

      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 this changes does not take effect. and for this message i got always 0 in both scenario.

Thank in advance.

This post has been answered by Muza on Mar 5 2014
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 2 2014
Added on Mar 2 2014
6 comments
1,269 views