我正在尝试使用页面项目1中的动态操作基于页面项目1中选择的内容返回页面项目2中的特定值。
例如
当detailspec(这是我的页面项目1)为“ N / A”时,specificationscore(这是我的页面项目2)应显示为“ 0”
或者当detailspec(这是我的页面项目1)为“ Surpass”时,specificationscore(这是我的页面项目2)应显示为“ 1”
以下是我认为应该使用的示例,但我不确定
eg.
declare
....
If detailspec(pageitem1) = N/A
then return value =0 (in :p5_SPECIFICATIONSCORE(pageitem2)
elseif
detailspec(pageitem1) = surpass
then return value =1 (in :p5_SPECIFICATIONSCORE(pageitem2)
答案 0 :(得分:0)
这可能会有所帮助。 mytest可以保存从函数返回的值,而不是显示该值,而只是在您尝试尝试时将其返回。
declare
value number;
mytest varchar2(20);
begin
mytest := 'what';
case mytest
when 'N/A' then value := 0;
when 'surpass' then value := 1;
else value := 2;
end case;
DBMS_OUTPUT.PUT_LINE('value=' || value);
end;
/