Hi Patrick,
I put the userLogin into the map but it says "java.lang.String cannot be
cast to org.ofbiz.entity.GenericValue", then i tried with putting
userLoginId but it says "No such property userLoginId"
Following is my code: -
userLogin = parameters.userLogin;
partyId = parameters.partyId;
telecomNumberMap = dispatcher.runSync("getPartyTelephone",
UtilMisc.toMap("partyId", partyId, "userLoginId", userLogin.userLoginId));
Although the service getPartyTelephone does not require any userLogin
parameter as input.
Please help.
On Wed, Jun 2, 2010 at 10:02 PM, Patrick <[email protected]>wrote:
> Just put userLogin into the context map.
>
> On Wed, Jun 2, 2010 at 9:48 AM, Ramkrishna Swamy
> <[email protected]> wrote:
> > Hello list,
> >
> > When i call service getPartyTelephone from groovy then it shows error
> "you
> > must be logged in to complete the process", i saw the service definition,
> it
> > requires only partyId not userlogin and also auth is false. so what could
> be
> > problem.
> > Thanks in advance.
> >
> > --
> > Thanks
> > Ramkrishna
> >
>
--
Thanks
Ramkrishna