The following example shows how to create a menu item for initiating a data list for control valves. The diagram below shows the menu structure.
-
Select File > New > Administration > Method in the Desktop Client. The New Method dialog box appears.
-
In the Name field, type BaseInstrumentList_CV_Online.
-
In the Description field, type Instrument list (Control Valves).
-
In the Display As field, type Instrument List (Control Valves).
-
In the Client API field, select GenDatasheet from the list box.
-
In the DatasheetMode (Online/Offline) field, type Online.
-
In the DatasheetType field, type InstrumentList.
The DataSheet Type specified for the method must match the DataSheet Type on the data list definition.
-
In the DatasheetDefUID field, type DLD_BaseInstrumentList_CV.
-
In the Multi object datasheet field type True.
-
Check the Available in Desktop client check box.
-
Click Finish.
-
In SmartPlant Foundation Desktop Client, right-click the new method and click Manage Access Groups. The Manage Related Items dialog box appears.
-
In the right pane, select the ProcessViewer access group and click to select the left pane.
Click Remove Selected Item remove the relationship between an access group and a definition. The access group remains in the database.
-
Click OK to close the Manage Related Items dialog box.
-
Click Find > Administration > Menu in the Desktop Client.
-
Type InstrumentListOnline and click OK.
-
Right-click InstrumentListOnline, and click New Menu Item on the shortcut menu. The New Menu Item dialog box appears.
-
In Name field, type Instrument_CV.
-
In Description field, type Control Valves.
-
In Method field, select BaseInstrumentList_CV_Online.
-
Click OK.
-
Right-click InstrumentListOnline, and click Manage Menu Items. The Manage Related Item dialog box appears.
-
Set the order of the new menu item in the Manage Related Item dialog box, and click OK.
-
To open the new data list, click Data Lists > Instrument Lists Online > Control Valves in the SmartPlant Foundation Desktop Client. The online data list opens in Excel.
-
Repeat this process for the Offline menu item.