Domino version 6 server,on Linux currently chang db design, to make user can access from browser,one save action with following formular:
@If(@IsValid;
@Do(@Command([FileSave]); @Command([FileCloseWindow])); “”)
but didn’t work on the browser,does it need to replace with other formular or need to use JavaScript,anyone can give me a clue,thanks in advance sz
Subject: file save from browser
You cannot use @IsValid on the web. I thought it said this in the help, but it doesn’t seem to!
Anyway, you need to do something like this :
valid := @If(@ClientType=“Web”; @True; @IsValid);
@If(
valid; @Do(
@Command([FileSave]);
@Command([FileCloseWindow])
);
“”
);
When an attempt is made to save the document on the web, any validation information will be displayed in the browser, and the user can hit back to fix the error.
Hope this helps,
Craig.
Subject: RE: file save from browser
Hi,now file can be saved on the web,thanks a lot sz
Subject: RE: file save from browser
Thanks for your help.Use your above code,now no error display on the browser (error displayed before,metioned some notes object can’t be loaded).
But I found document hasn’t been saved/created actually, after checking the database.