Skip to main content
Microsoft Dynamics NAV forum
Suggested answer

Data from 2 companies

editSubscribe (0) ShareShare
ReportReport
Posted on by 3,027

Hi

   I have 2 Companies . In a report request page dropdown variable i want to display distinct G/L Accounts from G/L Account table of 2 companies .

Thanks

  • jsshivalik Profile Picture
    jsshivalik 3,027 on at
    RE: Data from 2 companies

    Hi Stefano

        Can u pls help with some code

    Thanks

  • Suggested answer
    Stefano Demiliani Profile Picture
    Stefano Demiliani 37,152 on at
    RE: Data from 2 companies

    In the OnLookup trigger of your field added in the request page, you could load a temporary table (based on G/L Account table) where you load the G/L Accounts from the 2 companies and then you can display the G/L Account List page where SourceTableView is your temporary table.

  • jsshivalik Profile Picture
    jsshivalik 3,027 on at
    RE: Data from 2 companies

    Hi Stefano

      That's o.k . But i want to display on a request page so that user can select any G/L account. How i can show them and on which trigger data has to be stored in some variable or file.

    Thanks

  • Suggested answer
    Stefano Demiliani Profile Picture
    Stefano Demiliani 37,152 on at
    RE: Data from 2 companies

    You need to create a custom report that reads G/L Accounts from 2 companies. You can do that by using the CHANGECOMPANY C/AL command.

Helpful resources

Quick Links

What Motivates a Super User?

We know many of you visit the Dynamics 365 Community and Power Platform…

Demystifying Copilot with Sundar…

Industry experts answer burning questions directly from our amazing Community…

Enabling Copilot Case and Conversation…

Agents can easily recap an ongoing chat, transcribe a voice conversation…

Leaderboard

#1
Andre Arnaud de Calavon Profile Picture

Andre Arnaud de Cal... 282,978 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 222,562 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,138

Product updates

Dynamics 365 release plans