FBA/Management/UsersDisp.aspx and FBA/Management/UserNew.aspx
On these pages, I have a requirement to add a new column/form entry called "Company" so that the admin can sort and modify user per company.
Right now, the listings are UserName, Email, Active, Locked, and so on. If I could add one more column for "Company" that would be great. Please let me know if this can be done and how.
It can be done. The easiest way to do it would be to search for 'email' in the code and then duplicate the email code for Company. Note that email is set both in the membership database and on the sharepoint user's profile. You'll only want to make the
SharePoint profile updates for Company.
Also curious, do I need to add to the FBAPackWebPages file for the web applicaton in question?
I got an error stating that the CompanyColHeaderText was invalid so I'm wondering if I need to add to the FBAPackWebPages file below to something similar
Yeah - the "resources" items are pulling values from resource files, which you'll also find in the solution. They allow the text to be translated to multiple languages. If you're only going to be using this internally in a single language you
could just replace the resource entries with the actual text you want to appear.
I'll put it out there too that we do customization for customers as well. From what you've mentioned I expect the changes can be done within the 6 hours that are included with the FBA Pack support plan, which can be purchased here:
So there is there a way add columns to the SPGridview below that resides in the UsersDisp.aspx file? When I do, I get an error on this page. Not sure how to modify the view or datasource in this file.
I've added the form field of "Company" for New user and Edit user (FBA), but not sure where this writes to, is it supposed to write to the membership database, and will I need to modify the stored procedure?
Also, not sure where to look to modify the FBAUsersView and FBADataSource, I only see them referenced once, which is in the UsersDisp.aspx file. Any thoughts?
Nevermind about the Company field, I added it to the User Profile (under People and Groups/ List Settings).
Now I just need to tie this to the FBA piece for when I create a new user, edit user (and display users) from the FBA Management Console. I'm still a bit lost, I can add those fields in the appropriate pages, but not sure they will Update in the SharePoint
List/FBA list. Will let you know if I get Errors. Still not sure where to look for the Code/Data folder, are you referencing Visual Studio?
Yeah, this is all in Visual Studio - you can't add the field just by editing the front end files. You need to edit the code. I was wondering why you couldn't find the data source if you were searching the code for 'email'. Code can be downloaded here:
This webpart is being used by a very important client that I'm working for. Thye have asked to add 3 additional fields which I have managed to do. However, I now would like these fields to be included in the New User (FBAUserview.cs) and possible the Membership
ReviewList.
I have tried but fail to up date the SharePoint User Info List....Could you provide me with any useful detail/code in which to do this?
We are currently using the SharePoint 2010 version of the code....Any additional information you may need, please let me know.