hi
I am really confused about your requirement but may be this will help you.
1. write display method on the datasource (preferred)
2. Do not forget to pass on an instance of the record ie. for eg. if you have method on datasource priceDiscTable to display Name then
display name vendName(PriceDiscTable _priceDiscTable)
{
if (relationType==PriceType::PricePurch)
{
return PriceDiscGroup::find(ModuleInventCustVend::Vend,
PriceGroupType::PriceGroup, PriceDiscTable.AccountRelation).Name;
}
}
{
return PriceDiscGroup::find(ModuleInventCustVend::Vend,
PriceGroupType::PriceGroup, PriceDiscTable.AccountRelation).Name;
}
}
Notice the (PriceDiscTable _priceDiscTable) in the declaration part.
regards
harry
drescher_r <[EMAIL PROTECTED]> wrote:
--- In [email protected], "James Flavell"
<[EMAIL PROTECTED]> wrote:
> Doesn't std Axapta have this already when you go via customer
table/trade
> agreements button??
Hi James,
No, otherwise i wouldn't ask, would I? ;)
The point is that only numbers are visible when you select a
customer, a vendor, a item or a group. I'm supposed to add
informations about the selected number being the account name, the
item name or the group name.
I realized this with two fields, one for items/item groups and one
for customers and vendors/account groups. When you open the form over
inventtable, the account details are visible, when you open it over
custtable or vendtable, the item details are shown.
All right so far...
My only problem left is, that my display methods get the numbers from
the selected field, not the neighbor field from the same
line...that's why my form looks something like this (Brackets being
the selection)
ItemNr Item Name ItemNr Item Name
[10001] Item 1 10001 Item 2
10002 Item 1 [10002] Item 2
A picture's worth a thousand words
I got a hint that this problem has something to do with the incorrect
location of the display methods (currently in the methods-branch on
the form's topmost level) and a little something missing in the code,
which uses finds like
if (relationType==PriceType::PricePurch)
{
return PriceDiscGroup::find(ModuleInventCustVend::Vend,
PriceGroupType::PriceGroup, PriceDiscTable.AccountRelation).Name;
}
where's the problem, anyone?
Greets
Robert
Start your day with Yahoo! - make it your home page
Sharing the knowledge on Axapta.
YAHOO! GROUPS LINKS
- Visit your group "Axapta-Knowledge-Village" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

