datasource

How to link a droplink to a Treelist in Sitecore

吃可爱长大的小学妹 提交于 2019-12-01 11:16:47
I'm trying to figure out how I can link a Droplink to the selected items in a Treelist . I have a field Theme , which is the Treelist , and a field MasterTheme , which is the Droplink . I should be able to select a master-theme in the Droplink , which is filled with the selected data from the Treelist . I'm pretty new to Sitecore, and I'm not familiar with Custom classes. Kevin Brechbühl You can use the getLookupSourceItems -pipeline for this. With a Droplink you can specify a Sitecore query as source. And with the getLookupSourceItems you can change the source at runtime. The following

Kendo DataSource: How to define “Computed” Properties for data read from remote odata source

二次信任 提交于 2019-12-01 11:13:08
Situation: kendo DataSource var ordersDataSource = new kendo.data.DataSource({ type: "odata", transport: { read: { url: "http://localhost/odata.svc/Orders?$expand=OrderDetails" } }, schema: { type: "json", data: function(response){ return response.value; } total: function(response){ return response['odata.count']; } }, serverPaging: true, serverFiltering: true, serverSorting: true }) the json data read from the odata source is like: { odata.metadata: "xxxx", odata.count: "5", value: [ { OrderId: 1, OrderedDate: "2013-02-20", OrderInfoA: "Info A", OrderInfoB: "Info B" OrderDetails: [ {

JasperReports collection as datasource?

旧城冷巷雨未停 提交于 2019-12-01 10:52:08
I'm trying to find out how to use a string collection as a datasource in JasperReports. I guess I found the solution, but I can't get this to work, can anyone assist me? set as datasource the special data source JREmptyDatasource( $F{my_collection}.size() ) This creates an empty data set with the same size of records as the collection. Pass the $F{my_collection} as parameter to the sub dataset (using the data set run of the List). To print the current element of the collection: $P{my_collection_param}.get( $V{REPORT_COUNT} ) <?xml version="1.0" encoding="UTF-8"?> <jasperReport xmlns="http:/

GridView.DataSource is null during PostBack

梦想与她 提交于 2019-12-01 10:39:26
i want to implement a print / download csv from each Gridview in my application. Those get their data by Datasources or directly by gvSample.DataSource = Data; gvSample.DataBind(); Now my first approach was setting a Download-Button into the Footer-Template and handle the Download there <asp:GridView ID="gvSample" runat="server"> <PagerTemplate> <asp:ImageButton ImageUrl="~/download.gif" OnClick="dl_Click" runat="server" ID="dl"/> </PagerTemplate> </asp:GridView> and protected void dl_Click(object sender, ImageClickEventArgs e) { GridView gv = (GridView)this.Parent.Parent.Parent.Parent; string

Jetty Data Source, Hibernate, datasource not found

孤街浪徒 提交于 2019-12-01 10:39:01
问题 I'm attempting to configure a data source in Jetty 7.4. I was able to do this successfully with my webapp in a Tomcat context.xml. Here's what I have in the jetty.xml (this is going to be the only application in this jetty instance, so I don't mind having the DB connection server-wide - I'd rather not have to configure it inside the war). It's at the very bottom just above the last </Configure> : <New class="org.eclipse.jetty.plus.jndi.Resource" id="myDB"> <Arg> <Ref id="Server"/> </Arg> <Arg

How to link a droplink to a Treelist in Sitecore

我的未来我决定 提交于 2019-12-01 09:59:15
问题 I'm trying to figure out how I can link a Droplink to the selected items in a Treelist . I have a field Theme , which is the Treelist , and a field MasterTheme , which is the Droplink . I should be able to select a master-theme in the Droplink , which is filled with the selected data from the Treelist . I'm pretty new to Sitecore, and I'm not familiar with Custom classes. 回答1: You can use the getLookupSourceItems -pipeline for this. With a Droplink you can specify a Sitecore query as source.

GridView.DataSource is null during PostBack

僤鯓⒐⒋嵵緔 提交于 2019-12-01 07:36:42
问题 i want to implement a print / download csv from each Gridview in my application. Those get their data by Datasources or directly by gvSample.DataSource = Data; gvSample.DataBind(); Now my first approach was setting a Download-Button into the Footer-Template and handle the Download there <asp:GridView ID="gvSample" runat="server"> <PagerTemplate> <asp:ImageButton ImageUrl="~/download.gif" OnClick="dl_Click" runat="server" ID="dl"/> </PagerTemplate> </asp:GridView> and protected void dl_Click

MySQL Connector for Visual Studio 2012 Update 3

♀尐吖头ヾ 提交于 2019-12-01 05:27:19
since I've installed mysql connector 6.7.4 and Update 3 for Visual Studio 2012 the MySQL Connector is gone away from the Connection Manager dialog. It was a working project, so the data source configuration is correct. But when I open my existing *.edmx file I get an error (see the picture below). I've tried to reinstall the connector with rebooting between each installation step, controlled the GAC but I cannot get the connector working back again. I believe it is related to the Update 3, as mentioned in the comment of the answer post here: mySQL DataSource on Visual Studio 2012 I'm not able

Cannot create PoolableConnectionFactory (Access denied for user ''@'localhost'

坚强是说给别人听的谎言 提交于 2019-12-01 04:17:06
I have been trying to set up a DatabaseConnectionPool for a web app for the last couple of days with no success. I have read the relevant sections of the Tomcat docs and a great deal around the subject and think I'm doing everything right, but obviously not because I keep on getting the following error: Cannot create PoolableConnectionFactory (Access denied for user ''@'localhost' (using password: YES)) I'm not getting the error when I start Tomcat running, but when I try to run the following servlet: package twittersearch.web; import javax.servlet.*; import javax.servlet.http.*; import java

DataGridViewColumn.DataPropertyName Property

跟風遠走 提交于 2019-12-01 04:12:29
I have a DataGridView control and I want to populate it with data. I use DataSource property // dgvDealAsset is DataGridView private void DealAssetListControl_Load(object sender, EventArgs e) { dgvDealAssets.AutoGenerateColumns = false; dgvDealAssets.DataSource = DealAssetList.Instance.Values.ToList(); } Now problem number one. The class of my collection does not contain only simple types that I can map to columns using DataPropertyName. This is the class that is contained in collection. class MyClass { public String Name; MyOtherClass otherclass; } class MyOtherClass { public String Name; }