R.J
12 Jan 2010, 12:45 AM
Lotus notes hide/when for e.g. @isnewdoc is not working on form's action bar. It shows the action buttons even if the hide/when is applied.
following is the code written in jsheader of the form to apply the extnd UI/
Ext.onReady(function() {
var uidoc = new Ext.nd.UIDocument({
bodyStyle : 'padding:10px',
layout : 'fit',
autoScroll : true
});
uidoc.render();
});
and following is the code in the head content of the form.
thisWebDbName := @WebDbName;
extndDbWebPath := "/Apps/extnd_b3.nsf/";
extUrl := extndDbWebPath + "ext/3x/";
extndUrl := extndDbWebPath + "extnd/3x/";
mode := @If(@UrlQueryString("debug") = "true"; "-debug"; "");
mode := "-debug";
unid := @If(@IsNewDoc;"";@Text(@DocumentUniqueID));
editMode := @If(@IsDocBeingEdited;"true";"false");
"<!-- Ext JS library -->" + @NewLine +
"<script type='text/javascript' src='" + extUrl + "adapter/ext/ext-base.js'></script>" + @NewLine +
"<script type='text/javascript' src='" + extUrl + "ext-all" + mode + ".js'></script>" + @NewLine +
"<!-- Ext.nd JS library -->" + @NewLine +
"<script type='text/javascript' src='" + extndUrl + "extnd-all" + mode + ".js'></script>" + @NewLine +
"<script type='text/javascript' src='" + extndUrl + "Session.js?OpenAgent&db=" + thisWebDbName + "'></script>" + @NewLine +
"<script type='text/javascript' src='" + extndUrl + "UIDocument.js?OpenAgent&db=" + thisWebDbName + "&unid=" + unid + "&editmode=" + editMode + "'></script>" + @NewLine +
"<link rel='stylesheet' type='text/css' href='" + extUrl + "resources/css/ext-all.css' />" + @NewLine +
"<link rel='stylesheet' type='text/css' href='" + extndUrl + "resources/css/domino.css' />"
Please help..!!!
Cheer..!!!
following is the code written in jsheader of the form to apply the extnd UI/
Ext.onReady(function() {
var uidoc = new Ext.nd.UIDocument({
bodyStyle : 'padding:10px',
layout : 'fit',
autoScroll : true
});
uidoc.render();
});
and following is the code in the head content of the form.
thisWebDbName := @WebDbName;
extndDbWebPath := "/Apps/extnd_b3.nsf/";
extUrl := extndDbWebPath + "ext/3x/";
extndUrl := extndDbWebPath + "extnd/3x/";
mode := @If(@UrlQueryString("debug") = "true"; "-debug"; "");
mode := "-debug";
unid := @If(@IsNewDoc;"";@Text(@DocumentUniqueID));
editMode := @If(@IsDocBeingEdited;"true";"false");
"<!-- Ext JS library -->" + @NewLine +
"<script type='text/javascript' src='" + extUrl + "adapter/ext/ext-base.js'></script>" + @NewLine +
"<script type='text/javascript' src='" + extUrl + "ext-all" + mode + ".js'></script>" + @NewLine +
"<!-- Ext.nd JS library -->" + @NewLine +
"<script type='text/javascript' src='" + extndUrl + "extnd-all" + mode + ".js'></script>" + @NewLine +
"<script type='text/javascript' src='" + extndUrl + "Session.js?OpenAgent&db=" + thisWebDbName + "'></script>" + @NewLine +
"<script type='text/javascript' src='" + extndUrl + "UIDocument.js?OpenAgent&db=" + thisWebDbName + "&unid=" + unid + "&editmode=" + editMode + "'></script>" + @NewLine +
"<link rel='stylesheet' type='text/css' href='" + extUrl + "resources/css/ext-all.css' />" + @NewLine +
"<link rel='stylesheet' type='text/css' href='" + extndUrl + "resources/css/domino.css' />"
Please help..!!!
Cheer..!!!