Page Web Service - Parameter on OpenPage trigger

thoratlthoratl Member Posts: 9
edited 2015-04-25 in NAV Three Tier
Hi

I have a problem. Im using a page web service thats run on temporarydatasource.
Im running code on onOpenPage trigger that insert into the temporary record.

I want to let the caller of the page web service insert data to parameter so the code on OnOpenPage will filter from the parameter.
When I use customized parameter on the page web service it will be added to ReadMultiple(parm1, parm2,filter,bookmark,setsize).
When I do it like that the page webservice has not got the value for the parm1 and parm2 on OnOpenPage trigger so it is empty and I cannot filter.
It will only appear in OnAfterGetRecord trigger or after that, but then it is too late.

Does anyone have an idea of how to solve this problem?

Is it possible to call page web service function like setStore(storeid) or setGroup(GroupId) before running the page like people usally do in NAV?

Hope someone can help me.

Cheers,

Thor Orn Atlason
Sign In or Register to comment.