教学文库网 - 权威文档分享云平台
您的当前位置:首页 > 精品文档 > 互联网资料 >

Oracle Forms开发常用技巧(7)

来源:网络收集 时间:2026-07-10
导读: 5.3 可能会遇到的问题 5.3.1 不能返回ID 【问题描述】 也就是在Form上面,我们使用这个FlexField时,能够正确的得到该Flexfield以及其Description,但是其ID这个Item我们确得不到任何值。 没有返回值 【问题原因】

5.3 可能会遇到的问题

5.3.1 不能返回ID

【问题描述】

也就是在Form上面,我们使用这个FlexField时,能够正确的得到该Flexfield以及其Description,但是其ID这个Item我们确得不到任何值。

没有返回值

【问题原因】

Profile设置所致

System Administrator下面的System Profile设置 Application:Oracle General Ledger Profie:Flexfields:Validate On Server

DEV里面设置Site的Value是Yes。也就是我们所作的动作需要提交Server端验证。 【解决办法】 有两个办法

1、 设置不用到Server端验证,就直接在客户端验证(设其值为No)(推荐)

31

System Administrator->Profile->System

设为No或者Null

2、在代码里面强制提交Server验证。

在Account的WHEN-VALIDATE-ITEM事件里面加上:fnd_flex.event('WHEN-VALIDATE-ITEM'); 但是这样做有一个后果:

如果我们的Account设置允许Dynaymic Insert,那么在这个Form,你每次选择到一个不存在的Account,也会返回一个ID,这时就会在系统里面自动增加一个Account。 【参考资料】

This profile option is set to \Flexfields. This improves performance when using Key Flexfields over a wide area network by reducing the number of network round trips needed to validate the entered segment combinations.

You may find, however, that your validation's performance is better with client side validation. In this case, set this profile option to \ Users can see and update this profile option.

This profile option is visible and updatable at all four levels.

32

Level Visible A llow Update Site Yes Yes Application Yes Yes Responsibility Y es Yes User Yes Yes The internal name for this profile option is FLEXFIELDS:VALIDATE_ON_SERVER.

33

Oracle Forms开发常用技巧(7).doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
本文链接:https://www.jiaowen.net/wendang/442766.html(转载请注明文章来源)
Copyright © 2020-2025 教文网 版权所有
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ:78024566 邮箱:78024566@qq.com
苏ICP备19068818号-2
Top
× 游客快捷下载通道(下载后可以自由复制和排版)
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
注:下载文档有可能出现无法下载或内容有问题,请联系客服协助您处理。
× 常见问题(客服时间:周一到周五 9:30-18:00)