make profile fields read-only
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Microsoft Commerce Server > Commerce Server General > make profile fields read-only




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    make profile fields read-only  
Jason


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-19-04 08:39 PM

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







[ Post a follow-up to this message ]



    Re: make profile fields read-only  
Caesar Samsi[MSFT]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-19-04 09: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
>
>







[ Post a follow-up to this message ]



    Re: make profile fields read-only  
Jason


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-19-04 10:37 PM

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] 
>
>







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 06:09 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register