service..

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

service..

myofbiz
HI
Can some one please explain me these 3 lines.. its in globalscreens.xml-GlobalDecorator..

 <service service-name="getUserPreferenceGroup" result-map-name="prefResult">
     <field-map field-name="userPrefGroupTypeId" value="GLOBAL_PREFERENCES"/>
 </service>
<set field="userPreferences" from-field="prefResult.userPrefMap" global="true"/><!--what is prefResult ..where is it defined.-->

Thanks.



Reply | Threaded
Open this post in threaded view
|

Re: service..

Ashish Nagar
Hi Adithi,

prefResult is only the out map of the service getUserPreferenceGroup as
you defined in first step.

Regards:
--
Ashish

adithi agarwal wrote:

> HI
> Can some one please explain me these 3 lines.. its in globalscreens.xml-GlobalDecorator..
>
>  <service service-name="getUserPreferenceGroup" result-map-name="prefResult">
>      <field-map field-name="userPrefGroupTypeId" value="GLOBAL_PREFERENCES"/>
>  </service>
> <set field="userPreferences" from-field="prefResult.userPrefMap" global="true"/><!--what is prefResult ..where is it defined.-->
>
> Thanks.
>
>
>
>      
>  

Reply | Threaded
Open this post in threaded view
|

Re: service..

Adrian Crum-2
In reply to this post by myofbiz
Unfortunately, the User Preferences feature has not been documented beyond the original concept - https://issues.apache.org/jira/browse/OFBIZ-495 - and the implementation. Take a look at framework/common/entitydef/entitymodel.xml (org.ofbiz.common.user) and PreferenceServices.java JavaDocs.

The basic idea is that user preferences are stored as key=value pairs. In addition, there are fields to group preferences and define each preference data type.

-Adrian


--- On Tue, 1/13/09, adithi agarwal <[hidden email]> wrote:

> From: adithi agarwal <[hidden email]>
> Subject: service..
> To: "[hidden email]" <[hidden email]>
> Date: Tuesday, January 13, 2009, 12:22 PM
> HI
> Can some one please explain me these 3 lines.. its in
> globalscreens.xml-GlobalDecorator..
>
>  <service
> service-name="getUserPreferenceGroup"
> result-map-name="prefResult">
>      <field-map
> field-name="userPrefGroupTypeId"
> value="GLOBAL_PREFERENCES"/>
>  </service>
> <set field="userPreferences"
> from-field="prefResult.userPrefMap"
> global="true"/><!--what is prefResult
> ..where is it defined.-->
>
> Thanks.



Reply | Threaded
Open this post in threaded view
|

Re: service..

myofbiz
In reply to this post by Ashish Nagar
may i know the functionality of fieldmap please..
sry,The file name is CommonScreens.xml not GlobalScreens.xml
Ashish-27 wrote
Hi Adithi,

prefResult is only the out map of the service getUserPreferenceGroup as
you defined in first step.

Regards:
--
Ashish

adithi agarwal wrote:
> HI
> Can some one please explain me these 3 lines.. its in globalscreens.xml-GlobalDecorator..
>
>  <service service-name="getUserPreferenceGroup" result-map-name="prefResult">
>      <field-map field-name="userPrefGroupTypeId" value="GLOBAL_PREFERENCES"/>
>  </service>
> <set field="userPreferences" from-field="prefResult.userPrefMap" global="true"/>
>
> Thanks.
>
>
>
>      
>