sandymonroe
09-13-2007, 12:03 PM
This stuff is GREAT!!!! Amazing work!!!!
I am brand new to EXt but not to Domino which I have been doing since version 3 first came out. I am trying to use the UIView of EXT.nd for embedded views and have been able to adjust everything I needed but 2 things. Remember I am new.
I want to turn off the paging toolbar to allow the embedded view to have a cleaner look.
I would like some of these embedded views to resizable by the user - is this possible in Ext.nd yet or only in EXT?
If anyone could direct me to where and how to use the documentation, it would really be appreciated... I find bits and pieces here and there but nothing like what I need to really work with this.
HTML header was copied from the sample form... has not been adjusted except to load some extra css used by other parts of the application:
dbPath := "/" + @WebDbName + "/";
ServerName := @ServerName;
unid := @Text(@DocumentUniqueID);
extndUrl := @GetProfileField("Ext.nd.Profile"; "ExtNDDb"; ServerName);
mode := @If(@UrlQueryString("debug") = "true"; "-debug"; "");
uidoc := @If(@IsNewDoc;
"Ext.nd.UIDocument?ReadForm";
"($Ext.nd.SwitchForm)/" + unid + "?OpenDocument&form=Ext.nd.UIDocument");
"<!-- Ext JS library -->" + @NewLine +
"<script type='text/javascript' src='" + extndUrl + "ext/adapter/ext/ext-base.js'></script>" + @NewLine +
"<script type='text/javascript' src='" + extndUrl + "ext/ext-all" + mode + ".js'></script>" + @NewLine +
"<!-- Ext.nd JS library -->" + @NewLine +
"<script type='text/javascript' charset='ISO-8859-1' src='" + extndUrl + "extnd/extnd-all" + mode + ".js'></script>" + @NewLine +
"<script type='text/javascript' src='" + dbPath + "Ext.nd.Session.js?ReadForm'></script>" + @NewLine +
"<script type='text/javascript'>" + @NewLine +
" Ext.nd.init({extndUrl : '" + extndUrl + "'});" + @NewLine +
"</script>" + @NewLine +
"<script type='text/javascript' src='" + dbPath + uidoc + "'></script>" + @NewLine +
"<link rel='stylesheet' type='text/css' href='" + extndUrl + "ext/resources/css/ext-all.css' />" + @NewLine +
"<link rel='stylesheet' type='text/css' href='" + extndUrl + "ext/resources/css/xtheme-aero.css' />" + @NewLine +
"<link rel='stylesheet' type='text/css' href='" + extndUrl + "extnd/resources/css/domino.css' />"+ @NewLine +
"<script type=\"text/javascript\" src=\"/intra/codelibrary.nsf/overlib.js\"></script>" + @NewLine +
"<script type=\"text/javascript\" src=\"/intra/misreq.nsf/lib/prototype.js\"></script>" + @NewLine+
"<script type=\"text/javascript\" src=\"/intra/misreq.nsf/util/effects.js\"></script>"+ @NewLine+
"<link rel='stylesheet' type='text/css' href='" + dbPath + "MainForm.css'>" + @NewLine +
"<link rel='stylesheet' type='text/css' href='" + dbPath + "DatePicker.css'>" + @NewLine +
"<link rel='stylesheet' type='text/css' href='" + dbPath + "NamePick.css'>" + @NewLine +
"<link rel='stylesheet' type='text/css' href='" + dbPath + "Basic.css'>"
<div id="grid-example" style="height:200px; margin:20px 50px; border:2px solid">
embedded html view shows here
</div>
JsHeader code:
var ShowEViews = function(){
var ws;
var showBtn, dialog;
var frm;
return {
init : function() {
var groupEmbeddedView = new Ext.nd.UIView({
viewName : 'Applet Assignment View',
container : 'groupEmbeddedView',
height : 300,
count : 20,
showActionbar : false,
searchInPagingToolbar : false,
showSearch : false,
showCategoryComboBox : false,
showSingleCategory : document.forms[0].mainKey.value,
emptyText : "No Assignment documents for this Request found...."
});
var historyEmbeddedView = new Ext.nd.UIView({
viewName : 'Applet History View',
container : 'historyCommentsEmbeddedView',
height : 300,
count : 20,
showActionbar : false,
searchInPagingToolbar : false,
showSearch : false,
showCategoryComboBox : false,
showSingleCategory : document.forms[0].mainKey.value,
emptyText : "No History or Comment documents for this Request found...."
});
var correspondenceEmbeddedView = new Ext.nd.UIView({
viewName : 'Applet Correspondence View',
container : 'correspondenceEmbeddedView',
height : 600,
count : 20,
showActionbar : false,
searchInPagingToolbar : false,
showSearch : false,
showCategoryComboBox : false,
showSingleCategory : document.forms[0].mainKey.value,
emptyText : "No Correspondence documents for this Request found...."
});
var attachmentEmbeddedView = new Ext.nd.UIView({
viewName : 'Applet Attachment View',
container : 'attachmentEmbeddedView',
height : 300,
count : 20,
showActionbar : false,
searchInPagingToolbar : false,
showSearch : false,
showCategoryComboBox : false,
showSingleCategory : document.forms[0].mainKey.value,
emptyText : "No Attachment documents for this Request found...."
});
var changeRequestEmbeddedView = new Ext.nd.UIView({
viewName : 'Applet Change Request View',
container : 'changeRequestEmbeddedView',
height : 300,
count : 20,
showActionbar : false,
searchInPagingToolbar : false,
showSearch : false,
showCategoryComboBox : false,
showSingleCategory : document.forms[0].mainKey.value,
emptyText : "No Change Request documents for this Request found...."
});
var mainTabs = new Ext.TabPanel('mainTabs');
mainTabs.addTab("mainTabs_ITRequest", "Request");
mainTabs.addTab("mainTabs_MISInfo", "IT Information");
mainTabs.addTab("mainTabs_Groups", "Group Assignments");
mainTabs.addTab("mainTabs_History", "History / Comments");
mainTabs.addTab("mainTabs_Correspondence", "Correspondence");
mainTabs.addTab("mainTabs_Attach", "Attachments");
mainTabs.addTab("mainTabs_ChangeRequests", "Change Requests");
mainTabs.addTab("mainTabs_wfDetails", "Workflow Details");
mainTabs.hideTab("mainTabs_ChangeRequests");
mainTabs.activate("mainTabs_ITRequest");
}
};
}();
Ext.onReady(ShowEViews.init, ShowEViews, true);
example of "Embedded views" are designated in this format and seem to work properly:
<div id="groupEmbeddedView" style="height:200px; width:950px; overflow:hidden; margin:10px 10px; border:1px solid; position:relative">Loading view, please wait....</div>
Example of Tabs and tab panels are designated with the following pass through html:
<div id="mainTabs" style="margin:5px 5px; border:1px solid">
<div id="mainTabs_ITRequest" class="tab-content" style="padding: 5px;">
data
</div>
</div>
It's beginning to come together - still having problems and still have same questions.
Any help for a newbie would be very appreciated! Thanks so much!
Sandy Monroe
sandy.monroe@scansource.com
I am brand new to EXt but not to Domino which I have been doing since version 3 first came out. I am trying to use the UIView of EXT.nd for embedded views and have been able to adjust everything I needed but 2 things. Remember I am new.
I want to turn off the paging toolbar to allow the embedded view to have a cleaner look.
I would like some of these embedded views to resizable by the user - is this possible in Ext.nd yet or only in EXT?
If anyone could direct me to where and how to use the documentation, it would really be appreciated... I find bits and pieces here and there but nothing like what I need to really work with this.
HTML header was copied from the sample form... has not been adjusted except to load some extra css used by other parts of the application:
dbPath := "/" + @WebDbName + "/";
ServerName := @ServerName;
unid := @Text(@DocumentUniqueID);
extndUrl := @GetProfileField("Ext.nd.Profile"; "ExtNDDb"; ServerName);
mode := @If(@UrlQueryString("debug") = "true"; "-debug"; "");
uidoc := @If(@IsNewDoc;
"Ext.nd.UIDocument?ReadForm";
"($Ext.nd.SwitchForm)/" + unid + "?OpenDocument&form=Ext.nd.UIDocument");
"<!-- Ext JS library -->" + @NewLine +
"<script type='text/javascript' src='" + extndUrl + "ext/adapter/ext/ext-base.js'></script>" + @NewLine +
"<script type='text/javascript' src='" + extndUrl + "ext/ext-all" + mode + ".js'></script>" + @NewLine +
"<!-- Ext.nd JS library -->" + @NewLine +
"<script type='text/javascript' charset='ISO-8859-1' src='" + extndUrl + "extnd/extnd-all" + mode + ".js'></script>" + @NewLine +
"<script type='text/javascript' src='" + dbPath + "Ext.nd.Session.js?ReadForm'></script>" + @NewLine +
"<script type='text/javascript'>" + @NewLine +
" Ext.nd.init({extndUrl : '" + extndUrl + "'});" + @NewLine +
"</script>" + @NewLine +
"<script type='text/javascript' src='" + dbPath + uidoc + "'></script>" + @NewLine +
"<link rel='stylesheet' type='text/css' href='" + extndUrl + "ext/resources/css/ext-all.css' />" + @NewLine +
"<link rel='stylesheet' type='text/css' href='" + extndUrl + "ext/resources/css/xtheme-aero.css' />" + @NewLine +
"<link rel='stylesheet' type='text/css' href='" + extndUrl + "extnd/resources/css/domino.css' />"+ @NewLine +
"<script type=\"text/javascript\" src=\"/intra/codelibrary.nsf/overlib.js\"></script>" + @NewLine +
"<script type=\"text/javascript\" src=\"/intra/misreq.nsf/lib/prototype.js\"></script>" + @NewLine+
"<script type=\"text/javascript\" src=\"/intra/misreq.nsf/util/effects.js\"></script>"+ @NewLine+
"<link rel='stylesheet' type='text/css' href='" + dbPath + "MainForm.css'>" + @NewLine +
"<link rel='stylesheet' type='text/css' href='" + dbPath + "DatePicker.css'>" + @NewLine +
"<link rel='stylesheet' type='text/css' href='" + dbPath + "NamePick.css'>" + @NewLine +
"<link rel='stylesheet' type='text/css' href='" + dbPath + "Basic.css'>"
<div id="grid-example" style="height:200px; margin:20px 50px; border:2px solid">
embedded html view shows here
</div>
JsHeader code:
var ShowEViews = function(){
var ws;
var showBtn, dialog;
var frm;
return {
init : function() {
var groupEmbeddedView = new Ext.nd.UIView({
viewName : 'Applet Assignment View',
container : 'groupEmbeddedView',
height : 300,
count : 20,
showActionbar : false,
searchInPagingToolbar : false,
showSearch : false,
showCategoryComboBox : false,
showSingleCategory : document.forms[0].mainKey.value,
emptyText : "No Assignment documents for this Request found...."
});
var historyEmbeddedView = new Ext.nd.UIView({
viewName : 'Applet History View',
container : 'historyCommentsEmbeddedView',
height : 300,
count : 20,
showActionbar : false,
searchInPagingToolbar : false,
showSearch : false,
showCategoryComboBox : false,
showSingleCategory : document.forms[0].mainKey.value,
emptyText : "No History or Comment documents for this Request found...."
});
var correspondenceEmbeddedView = new Ext.nd.UIView({
viewName : 'Applet Correspondence View',
container : 'correspondenceEmbeddedView',
height : 600,
count : 20,
showActionbar : false,
searchInPagingToolbar : false,
showSearch : false,
showCategoryComboBox : false,
showSingleCategory : document.forms[0].mainKey.value,
emptyText : "No Correspondence documents for this Request found...."
});
var attachmentEmbeddedView = new Ext.nd.UIView({
viewName : 'Applet Attachment View',
container : 'attachmentEmbeddedView',
height : 300,
count : 20,
showActionbar : false,
searchInPagingToolbar : false,
showSearch : false,
showCategoryComboBox : false,
showSingleCategory : document.forms[0].mainKey.value,
emptyText : "No Attachment documents for this Request found...."
});
var changeRequestEmbeddedView = new Ext.nd.UIView({
viewName : 'Applet Change Request View',
container : 'changeRequestEmbeddedView',
height : 300,
count : 20,
showActionbar : false,
searchInPagingToolbar : false,
showSearch : false,
showCategoryComboBox : false,
showSingleCategory : document.forms[0].mainKey.value,
emptyText : "No Change Request documents for this Request found...."
});
var mainTabs = new Ext.TabPanel('mainTabs');
mainTabs.addTab("mainTabs_ITRequest", "Request");
mainTabs.addTab("mainTabs_MISInfo", "IT Information");
mainTabs.addTab("mainTabs_Groups", "Group Assignments");
mainTabs.addTab("mainTabs_History", "History / Comments");
mainTabs.addTab("mainTabs_Correspondence", "Correspondence");
mainTabs.addTab("mainTabs_Attach", "Attachments");
mainTabs.addTab("mainTabs_ChangeRequests", "Change Requests");
mainTabs.addTab("mainTabs_wfDetails", "Workflow Details");
mainTabs.hideTab("mainTabs_ChangeRequests");
mainTabs.activate("mainTabs_ITRequest");
}
};
}();
Ext.onReady(ShowEViews.init, ShowEViews, true);
example of "Embedded views" are designated in this format and seem to work properly:
<div id="groupEmbeddedView" style="height:200px; width:950px; overflow:hidden; margin:10px 10px; border:1px solid; position:relative">Loading view, please wait....</div>
Example of Tabs and tab panels are designated with the following pass through html:
<div id="mainTabs" style="margin:5px 5px; border:1px solid">
<div id="mainTabs_ITRequest" class="tab-content" style="padding: 5px;">
data
</div>
</div>
It's beginning to come together - still having problems and still have same questions.
Any help for a newbie would be very appreciated! Thanks so much!
Sandy Monroe
sandy.monroe@scansource.com