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


Top 5 Contributors of the Month
MarieAdela
Imran Ghani
Post New Web Links

retrun dataType of filtered data using REST API ?

Posted By:      Posted Date: August 31, 2010    Points: 0   Category :SharePoint
 
I know how to get filter data but unable to figure out return type Here is my Code if you can please correct me       ClientsItem item = (ServiceReference1.ClientsItem) client;     string cl = item.Title;     string url = @"http://sharepoint04/sites/Test/_vti_bin/listdata.svc/Projects$filter=Client eq ' " + cl + @"'" ; ServiceReference1.   TestDataContext cont = new ServiceReference1.TestDataContext(new Uri(url));


View Complete Post


More Related Resource Links

Store Null Data In image datatype in sql server 2005

  

hi

i wanted to store image in sqlserver database image field and i did. But now in some cases i want to store null value in that image field please let me know how to do this using file uploader.please give complete sample code.


regards


Getting filtered data from Role based SSAS security

  
Hi everyone,I've got a heap of reports that are based on various SSAS cubes. I have roles defined on these cubes that restrict data via certain dimensions. Question is, will these restrictions filter through to the report...ie, if I have a sales person restricted in the SSAS cube to only see sales against their territory (restricted in the Territory dimension), when they run the report will it filter the result based on their SSAS credentials and only show the data they have access to (even though the SSRS report has no direct filters or parameters applied)?Cheers for any help!!

How to post data to WCF REST without entity?

  
i just make a service like this:[WebHelp(Comment = "Login,Post Method")] [WebInvoke( Method="POST" ,UriTemplate = "Login?lName={loginName}&lPWD={password}&sID={sessionID}&domain={domain}")] [OperationContract] public ResultInfo Login(string loginName, string password,string sessionID,string domain) { return new ResultInfo() { Message = loginName, OptType = ResultType.FAILED  }; }and i call service like this:PostSubmitter post = new PostSubmitter(); post.Url = Constants.SSOCenterURL + "/Login"; post.PostItems.Add("lName", "kkdhf123456"); post.PostItems.Add("lPWD", "edU7qiWjrTzy764cZ7ahEg=="); post.PostItems.Add("sID", "rx543e12xc54235dhd23"); post.PostItems.Add("domain", "localhost"); post.Type = PostSubmitter.PostTypeEnum.Post; string result = post.Post();but service NOT get parametes . The 'loginName' will eques NULL.am i missing something? how to let WCF REST get the post data?thx your view.

How do I get a filtered collection of MembershipUsers from a data store using custom profile propert

  
A portion of my web.config file:   <profile enabled="true" defaultProvider="AspNetSqlProfileProvider">      <properties>        <add name="FirstName" type="System.String" />        <add name="LastName" type="System.String" />        <add name="Age" type="System.Byte" />        <add name="Weight" type="System.Byte" />        <add name="City" type="System.String" />        <add name="State" type="System.Byte" />        <add name="RelationshipStatus" type="System.Byte" />        <add name="PostalCode" type="System.String" allowAnonymous="true" />        <add name="FavoriteURLs" type="System.Collections.Specialized.StringCollection" allowAnonymous="true" />        <add name="ProfilePhotoFullPath" type="System.S

REST Connection Data Source is getting overriddeen by SPD 2010

  
Hi, I used a Linked Datasource consist of two REST Connection Data Source with the credentials saving with the data source. The first time i add the Data View to the Web Part Zone everything is fine and the data is shown fine but the moment i save it and close the aspx page and open it again, SPD overrides and adds some of the attributes in the DataSources tag, which makes it giving an error saying connection problem and if i copy paste the original Datasource tag with the values it works fine. Any Idea guy's i am just fighting with this from 2 days. Thanks Girish

dyanamic data and sql server xml datatype

  

it seems that an xml datatype fields simply appears as a textbox when rendered in Dynamic Data (presumably allowing an xml document to be input, viewed etc). however this is of no use to the end user. is there any way (or future intention) to allow rendering of the xml fields uisng a related dtd?

john


Import flat file from the report to filtered data

  

Hi

Is there a way to use a flat file which could be imported from the report in order to filtered the data displayed ?

Thanks

Regards,


get data from entity model in rest service

  

Hi,

I created a rest service and a database in entity model (edmx)..

i want to retrieve data from database and show it in client using a rest service...

 

is it valid to store like

c1 =

 

