You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by adithi agarwal <co...@yahoo.com> on 2009/01/13 21:22:38 UTC

service..

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.



      

Re: service..

Posted by myofbiz <co...@yahoo.com>.
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"/><!--what is prefResult ..where is it defined.-->
>>
>> Thanks.
>>
>>
>>
>>       
>>   
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/service..-tp21443724p21456682.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Re: service..

Posted by Ashish Nagar <as...@hotwaxmedia.com>.
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.
>
>
>
>       
>   


Re: service..

Posted by Adrian Crum <ad...@yahoo.com>.
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 <co...@yahoo.com> wrote:

> From: adithi agarwal <co...@yahoo.com>
> Subject: service..
> To: "user@ofbiz.apache.org" <us...@ofbiz.apache.org>
> 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.