Quantcast
Channel: NAV Three Tier — mibuso.com
Viewing all articles
Browse latest Browse all 10032

Use a DLL to open a webpage and get the result

$
0
0
I have a complex question here, and I am not sure if I could explain this clearly enough.
(Version:NAV 2013 R2)

My customer want to achive this:
When the user open the Sales Order, click a [Select Item] button, I need to open a external website(Let's Call it "PHP") to let user to select Items in that website. and of course the same Item Master data is also exist in NAV too, but customer insist want to do that because they thought the way to select Item is a little tricky not just like select a Item in NAV Item List. We may just do not discuss whether the requirement is correct or not. Let us discuss how I could achive this.

My consideration:
I need to let the "PHP" know the exsiting sales line items, so "PHP" page could show the exist Items and let user to add delete or modify Items in "PHP" page, after that, click submit in "PHP", I should update my Sales Line with the selection and update the page.

My Concern:
I need to know if user closed the "PHP" page or if they clicked submit and "PHP" server also want to give me a result(like "OK" or "NG"), so use HYPERLINK in NAV is not going to work, because once system open the "PHP" page with IE(default browser), I will totally lost control of that page.

My solution:
Create a DLL with C#, when user click [Select Item] , call DLL to open a .NET Form with a webbrower, in that webbrower, send a URL to "PHP" server(Like "http://www.php.net/SelectItem.php?SO=000001"), when "PHP" server get this request, fetch the sales line info from NAV via Web service and show that in http://www.php.net/SelectItem.php, which is also in my webbrower.When user click submit in "PHP" page, "PHP" server update my sales line via web service and send a response to my webbrower, and then I update the webpage.

This is a big challenge for me, could anyone tell me if the solution is achievable? And if it is not, could you tell the reason why it is not, so I can use that to negotiate with my customer?

By the way, actually, I have already achived this:
When user click "Select Item" in Sales Order, I use HYPERLINK to open the page of "PHP", "PHP" server fetch the sales line info from NAV via Web service and show that in http://www.php.net/SelectItem.php, after user finished the Item selection and click "Submit" button, "PHP" server update my sales line via web service.
Question is, after that, user need to click another button [Get Item Selection] to refresh the page,not refresh the page automatically.

Viewing all articles
Browse latest Browse all 10032

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>