Issue 113506 - thisDatabaseDocument.FormDocuments.getbyName( XX ).open retuns NULL if form is aldready open
Summary: thisDatabaseDocument.FormDocuments.getbyName( XX ).open retuns NULL if form i...
Status: CLOSED FIXED
Alias: None
Product: Base
Classification: Application
Component: code (show other issues)
Version: OOO330m1
Hardware: Unknown All
: P3 Trivial (vote)
Target Milestone: OOo 3.3
Assignee: marc.neumann
QA Contact: issues@dba
URL:
Keywords: regression
Depends on:
Blocks: 111112
  Show dependency tree
 
Reported: 2010-07-28 23:50 UTC by drewjensen.inbox
Modified: 2017-05-20 10:22 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
bug doc (125.94 KB, application/vnd.sun.xml.base)
2010-07-28 23:52 UTC, drewjensen.inbox
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description drewjensen.inbox 2010-07-28 23:50:54 UTC
Test systems
OOO330m_2 / Ubuntu Studio 10.04 (AMD64) & Win Vista (32bit) #FAIL

OOo3.2.1, 3.2.0 - #PASS

I did not try LoadComponentFromURL against the forms container to see if that
changed also.

To reproduce load the attached file, with macro execution enabled.
On the main form
  Select any item in the grid
  Select Article in the drop down list
  Click 'Edit as' button.
  Close the form and save the record.

This code is run:

sub updateBiblio
	dim bkMark as variant
	dim oForm as object
	dim ResultSet as object
		
	thisDatabaseDocument.LockControllers
	oForm = thisDatabaseDocument.FormDocuments.getByHierarchicalName( "Biblio" ).open
	if not isEmpty( oForm ) then
		'xray oForm
		ResultSet = oForm.Drawpage.Forms.getbyIndex( 0 )
		bkMark = ResultSet.getBookMark
		Resultset.Reload
		do while NOT ResultSet.isLoaded
			wait 1
		loop
		ResultSet.moveToBookmark( bkMark )
	end if
	thisDatabaseDocument.UnLockControllers
		
end sub

xray oForm returns NULL OBJECT ??
Comment 1 drewjensen.inbox 2010-07-28 23:52:12 UTC
Created attachment 70870 [details]
bug doc
Comment 2 drewjensen.inbox 2010-08-30 03:18:44 UTC
Using OOO330m5 / Lucid 10.04 - the problem remains

Comment 3 Frank Schönheit 2010-09-02 06:02:21 UTC
grabbing, attempting to fix this for 3.3
Comment 4 Frank Schönheit 2010-09-02 09:16:24 UTC
fixed in CWS dba33i

find more information about this CWS, like when it is available in the master
builds, in EIS, the Environment Information System:
http://eis.services.openoffice.org/EIS2/cws.ShowCWS?Path=DEV300/dba33i
Comment 5 Frank Schönheit 2010-09-08 06:52:18 UTC
fs->sba: please verify in CWS dba33i
Comment 6 Frank Schönheit 2010-09-08 06:52:58 UTC
fs->msc: please verify in CWS dba33i
Comment 7 marc.neumann 2010-09-08 10:17:10 UTC
verified in CWS dba33i

find more information about this CWS, like when it is available in the master
builds, in EIS, the Environment Information System:
http://eis.services.openoffice.org/EIS2/cws.ShowCWS?Path=DEV300/dba33i