Adam.Kahtava

I have created a new ※Product Definition§ in ※Commerce Server Catalog and Inventory Schema Manager§, and would like this single ※Product Definition§ to be Read Only in ※Catalog Manager§.

In the Authorization Manager (azman.msc) I can assign Roles to the entire ※CatalogandInventorySystem§, and add ※Role Assignments§ to my newly created ※Product Definition§. However; I can*t figure out how to exclude everyone from modifying my new Product Definition while allowing permission to all other Product Definitions.

I*m sure it*s a simple task, but would appreciate any assistance.


Re: Commerce Server 2007 How can I configuring a Property Definition as Read Only in Catalog Manager.

Colin Bowern

Hey Adam,

It sounds like you'll need to download the Partner SDK and build a custom version of the Catalog Manager to limit edits of specific product definitions. I don't believe this was in scope for the current release.

Cheers,
Colin






Re: Commerce Server 2007 How can I configuring a Property Definition as Read Only in Catalog Manager.

Adam_Kahtava

My proposed solution right now is to:

Modify the CatalogWebService so that this specific field is not exposed to the Commerce Server Catalog Manager. I would prefer to have this field as "Read only" in the Catalog Manager, but hiding it altogether will also work.

Does anyone have any comments on this approach






Re: Commerce Server 2007 How can I configuring a Property Definition as Read Only in Catalog Manager.

Colin Bowern

That sounds like a valid approach to attempt.

Cheers,
Colin






Re: Commerce Server 2007 How can I configuring a Property Definition as Read Only in Catalog Manager.

Sudha Raghavan - MSFT

With the current catalog system, you can limit the ability to edit all or none of the definitions. If you want a particular catalog to be read only, you can assign everyone but yourself as a "CatalogViewer".

Thanks

Sudha





Re: Commerce Server 2007 How can I configuring a Property Definition as Read Only in Catalog Manager.

Adam_Kahtava

Sudha,

Thanks for the reply.

I'm aware that we can set an entire catalog as read only.
however; I*d like to set a single field within a catalog as read only.




Re: Commerce Server 2007 How can I configuring a Property Definition as Read Only in Catalog Manager.

Adam.Kahtava

To hide a Custom Property from the Catalog Manager UI:

Remove the respective PropertyName from the GetDefinitionResponse in the CatalogWebService.

Although the respective PropertyName is exposed through various Schemas definitions, and other WebService responses, removing this single entry from the GetDefinitionResponse does effectively exclude the property from the UI without negative side effects (yet).

See the SoapExtension Class example for more details when working with SOAP Extensions and XML.






Re: Commerce Server 2007 How can I configuring a Property Definition as Read Only in Catalog Manager.

Adam.Kahtava

Your Custom Property must also be removed from the GetDefinitionResponse to prevent a Catalog Manager warning message (A new property has been added).