.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan
Post New Web Links

Restict access to page fields. How to show field value to members of certain group?

Posted By:      Posted Date: October 14, 2010    Points: 0   Category :SharePoint
 

I have the fields that should be shown for members of one group. How to implement this behavior?

Also i need to restrict access to editing other field for all except of limited amount of persons. How to do this?

 

All these questions are related to Site Content Types and Page Layouts.




View Complete Post


More Related Resource Links

SharePoint 2007 to Access 2007 - Issues grouping by "Person or Group" field type/column

  
We are on SharePoint 2007 and using Access 2007.  The SharePoint list contains a column called Assigned Person, column type: Person or Group, single selection, displaying only the name 1) When we Open with Access and Export a copy of the data, then create a report from that table, we do not have the option to group on Assigned Person.  2) When we Open with Access and Link to data on the SharePoint site, then create a report from that list, when we group by Assigned Person... The same person has 2 groups - there are is no other grouping or sorts on the list, and i can't locate a correlation to another field to show why they would have to collections for the same person The Person or Group column sorts "from smallest to largest" as though it is a number field. The list is a task/activity tracking system we created custom for our needs.  We want to pull a weekly report, grouped by Assigned Person, but cannot get access to work.  We do not want to resort to anything more complex, as it takes a much longer process to have reports pulled by Chrystal or one of those types of applications.  And we cannot change out the field for something like a Choice column as the list already has a very large amount of content.  Can anyone assist? Is there a setting hiding somewhere that is causing the problem? 

A customized EditForm.aspx page giving error because it has a "People and Group" field with a "Allow

  
My customized EditForm.aspx which has a "People and Group" column with the "Allow multiple selections" property as "Yes" was working fine until the Agusust cumulative update was applied into the MOSS server. Now it's giving me the error: "An unexpected error has occurred". Needless to say, when I change the "Allow multiple selections" property to "No", the customized EditForm.aspx page works fine.Forgetting whyMicrosoft introduced this error for now, is there a workaround that you are awre of?

Hide a measure group in excel 2007 'Show Fields Related to'

  

Hi All,

I know that if a I want to hide a measure group to users I have to set the properties 'Visible' to false for all the measure of the measure group.

But when I open a connection to the cube with Excel 2007 I see again the measure group in the drop down list 'Show Fields Related to' in the 'Pivot Table Fields List'.

I don't see it in the measure group list when I choose 'All' in the 'Show Fields Related to', but i don't want to see it in the list 'Show Fields Related to' too.

 

How I can do to hide permanently the measure group?

 

Thank you all,

SimonaP


How to show group totals only at the last page?

  

Hi All,

I am facing difficulty to show the group totals in the SSRS 2008.

I have group on feilds country,state,city with details group suppose i have choosen country as India,then the state have two values then i need show the report with totals like below.

O/p for state1

Country

State

city

col1 col2 col3 col4

city totals

State totals

O/p for state 2

Country

State

city

col1 col2 col3 col4

city totals

State totals

Country totals

the difference b/w two outputs is like i need to show the country totals only at the last state totals.

thanks in advance.

Veeren :)


Show/Hide fields on InfoPath based on context User Group Membership

  
I am reading a book on SharePoint 2010 Development by Wrox and although it is a good book, the InfoPath section is limited. I am Googling to see if I can find anywhere where i can perhaps have this type of functionality to hide and show a specific field based on their Group Membership?
Victor Palma

How to show access denied page in sharepoint

  

Hello All,

I am creating site collections in sharepoint programatically with their unique content database and primary and secondary site collection
administrators.Now,I need to check if the site is accessed by different people other
than primary and secondary site collection administrators and display an error message to them that site is not accesible to them.

Buty i am hosting a webapplication on IIS which is not part of sharepoint.


How do i achieve this functionality programatically.

I appreciate your response.


Thank You,
Smith


smith

RDLC Group Header to show the first not null value of a field.

  

I have a group header that's generated from a Field that comes from the database.

Like this: 

 

Cab04R	Val04R	Cab05R	Val05R

AV Rec	100,753	NULL		NULL

AV Rec	101,753	NULL		NULL

AV Rec	102,753	NULL		NULL

AV Rec	103,753	NULL		NULL

AV Rec	104,753	NULL		NULL

AV Rec	105,753	NULL		NULL

AV Rec	106,753	NULL		NULL

AV Rec	107,753	NULL		NULL

AV Rec	108,753	Ferias Rec	653,675

 

 

Where the Cab04 and Cab05 refers to Table Headers and Val04 and Val05 to Table Details.

 

The thing is, I want that Cab05 to show the first not null value (in this case, "Ferias Rec") and if it is null, no problem I already have a Hidden Expression for that.

 

Can you help me?

Cheers.


How do I get the emails of all the members of a given group in ActiveDirectory - Need help

  

Hi,

  I have a need to send out emails to all the people who are in a given group say "HR Department". I need to be able to get all the emails through a for loop and then as it retrieves I should send emails to them. Can some one please help me with the code

