Hello, I created an external datawindow with 3 columns, but I have error messages when I want to use it in my .NET application : When I want to insert rows, I get the message : "InsertRow was called when no DataWindow object was attached." I set in design mode my pbl library and also the datawindow name I want to use. I also tried to set it dynamically in the code, but it changes nothing. I'm sure SQLCA isn't useful for this kind of DataWindow, but I also tried to set it and I get the message "SetTransaction was called when no DataWindow object was attached.". I really don't understand why it always tells me that no DataWindow object is attached, is there anything I missed ? A property or something else ? All help is appreciated, Regards,
![]() |
0 |
![]() |
what did you set the DataWindowObject to in your WebDataWindowControl <dw:WebDataWindowControl ID="dwChemList" runat="server" AutoRestoreDataCache="True" AutoSaveDataCacheAfterRetrieve="True" DataWindowObject="d_workorder_select_deletedby_deleteddate" LibraryList="reports_app.pbl"></dw:WebDataWindowControl> <jcbpro81> wrote in message news:46b6dbd9.24c9.1681692777@sybase.com... > Hello, > > I created an external datawindow with 3 columns, but I have > error messages when I want to use it in my .NET application > : > > When I want to insert rows, I get the message : "InsertRow > was called when no DataWindow object was attached." > > I set in design mode my pbl library and also the datawindow > name I want to use. I also tried to set it dynamically in > the code, but it changes nothing. > > I'm sure SQLCA isn't useful for this kind of DataWindow, but > I also tried to set it and I get the message "SetTransaction > was called when no DataWindow object was attached.". > > I really don't understand why it always tells me that no > DataWindow object is attached, is there anything I missed ? > A property or something else ? > > All help is appreciated, > > Regards,
![]() |
0 |
![]() |
Sorry, I forgot to precise that I'm developping in VB.NET and not in a Web environment. > what did you set the DataWindowObject to in your > WebDataWindowControl > > <dw:WebDataWindowControl ID="dwChemList" runat="server" > AutoRestoreDataCache="True" > AutoSaveDataCacheAfterRetrieve="True" > DataWindowObject="d_workorder_select_deletedby_deleteddate > " > LibraryList="reports_app.pbl"></dw:WebDataWindowControl> > > > <jcbpro81> wrote in message > > news:46b6dbd9.24c9.1681692777@sybase.com... Hello, > > > > I created an external datawindow with 3 columns, but I > > have error messages when I want to use it in my .NET > > application : > > > > When I want to insert rows, I get the message : > > "InsertRow was called when no DataWindow object was > attached." > > > I set in design mode my pbl library and also the > > datawindow name I want to use. I also tried to set it > > dynamically in the code, but it changes nothing. > > > > I'm sure SQLCA isn't useful for this kind of DataWindow, > > but I also tried to set it and I get the message > > "SetTransaction was called when no DataWindow object was > attached.". > > > I really don't understand why it always tells me that no > > DataWindow object is attached, is there anything I > > missed ? A property or something else ? > > > > All help is appreciated, > > > > Regards, > >
![]() |
0 |
![]() |
So, no idea about my issue ? > Sorry, I forgot to precise that I'm developping in VB.NET > and not in a Web environment. > > > what did you set the DataWindowObject to in your > > WebDataWindowControl > > > > <dw:WebDataWindowControl ID="dwChemList" runat="server" > > AutoRestoreDataCache="True" > > AutoSaveDataCacheAfterRetrieve="True" > > > > > DataWindowObject="d_workorder_select_deletedby_deleteddate > > " > LibraryList="reports_app.pbl"></dw:WebDataWindowControl> > > > > > <jcbpro81> wrote in message > > > news:46b6dbd9.24c9.1681692777@sybase.com... Hello, > > > > > > I created an external datawindow with 3 columns, but I > > > have error messages when I want to use it in my .NET > > > application : > > > > > > When I want to insert rows, I get the message : > > > "InsertRow was called when no DataWindow object was > > attached." > > > > I set in design mode my pbl library and also the > > > datawindow name I want to use. I also tried to set it > > > dynamically in the code, but it changes nothing. > > > > > > I'm sure SQLCA isn't useful for this kind of > > > DataWindow, but I also tried to set it and I get the > > > message "SetTransaction was called when no DataWindow > > object was attached.". > > > > I really don't understand why it always tells me that > > > no DataWindow object is attached, is there anything I > > > missed ? A property or something else ? > > > > > > All help is appreciated, > > > > > > Regards, > > > >
![]() |
0 |
![]() |
You might want to re-post your question after TechWave is over. A lot of the people who know about this kind of stuff are kinda busy right now. On 10 Aug 2007 02:06:36 -0700, jcbpro81 wrote: >So, no idea about my issue ? > >> Sorry, I forgot to precise that I'm developping in VB.NET >> and not in a Web environment. >> >> > what did you set the DataWindowObject to in your >> > WebDataWindowControl >> > >> > <dw:WebDataWindowControl ID="dwChemList" runat="server" >> > AutoRestoreDataCache="True" >> > AutoSaveDataCacheAfterRetrieve="True" >> > >> > >> DataWindowObject="d_workorder_select_deletedby_deleteddate >> > " >> LibraryList="reports_app.pbl"></dw:WebDataWindowControl> > >> > >> > <jcbpro81> wrote in message >> > > news:46b6dbd9.24c9.1681692777@sybase.com... Hello, >> > > >> > > I created an external datawindow with 3 columns, but I >> > > have error messages when I want to use it in my .NET >> > > application : >> > > >> > > When I want to insert rows, I get the message : >> > > "InsertRow was called when no DataWindow object was >> > attached." > >> > > I set in design mode my pbl library and also the >> > > datawindow name I want to use. I also tried to set it >> > > dynamically in the code, but it changes nothing. >> > > >> > > I'm sure SQLCA isn't useful for this kind of >> > > DataWindow, but I also tried to set it and I get the >> > > message "SetTransaction was called when no DataWindow >> > object was attached.". > >> > > I really don't understand why it always tells me that >> > > no DataWindow object is attached, is there anything I >> > > missed ? A property or something else ? >> > > >> > > All help is appreciated, >> > > >> > > Regards, >> > >> >
![]() |
0 |
![]() |
Do you see the DataWindow object inside the control on the Window Form in Visual Studio or are you assigning the DataWindowObject property in code? External DataWindows work fine with DataWindow .NET but it sounds like the DataWindow object isn't being found at runtime which suggests that the .pbl (or .pbd) isn't being found or isn't associated with the application at runtime. Regards, Dave Fish Sybase On 6 Aug 2007 01:29:14 -0700, jcbpro81 wrote: >Hello, > >I created an external datawindow with 3 columns, but I have >error messages when I want to use it in my .NET application >: > >When I want to insert rows, I get the message : "InsertRow >was called when no DataWindow object was attached." > >I set in design mode my pbl library and also the datawindow >name I want to use. I also tried to set it dynamically in >the code, but it changes nothing. > >I'm sure SQLCA isn't useful for this kind of DataWindow, but >I also tried to set it and I get the message "SetTransaction >was called when no DataWindow object was attached.". > >I really don't understand why it always tells me that no >DataWindow object is attached, is there anything I missed ? >A property or something else ? > >All help is appreciated, > >Regards,
![]() |
0 |
![]() |
Yes I can see my DataWindow in design mode. I tried both way : setting the PBL and the DataWindow name in design mode, and explicitly in the code. Both give always the error. I set only the name of PBL (not all path) and put it physically in the directory of my application, so I'm sure it will be always found. All other DataWindows work fine, but not this one (and this is the only one as "external"). > Do you see the DataWindow object inside the control on the > Window Form in Visual Studio or are you assigning the > DataWindowObject property in code? > > External DataWindows work fine with DataWindow .NET but it > sounds like the DataWindow object isn't being found at > runtime which suggests that the .pbl (or .pbd) isn't being > found or isn't associated with the application at runtime. > > Regards, > Dave Fish > Sybase > > On 6 Aug 2007 01:29:14 -0700, jcbpro81 wrote: > > >Hello, > > > >I created an external datawindow with 3 columns, but I > have >error messages when I want to use it in my .NET > application >: > > > >When I want to insert rows, I get the message : > "InsertRow >was called when no DataWindow object was > attached." > > >I set in design mode my pbl library and also the > datawindow >name I want to use. I also tried to set it > dynamically in >the code, but it changes nothing. > > > >I'm sure SQLCA isn't useful for this kind of DataWindow, > but >I also tried to set it and I get the message > "SetTransaction >was called when no DataWindow object was > attached.". > > >I really don't understand why it always tells me that no > >DataWindow object is attached, is there anything I missed > ? >A property or something else ? > > > >All help is appreciated, > > > >Regards,
![]() |
0 |
![]() |