Hello All,
Cuurently I am working with Sales Order Sub Form Page web service in Visual Studio .NET (C#).
I used the Delete function of the same web service.
I found that, if there is not any error in between of the execution then I am able to delete the Sales Line from the Sales Order.
If there is any error in between, then it should catch that error at .net side and we should be able to show that error message, as the general behaviour of Web-Services.
But, the Delete function is not showing any error at .NET side and also not deleting the record as well as it is not stoping the execution.
Is there any there any bug in Delete function of Web-Service?
Please, help me regarding.
Thanks in Adv.
Ravi_Thakkar
Ahmedabad, Gujarat, India
E Mail :
ravi.thakkar@hotmail.com 0
Comments
Delete is a boolean function, which returns false if you cannot delete the record.
If it fails due to an exception it is can be catched.
Group Program Manager, Client
Microsoft Dynamics NAV
http://blogs.msdn.com/freddyk
The information in this post is provided "AS IS" with no warranties, and confers no rights. This post does not represent the thoughts, intentions, plans or strategies of my employer. It is solely my opinion.
You are right. Delete function only Deletes the Record and returning true, Else it is returning false.
It is not catching any Error messages at .NET side, like other Functions of the Web-Services doing.
Thanks for your reply.
Is there any sollution to this? I mean, if I need to have the Error messages to be fetched at .NET side then?
Thanks in Adv.
Ahmedabad, Gujarat, India
E Mail : ravi.thakkar@hotmail.com
I tried for the DELETION of Sales Line by using array and then update function of Sales Order web service. But, unable to do the same.
Can you please suggest in some detail?
Thanks in Adv.
Ahmedabad, Gujarat, India
E Mail : ravi.thakkar@hotmail.com
http://blogs.msdn.com/freddyk/archive/2 ... d-rtm.aspx
Hope that helps
Group Program Manager, Client
Microsoft Dynamics NAV
http://blogs.msdn.com/freddyk
The information in this post is provided "AS IS" with no warranties, and confers no rights. This post does not represent the thoughts, intentions, plans or strategies of my employer. It is solely my opinion.
I will go through your blog on specified link.
Thanks for help.
Ahmedabad, Gujarat, India
E Mail : ravi.thakkar@hotmail.com
Is there any updates in DELETE function behaviour in NAV 2009 SP1?
In terms of returning the Values like true and false only? or able to Catch the errors on .NET side.?
Ahmedabad, Gujarat, India
E Mail : ravi.thakkar@hotmail.com
If you want more control, you can write a codeunit and handle things yourself.
/Freddy
Group Program Manager, Client
Microsoft Dynamics NAV
http://blogs.msdn.com/freddyk
The information in this post is provided "AS IS" with no warranties, and confers no rights. This post does not represent the thoughts, intentions, plans or strategies of my employer. It is solely my opinion.
Actually I have performed same thing.
But, I am worrying about concurrency due to Codeunit.
Whether I need to worry about?
And If I want to test my application for concurency then how can I test? Any Suggestion?
Ahmedabad, Gujarat, India
E Mail : ravi.thakkar@hotmail.com
Group Program Manager, Client
Microsoft Dynamics NAV
http://blogs.msdn.com/freddyk
The information in this post is provided "AS IS" with no warranties, and confers no rights. This post does not represent the thoughts, intentions, plans or strategies of my employer. It is solely my opinion.