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!

Count records

835457Mar 2 2011 — edited Mar 4 2011
Hi All,

I'm using form builder 6i, I have a browsing Tab in my form that have one block and a lot of check boxes (5) for browse criteria that can be checked and concatenated together with || 'and' into a variable (condition) to make a (value) for the (Default_Where) property of the block.

As you know I can't issue a statement like this:

Select count(*) into count from MyTable where condition;

it causes an exception because select statement needs to state column names in where caluse, but I can just use the accumulated condition in the manner below:

set_block_property('MyBLOCK',default_where,condition);

I used it to execute the query, and it works well...but the problem is that I want to know the number of records returned from query in order to show it in a display item for the browser.

So...what I have to do ?? Any clue?


Thanks,

LoveSoul
This post has been answered by ZA on Mar 2 2011
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 1 2011
Added on Mar 2 2011
15 comments
498 views