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.
if getfilters()<>'' then from the triggers OnInit(), OnOpenPage() are always empty
I will use the filters to create myRec and then overwrite the current Rec on the Page with myRec. (because functions in pages not are available from C#)
*****
Other solution is to create a function i a Codeunit with parameters - but then i have to return my own xml dataset and not the smart Page?
*****
Note the filters are available from the trigger OnAfterGetRecord() (but then there need to be at least one record)
I guess I am just missing something, because you are making absolutely no sense at all to me. Are you implementing a web service or modifying a page, or implementing a web service on a page?
You do know that you have the ability to create a function and expose this on the page by exposing a codeunit with the same name as the page and removing the checkmark in Published - right?
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.
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 have a question regarding a similiar "issue": Is it to dynamically change the data in the response of a web service request (without physically changing the data in the table)?
Comments
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.
Functions on pages are not visible from the Web Service? Therefore i will use the filter instead.
My C# code for filters:
RIS Plus, LLC
I will use the filters to create myRec and then overwrite the current Rec on the Page with myRec. (because functions in pages not are available from C#)
*****
Other solution is to create a function i a Codeunit with parameters - but then i have to return my own xml dataset and not the smart Page?
*****
Note the filters are available from the trigger OnAfterGetRecord() (but then there need to be at least one record)
getfilters are used on Page 658 OnOpenPage() buy will not work from a web service - only in the Role tailed Client
RIS Plus, LLC
Maybe this is a different solution to your issue.
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.
What do you mean by removing the checkmark in Published for the Codeunit or the Page?
Expose this codeunit with the name Customer in the WSTable (Look image)
If you now look at the WSDL for the Customer page you will see your function exposed on that:
And calling this from C# looks like:
Hope it solves your problem
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.