When you create a method to call a Lookup send ProjID as a parameter.
   
  See this example:
   
  1)       In the form datasource à field add this method. Send the parameters 
that you need.
   
  public void lookup(FormControl _formControl, str _filterStr)
  {
      ;
      InventTable::lookupItem(_formControl,salesline.ItemId,salestable.Tipo);
  }
  2)       Create in the table that you nee lookup this method
   
  client server static void lookupItem(
      FormStringControl   ctrl,
      ItemId              itemId,
      TipoPedido          tipo = TipoPedido::PedidoVenta
      )
  {
      Args    args;
      FormRun formRun;
      ;
   
      args = new Args();
      args.name(formstr(InventTableLookup));
      args.parm(enum2str(tipo));
      formRun = classFactory.formRunClass(args);
      formRun.init();
      ctrl.performFormLookup(formRun);
  }
  3)       Create a form to show the lookup info and put in the method init 
this line
   
                   element.selectMode(Alumnos_RecId); //This refer to a field 
to display in the form
   
  ============================================================
  I hope this can help you



Best regards,
 
        Diego Gagliano







                
---------------------------------
To help you stay safe and secure online, we've developed the all new Yahoo! 
Security Centre.

[Non-text portions of this message have been removed]



Sharing the knowledge on Axapta.
Visit www.frappr.com/axapta for axapta friends. 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/Axapta-Knowledge-Village/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to