PDA

View Full Version : Confused with using Ext.nd.DominoUI or not...?


Episode1
08-17-2007, 09:32 AM
Hello,

I still trying to make my first steps with Ext.nd and I am (as as former client only programmer) a little bit confused:

When I start my web application with a main.html as suggested, where I make a DemoApp.init and create a Ext.nd.DominoUI, what does this mean for my forms and why is the behaviour different?

Example: On my form I fill a field with the picklist function (just like in the sample):

[CODE]
pick : function(){
ws = new Ext.nd.UIWorkspace();
ws.PickList({
viewName : Ext.get('ansicht').getValue(),
title : Ext.get('title').getValue(),
prompt : Ext.get('prompt').getValue(),
column : Ext.get('column').getValue(),
callback : this.handleMyPickList
});
},

handleMyPickList : function(arStrings) {
var tmp = "";
if (arStrings == null) {
ws.Prompt('OK', '', 'Es wurde CANCEL geklickt!');
} else {
for (var i=0; i<arStrings.length; i++) {
tmp += arStrings[i] + "\n";
}
ws.Prompt('OK', 'Ergebnis', 'Der R

Episode1
08-17-2007, 09:55 AM
... same issue with an embedded single category view/grid:

works perfect with a direct ?OpenForm URL, but fails when I open the form from my view:

var view2 = new Ext.nd.UIView({
dbPath : '',
viewName : '(LookupKundenbyLand)',
container : 'view2',
showActionbar : false,
showCategoryComboBox : false,
showSingleCategory : 'Deutschland'});

I get no error message, but the embedded view is empty!

Without showSingleCategory it works in both ways.

RWaters
08-17-2007, 10:24 AM
I think the biggest change is that when you open up a document in a new tab it is embedding that document within an iframe. There's no iframe when you directly navigate to that document.

For the picklist, where is that code located? Is it within the page where you are creating the DominoUI?