|
Home > Archive > Commerce Server General > April 2004 > make profile fields read-only
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
make profile fields read-only
|
|
|
| Hello. I am using Commerce Server 2002 on Windows XP. I extended the user
profile by adding some new fields. I am trying to make several of them
read-only when filling out the "New Profile: User Object" screen in the
business desk. I've been trying to alter the custom attributes of
"sUserAccess", "sSiteAdminAccess", and "sDelegatedAdminAccess", but these
seem to be related to the Customer Service Page (according to the
documentation) and are not affecting the Business Desk. I also looked
through the Business Desk's ASP code for references to the "date_created"
and "date_last_created" (two default fields in the User Object that are
already read-only), but there does not seem to be anything that sets these
fields to read-only. Does anybody know how to do this?
Thank you,
Jason
| |
| Caesar Samsi[MSFT] 2004-04-19, 4:35 pm |
| Hi Jason, there is no read-only definition in the standard profile schema.
You must do this in your own code.
The custom attributes are intended for this purpose. The docs show their
meaning when they are used with BizDesk and the starter sites (e.g. retail).
For your own site, you can do the same, define custom attributes. You'll
check the custom attributes, and if they indicate read-only, then do not
modify that particulat property (e.g. you can re-read the profile and update
only properties that you define as writeable, and then update the profile).
Thanks, Caesar.
--
This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. © 2004 Microsoft Corporation. All rights
reserved. Use of included script samples are subject to the terms specified
at http://www.microsoft.com/info/cpyright.htm
"Jason" <ozonshak@yahoo.com> wrote in message
news:OIMxh4jJEHA.268@TK2MSFTNGP11.phx.gbl...
> Hello. I am using Commerce Server 2002 on Windows XP. I extended the
user
> profile by adding some new fields. I am trying to make several of them
> read-only when filling out the "New Profile: User Object" screen in the
> business desk. I've been trying to alter the custom attributes of
> "sUserAccess", "sSiteAdminAccess", and "sDelegatedAdminAccess", but these
> seem to be related to the Customer Service Page (according to the
> documentation) and are not affecting the Business Desk. I also looked
> through the Business Desk's ASP code for references to the "date_created"
> and "date_last_created" (two default fields in the User Object that are
> already read-only), but there does not seem to be anything that sets these
> fields to read-only. Does anybody know how to do this?
>
> Thank you,
> Jason
>
>
| |
|
| Caesar,
What about in the Business Desk, though? I understand now that those
particular custom attributes are read by the site to determine how to
display certain fields. However, how is this done within the Business Desk?
The two fields I mentioned below in the User Object, "date_created" and
"date_last_created", are read-only on the screen, even for me the
administrator. I would like to do this same thing for a new user profile
field. Even if there is no GUI setting for this, I can't even find how
these are set as "read-only" in the code. I am basically using the MSIB21
site and building off that one. Does this make sense?
Thank you,
Jason
"Caesar Samsi[MSFT]" <caesar_ms@online.microsoft.com> wrote in message
news:%23FpTzykJEHA.528@tk2msftngp13.phx.gbl...
> Hi Jason, there is no read-only definition in the standard profile schema.
> You must do this in your own code.
>
> The custom attributes are intended for this purpose. The docs show their
> meaning when they are used with BizDesk and the starter sites (e.g.
retail).
>
> For your own site, you can do the same, define custom attributes. You'll
> check the custom attributes, and if they indicate read-only, then do not
> modify that particulat property (e.g. you can re-read the profile and
update
> only properties that you define as writeable, and then update the
profile).
>
> Thanks, Caesar.
>
> --
> This posting is provided "AS IS" with no warranties, and confers no
rights.
> You assume all risk for your use. © 2004 Microsoft Corporation. All
rights
> reserved. Use of included script samples are subject to the terms
specified
> at http://www.microsoft.com/info/cpyright.htm
>
>
> "Jason" <ozonshak@yahoo.com> wrote in message
> news:OIMxh4jJEHA.268@TK2MSFTNGP11.phx.gbl...
> user
these[vbcol=seagreen]
"date_created"[vbcol=seagreen]
these[vbcol=seagreen]
>
>
|
|
|
|
|