启用块oracle表单中的文本

启用块oracle表单中的文本,oracle,textbox,block,oracleforms,Oracle,Textbox,Block,Oracleforms,我在启用块oracle表单中的文本时遇到问题。 当条形码=零件号时,如何在块中启用字段文本“实际数量”,然后启用“实际数量” 请帮帮我 代码: set_block_property('part_lokases',default_where,'part_part_no =||':barcode.txtb'); go_block('part_lokases'); execute_query; set_block_property('part_lokases',default_where,''); g

我在启用块oracle表单中的文本时遇到问题。 当条形码=零件号时,如何在块中启用字段文本“实际数量”,然后启用“实际数量” 请帮帮我

代码:

set_block_property('part_lokases',default_where,'part_part_no =||':barcode.txtb');
go_block('part_lokases');
execute_query;
set_block_property('part_lokases',default_where,'');
go_item('part_lokases.qty_actual');
set_item_property('part_lokases.qty_actual',ENABLED,PROPERTY_TRUE);

由于它是一种表格形式,因此必须使用
SET\u ITEM\u INSTANCE\u PROPERTY
内置过程。大概是这样的:

if :tabular_block.par_number = :barcode.part_number then
   set_item_instance_property('tabular_block.qty_actual', current_record, insert_allowed, property_true);
   set_item_instance_property('tabular_block.qty_actual', current_record, update_allowed, property_true);
else
   set_item_instance_property('tabular_block.qty_actual', current_record, insert_allowed, property_false);
   set_item_instance_property('tabular_block.qty_actual', current_record, update_allowed, property_false);
end if;

由于它是一种表格形式,因此必须使用
SET\u ITEM\u INSTANCE\u PROPERTY
内置过程。大概是这样的:

if :tabular_block.par_number = :barcode.part_number then
   set_item_instance_property('tabular_block.qty_actual', current_record, insert_allowed, property_true);
   set_item_instance_property('tabular_block.qty_actual', current_record, update_allowed, property_true);
else
   set_item_instance_property('tabular_block.qty_actual', current_record, insert_allowed, property_false);
   set_item_instance_property('tabular_block.qty_actual', current_record, update_allowed, property_false);
end if;

谢谢@Littlefoot,但如果barcode.txtb=part\u lokases.part\u part\u noWell,我需要在part\u lokases块中启用qty\u实际文本框(在特定字段中,如ex.picture),这就是我说的,不是吗?虽然,在我写答案的时候我不知道块名,但是-你应该能够自己修复它。底线是:使用SET_ITEM_INSTANCE_属性,而不是SET_ITEM_属性。谢谢@Littlefoot,但如果barcode.txtb=part_lokases.part_part_noWell,我需要在part_lokases块中启用qty_实际文本框(在特定字段中,如ex.picture),不是吗?虽然,在我写答案的时候我不知道块名,但是-你应该能够自己修复它。底线是:使用SET_ITEM_INSTANCE_属性,而不是SET_ITEM_属性。首先,代码最后两行的顺序存在逻辑问题。应该替换这些项,首先启用该项,然后将光标发送到该项上。(事实上,
set\u item\u属性
似乎被@littlefoot已经告诉过的
set\u item\u instance\u属性
替换为您的案例)。首先,代码最后两行的顺序存在逻辑问题。应该替换这些项,首先启用该项,然后将光标发送到该项上。(事实上,
set\u item\u property
似乎被@littlefoot已经告诉过的
set\u item\u instance\u property
替换为您的案例)。