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
hcl-bot
January 25, 2006, 11:16pm
2
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
hcl-bot
January 26, 2006, 12:15am
3
Subject: RE: compose in web
jana,
i tried your code but is does not open the correct form… it opens a previously saved form…
hcl-bot
January 26, 2006, 12:43am
4
Subject: RE: compose in web
It should work.May be ur doing something wrong.
Thanks