Switching tabs of tabbed table for Reader

Hi,

Hello to all.

I have a document with a tabbed table. I have designed the tabbed table in the following manner-

Their is an array of images with hotspots corresponding to each tab in the tabbed table. Each tab is give a row id in the table properties as Tab1, tab2… I have two computed for display fields viz. $TabbedTableId and $TabField. The hotspot of theimage has the code to set the value of the $TabField to the row id of the corresponding tab for example when I click the image hotspot corresponding to tab1 it sets the value of the $TabField to “Tab1” and the value of the $TabbedTableId field to “Tab1”. in this way I acheive the clicking of the image to show the particular tab through hide when formulas.

This document has some persons in the Authors field and some in the Readers field.

Now, the above works fine for a person in the Authors field. He can pass through the different tabs in the tabbed table.

But when the Reader of the document opens the document and clicks the respective image to switch the tabs it prompts an error: Cannot execute this command.

How should i make this work for the reader. PLEASE HELP.

FYI:

The formula in the hotspot image is as follows:

FIELD $LawSuit:= “Tab1”; '// Lawsuit is the tabbed table id

FIELD TabField:= “Tab1”; '// Tab1 is the Row Tag given to the first tab

@Command([RefreshHideFormulas]);

@Command([ViewRefreshFields])

Subject: Switching tabs of tabbed table for Reader

HiYou might have to rethink this.

your code is changing the contents of a form in Read-only mode but in order to do that the form needs to be editable.

Subject: RE: Switching tabs of tabbed table for Reader

Hi Philip,

I have enabled the setting in the properties of the form - Automatically enable in Edit mode. But still it doesn’t work.

Is their a work-around for this peculiar problem?

Subject: RE: Switching tabs of tabbed table for Reader

If you need Readers to have documents open in Edit mode, Give them the authority to “Write Public Documents” in the ACL.

Now that would normally create error messages then they try to exist/save the document. You may be able to get around this by setting doc.SaveOptions = “0” in the PostOpen event, so the document won’t try to save.