• Lookup Method


    Lookup

    DataSource

    public void lookup(FormControl _formControl, str _filterStr)

    {//;

        //journalFormTable.designLookupJournalName(_formControl);

        Query                   query          = new Query();

        QueryBuildDataSource    queryBuildDataSource;

        QueryBuildRange         queryBuildRange;

        // Create an instance of SysTableLookup where 'this'

        // is the current form control.

        SysTableLookup sysTableLookup =

        SysTableLookup::newParameters(tablenum(InventJournalName), _formControl);

        ;

        // Add fields to be shown in the lookup form.

        sysTableLookup.addLookupfield(fieldnum(InventJournalName,JournalNameID ));

        sysTableLookup.addLookupfield(fieldnum(InventJournalName, Description));

       // Limit and arrange the data selection.

        queryBuildDataSource = query.addDataSource(tablenum(InventJournalName));

        queryBuildRange = queryBuildDataSource.addRange(

            fieldnum(InventJournalName, BSEInOutType));

        queryBuildRange.value(QueryValue(BSEInOutType::NoProdPick));

        sysTableLookup.parmQuery(query);

        // Perform the lookup.

        sysTableLookup.performFormLookup();

    }

    FormDesign

    public void lookup()

    {

        Query                   query          = new Query();

        QueryBuildDataSource    queryBuildDataSource;

        QueryBuildRange         queryBuildRange;

        // Create an instance of SysTableLookup where 'this'

        // is the current form control.

        SysTableLookup sysTableLookup =

       SysTableLookup::newParameters(tablenum(BS_PUR_TVendTypeTable), this);

        ;

        // Add fields to be shown in the lookup form.

        sysTableLookup.addLookupfield(fieldnum(BS_PUR_TVendTypeTable,BsVendTypeID ));

        sysTableLookup.addLookupfield(fieldnum(BS_PUR_TVendTypeTable, BsVendTypeName));

    //    sysTableLookup.addLookupField(fieldNum(BS_PUR_TVendTypeTable, BsVendType));

        // Limit and arrange the data selection.

        queryBuildDataSource = query.addDataSource(tablenum(BS_PUR_TVendTypeTable));

        queryBuildRange = queryBuildDataSource.addRange(

            fieldnum(BS_PUR_TVendTypeTable, BsVendType));

        queryBuildRange.value(enum2str(BS_PUR_TVendTypeRelation.BsVendType));

        sysTableLookup.parmQuery(query);

        // Perform the lookup.

        sysTableLookup.performFormLookup();

        //Don't call super() (commented out in the code).

        //   super()

    }

  • 相关阅读:
    PHP 获取当前url的函数及参数
    PHP 和 AJAX responseXML 实例
    PHP 和 AJAX 投票
    AJAX技术在PHP开发中的简单应用
    摄影教程
    结合 Ajax 进行 PHP 开发
    CSS 格式验证器
    swfobject.js,这个JS究竟有什么作用呢
    PHP中Date获取时间不正确怎么办
    用来给不愿意用iframe的同志的页面引用的解决办法
  • 原文地址:https://www.cnblogs.com/lingdanglfw/p/1242231.html
Copyright © 2020-2023  润新知