POLALA.COM welcome to my space |
HOME Open a document in a form |
Open a document in a form | | Published by: admin 2008-11-21 |
| | Form 25C Document Template:: If you prefer to download a document version of Form 25C—Authorization for address, telephone number, etc., by opening the document in Microsoft Word, http://www.comp.state.nc.us/ncic/pages/form25c.htmHOME | In the old version, I use this code to compose a new document (son) from a form (father).
var Unid=getUNID();
var link = '/perizie/SviluppoPerizie.nsf/Nota?openform&ParentUNID=' + Unid;
var center = parent.DemoApp.ui.layout.getRegion('center');
var iframe = parent.Ext.DomHelper.append(parent.document.body, {tag: 'iframe', frameBorder: 0, src: link}); The Multiple Document Interface (MDI Form) in Visual Basic:: Child Save saves the document in the active child Form. Child Close Closes the active child Form. At design time double click on MDI Open and add the http://visualbasic.freetutes.com/learn-vb6/lesson16.htmlHOME | Electric Service Requirements - Request For Change Form:: File Format: PDF/Adobe Acrobat - View as HTMLElectric Service Requirements - Request For Change Form. To:. From:. Customer Services. Supervisor, Metering Services. Location: http://www.saskpower.com/services/esr/esr_pdf/change.pdfHOME |
var panel = new Ext.ContentPanel(iframe, {title: 'Nota', closable: true, fitToFrame : true});
parent.DemoApp.ui.layout.add('center',panel);
center.showPanel(panel)
This code opened a new panel (in the center region) and loaded the son document.
I put this code in an action in the father's form.
In the new version, this code doesn't work correctly: it doesn't return any error, but in the Form panel (center panel), I see a view. No new panel is created.:(:(
thx...share u file
Well, Ext.nd Beta 1 is now built with Ext 2.x so your code will have to do things the Ext 2.x way.
For instance, we moved from using the Ext 1.1 BorderLayout to the 2.0 Ext.ViewPort.
Here are some helpful links:
Converting BorderLayout
http://extjs.com/learn/Ext_1_to_2_Migration_Guide#Converting_BorderLayout
Adding Regions and Panels
http://extjs.com/learn/Ext_1_to_2_Migration_Guide#Adding_Regions_and_Pane ls
This thread may have some info that could help as well
http://extjs.com/forum/showthread.php?t=16844
Also, for our "center panel", we give it the id of "xnd-center-panel" so you can get a handle to it this way:
var center = Ext.getCmp('xnd-center-panel');
HTH,
~Jack R.
A quick hack of what we provide in Actionbar should work, something like:
var tabPanel = Ext.getCmp('xnd-center-panel');
var src = this.db.webFilePath+form+'?OpenForm';
if(tabPanel) {
var iframe = Ext.DomHelper.append(document.body, {
tag: 'iframe',
frameBorder: 0,
src: src,
id: 'xnd-open-form-'+Ext.id(),
style: {width: '100%', height: '100%'}
});
tabPanel.add({
id: 'xnd-form-pnl-'+Ext.id(),
contentEl: iframe.id,
layout: 'fit',
closable: true
}).show();
Where's The Advantage In Windows Genuine Advantage?
Stocks Bounce After S&P Joins Bear Market
|
#If you have any other info about this subject , Please add it free.# | |
|