如何控制 Oracle 表单中列表项中所选项目的文本?

发布于 2025-01-19 13:32:30 字数 1170 浏览 6 评论 0原文

我是PL/SQL和Oracle形式的初学者。

我正在以甲骨文形式工作。创建一个按钮并将其更新为项目类型:列表项目。单击它时,我想在项目之间进行选择。我应该根据项目选择重定向。我该怎么做? 注意:我使用表格6i

item_type 列表项目

列表样式弹出列表

列表中的元素 s_satis (值: item24 - s_marka < /strong>(值: item25

触发 当list变化

这是我获得列表项目名称和值的方式:

l_count := GET_LIST_ELEMENT_COUNT('list_item');
FOR i in 1..l_count LOOP
   IF GET_LIST_ELEMENT_VALUE('list-item',i) = :list_item THEN
      l_text := GET_LIST_ELEMENT_LABEL('list_item',i);
      l_value := Name_In('list_item');

我想根据选择的项目重定向。这是我认为正确的方法。但是它无法正常工作。我使用消息来查看它是否进入IF内部。但是它没有打印消息。我该如何修复?

ELSIF l_value = '<list item value name>' THEN
  message(l_value);
  GO_BLOCK('<block_name>');
  EXECUTE_QUERY

I am a beginner in PL/SQL and Oracle Forms .

I am working in an Oracle form. Created a push button and updated it to item type: list item. I want to choose between items when I click on it. I should redirect with if according to the item chose. How can I do that?
NOTE: I'am using forms 6i ,

item_type : list item

list style : popup list

elements in list : S_SATIS(value : item24) - S_MARKA(value : item25)

trigger : when-list-changed

This is how I got list item name and values:

l_count := GET_LIST_ELEMENT_COUNT('list_item');
FOR i in 1..l_count LOOP
   IF GET_LIST_ELEMENT_VALUE('list-item',i) = :list_item THEN
      l_text := GET_LIST_ELEMENT_LABEL('list_item',i);
      l_value := Name_In('list_item');

I want to redirect according to the item selected with if. This is the method I think is correct. But it is not working correctly. I used message to see if it goes inside the if . but it didn't print the message. How can I fix?

ELSIF l_value = '<list item value name>' THEN
  message(l_value);
  GO_BLOCK('<block_name>');
  EXECUTE_QUERY

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

裂开嘴轻声笑有多痛 2025-01-26 13:32:30
ELSIF l_text = '<list item name>' THEN
  message(l_text );
  GO_BLOCK('<block_name>');
  EXECUTE_QUERY

这样解决了问题

ELSIF l_text = '<list item name>' THEN
  message(l_text );
  GO_BLOCK('<block_name>');
  EXECUTE_QUERY

this way the problem is solved

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文