Home » Developer & Programmer » Forms » problem in useing LIKE in Enter_Query Mode
problem in useing LIKE in Enter_Query Mode [message #142023] |
Thu, 13 October 2005 03:56  |
esmat_shoja
Messages: 8 Registered: August 2005
|
Junior Member |
|
|
hi all
in my form i had this:
in execute_query trigger i have:
-----------------------------------------------------------------
if :system.mode='ENTER-QUERY' then
set_block_property('block_name',default_where,make_search_str);
end if;
EXECUTE_QUERY(NO_VALIDATE);
-----------------------------------------------------------------
FUNCTION [b]make_search_str [/b]RETURN char IS
str varchar2(1000);
BEGIN
if :number_item is not null then
str:=str || ' col1='||:number_item ||' and';
end if;
if :NAME is not null then
str:=str ||' name like ''%' ||:name ||'%'' and';
end if;
str=substr(str,1,length(str)-3);
return(str);
END;
but when I enter F7 anf fill :name then I enter F8 ,no record ?
any help woul be appteciated.
Upd-mod: Add code tags
[Updated on: Thu, 13 October 2005 18:18] by Moderator Report message to a moderator
|
|
|
|
|
|
|
|
|
|
Goto Forum:
Current Time: Fri Mar 07 14:11:45 CST 2025
|