This is a migrated thread and some comments may be shown as answers.

Showing Remote Data using Primary Key

1 Answer 114 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
Matthew
Top achievements
Rank 1
Matthew asked on 08 Mar 2012, 09:11 PM
Hello,

I'm looking at the Demo for Binding the DataSource to Remote Data (http://demos.kendoui.com/web/datasource/remote-data.html). Based on the demo, I was wondering if it's possible, rather than searching tweets by the text of a tweet, to show all the information of the tweet from the tweet's id (it's primary key).

I've stripped down the demo and created a jsfiddle to kind of demonstrate what I need: http://jsfiddle.net/NAFfD/1/ For now, the code receives the string "kendo ui" and shows tweets containing the string, as well as the from_user, from_user_id, and id. I would rather the code receive an id (the primary key), then return the from_user, from_user_id and text. Is that possible?

Any help would be greatly appreciated.

1 Answer, 1 is accepted

Sort by
0
Matthew
Top achievements
Rank 1
answered on 08 Mar 2012, 10:30 PM
Ah, I see now.

https://dev.twitter.com/docs/api/1/get/search

The q in the dataSource is a parameter for search query, and it's required. Looks like I need to find out if my database guys made any parameters for the primary key.
Tags
Data Source
Asked by
Matthew
Top achievements
Rank 1
Answers by
Matthew
Top achievements
Rank 1
Share this question
or