This procedure describes how to insert a new record and field in the grid of an existing portlet. To insert records or fields in a new portlet, follow the same instructions when the Filter window displays. The example uses the Bonds portlet that you created in “Including records and fields”.
Inserting a record and field
Log in to Web Studio.
Select Portlets from the Build menu in the left pane.
Select New from the Portlet Manager Status menu, select the Bonds portlet in the detail pane, then click Edit.
When the Portlet Builder displays, right-click Bonds in the Element List and select Edit | Filter Rules from the menu.
On the Filter window, under Add Filter Rule, insert a new record:
Select Insert Record from the first drop-down list.
Select Before from the second drop-down list, to place a new record before the existing record. You could also place the record after the existing record.
Select Number from the third drop-down list to indicate you want to identify the existing record by record number.
In the final field, enter a number to identify the existing
record by number. For this example, enter 7
to
indicate record number 7.
Click Add. The Current Filter Rules section is updated with the new rule, and a new record is inserted in the grid.
Insert a field.
Select Insert Field from the first drop-down in the Add Filter Rule section.
Select After from the second drop-down.
Select Number from the third-drop down.
In the final field, enter the number of the field after
which you want to insert a field. For this example, enter 5
.
Click Add. Again, the Current Filter Rules section is updated and the new field (column) is inserted in the grid.
Click Finish.
In the Portlet Builder, click Save.
When you see confirmation that the portlet was saved, click OK, then click Close to exist the Portlet Builder.
Copyright © 2004. Sybase Inc. All rights reserved. |
![]() |