用来设置某个栏位为必录
可以在A的WHEN-VALIDATE-ITEM里写,实现条件控制B栏位是否为必录。
使用例:
app_fields.set_required_field('WHEN-VALIDATE-ITEM',:block.A is not null,'block.B');
---------------------------------------------------------------------------------------------------------------
附procedure原码:
PROCEDURE set_required_field(event VARCHAR2,
condition BOOLEAN,
field1 VARCHAR2,
field2 VARCHAR2 DEFAULT NULL,
field3 VARCHAR2 DEFAULT NULL,
field4 VARCHAR2 DEFAULT NULL,
field5 VARCHAR2 DEFAULT NULL) IS
value NUMBER;
BEGIN
COPY('Entering app_field.set_required_field. Event is '||event||'.','global.frd_debug');
if (condition) then
value := PROPERTY_ON;
else
value := PROPERTY_OFF;
end if;
if ((not set_property(field1, REQUIRED, value)) or
(not set_property(field2, REQUIRED, value)) or
(not set_property(field3, REQUIRED, value)) or
(not set_property(field4, REQUIRED, value)) or
(not set_property(field5, REQUIRED, value))) then
null;
end if;
COPY('Completed app_field.set_required_field. Event is '||event||'.','global.frd_debug');
END set_required_field;
分享到:
相关推荐
9)....Added: EMemLeaks._ReserveOutOfMemory to control reserve size of out of memory errors (default is 50 Mb) 10)..Added: "MinLeaksLimitObjs" option (EMemLeaks unit) 11)..Added: Fatal memory problem ...
user.save(using=self._db) return user def create_superuser(self, email, phone_number, password=None): user = self.create_user( email=email, phone_number=phone_number, password=password, ) ...
<END><br>27 , ComboLookup.zip Zip Code Database Is A Program To Find Zip Codes By Using A Lookup Field. <END><br>28 , UDL.zip This is a class that lets you create and edit UDL files<END><br>29 ...
This could be serious, I recommend upgrading.1.8.8- A small fix with the CC field. Some stupid mail servers put tabs in some fields (CC:, TO:) when they want to make a new line, the correct is to put...
Now saves Central Directory Extra Fields correctly. Fixed the SFX code so that it works properly if you use Copy /B to concatenate a zip file to the stub. Due to a Delphi strange behavior sometimes ...