Default value of "[profile].Email" does not fill in email address from profile for custom case field, what do we use.

2 views
Skip to first unread message

heresandyboy

unread,
Feb 12, 2008, 6:07:11 AM2/12/08
to Sinergia Help Desk
Hi again,
I have completed my custom case groups and fields. I was able to set
default value for my 'Phone' field to the logged in users profile
phone number with [profile].Phone.

However trying [profile].Email does not give the same effect (although
when checked when clicking the tick on the edit field screen it says
'valid expression'). As far as I can see there are a couple of obvious
reasons. Firstly its membership info not profile info and as such sits
in the membership database. So I added <add name="Email"/> at Line 96
of web.config under <profile...><properties>. That doesnt work as im
still missing plenty of stuff in the profile. Whats going to be
easier, is there an easy way to call the email address i.e something
like [membership].Email or [user].Email (tried and failed) or do i
need to set up an sql enumeration to call the email? i can do that but
no idea how to ensure it shows the logged in users email that way.

So theres the fact that I want to show the users email and allow them
to ammend it if they need.

Then I would like to consider adding account numbers to the profile
section and profile sql table and add user screen (and anywhere else i
need to add it).Then call that as a default value on the custom form
field for account number which should be [profile].accnumber if i get
it right i suppose. Can you point me in the right direction so i dont
get lost when attempting this later. ie what are all the file names
and areas i need to edit to acheive this? Web.config profile,
myprofile.aspx/.cs, signup.aspx, membershipinfo.aspx/.cs etc...
Thanks let me know if i dont make sense cheers.

gabouy

unread,
Feb 13, 2008, 12:42:57 PM2/13/08
to sinergia-...@googlegroups.com
Hi Andy,

You are right, Email is membership information, and as such can be accessed with...

            MembershipUser user = Membership.GetUser();
            user.Email

in the code behind context of an authenticated user.

regards,
gabo

Bithun

unread,
Feb 14, 2008, 6:43:56 AM2/14/08
to Sinergia Help Desk
Hi,
Can You Help me that How You abale to configure the SINERGIA
SOURCEFORGE new version in your local machine..
And also there is missing the membership-sinergia.bat File, because
when I Download IT and Prepare to configure in my
local machine then i couldn't find the membership-sinergia.bat
file..

So please help me.
Thanks & Regard
Bithun Roy.
Reply all
Reply to author
Forward
0 new messages