oracle oracle形式如何读取URL的参数
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/301366/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to read the parameters of URL in oracle form
提问by
I am using Oracle form 10 I want to know how can I access the parameters of URL in oracle form
我用的是oracle form 10 我想知道如何在oracle form中访问URL的参数
Ex: whenever I run the form it opens in a browser and the URL for the same is
例如:每当我运行表单时,它会在浏览器中打开,并且相同的 URL 是
http://112.10.0.10:7778/forms/frmservlet?config=pkamble
http://112.10.0.10:7778/forms/frmservlet?config=pkamble
I just want to know how can I access the value of 'config' parameter inside oracle form code.
我只想知道如何访问 oracle 表单代码中 'config' 参数的值。
when we run oracle form using 10g then
当我们使用 10g 运行 oracle 表单时
I will appreciate the help !!
我将不胜感激!
回答by
I don't know if you can read config parameter, but to read another parameter from URL your URL have to be like:
我不知道您是否可以读取配置参数,但要从 URL 读取另一个参数,您的 URL 必须如下所示:
http://112.10.0.10:7778/forms/frmservlet?config=pkamble&otherparams=name=value
In your .fmb you will have to add 'name' parameter in the parameters block and then you could do something like:
在您的 .fmb 中,您必须在参数块中添加“名称”参数,然后您可以执行以下操作:
if :PARAMETER.name = 'value' then
message('ok');
end if;
And for more than one parameter use:
对于多个参数使用:
http://112.10.0.10:7778/forms/frmservlet?otherparams=name1=value1+name2=value2+name3=value3
回答by ronnee
You are trying assign the inbuilt variable config to the parameter but actualy you have to name the parameter like
您正在尝试将内置变量 config 分配给参数,但实际上您必须将参数命名为
http://112.10.0.10:7778/forms/frmservlet?config=pkamble&otherparams=confing1=pkamble
http://112.10.0.10:7778/forms/frmservlet?config=pkamble&otherparams=confing1=pkamble
if you want to use the predefine paramater then user get_application_property inbult function by oracle
如果你想使用预定义参数,那么 oracle 的用户 get_application_property inbult 函数