Hello,
I am trying to access the value of a Dictionary<Guid, myObject> in the Stimulsoft-Web-Designer but the value is always shown empty.
public class myObject {
public Guid Id { get; set;}
public string Name { get; set;}
public int Age { get; set;}
...
}
Is it possible to even synchronize a Dictionary in Stimulsoft or is it just not possible?
Get the Value of a dictionary in the Stimulsoft-Designer
-
- Posts: 6344
- Joined: Tue Mar 20, 2018 5:34 am
Re: Get the Value of a dictionary in the Stimulsoft-Designer
Hello,
Do you use reports or dashboards? In the report, you can register your data as business objects:
report.RegBusinessObjects("MyData", object);
report.Dictionary.SynchronizeBusinessObjects();
In dashboards, business objects are not supported. You can register your data as DataSet:
report.RegData("MyData", object.ToDataSet());
report.Dictionary.Synchronize();
Thank you.
Do you use reports or dashboards? In the report, you can register your data as business objects:
report.RegBusinessObjects("MyData", object);
report.Dictionary.SynchronizeBusinessObjects();
In dashboards, business objects are not supported. You can register your data as DataSet:
report.RegData("MyData", object.ToDataSet());
report.Dictionary.Synchronize();
Thank you.
Re: Get the Value of a dictionary in the Stimulsoft-Designer
Hello,
I am using the reports and I am already registering and synchronizing that Dictionary as a BusinessObject.
It is also shown to me as a Dictionary<string, object> in the report.
So the problem I have is, that I am trying to access the value of that Dictionary with a given Key but it is sadly shown as null/empty.
Can I somehow access that value of that Dictionary?
I am using the reports and I am already registering and synchronizing that Dictionary as a BusinessObject.
It is also shown to me as a Dictionary<string, object> in the report.
So the problem I have is, that I am trying to access the value of that Dictionary with a given Key but it is sadly shown as null/empty.
Can I somehow access that value of that Dictionary?
-
- Posts: 6344
- Joined: Tue Mar 20, 2018 5:34 am
Re: Get the Value of a dictionary in the Stimulsoft-Designer
Hello,
Please send us a sample project that reproduces the issue for analysis.
Thank you.
Please send us a sample project that reproduces the issue for analysis.
Thank you.