Compose in web

i have a button in web that when clicked opens a form and inherits the values of the current document. i used formula language for the button and it works fine (it inherits the values of the current document)

however, when i use javascript code in my button the values is not inherited from the current document.

formula code:

@Command([Compose];“formname”);

javascript code:

window.open(“http://server/database.nsf/formname?OpenForm",“”,"width=350,height=300”);

what may be the problem? i prefer using javascript code since i would be able to define the window size…

thank you

Subject: compose in web

Create Editable Field Name it as “DOCID” and make it “Type=Hidden” as HTML Attributemake it default value @Text(@DocumentUniqueID)

JavaScxript as follows

function popupwindow() {

var url= “/database name/FormName?openform&ParentUNID=” + document.forms[0].DOCID.value

window.open(url,“”,“width=350,height=300”);

}

call “popupwindow()” function using button.

Good Luck

Thanks

Jana

http://www.dominodesigner.com

Subject: RE: compose in web

jana,

i tried your code but is does not open the correct form… it opens a previously saved form…

Subject: RE: compose in web

It should work.May be ur doing something wrong.

Thanks