Hi hany
 
I hope this can help you:
 
 
1)       In the form datasource à select the field and add this method. Send the parameters that you need.
 
public void lookup(FormControl _formControl, str _filterStr)
{
    ;
    InventTable::lookupItem(_formControl,salesline.ItemId,salestable.Type);
}
2)       Create in the table that you need 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
 
 
 

hany abodoma <[EMAIL PROTECTED]> wrote:
yea
why u ask this question

----- Original Message ----
From: Christoph Malherbe <[EMAIL PROTECTED]>
To: Axapta-Knowledge-Village@yahoogroups.com
Sent: ‏05 ‏يناير, ‏2006 10:57:46 ص
Subject: RE: [Axapta-Knowledge-Village] Filteration

Do you have access to the developer training manuals?
 

From: Axapta-Knowledge-Village@yahoogroups.com [mailto:Axapta-Knowledge-Village@yahoogroups.com] On Behalf Of hany abodoma
Sent: 05 January 2006 10:43 AM
To: Axapta-Knowledge-Village@yahoogroups.com
Subject: Re: [Axapta-Knowledge-Village] Filteration
 
thanks
 
i'll use lookup tables i need to know how to override the lookup method to allow filtration based on other control   

----- Original Message ----
From: Christoph Malherbe <[EMAIL PROTECTED]>
To: Axapta-Knowledge-Village@yahoogroups.com
Sent: ‏05 ‏يناير, ‏2006 10:00:47 ص
Subject: RE: [Axapta-Knowledge-Village] Filteration

Hi Hany_Abodoma,

In my (relatively inexperienced) opinion, the solution will depend on the
number of possible values available for combobox A and the number of related
values that should be put in combobox B. Also, it depends on whether the
number of values for combobox A and B may be added to

If you have a large number of values for the comboboxes or if the number of
values will grow continuously, use tables with lookups(override the lookup
method).

If the number of values is small or the number of values is static, use an
unbound control which is populated using a combination of enum and literals
in code.

I hope this helps.



-----Original Message-----
From: Axapta-Knowledge-Village@yahoogroups.com
[mailto:Axapta-Knowledge-Village@yahoogroups.com] On Behalf Of hany_abodoma
Sent: 05 January 2006 09:47 AM
To: Axapta-Knowledge-Village@yahoogroups.com
Subject: [Axapta-Knowledge-Village] Filteration

Dear All
happy New year for Christian
And happy Adha Feast for Muslim
I have ComboBox i need to fill this combo box by value this value is
depending on ather combobox i mean
if i have combobox (A)
combobox (B)
when i fill combobox (A) by value i need (B)
fill automatic by some value that meet the value in combodox(a)

thanks and best regards
HanyAbodoma







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











Best regards,
 
        Diego Gagliano


Yahoo! DSL Something to write home about. Just $16.99/mo. or less

Sharing the knowledge on Axapta.
Visit www.frappr.com/axapta for axapta friends.




YAHOO! GROUPS LINKS




Reply via email to