Hi Tom,

Thanks for your answer and your efforts. I wrote a display method
which retrieves the Names from the main tables according to the
selected account code, the module and the EnumType. So my method is
able to get the name from customers, vendors as well as items and
discount groups. Everything works fine and is displayed
properly...except:

I placed the display method in the forms Methods-branch (Form
PriceDiscTable/Methods/getDescription) so it can be found by the
field. But Now my form looks like this...

Item Nr.    Name
10001       Item 2
[10002]      Item 2

the Name-Field follows the selected ItemNr and not the ItemNr in the
same row. I hope i expressed myself properly, if i didn't, jusk ask ;)

I got a hint that this problem has something to do with the location
of my display method and a little something that's missing in my
code... which basically looks like your example. Any idea?

Greets
Robert



--- In development-axapta@yahoogroups.com, "Tom Kim" <[EMAIL PROTECTED]>
wrote:
> Hi Robert,
>
> Add the following display method to the PriceDiscTable:
>
> display CustName CustomerName()
> {
>     CustName retVal = "";
>
>     ;
>
>     if (PriceDiscTable.AccountCode == TableGroupAll::Table)
>     {
>         retVal = CustTable::find
(PriceDiscTable.AccountRelation).Name;
>     }
>
>     return retVal;
> }
>
> Then drag and drop the method onto the grid in the PriceDiscTable.
Make sure
> you set the DataSource of the control to PriceDiscTable. Each time
you
> change the AccountCode, the correct customer name should display.
>
> Hope this helps. --Tom
>
> Tom Kim
> Microsoft Business Solutions Certified Professional
> Advanced Systems Integration, Inc.
> 26449 Rancho Parkway South
> Lake Forest, CA 92630
> 949-597-2170
> 949-597-0720 (Fax)
> [EMAIL PROTECTED]
> www.advancedsystemsintegration.com






YAHOO! GROUPS LINKS




Reply via email to