oracle 列表项中的一个空行
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2956063/
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
One blank line in list item
提问by Amir
I try to write a code to fill my list item in oracle form builder.
我尝试编写代码来填充 oracle 表单构建器中的列表项。
I do it by write a function to handle this.
我通过编写一个函数来处理这个问题。
list_index number(10) := 1;
clear_list(list_item1);
FOR I IN (Select id,desc FORM table1)
LOOP
ADD_LIST_ELEMENT('list_item1',list_index,desc,id);
list_index := list_index + 1;
END LOOP
list_item1 := get_list_element_value('list_item1',1);
my result in output is like this:
我的输出结果是这样的:
x1
x2
x3
x4
<a blank field>
but in my database table I just have
但在我的数据库表中我只有
x1
x2
x3
x4
would you help me please to how find what's my problem that I have one more space in my list item.
你能帮我看看我的问题是什么,我的列表项中还有一个空间。
回答by Tony Andrews
Forms maintains an additional NULL element in a list item. From the on-line help:
Forms 在列表项中维护一个额外的 NULL 元素。来自在线帮助:
List Items and Null Values... Setting the Required property for a poplist or TList may affect the values the list will display: When selected, an instance of a poplist will display an extra null value if its current value is Null or if its effective Required property is false.
列表项和空值... 为弹出列表或 TList 设置必需属性可能会影响列表将显示的值:选择后,如果弹出列表的当前值为 Null 或其有效值,则弹出列表的实例将显示一个额外的空值必需的属性为 false。
CLEAR_LIST Built-inClears all elements from a list item. After Oracle Forms clears the list, the list will contain only one element (the null element), regardless of the item's Required property.
CLEAR_LIST 内置清除列表项中的所有元素。Oracle Forms 清除列表后,该列表将只包含一个元素(空元素),而不管该项的 Required 属性如何。
回答by muzammil.sabir
the null value always displays in the List item........ you can solve this by going in the property pallete of the list item and setting the property name Required to YES that is by default set to NO by the oracle forms. In this way the user will not be able to insert null value into the field .
空值始终显示在列表项中........您可以通过进入列表项的属性面板并将属性名称设置为 YES 来解决此问题,默认情况下,oracle 表单将其设置为 NO . 这样,用户将无法在字段中插入空值。
回答by MANISH
Go To property palette of that item--> A option will show like Required---> change the value = YES instead of NO
转到该项目的属性面板--> 选项将显示为必需的--> 更改值 = YES 而不是 NO