Need help with dynamic tables/data in Silverlight Control
Posted: Mon Jan 16, 2017 4:38 pm
I am trying to do the following using Silverlight 5 and Visual Studio 2015 Update 3
Goals:
1. Insert the StiSLViewerControl into an Xaml screen, and display the Stimulsoft Designer, and provide the capability to preview data
2. Dynamically create a subset of tables available to the end users (I.e. we have hundreds of Database tables and we only want to provide the end users with a few when they are designing a report)
Current attempts:
1. Created a dynamic DataSet and registered as a business object
a. This works well and shows all the tables and fields
b. For Preview mode I cannot see the data to the dataset (in Preview mode or in Visual Studio Debugger - I see the dataset rows in the Debugger but not the field values). How can I get the data into the dataset (Reminder: Silverlight client side)?
2. Created Objects (& Child objects), added data
a. This displays the fields and Data nicely
b. How can I do this, and dynamically hide various tables / objects?
3. I tried to deserialize a JSON string into a "dynamic" c# type and register it as a business object
a. In this case I am seeing a significant number of tables and fields in the designer, which I do not want to show the end user
Can you help me with one of these approaches, or possibly another?
Goals:
1. Insert the StiSLViewerControl into an Xaml screen, and display the Stimulsoft Designer, and provide the capability to preview data
2. Dynamically create a subset of tables available to the end users (I.e. we have hundreds of Database tables and we only want to provide the end users with a few when they are designing a report)
Current attempts:
1. Created a dynamic DataSet and registered as a business object
a. This works well and shows all the tables and fields
b. For Preview mode I cannot see the data to the dataset (in Preview mode or in Visual Studio Debugger - I see the dataset rows in the Debugger but not the field values). How can I get the data into the dataset (Reminder: Silverlight client side)?
2. Created Objects (& Child objects), added data
a. This displays the fields and Data nicely
b. How can I do this, and dynamically hide various tables / objects?
3. I tried to deserialize a JSON string into a "dynamic" c# type and register it as a business object
a. In this case I am seeing a significant number of tables and fields in the designer, which I do not want to show the end user
Can you help me with one of these approaches, or possibly another?