Re-assigning DataObjects in Nested reports crashes PB when closing window

Hey guys i wonder if you can help me.
I am manipulating nested reports in a Datawindow using the dot notation
along with an instance dwobject variable (reference to report via
"dwobject_instancevar=dw_host.Object.nested_report").
Everything works fine untill i re-assign the nested report DataObject e.g
"dw_instancevar.DataObject='d_somedatawindow'".. i continue to reassign this
DataObject and everything works... then i close the window. PB crashes.....

Am i doing something wrong here??

I need a reference to the nested report.
GetChild does not help me unless there is a way to re-assign the dataObject
or set the visible property of the nested report using a child reference.Any
ideas?


0
Rega
7/25/2004 7:51:45 PM
sybase.powerbuilder.datawindow 28057 articles. 5 followers. Follow

6 Replies
571 Views

Similar Articles

[PageSpeed] 28

your code seems to be okay.....before closing the window try to destroy the
instances variables.....

I suggest you can use get child......
You can set the visible property using Modify code.....

Kishore


"Rega Anglin" <d0cw@hotmail.com> wrote in message
news:41040f51$1@forums-1-dub...
> Hey guys i wonder if you can help me.
> I am manipulating nested reports in a Datawindow using the dot notation
> along with an instance dwobject variable (reference to report via
> "dwobject_instancevar=dw_host.Object.nested_report").
> Everything works fine untill i re-assign the nested report DataObject e.g
> "dw_instancevar.DataObject='d_somedatawindow'".. i continue to reassign
this
> DataObject and everything works... then i close the window. PB
crashes.....
>
> Am i doing something wrong here??
>
> I need a reference to the nested report.
> GetChild does not help me unless there is a way to re-assign the
dataObject
> or set the visible property of the nested report using a child
reference.Any
> ideas?
>
>


