`

app_fields.set_required_field

 
阅读更多

用来设置某个栏位为必录

可以在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;
分享到:
评论

相关推荐

    EurekaLog_7.5.0.0_Enterprise

    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 ...

    Django_Abstrac_user:Django自定义用户(电子邮件和电话)

    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, ) ...

    VB编程资源大全(英文源码 数据库)

    <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 ...

    Sakemail

    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...

    VclZip pro v3.10.1

    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 ...

Global site tag (gtag.js) - Google Analytics