This example illustrate how to edit an existing record and replace the current value with a numeric value, text string, or an image. This example also uses the Bonds portlet you created in “Including records and fields” and changed in“Inserting records and fields”.
Editing a record
Log in to Web Studio.
Select Portlets from the Build menu in the left pane, select New from the Portlet Builder Status menu.
Select Bonds portlet in the detail pane and click Edit.
When the Portlet Builder displays, right-click Bonds in the Element List, then select Edit | Filter Rules from the menu.
On the Filter window, make the following changes in the Add Filter Rule section:
Select Edit Record from the first drop-down list.
Select Number from the second drop-down list to indicate you are identifying the existing record by record number.
In the third drop-down list, enter a number to identify
the record you want to edit; for example, enter 2
to
indicate record number 2. You are going to edit the field that you
previously inserted.
Your next four entries pertain to the field.
Select Number to indicate you are identifying the existing field by field number.
Enter the number of the field you want to edit in the
text box. For this example, enter 1
.
Select Value from the next drop-down list to indicate that you are going to replace the existing cell entry with a numeric value or a text string. You can also select Image to replace the existing value with a graphic image.
Enter Maturity in the text box, then click Add.
Click Add. The Current Filter Rules section is updated and the Preview now displays “Maturity” in the first field of record 2.
Repeat the steps to edit additional records.
Click Finish to return to the Portlet Builder.
Click Save to save the portlet with the same name and information.
When you see confirmation that the portlet was saved successfully, click OK.
Click Close to exit the Portlet Builder.
Copyright © 2004. Sybase Inc. All rights reserved. |
![]() |