0
kishore
7/26/2004 9:24:18 AM
Hey thanks for responding. However, i did put "DESTROY <dwobject_var>" in
the close event of the window , with no success. Still crashing  :-(

"kishore" <kishore@cgvakindia.com> wrote in message
news:4104cdc2@forums-1-dub...
>
> your code seems to be okay.....before closing the window try to destroy
the
> instances variables.....
>
> I suggest you can use get child......
> You can set the visible property using Modify code.....
>
> Kishore
>
>
> "Rega Anglin" <d0cw@hotmail.com> wrote in message
> news:41040f51$1@forums-1-dub...
> > Hey guys i wonder if you can help me.
> > I am manipulating nested reports in a Datawindow using the dot notation
> > along with an instance dwobject variable (reference to report via
> > "dwobject_instancevar=dw_host.Object.nested_report").
> > Everything works fine untill i re-assign the nested report DataObject
e.g
> > "dw_instancevar.DataObject='d_somedatawindow'".. i continue to reassign
> this
> > DataObject and everything works... then i close the window. PB
> crashes.....
> >
> > Am i doing something wrong here??
> >
> > I need a reference to the nested report.
> > GetChild does not help me unless there is a way to re-assign the
> dataObject
> > or set the visible property of the nested report using a child
> reference.Any
> > ideas?
> >
> >
>
>


0
Rega
7/26/2004 1:38:35 PM
After some tinkering i found a solution. I have explicitly assigned the
dwobject to reference different nested reports (in the same host datawindow)
in different cases, instead of re-assigning the dataobject
E.g. Instead of dwobject_var.DataObject='<dataobject_string>'
i have a case statement re-assigning the dwobject to different nested report
E.g. CASE 'some_criteria'
            dwobject_var=host_dw.Object.nested_report1
        CASE .....
            dwobject_var=host_dw.Object.nested_report2
So far this works nicely without the window crashing on close
However... i have a nested report that returns over 400 rows... that causes
PB to crash
Any ideas?
"Rega Anglin" <d0cw@hotmail.com> wrote in message
news:4105095b@forums-1-dub...
> Hey thanks for responding. However, i did put "DESTROY <dwobject_var>" in
> the close event of the window , with no success. Still crashing  :-(
>
> "kishore" <kishore@cgvakindia.com> wrote in message
> news:4104cdc2@forums-1-dub...
> >
> > your code seems to be okay.....before closing the window try to destroy
> the
> > instances variables.....
> >
> > I suggest you can use get child......
> > You can set the visible property using Modify code.....
> >
> > Kishore
> >
> >
> > "Rega Anglin" <d0cw@hotmail.com> wrote in message
> > news:41040f51$1@forums-1-dub...
> > > Hey guys i wonder if you can help me.
> > > I am manipulating nested reports in a Datawindow using the dot
notation
> > > along with an instance dwobject variable (reference to report via
> > > "dwobject_instancevar=dw_host.Object.nested_report").
> > > Everything works fine untill i re-assign the nested report DataObject
> e.g
> > > "dw_instancevar.DataObject='d_somedatawindow'".. i continue to
reassign
> > this
> > > DataObject and everything works... then i close the window. PB
> > crashes.....
> > >
> > > Am i doing something wrong here??
> > >
> > > I need a reference to the nested report.
> > > GetChild does not help me unless there is a way to re-assign the
> > dataObject
> > > or set the visible property of the nested report using a child
> > reference.Any
> > > ideas?
> > >
> > >
> >
> >
>
>


0
Rega
7/26/2004 3:28:19 PM
I am assuming this is after you try closing the windows it
crashes.

Try assigning the variable to the empty string or a dummy dw
before the destroy

Use GarbageCollect() after the destroy.

Dawn

> Hey guys i wonder if you can help me.
> I am manipulating nested reports in a Datawindow using the
> dot notation along with an instance dwobject variable
> (reference to report via
> "dwobject_instancevar=dw_host.Object.nested_report").
> Everything works fine untill i re-assign the nested report
> DataObject e.g
> "dw_instancevar.DataObject='d_somedatawindow'".. i
> continue to reassign this DataObject and everything
> works... then i close the window. PB crashes.....
>
> Am i doing something wrong here??
>
> I need a reference to the nested report.
> GetChild does not help me unless there is a way to
> re-assign the dataObject or set the visible property of
> the nested report using a child reference.Any ideas?
>
>
0
Dawn
7/26/2004 6:55:45 PM
Try Return 0 in close query event

kishore

<Dawn T Brown Eyes[TeamSybase]> wrote in message
news:410553b1.21b1.1681692777@sybase.com...
> I am assuming this is after you try closing the windows it
> crashes.
>
> Try assigning the variable to the empty string or a dummy dw
> before the destroy
>
> Use GarbageCollect() after the destroy.
>
> Dawn
>
> > Hey guys i wonder if you can help me.
> > I am manipulating nested reports in a Datawindow using the
> > dot notation along with an instance dwobject variable
> > (reference to report via
> > "dwobject_instancevar=dw_host.Object.nested_report").
> > Everything works fine untill i re-assign the nested report
> > DataObject e.g
> > "dw_instancevar.DataObject='d_somedatawindow'".. i
> > continue to reassign this DataObject and everything
> > works... then i close the window. PB crashes.....
> >
> > Am i doing something wrong here??
> >
> > I need a reference to the nested report.
> > GetChild does not help me unless there is a way to
> > re-assign the dataObject or set the visible property of
> > the nested report using a child reference.Any ideas?
> >
> >


0
kishore
7/27/2004 5:26:09 AM
Hey the problem was that i had some editmasks and dropdown list boxes in on
of the nested reports.

"kishore" <kishore@cgvakindia.com> wrote in message
news:4105e771@forums-1-dub...
> Try Return 0 in close query event
>
> kishore
>
> <Dawn T Brown Eyes[TeamSybase]> wrote in message
> news:410553b1.21b1.1681692777@sybase.com...
> > I am assuming this is after you try closing the windows it
> > crashes.
> >
> > Try assigning the variable to the empty string or a dummy dw
> > before the destroy
> >
> > Use GarbageCollect() after the destroy.
> >
> > Dawn
> >
> > > Hey guys i wonder if you can help me.
> > > I am manipulating nested reports in a Datawindow using the
> > > dot notation along with an instance dwobject variable
> > > (reference to report via
> > > "dwobject_instancevar=dw_host.Object.nested_report").
> > > Everything works fine untill i re-assign the nested report
> > > DataObject e.g
> > > "dw_instancevar.DataObject='d_somedatawindow'".. i
> > > continue to reassign this DataObject and everything
> > > works... then i close the window. PB crashes.....
> > >
> > > Am i doing something wrong here??
> > >
> > > I need a reference to the nested report.
> > > GetChild does not help me unless there is a way to
> > > re-assign the dataObject or set the visible property of
> > > the nested report using a child reference.Any ideas?
> > >
> > >
>
>


0
Rega
7/27/2004 1:55:06 PM
Reply:

Similar Artilces:

PB 8
We have just tried to migrate to PB 8. We have a window that uses one of two datawindows depending on the paramenter passed in. Both datawindows appear to work when we do a retrieve in the datawindow painter. We're having trouble with one of the datawindows. We have a couple of things happen. 1) When we assign the one datawindow as the default datawindow and then try to open the window in PB, it causes one of two things to happen. Either it just sits there and does nothing or PB 8 crashes. We found that if we exported the window and changed the default datawindow to...

Re: Nested Datawindow Report (Datawindow Printing)
Does anyone know if this problem has been corrected in PB 8 or 9? Please advise. I am currently using PB 7. Problem: In case of large text fields, PowerBuilder not printing the Data correctly. Lines are cut in half and also not printing last few lines . This is happening on nested datawindow. Here is the link to the original documentation: http://info.sybase.com/resolution/detail.stm?id_number=10938800 Original documentation :-) states that this is not a bug but expected behaviour, so what kind of "correction" do you expect? pbm_thisusuallydoesnothelp:-)) Philip ...

superreview requested: [Bug 265962] crashes on popupcheck.com OnUnload test with new windows opened into tabs : [Attachment 163731] Prevent nested close calls from actually closing a window.
Johnny Stenback <jst@mozilla.jstenback.com> has asked Boris Zbarsky <bzbarsky@mit.edu> for superreview: Bug 265962: crashes on popupcheck.com OnUnload test with new windows opened into tabs https://bugzilla.mozilla.org/show_bug.cgi?id=265962 Attachment 163731: Prevent nested close calls from actually closing a window. https://bugzilla.mozilla.org/attachment.cgi?id=163731&action=edit ...

superreview granted: [Bug 265962] crashes on popupcheck.com OnUnload test with new windows opened into tabs : [Attachment 163731] Prevent nested close calls from actually closing a window.
Boris Zbarsky <bzbarsky@mit.edu> has granted Johnny Stenback <jst@mozilla.jstenback.com>'s request for superreview: Bug 265962: crashes on popupcheck.com OnUnload test with new windows opened into tabs https://bugzilla.mozilla.org/show_bug.cgi?id=265962 Attachment 163731: Prevent nested close calls from actually closing a window. https://bugzilla.mozilla.org/attachment.cgi?id=163731&action=edit ------- Additional Comments from Boris Zbarsky <bzbarsky@mit.edu> sr=bzbarsky ...

Closing nested child windows when closing the parent window
Hi I want to close all the child window when i close the parent window. Actually the scenario is from the parent window i am opening one child window and the child window contains DataGrid. The Datagrid contails the FooterTemplate and in the FooterTemplate a button will be placed so when we click on dat button it will once again opens one more child window. Now i want to close all the child and nested child windows should be closed when i close the parent window can any one help me plz Thanks in Advance Awaiting for reply Regards Krisamigo There really is no definite way to do that ...

superreview requested: [Bug 265962] new windows opened into tabs crashes on self.close() : [Attachment 166112] soft landing from nested close() calls
Dan M <danm.moz@gmail.com> has asked Boris Zbarsky <bzbarsky@mit.edu> for superreview: Bug 265962: new windows opened into tabs crashes on self.close() https://bugzilla.mozilla.org/show_bug.cgi?id=265962 Attachment 166112: soft landing from nested close() calls https://bugzilla.mozilla.org/attachment.cgi?id=166112&action=edit ...

superreview granted: [Bug 265962] new windows opened into tabs crashes on self.close() : [Attachment 166112] soft landing from nested close() calls
Boris Zbarsky <bzbarsky@mit.edu> has granted Dan M <danm.moz@gmail.com>'s request for superreview: Bug 265962: new windows opened into tabs crashes on self.close() https://bugzilla.mozilla.org/show_bug.cgi?id=265962 Attachment 166112: soft landing from nested close() calls https://bugzilla.mozilla.org/attachment.cgi?id=166112&action=edit ------- Additional Comments from Boris Zbarsky <bzbarsky@mit.edu> sr=bzbarsky with the improved comments. ...

Powerbuilder 8 crashes when closing a window
I am experience a consistance system crash with pb 8. I have a query window where I set the dynamically set the datawindow name from the menu. The datawindow is in QueryMode. If the user waits for the retrieve to finish everything works fine. if the user closes the window before the retrieve finishes the application just quits. It the retrieve is complete and the users then closed the application works fine. I tried putting DBCancel in the close event put it didn't help. Doese anyone have any Ideas. I am using 8.0.3 build 9704 and running in XP. However the same thing happen...

PB crashing when assigning dw to a datawindow control
I've got a strange one here. I have several datawindows that I've migrated from PB 6.5. I'm currently using PB 9 on XP SP2. When I load one of the datawindows in the datawindow painter everything works fine. It retrieves data. However, if I create a new window, place a datawindow control on it and try to assign this datawindow as the dataobject PowerBuilder crashes. I don't get an error message or anything. PB just disappears in a flash. Any ideas? Jason Are you on PB 9.0, 9.0.1 or 9.0.2? "Jason" <spam_me_not_jbays@wynalda.com> wrote in m...

PB crashes on nested report data access
I have one data window Dw_1 that has in the detail line one nested report Nested1. This nested1 is a composite that has two datawindows Something and Map. I need to get at the data of Map (nested 2 levels from DW_1) to change it.I have tried: dw_1.object.Nested1[row].Object.Map.Object.Data.Primary[j,k] Or trying to get a "pointer" to Map long row dwobject idwo for row = 1 to dw_ 1.RowCount() idwo = dw_1.object.Nested1[row].object.Map // crash!!!!!! next I always get a crash or a PB error accessing external property... I have tried all the possible and ...

Re: Nested Datawindow Report (Cut off on printing)
I have one main datawindow which has 10 datawindows. One of the datawindows has a field which has more than 10,000 characters. When I go to preview my main datawindow, on page 4 of 10 the text filed which has more than 10,000 characters is being cut off at the top of the page(The text field is on a deatil band). Half of the text remains on 3rd page and half on 4th page. The header and footer print properly. Can anyone tell me if this is a Powerbuiler 7 bug or not? Any help would be greately appreciated. I'll guess that it is a bug. For a long time the DW has not been good at ...

PB/Exe crash after closing response window
Hello, my name is Adam and i work with PowerBuilder 10.2.1.9948. ;) I have a problem I can't cope with. I have an application. Works fine... till I open any response window. What happens when I close the window depends on if i run application under PB or is it already exe. In PB I have a nice PB crash with apropriate message from Microsoft. When I run exe - application just disappears. I run /pbdebug... last line in file is "other message for mdi frame". Message number is 10, which seams to be "WM_ENABLE". Then I made a breakpoint in other even...

Powerbuilder closing (crashing?) upon opening a datawindow
I've been trying to open/edit a particular datawindow with a single retrieval argument being passed to it, but every time I attempt to open it, Powerbuilder will prompt for the value of the argument, but regardless of entering a value and clicking ok or just cancel, Powerbuilder immediately closes. It may be a crash, but I do not receive an error message upon Powerbuilder closing and nothing is logged in event viewer. It is the only datawindow causing the problem that I've found to this point. Stranger still, the datawindow can be seen from a parent window displaying it with...

Can a dataobject be assigned to a nested report dynamically?
I can access the nested report through getchild ok but would like to change the dataobject specifically based on what the user has requested. Is this possible? Conventional syntax does not apply... ie <child>.dataobject = "xxx" and modify doesn't seem to offer it when perusing the dw syntax tool options thanks using 10.5.2 That gets done by modifying the report on the main DW: <DW Control Name>.Modify("<Reportname>.DataObject='<dataobject name>' ") Report Bugs to Sybase: http://case-express.sybase.com/cx/welcome.do ...

Web resources about - Re-assigning DataObjects in Nested reports crashes PB when closing window - sybase.powerbuilder.datawindow

Resources last updated: 12/23/2015 1:15:09 AM