DataWindow.NET : issue using external datawindow

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
jcbpro81
8/6/2007 8:29:14 AM
sybase.datawindow.net 2302 articles. 0 followers. Follow

6 Replies
866 Views

Similar Articles

[PageSpeed] 56

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
andrew
8/7/2007 4:27:51 AM
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
jcbpro81
8/7/2007 8:21:18 AM
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
jcbpro81
8/10/2007 9:06:36 AM
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
Bruce
8/10/2007 2:25:29 PM
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
Dave
8/11/2007 8:24:04 PM
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
jcbpro81
8/22/2007 9:31:43 AM
Reply: