Options

DropDown on temp data from web service

JuhlJuhl Member Posts: 724
Hi guys

I need to make a DropDown, where lookup is data from a web services, called on lookup.
Wondering the best way to do this.

My idea is to fill a temp table in OnLookup trigger, but this will force me to open a page, to pick the value.
But i need to use DropDown, and also search (filter as you type) and change column key.

Syncing the values to real tables doesn’t work, as data is different based on a previous DropDown.
So it’s a DropDown from WS, then another DropDown from WS that’s based on the one before, and then yet another.
So the dataset can’t be saved to NAV ahead of time, as the business logic from the foreign system can’t be replicated.

Any ideas ?

Need to work on web client and BC(AL) so no .NET
Follow me on my blog juhl.blog

Best Answers

Answers

  • Options
    JuhlJuhl Member Posts: 724
    Hi Slawek

    Of course, I didn't think of creating a page for the buffer table. That would work.

    Only downside is validation, as you cant test for tablerelation, so the user can input anything he wants. But again that could be tested against the webservice.

    Thanks.
    Follow me on my blog juhl.blog
  • Options
    JuhlJuhl Member Posts: 724
    Next problem, I need to pass a variable to the page used for lookup.
    That variable is used in OpOpenPage, to call the right web service.

    Any idea Slawek?
    Follow me on my blog juhl.blog
  • Options
    JuhlJuhl Member Posts: 724
    Nice one.
    I thought of filters too, but could not get it to work. But I get your solution.

    Thanks :-)
    Follow me on my blog juhl.blog
Sign In or Register to comment.