The confusion was my original posting containing 2 separate items.
1) request to add readWriteType and valueType into entity:SystemProperty.
2) A question about user specific properties.

This reply addresses item#1. I request to add 2 fields called readWriteType
(formerly called accessType) and valueType to entity:SystemProperty. For
each entry of entity:SystemProperty, valid values for readWriteType is
'hidden', 'readOnly', and 'readWrite'. The valid values for valueType is
'TEXT', 'NUMERIC', 'BOOLEAN', 'DATE', 'LIST', etc.

The reason for these 2 new fields is to help with visibility and validation
purposes. For validation, when ofbiz outputs html to the browser, an entry
with valueType=DATE, for example, would indicate that a date value is
expected and hence ofbiz could add a javascript calendar to help a user pick
a date for that entry. On update of entry at postback, ofbiz could validate
that it is indeed a date value before storing to database.

Regarding readWriteType field. This would be used to control the visibility
of an entry to the user. Note, this has nothing to do with ofbiz
security.Even when a user has authorization to view a page showing the
entries of entity:SystemProperty, there could be fields that should be
hidden or readOnly. These fields are normally manipulated by the
ofbizDeveloper and not meant for the ofbizOwner to manipulate.  This might
seem strange for a non-multitenant ofbiz installation but it makes sense
when ofbiz is running in multitenant mode.  OfbizOwner can configure ofbiz
to behave differently for each tenant.  The tenant would not be able to see
nor manipulate such an entry.

Hope this clear things up.



--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/Re-Request-for-enhance-entity-SystemProperty-tp4709235p4709642.html
Sent from the OFBiz - Dev mailing list archive at Nabble.com.

Reply via email to