web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

LogisticsLocationSelectionLookup Address Lookup not filtering properly

(0) ShareShare
ReportReport
Posted on by 587

Hi all,

I added a new lookup ref address field on a form and it pretty much works as I expect but it is pulling the primary address when I really don't want it to. What do I need to exclude the primary address from being displayed in the lookup?

My lookup method is:

public Common lookupReference(FormReferenceControl _formReferenceControl)
{
    Common ret;
    LogisticsLocationSelectionLookup lookup;
    DirPartyLocation   dirPartyLocation;

    lookup = LogisticsLocationSelectionLookup::newParameters(_formReferenceControl, VendTable::find(PurchTable.OrderAccount));

    lookup.addRoleByType(LogisticsLocationRoleType::Other); //Only lookup OTHER type
    lookup.parmReturnLocation(false);

    ret = lookup.performFormLookup();
    return ret;
}

*This post is locked for comments

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans