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!

Onetime where clause

638062Aug 12 2010 — edited Aug 13 2010
Hi,
I am trying to filter the number of records shown when i move to form screen by building a dynamic where clause in the when-new-block instance trigger. this is the piece of code

IF ( v_where IS NOT NULL ) THEN

Set_Block_Property('BLOCK_NAME',ONETIME_WHERE,v_where);
go_block('BLOCK_NAME');
Execute_Query(all_records);
END if.

This does not retrieve any records on the screen. But if i comment the set property block and fire it like this
IF ( v_where IS NOT NULL ) THEN

go_block('BLOCK_NAME');
Execute_Query(all_records);
END if

It retrieves all the records for me. I printed out the where clause and checked it. Its passing the correct value and building the right where clause. But for some reason its not retrieving any data when i am trying to filter.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 10 2010
Added on Aug 12 2010
4 comments
2,113 views