Posted 21 March 2019, 7:38 pm EST
Hello ,
It is correct, WebDesigner does not provide own UI with the dataset constructor in the developer’s edition of ActiveReports. However, the format of WebDesigner dataset is trivial, so it is not a hard task to create the new dataset at run time.
Here is a sample of dataset:
{
"DataSet": {
"Name": "NorthwindDataSet",
"Query": {
"CommandText": "select * from Products",
"DataSourceName": "RemoteNorthwind"
},
"Fields": [
{
"DataField": "ProductId",
"Name": "ProductId",
"DataType": "Integer",
"Aggregate": "Count"
},
{
"DataField": "ProductName",
"Name": "ProductName",
"DataType": "String",
"Aggregate": "Count"
}
]
},
"DataSource": {
"Name": "RemoteNorthwind",
"ConnectionProperties": {
"DataProvider": "SQL",
"ConnectString": "Data Source=1.1.1.1;Initial Catalog=Northwind;User ID=1;Password=1"
}
}
If you do not want to show the connection string of the client side, then you could replace the common datasource entry by the shared one, so the connection string will be always stay on the server, e.g.:
{
"DataSet": {
"Name": "NorthwindDataSet",
"Query": {
"CommandText": "select * from Products",
"DataSourceName": "RemoteNorthwind"
},
"Fields": [
{
"DataField": "ProductId",
"Name": "ProductId",
"DataType": "Integer",
"Aggregate": "Count"
},
{
"DataField": "ProductName",
"Name": "ProductName",
"DataType": "String",
"Aggregate": "Count"
}
]
},
"DataSource": {
"Name": "RemoteNorthwind",
"DataSourceReference": "C:/dc_folder/Northwind.rdsx"
}
}
Thanks,
Sergey Romanov.