Skip to Main Content

Japanese

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!

set default value in text field page item

Anjlesh RaiAug 26 2014 — edited Aug 26 2014

Hi All,

I am try to set default value through condition.my code for default value is:

begin

select

CASE

when ip IN('192.168.1.101','192.168.1.100','192.168.1.102') THEN :P50_SALES_TYPE:='CA'

else

when ip IN('192.168.1.103','192.168.1.105') THEN :P50_SALES_TYPE:='CR'

END

from ip

end ;

and default value type is pl/sql expression

ip is a table in which ip column contains all ip address used in case statement.after apply changes i am getting following error

ORA-06550: line 2, column 1: PLS-00103: Encountered the symbol "BEGIN" when expecting one of the following: ( - + case mod new not null   continue avg count current exists max min prior sql stddev sum variance execute forall merge time timestamp interval date    pipe

    Error    ERR-9132 Error in PLSQL expression for item default code, item=P50_SALES_TYPE

OK       

anyone have idea of this type of problem.

please let me know.

thanks.

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Sep 23 2014
Added on Aug 26 2014
0 comments
2,186 views