dataprovider

PHPUnit, Using class consts to change State

∥☆過路亽.° 提交于 2019-12-12 14:03:04
问题 I'm learning Zend and also PHPUnit. Here is what I have below public function changeToIllegalState() { return array( array( Application_Model_SomeModel::FAIL ), array( Application_Model_SomeModel::SUCCESS ) ); } /** * @dataProvider changeToIllegalState * @expectedException IllegalStateChangeException */ public function testIllegalStateChangeGeneratesException( $state ) { $mapper = new Application_Model_Mapper_SomeModel(); $model = new Application_Model_SomeModel(); $model->changeState( $state

Error 175: The specified data store provider cannot be found

浪子不回头ぞ 提交于 2019-12-12 09:29:08
问题 I'm using VS2010 with the MySQL .NET Connector. My project that used to work started reporting: Error 175: The specified data store provider cannot be found, or is not valid. I don't know why, though things got weird after a MS recommended hotfix to VS. Sure enough, if I go to add a test ADO.NET Entity Data Model to the project, the Entity Data Model Wizard that generates the .edmx file does not show the data provider when I select 'Generate from database'. Worse yet, right-clicking and

Load a Web Page in Flex component

情到浓时终转凉″ 提交于 2019-12-12 04:54:26
问题 Is there a way to display a web page in a flex component like Canvas, Hbox or TextArea? Thanks 回答1: you can use Flex IFRAME that embeds HTML Browsing in Flex apps. 回答2: There is some good stuff in here about mixing Flex and HTML. In fact it is a great Flex blog altogether. 来源: https://stackoverflow.com/questions/1947515/load-a-web-page-in-flex-component

Updating data in Vaadin's grid

烈酒焚心 提交于 2019-12-11 16:49:54
问题 Hello everyone my problem is that my grid doesn't update data. I've a Thread that get new values from a database but when I assign the new DataProvider from the collection that get new values, the grid doesn't change anything. For example, the Grid contains the orders from clients, every 30 seconds a Thread search if there are new orders available, then y get all the orders in an ArrayList and set the new ArrayList in the grid’s DataProvider but the Grid continues having the same values as

how to replace the hardcoded values from data provider

时光总嘲笑我的痴心妄想 提交于 2019-12-11 15:48:11
问题 I'm looking for the recommendation of removing (replacing) the hard-coded browser/OS/Version values from @DataProvider public static Object[][] sauceBrowserDataProvider. The code example: @DataProvider(name = "hardCodedBrowsers", parallel = true) public static Object[][] sauceBrowserDataProvider(Method testMethod) { return new Object[][]{ **new Object[]{"firefox", "55.0", "Windows 10"}, new Object[]{"chrome", "65.0", "Windows 10"},** };} @Test( dataProvider = "hardCodedBrowsers") public void

insert static first row in cgridview yii

♀尐吖头ヾ 提交于 2019-12-11 11:54:51
问题 my code in cgridview enter cod<?php $this->widget('zii.widgets.grid.CGridView', array( 'id'=>'party-ledger-grid', 'dataProvider'=>$model->search(), 'columns'=>array( 'id', array( 'name'=>'trans_date', 'value'=> 'Yii::app()->dateFormatter->format("d-MMM-y",strtotime($data->trans_date))' ), 'trans_id', array( 'name'=>'tr_type_id', 'value'=>'$data->trType->tr_code' ), ..... and result shown below: My question is how to insert first static row in cgridview table after header, for previous balance

yii cgridview Property “CActiveDataProvider.abc” is not defined

徘徊边缘 提交于 2019-12-11 11:23:57
问题 In my controller: $model = new Sheets(); $criteria = new CDbCriteria; $criteria->compare('id', $model->id); $criteria->compare('track_name', $model->track_name, true); $criteria->addCondition('user_id = '.Yii::app()->user->getId().' and '.$listSetups[$i]['condition']); $setups = new CActiveDataProvider($model, array('criteria' => $criteria)); In my view: <?php $this->widget('zii.widgets.grid.CGridView', array( 'id' => 'sheets-grid', 'dataProvider' => $model, //'filter' => $model, 'template'=>

Visual Studio 2013 say me Entity framework that the provider of SQLite is not found

不羁的心 提交于 2019-12-11 08:19:08
问题 I had a project that it uses entity framework 5 and SQLite version 1.0.90.0. This project works fine. However now there are the version 1.0.91.0 of SQLite that allows to use EF6 so I would like to use it. I hava had installed the version 1.0.90.0 that install the design components in visual studio. I did search for unistall it and install the new version, but I don't find the way to do it, so I install the new version directly. Later I delete all the references in my project of EF 5 and

How to properly deploy IBM DB2 data provider

只愿长相守 提交于 2019-12-11 05:25:48
问题 Im using DB2 on server and my application connects directly to that server. As data provider i use v9.7 FP5 ibm data server driver and visual studio addins. Now..To install my program on client computers im using ClickOnce and providing WHOLE IBM driver package and thats really not best solution, because if IBM update their drivers-all my clients will have to update them too. Cant i just include some provider DLLs into ClickOnce package and update them only on the computer that is deploying

How to create my own DataProvider in Yii using CDataProvider?

那年仲夏 提交于 2019-12-11 04:09:13
问题 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 adding additional data. So now I get $modRawData = modification($rawData); Now If I create one CArrayDataProvider to convert it into a Dataprovider so that I can use the CListView. But My problem is here. Now I am unable to do Pagination. If I use