/*************************************************** Created Date: 13 Jul 2013 Created By: Jimmy Xie(Tectura) Helpdesk Ticket#: TB001613 - Accounts Payable Positive Pay Description of Behavior: Pick specific class Expected Input: Expected Output: ***************************************************/ public static int pickSpecificClass_DNT(boolean _showSystem, classId _allowedBaseClassId) { Object formRun; container names; int i; #ResAppl Dictionary dict = new Dictionary(); DictClass dictClass; ; formRun = classfactory.createPicklist(); formRun.init(); for (i=1; i<=dict.classCnt(); i++) { if (_showSystem || !isSysId(dict.classCnt2Id(i))) { dictClass = dict.classObject(dict.classCnt2Id(i)); if(dictClass.extend() == _allowedBaseClassId || dictClass.id() == _allowedBaseClassId) names += dict.className(dict.classCnt2Id(i)); } } formRun.choices(names, #ImageClass); formRun.caption("@SYS26387"); formRun.run(); formRun.wait(); if (formRun.choice()) { return dict.className2Id(formRun.choice()); } return 0; }