this is what I came up with but not sure how to go about writing a for loop to get all the emails in the given group.

public static string SendEmails(string loginName)
    {
        string Department = "HR Department"
        string userName = ExtractUserName(loginName);
        DirectorySearcher search = new DirectorySearcher();
        search.Filter = String.Format("(SAMAccountName={0})", userName);
        //search.Filter = String.Format("(SAMAccountName={FAY ImprovmentForm})", userName);
        //LdapSearcher.Filter = string.Format("(&(objectClass=user)(department={0}))", Department); 
        //search.Filter = string.Format("(&(objectClass=group)(SAMAccountName=" + Department + "))", userName);
        search.PropertiesToLoad.Add("cn");
        search.PropertiesToLoad.Add("samaccountname");
        search.PropertiesToLoad.Add("givenname");
        search.PropertiesToLoad.Add("sn");
        sea

Access Classes in an aspx page that is in folder in asp.net

  

I have classes in App_Code:
Connection.cs, ClientData.cs ....

I have a folder Authenticated within it have an aspx page Client.aspx

How do I access the page through Client.aspx ClientData.cs the class, because there is a mistake for me to define the class as I do, please help me!
 


Pulling data from MyProfile page to People & group's list

  
Hi, Is it possible to pull the data from Profile page, like the email, contact number etc to be displayed in the People & Groups page. Please refer the screenshot for better understanding..

Link to the image: http://img694.imageshack.us/i/pplgrps.png/


How to access the refrenced table fields in Ilist object of table MVC asp.net

  

Hello,

I have 2 tables, master, detail. 1.master table have fields (id, username, plan)-->id is primary key (PK) 2. detail table have fields (srNo,id, worksummary, ... )--> srNo is PK.

I have created foreign key relationship from detail to .master table for "id" field.

the code is:

IList<detail> objDetail=new List<detail> (); 
IList<master> objMaster = new List<master> ();
string[] sarray = queryFields.Split('|');//

for (int i = 0; i < sarray.Length; i++)
{
string[] sfields = sarray[i].Split(',');

if (sfields[0] != "")
{

objDetail.Add(new _detail { Id = count , modify = sfields[1].ToString(), verified = sfields[2], I});


}
}

I have problem to add fields in "objDetail" using Add method. But I am unable to access the reference field "Id" , rest of the field of detail table can be accessed using objDetail.

How can I access the "Id" field from objDetail object to add in IList.

I want to solve this problem


Do Post to Iframe in same page, and Password Field

  

Hi all,

I need do post of a form in my page to Iframe in the same page.

I set target in form tag.

<body onload="document.formuno.submit()">

                               <form name="formuno" method="post" action="http:\\externalCompany.WebForm.aspx" target="framename"  >

                                               <input type="hidden" name="prueba"  value="pruebatxt" runat="server">

<input type="hidden" name="prueba2"  value="pruebatxt" runat="server">

<input type="hidden" name="prueba3"  value="pruebatxt" runat="server">

<input type="hidden" name="password"  value="MY PASSWORD" runat="server">


       &nbs

How To Conditionally Show ListViewByQuery On Custom Page

  

I would like to only show a ListViewByQuery control on a custom page if the query contains some data. Currently if the query returns no data it is still rendered on the page with the comment "There are no items to show in this view".

The following code is my query code:

querySM.ViewFields = "<FieldRef Name='AssignedTo'/>" +
                  "<FieldRef Name='RequestSMReviewerComments' />" +
                  "<FieldRef Name='WorkflowOutcome' />";

        sQueryStr = "<Where>" +
                 "<And>" +
                  "<IsNotNull>" +
                   "<FieldRef Name='RequestSMReviewerComments' />" +
                  "</IsNotNull>" +
                  "<Eq>" +
                   "<FieldRef Name='WorkflowInstanceID' />" +
                   

Video: The Access Show: Client Performance Improvements against SharePoint Lists

  
Today's guest is DJ Cole, architect and primary developer of SharePoint connectivity performance improvements on the Access development team. DJ dropped by to talk about how Access 2010 connects to SharePoint, and to discuss the work necessary for improving client-side performance. (Length: 13:05)

Video: The Access Show: Managing Access Databases with SharePoint

  
Steve Greenberg recently gave a great talk at the SharePoint Developers Conference about how Access 2010 and Access Services enable organizations to provide better oversight of Access development. Steve and Clint walk you through the key points of this hit session. (Length: 42:57)

Video: The Access Show: Recap of the SharePoint Developer Conference and Customer Demos

  
Steve Greenberg and Ryan McMinn just came back from the SharePoint conference in Las Vegas where they launched Access Services and wanted to give you an update as well as introduce some customers that have been using the technical preview and building web databases. (Length: 9:08)

Video: The Access Show: Demo of Microsoft Access 2010 Services and Web Databases

  
Ryan McMinn and Clint Covington have a big announcement for us - Access Services is new functionality as part of SharePoint 2010 that allows users to create databases with forms and reports that run in the browser. (Length: 24:00)
Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend