Questions tagged [dataprovider]

A property of the Flex DataGrid and AdvancedDataGrid used to specify a data source.

497 questions
2
votes
0 answers

Using Visual Studio 2015 Community with SQL Server 2014

This week I have installed the Visual Studio 2015 Community and Microsoft SQL Server 2014 Express. I am trying to connect on my databases using the option Tools > Connect to Database, selecting Microsoft SQL Server on list, and I am not able to find…
2
votes
3 answers

Using a ClientDataSet in Delphi, are you able to display both Data & Delta records in a DBGrid?

I am making a app in Delphi 6 + MySQL database using standard data-aware components and dbExpress. The app allows a users to view records in a grid and edit data (insert and/or delete records) client side. These data edits are then only written to…
Forer
  • 1,045
  • 1
  • 9
  • 32
2
votes
1 answer

Getting NullPointerException for method Invocation in TestNG

I am new to Selenium and have written below Code to take parameters from ITestContext group. Code : import java.util.concurrent.TimeUnit; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import…
Aakash Goyal
  • 305
  • 1
  • 4
  • 22
2
votes
1 answer

yii2 dataProvider- offset in dataprovider doesn't work

Offset is not working- is it correct? The pagination doesn't work. $query = Event::find() ->offset(4) ->groupBy("sort_today"); $dataProvider = new ActiveDataProvider([ 'query' => $query, ]);
aewawc4453
  • 51
  • 1
  • 6
2
votes
1 answer

How can i use safe-browsing application object to determine whether a url is reported as phishing site or malware site?

Here is code snippet: Components.classes['@mozilla.org/safebrowsing/application;1'] .getService().wrappedJSObject.malwareWarden.listManager_ .safeLookup(test_url, function(tableName){ if (tableName == 'goog-phish-shavar' || tableNmae…
2
votes
1 answer

Display items in bucket with Sitecore Data Provider

Hej Guys I have a rather large problem, I've been tasked with creating a Custom Data Provider for extracting Stock Keeping Units(SKUs) from a SOLR database into sitecore, without actually populating the database with items. I've created a data…
MrNantir
  • 85
  • 1
  • 8
2
votes
0 answers

Run sync adapter when Calendar Provider updates

I can be notified of changes to my own data providers by registering a ContentObserver using registerContentObserver() on my Activity. Presumably this only captures requests to URIs that I implement. Is there a way to register for changes on content…
Brendan
  • 18,771
  • 17
  • 83
  • 114
2
votes
1 answer

How to make Yii2 handle two different instances of a dataprovider?

This is siteController index.php. Here I want to display two list from different table on same page.But it display only one table data for both div.when I set only $dataProvider on both div widget and if I set $dataProvider2 which create in…
Priyanka Ahire
  • 432
  • 2
  • 9
  • 28
2
votes
1 answer

How to combine the data provider in Yii2?

I have one table with the history of the sold tickets, each ticket is a row with some properties. To display the history, i use two tables with the same columns: list sum of all tickets are grouped by month ($dataProviderAll) list of all tickets…
xCEZAREx
  • 53
  • 1
  • 6
2
votes
1 answer

Yii2 Gridview didn't show data in Index page

I'm using Model Search to filter and query all data into controller and send back data into View. The query is fine, but in View can't show data. And I don't know how to fix it? This is my Model search: $user_id = Yii::$app->user->id; $subquery =…
Francis
  • 288
  • 1
  • 5
  • 17
2
votes
1 answer

Scenario to use YII DataProvider

Can any one please explain me what are all the best scenario to use particular dataprovider. For ex : When to use CActiveDataProvider ? (pros and cons) When to use CArrayDataProvider ? (pros and cons) When to use CSqlDataProvider ? (pros and…
deepan raj
  • 21
  • 1
2
votes
2 answers

Yii Class CActiveDataProvider not found

I'm new to Yii, and I'm getting this error "Class 'app\controllers\CActiveDataProvider' not found" while running a widget. This is my code: models/industrial.php:
user3640056
  • 732
  • 4
  • 13
  • 28
2
votes
0 answers

CGPDFDocumentCreateWithProvider taking long time for initialization using CGDataProviderDirectCallbacks dataprovider

CGPDFDocumentCreateWithProvider taking long time for initialization using CGDataProviderDirectCallbacks data provider. Here is code snippet: CGDataProviderDirectCallbacks directCallBacks; directCallBacks.version = 0; directCallBacks.getBytePointer =…
Mayur Kothawade
  • 544
  • 4
  • 14
2
votes
1 answer

Ruby data provider?

I am newish to ruby having a java background and i am writing a set of selenium tests against an application We have a test which needs to be repeated with many values, which is currently stored in a long csv. In java it is simple to write a data…
charlietaylor
  • 143
  • 1
  • 12
2
votes
2 answers

How to create my own DataProvider in Yii using CDataProvider?

I am in a situation like this below. I am fetching some data using CSqlDataProvider and its pagination (page size) which internally uses limit and offset. And after that I get $rawData = $sqldp->getData(); Now I need to do some processing and…
John Maclein
  • 1,034
  • 3
  • 13
  • 24