Friday, September 9, 2011

OBIEE mandatory description field

A lot of report builders make META DATA a Friday afternoon project. Recently there was a question on the OTN forum how you could make this mandatory.

image

image

You can do this editing the opensavedlg.js, saw.catalog.BrowserDialogViewer.prototype.updateModel part

saw.catalog.BrowserDialogViewer.prototype.updateModel = function () {
var b = this.model;
if (this.descEdit.value.length<6)
{
alert("Enter a valid Description");
this.descEdit.value = "DESC:";
}
else
{
b.description = this.descEdit.value;
};


After the edit redeploy.



Till Next Time

1 comment:

Stuart Wallace said...

Oh that's nasty - I know a lot of lazy developers that will be very unhappy with that ;-)