Issue 35388 - Cannot open a form or report from a database document
Summary: Cannot open a form or report from a database document
Status: CLOSED FIXED
Alias: None
Product: *Testproduct
Classification: Test
Component: code (show other issues)
Version: OOo 1.0.1
Hardware: All All
: P2 Trivial (vote)
Target Milestone: OOo 2.0
Assignee: marc.neumann
QA Contact: issues@test
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-12 16:49 UTC by berend.cornelius
Modified: 2005-07-25 22:06 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description berend.cornelius 2004-10-12 16:49:37 UTC
Forms and reports cannot be opened from within a database document, neither from
the user interface nor via API with "LoadComponentFromURL". I use the following
API code to load the component:
	public XComponent openDatabaseDocument(String _docname, boolean _bAsTemplate,
boolean _bReadOnly, XHierarchicalNameAccess _xDocuments){
	XComponent xRetComponent = null;
	try {
		XComponentLoader xComponentLoader = (XComponentLoader)
UnoRuntime.queryInterface(XComponentLoader.class, _xDocuments);
		PropertyValue[] aPropertyValues = new PropertyValue[4];
		aPropertyValues[0] = Properties.createProperty("OpenMode", _bReadOnly ? 
"openDesign": "open" ); 
		aPropertyValues[1] = Properties.createProperty("ActiveConnection",
this.DBConnection);
		aPropertyValues[2] = Properties.createProperty("DocumentTitle", _docname);
		aPropertyValues[3] = Properties.createProperty("AsTemplate", new
Boolean(_bAsTemplate));
		XHierarchicalNameContainer xHier = (XHierarchicalNameContainer)
UnoRuntime.queryInterface(XHierarchicalNameContainer.class, _xDocuments);
		if (xHier.hasByHierarchicalName(_docname)){
			xRetComponent = xComponentLoader.loadComponentFromURL(_docname, "", 0,
aPropertyValues);
		}
	} catch (Exception e) {
		e.printStackTrace(System.out);
	}
		return xRetComponent;
	}
Comment 1 berend.cornelius 2004-10-12 16:52:13 UTC
.
Comment 2 berend.cornelius 2004-10-13 10:29:08 UTC
BC: As we need the fix very urgently I set the priority to P2
Comment 3 mikhail.voytenko 2004-10-13 10:54:27 UTC
This is a duplicate of P1 bug that will be fixed in SRC680m57.

*** This issue has been marked as a duplicate of 35418 ***
Comment 4 mikhail.voytenko 2004-10-20 14:14:28 UTC
reopening the issue to send it back
Comment 5 mikhail.voytenko 2004-10-20 14:15:26 UTC
This is a duplicate so I send it back.
Comment 6 mikhail.voytenko 2004-10-20 14:16:04 UTC
Set back to duplicate.

*** This issue has been marked as a duplicate of 35418 ***
Comment 7 marc.neumann 2004-10-22 13:21:21 UTC
reopen the issue
Comment 8 marc.neumann 2004-10-22 13:21:57 UTC
set to fixed, because it's also fixed in this CWS
Comment 9 marc.neumann 2004-10-22 13:22:29 UTC
reopen for reassign ( stupid issuetracker  :-( )
Comment 10 marc.neumann 2004-10-22 13:22:48 UTC
reassign to msc
Comment 11 marc.neumann 2004-10-22 13:23:05 UTC
Hi,

fixed in cws dbwizard1

Bye Marc
Comment 12 marc.neumann 2004-10-22 13:23:22 UTC
Hi,

verified in cws dbwizard1

Bye Marc
Comment 13 marc.neumann 2004-11-29 13:23:50 UTC
Hi,

fixed in current developer build -> close.
The current developer build can be found at
http://download.openoffice.org/680/index.html
Feel free to reopen if this issue is not fixed in the developer build.

Bye Marc