﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebScheduler - Dynamically setting connection string to DataSet.xsd in ISDataSource event creates a problem</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/Dynamically-setting-connection-string-to-DataSetxsd-in-ISDataSource-event-creates-a-problem/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>Dynamically setting connection string to DataSet.xsd in ISDataSource event creates a problem</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/Dynamically-setting-connection-string-to-DataSetxsd-in-ISDataSource-event-creates-a-problem/</link><pubDate>Fri, 21 Mar 2014 08:39:30 GMT</pubDate><dc:creator>jig214@yahoo.com</dc:creator><category>ISDataSource</category><category>ConnectionString</category><description>&lt;p&gt;Hi Bernard,&lt;/p&gt;&lt;p&gt;Thanks for the response. &lt;/p&gt;
&lt;p&gt;I have forwarded the project zip folder, DB script and error snapshots in a word document. &lt;/p&gt;
&lt;p&gt;Please check and let us know the fix for our problem.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;NOTE : &lt;/b&gt;We do not have any custom class to Insert , we are just using the same table adapters which were created by default (WebschedulerData.cs).&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 10pt;"&gt;I have also sent you the schedulerDB which we are using for our events to store,resources etc.&lt;/span&gt;&lt;/p&gt;
&lt;div&gt; &lt;span style="font-size: 10pt;"&gt;It is plain DB which was created by the Webscheduler itself (no customizations)...&lt;/span&gt;&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;&lt;b&gt;Problem statement is :&lt;/b&gt;&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;When user logs in, I would determine the connection string required for that user from our ClinicalDB and then in the ISDatasource_ObjectCreated event, I would apply that connection string dynamically.&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;So, you can just import that attached DB 3 times and rename them as &lt;/div&gt;
&lt;div&gt;SchedulerDB_CLC1&lt;/div&gt;
&lt;div&gt;SchedulerDB_CLC2&lt;/div&gt;
&lt;div&gt;SchedulerDB_CLC3&lt;br clear="all" /&gt;&lt;/div&gt;
&lt;div&gt;With this step you will have your environment setup which is required to reproduce our problem.&lt;/div&gt;</description></item><item><title>Dynamically setting connection string to DataSet.xsd in ISDataSource event creates a problem</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/Dynamically-setting-connection-string-to-DataSetxsd-in-ISDataSource-event-creates-a-problem/</link><pubDate>Thu, 20 Mar 2014 22:38:49 GMT</pubDate><dc:creator>bernardx</dc:creator><category>ISDataSource</category><category>ConnectionString</category><description>&lt;p&gt;Hi Jignesh Patel,&lt;/p&gt;&lt;p&gt;You can email your sample project to &lt;a href="mailto:bernard@intersoftpt.com" target="_blank" style="font-size: 10pt;"&gt;bernard@intersoftpt.com&lt;/a&gt; . Regarding to your scenario above, maybe there were incorrect function that causing WebScheduler to throw the exception from server. Is there any custom class for your insert method in your project? I will investigate your issue in here and I will wait for your sample. It might help us to determine where the problem comes from. Look forward to hear any feedback from you.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Bernard&lt;/p&gt;</description></item><item><title>Dynamically setting connection string to DataSet.xsd in ISDataSource event creates a problem</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/Dynamically-setting-connection-string-to-DataSetxsd-in-ISDataSource-event-creates-a-problem/</link><pubDate>Thu, 20 Mar 2014 19:46:34 GMT</pubDate><dc:creator>jig214@yahoo.com</dc:creator><category>ISDataSource</category><category>ConnectionString</category><description>&lt;p&gt;Hi Intersoft,&lt;/p&gt;
&lt;p&gt;I have to get the connection strings from database based on the site login and apply retrieved data to ISDatascource which inturn display the events,resources etc in the WebScheduler.&lt;/p&gt;
&lt;p&gt;So, i have written the required code in ISDataSource 's Object created event. This complete things works just fine, i mean... i would get the connection strings based on the login id and WebScheduler displays the resorces,events etc perfectly.&lt;/p&gt;
&lt;p&gt;But, i am stuck with an unknown exception "&lt;b&gt;Exception has been thrown by target of invocation&lt;/b&gt;" while creating an event, creating category etc (basically all insert statements) &lt;/p&gt;
&lt;p&gt;Displaying,deleting all things works as expected...but only insertion is problem.&lt;/p&gt;
&lt;p&gt;We have bought the WebUI studio licence and if you want our order id to provide premium support, please let us know. I would provide them seperately to any of your email. Also i have created a sample project with DB script to reproduce this issue which i can share with you too.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 10pt;"&gt;Your help is much anticipated...thank you.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>