Convert.ToInt32(context.ExecuteStoreQuery<string>(

Creating a new library using SharePoint Data Services (REST)

  

How can I create a new library/list using sharepoint data services (SDS)? I'd also like to add items in the newly created library programmatically using SDS? Is this possible at all?


Creating SOAP or REST Data Sources in SharePoint 2010 Designer while using Forefront Server

  

When I create a REST data source to access a sharepoint list, I have permission issues because of the Forefront sever in front of my SharePoint 2010 server.  I've tested in an environment without the Forefront server and it works as expected.

1.  Tested in browser and works fine againsted forefront server (https://myforefrontserver.com/site/sub/_vti_bin/ListData.svc/MyList)

2.  Added this to web.config

  <system.net>
    <defaultProxy>
      <proxy autoDetect="true" />
    </defaultProxy>
  </system.net>

3. Created Rest Data Source in SharePoinbt designer pointing to https://myforefrontserver.com/site/sub/_vti_bin/ListData.svc/MyList and tried all logon options with no sucess.

Out of ideas


Show filtered data from multiple data lists in a view

  

I am attempting to build a very simple Sharepoint site with 3 data lists: 1) Themes,  2) Value Statements, 3) Supporting Details

Each Theme has 2+ Value Statements and each Value Statement has 2+ Supporting Details. 

Currently, I have the Forms setup so that when I enter a new Supporting Detail, the individual must select from the avaialable Value Statements (using a Lookup Column). 

What I would like to do, now, is allow an individual who is looking at a view of all the Value Statements to see the Title field of all the Supporting Details that have been entered for that particular Value Statement (with hyperlinks).

I'm guessing that I need to use SharePoint Designer 2010 to customize the view, but am not certain how to do it from there.


Thanks


Design Data Contract for User Create/Update/Delete REST API using WCF 3.5 & JSON

  

Hi,

I'm using REST with WCF .NET 3.5. I've design the class structure with below JSON struvture of input & output.

API 1: Create User: POST /id & request body is as shown below:

{
  "userList" :
   [
    {
       "name" : "<name>",
       "email" : "<email>",
       "dataId" : <dataId>,
       "country" : "<country code>",
    },
    {
       "name" : "<name>",
       "email" : "<email>",
       "dataId" : <dataId>,
       "country" : "<country code>",
    }
   ]
}

The response object should be as shwon below:

{
  "userCreateResults" :
   [
    {
       "email" : "<email>",
       "userId" : <userId>,
       "password" : "<password>",
       "result" : <result code>
    },
    {
       "email" : "<email>",
       "userId" : <userId>,
       "password" : "<password>",
       "result" : <result code>
    }
   ]
}

API 2: Update User: PUT /id & request body is as shwon below:

{
  "userList" :
   [
    {
       "userI

Client OM vs. Data Services (REST)

  
Does anyone has some guidance or recommendatory about how to decide between Client OM and Data Services (as SharePoint Data Source from VS2010) in different scenarios?
www.sharepoint-israel.co.il blog.itaysk.com

Is there a way of creating an Ado.Net Entity Data Model filtered on a Session variables (C#)

  

I'm trying to customize correct displaying of dropdownlists so information shown in comboboxes is relevant to the kind of user logged on (maintaining referential integrity at data level)

e.g.: I have a user already logged on and depending on his profile I'd like to display to this user only the portion of the database that he would be allowed to see. That would mean that he might have acces to an specific subset of data, e.g.: businesstype = "3", loging level = "2", etc.

Is there a way of creating an Ado.Net Entity Data Model filtered on a Session variables as to maintain proper referential integrity at data level? So it means that the filtering must apply to all entities contained in the .edmx model at once.


Ado.Net Entity Data Model filtered on Session variables ... is that possible?

  

I am currently working on a Dynamic Data 4.0 project with C# and I'm trying to customize correct displaying of dropdownlists so information shown in comboboxes is relevant to the kind of user logged on (maintaining referential integrity at data level)

e.g.: I have a user already logged on and depending on his profile I'd like to display to this user only the portion of the database that he would be allowed to see. That would mean that he might have acces to an specific subset of data, e.g.: businesstype = "3", loging level = "2", etc.

Is there a way of creating an Ado.Net Entity Data Model filtered on a Session variables as to maintain proper referential integrity at data level?


lookup column data not visible with REST

  

Using Designer 2010 and a data view web part, the Lookup column data, is not showing when I reference my list with REST. Is there something special I need to do to be able to see this data? I came across an article that talked about lookup data not being part of the physical list. Is that relevant?

Thanks in advance for any help


import filtered sharepoint 2010 list data into a word document

  
hello,
i want my filtered list data in sharepoint and export the data into a word document with some relevant fields not all the fields. how can i acheive this ?  
e.g i want to show all items related to "taskname" in word document.
thanks

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