IsNewNote in formula

HiIs there any equal function in formula like IsNewNote? I need this kind of function in formula. Any sugastion?

Bob

Subject: IsNewNote in formula

In the help file, under language cross reference, it gives you the relevant formula - @IsNewDoc

Subject: RE: IsNewNote in formula

Ok, but @IsnewDoc don’t work the same like IsNewNote. I need function with the same working like IsNewNote.

Subject: How is it different?

@Isnewdoc returns true if it’s a new document, IsNewNote returns true if it’s a new document. I don’t see a difference apart from one is LotusScript and one is formula language.

What are you trying to do?

Subject: RE: How is it different?

There is a difference. IsNewDoc (and @IsNewDoc) are true ony if the document is being composed and has never been saved. IsNewNote, on the other hand, is also true if you create the document in the back end before bringing it to the UI, as long as the document has never been saved.

Subject: RE: How is it different?

Yes, Stan you are right. So I create document in the back end and I ned use function the same like @IsNewDoc, to hidden some fields in propare case.Any new idea?

Subject: OK I think I understand now

You create a document in the backend., you now open that document in the front end, but @isnewdoc no longer treats it as a new doc even though it hasn’t been saved?

You need to hide/show a field based upon it being new, but @isnewdoc returns the incorrect value?

Here’s how I’d do that then, create a field for the purpose of example “IsNewDoc”

Don’t set the field “IsNewDoc” to anything when you create it in the backend, then you can check to see if “IsNewDoc” is empty in your Hide when formula.

When you save the document, set the value of “IsNewDoc” to something so that the next time the doc is opened it won’t be viewed as new.

Subject: It works. Thanks a lot!

Subject: It works greate after added a field. Thanks a lot!

Subject: RE: How is it different?

You’d need to add a flag field to the document that gets reset in the QuerySave at the very last instant. Make it computed-for-display on the form, and set it to its own value.

Subject: It works. Thanks a lot!

Subject: RE: How is it different?

Yes, Stan you are right. So I create document in the back end and I ned use function the same like @IsNewDoc, to hidden some fields in propare case.Any new idea?