@Dialogbox

i have a document that contains an approve button, if the user clicks on the approve button, a dialog box will appear where the user will input an approver code, and after clicking on OK on the dialog box, the value inputted will be place on a field in the form.

FYI, the document is on Read Mode.

what is the javascript equivalent of @Dialogbox… , since it is not supported by the web… .? do you have any sample code fot the above scenario?

advance merry christmas to all!!!

Subject: RE: @Dialogbox

Hi,

You can create a form and based on the your requirement you can design it.
Then you can open that Form by clicking on approver button.
In one of my application I have used same thing. The follwing Formula you have
to write on Button:

AddressField := “NS_FirstName”;
Disp := “a href="Javascript:add('/” + DBPath +
“/ABR?Openform&PopField=” + AddressField+ “&Form=NS&seq=1&From=')"><img
src="/” +DBPath+“/NAB.gif?OpenImageResource" border=0>]”;Disp

Here NS_FirstName, PopField and DBPath are fields. FirstName is the field which
we are populating and PopField store Field name.

then in Open Form you have to create a button and use following JS:

if(window.opener)
{
window.opener.document.forms[0].NS_FirstName.value = “Value”
self.close();
}

Hope this will help you to solve your problem.

Piyush

Subject: RE: @Dialogbox

sorry i am new to javascript.

what willbe the value of DBPath field?

where will iplace this code: S: if(window.opener) window.opener.document.forms[0].NS_FirstName.value = “Value”

self.close(), is it on the click event of the button?

thank you very much!!

Subject: RE: @Dialogbox

Okay… DBpath is a field name which kept the path of ur current db.

Yes You have to write these code on Click event of button !!

Piyush