XPages and @IsDocBeingEdited

I’m a long time Domino developer, but I am new to XPages. I created a Save button to save a document referencing a Notes document. I want to hide this Save button when in read mode, so I click on the little diamond next to the Visibility option. I just assumed there would be a new @Function for @IsDocBeingEdited, but I’m not seeing one. Is there a reason why @IsDocBeingEdited wasn’t implemented in XPages? Is there a better way of hiding XPage buttons depending on whether a document is in Edit mode or Read mode?

Thanks,

Chris

Subject: RE:XPages and @IsDocBeingEdited

I guess I figured it out, I should be using: dominoDocument1.isEditable() instead.

I’m still just a bit curious why they left out @IsDocBeingEdited().

Subject: RE:XPages and @IsDocBeingEdited

I don’t have an answer for you.

But I would guess it is because you could have more than one document open on a XPage. Thus the @IsDocBeingEditied wouldn’t know which document your talking about.

Subject: RE:XPages and @IsDocBeingEdite

That makes perfect sense. Thanks Steve!