Показать сообщение отдельно
Старый 06.01.2009, 17:03   #1  
AndrianG is offline
AndrianG
Участник
 
43 / 19 (1) ++
Регистрация: 12.12.2008
Подскажите в чем проблема у Lookup
Хочу перекрыть метод lookup и при нажатия на стелку чтобы появилась таблица СustTable , делаю все как показано ниже и при нажатии Axapta вырубается !
  1. In the AOT, click Forms, and then locate a form that you want to add a lookup form to.
  2. Click the form, and then click Designs > Design.
  3. Add one of the following types of controls that support a lookup form:
  4. DateEdit
  • GuidEdit
  • Int64Edit
  • IntEdit
  • RealEdit
  • StringEdit
  • TimeEdit
  1. For more information about form controls, see Create Form Controls.
  2. Right-click the control, click Properties, and confirm that the LookupButton property is set to Auto.
  3. Click the control, right-click Methods, click Override Method, and then click Lookup.
    The code editor appears.
  4. Call the performDBLookup or performTypeLookup member method of one of the following classes:
    FormDateControl
    FormGuidControl
    FormInt64Control
    FormIntControl
    FormRealControl
    FormStringControl
    FormTimeControl
    In the following example, a field ID and a table ID are passed to the performDBLookup method to display the table field when a user clicks the lookup button.
    public void lookup()
    {
    FormStringControl formStringControl;
    ;
    formStringControl = element.design().controlname("myControl2");
    formStringControl.performDBLookup(4,77);
    }