Repeat: Dojo dialog and Form formula

I am attempting to use DOJO dialog to display a person document (read only).This is building on how the application already works.

When accessed through “normal” domino webaccess, the form formula works and the webformat of the document is used to display the contents.

However when the same document is accessed thorugh the same view using DOJO dialog (see code below) the form formula does not work and the Notes format is displayed.

The view is sorted by key and the key is build using “@Text(@DocumentUniqueId)”.

Form formula on the view is “webPerson”.

dojo dialog code:

function showPersonDialog(e){

var sTitle = this.model.data[e.rowIndex].fname + " " + this.model.data[e.rowIndex].lname;

var sUNID = this.model.data[e.rowIndex].unid;

var sURL = ‘/development/company/intwwd.nsf/vwShowPerson/’ + sUNID + ‘?OpenDocument’;

var oDialog = dijit.byId(“documentDialog”);

if(!oDialog){

var oDiv = document.createElement(“div”);

oDialog = new dijit.Dialog({

title: sTitle,

href: sURL,

id: “documentDialog”,

timeout: 5000,

preventCache: true

}, oDiv);

}else{

oDialog.titleNode.innerHTML = sTitle;

oDialog.setHref(sURL);

}

oDialog.show();

}

Any ideas ?

  • Tom -