Hi Eric.Thanks for a elaborate reply.
But still i am not clear about somethings in you reply as mentioned below
Quote:
|
If you are just filling out a form and not interacting with the rest of zimbra, you may want to just use zimbra as a wrapper. Create your webform using .jsp, serve it up, create a canvas window and pull it in. Then when you submit the form have it talk to the server that will host the application.
|
Queries :
1)
not interacting with the rest of zimbra --- what kind of interaction you are talking about??
2)
Create your webform using .jsp, serve it up, create a canvas window and pull it in. --- I know how to build forms in jsp,but pulling it in canvas ... i am not getting that.
Does it mean that if we call the jsp form using the below snippet of code,the form will get displayed in the canvas window i have specified as below...
Code:
<contentObject>
<canvas type="window" width="300" height="600"/>
<onClick>
<actionUrl target="http://www.myserver.org/tasks/view/" >
<param name="id">${src.$1}</param>
</actionUrl>
</onClick>
</contentObject> If you can provide a sample snippet for the same then it would be very helpful.
For your hurdle ,
if you are not talking about the canvas element of the zimlet definition file ,and need to do tab ordering then here is what i have tried out and it is running fine.
Code:
function Com_Abc_Xyz() {
Com_Abc_Xyz._instance = this;
}
Com_Abc_Xyz.getInstance = function () {
return Com_Abc_Xyz._instance;
}
Com_Abc_Xyz.prototype = new ZmZimletBase;
Com_Abc_Xyz.prototype.constructor = Com_Abc_Xyz;
Com_Abc_Xyz.prototype.singleClicked =
function () {
this.showTabForm();
}
Com_Abc_Xyz.prototype.showTabForm =
function () {
var view = new DwtComposite(this._appCtxt.getShell());
//
this.tabView = new DwtTabView(view);
//This will call your actual form building javascript
this.myForm = new FormDisplay(this.tabView,this._appCtxt,this);
view.setSize("550px", "400px");
this.tabView.setSize("550px", "400px");
this.myForm.setSize("550px", "400px");
this.tabkeys = [];
//This will push your tab options in the tab view.I have just added one if you want you can add it in the similar way as done below.
this.tabkeys.push(this.tabView.addTab("Form", this.myForm));
var canvas = new DisplayForm(this._appCtxt.getShell(),"Form Title",view);
canvas.popup();
}
function DisplayForm(parent,title, view) {
if (arguments.length == 0) return;
DwtDialog.call(this, parent, null, title, [DwtDialog.CANCEL_BUTTON ], null);
if (!view) {
this.setContent(this._contentHtml());
} else {
this.setView(view);
}
this._appCtxt = this.shell.getData(ZmAppCtxt.LABEL);
this._msgDialog = this._appCtxt.getMsgDialog();
};
DisplayForm.prototype = new ZmDialog;
DisplayForm.prototype.constructor = DisplayForm ;
Awaiting a reply soon.
Thanks.