In this procedure, create an event to display department information extracted from the sampledb database.
Creating an event for department information
From Web Studio, select Portlet from the Build menu in the left pane, and select Approved under Portlet Manager.
From the list of approved portlets that displays in the detail pane, right-click SSCA Master and select Define Events.
The Define ClickAcross Events window appears showing a grid with two columns – Dept Name and Dept Head.
Click Select to the left of the grid, then click Next.
The Assign and Edit Events window appears, which displays the grid rows and columns, along with options to define events on one or more of the grid cells.
Create a server-side event that associates the cells in column 1 (Dept Name) with the SSCA Department portlet. Complete the Assign An Event options:
Row – enter all
.
Column – enter 1
to
indicate only column 1 (Dept Name) is included.
Event Name – enter Dept
Name
. This event name is used as the parameter
name by the target portlet, in this case SSCA Department.
With – select “cell value (this cell)” from the drop-down list to indicate that the value associated with the event will be extracted from the cell itself.
Multi-value – leave unselected.
Client-side - make sure the option is unselected to indicate the event is a server-side event. This option acts like a toggle. When the option is selected, it indicates a client-side event; when the option is not selected, it indicates a server-side event.
For Web Studio, you always define a server-side event,
so the option should not be selected.
Click Find Portlet to open the Search window, and click Search.
In the Results pane, select the SSCA Department portlet and click Add. This forms the event association between the SSCA Master portlet and the SSCA Department portlet.
The Search window closes, and the portlet details are added to the Name, Resource ID, and Window ID fields.
In the Assign An Event section, click Add. The values in column 1 are highlighted, and the event definition displays under Current Assigned Events.
Create a server-side event that associates the cells in column 2 (Dept Head) with the SSCA Employees portlet. Under Assign Event For, complete these options:
Row – enter all
.
Column – enter 2
to
indicate only column 2 (Dept Head) is included.
Event Name – enter Emp
Name
. This event name is used as the parameter
name by the target portlet, in this case SSCA Employee.
With – select “cell value (this cell)” to indicate that the value associated with the event is extracted from the cell itself.
Multi-value – leave unselected.
Client-side - make sure the option is unselected to indicate the event is a server-side event. This option acts like a toggle. When the option is selected, it indicates a client-side event; when the option is not selected, it indicates a server-side event.
For Web Studio, you must always a server-side event,
so the option should not be selected.
Different options display depending whether this option is selected.
Click Find Portlet to open the Search window, and click Search.
In the Results pane, select the SSCA Employee portlet and click Add.
The Search window closes, and the portlet details are added to the Name, Resource ID, and Window ID fields.
Click Add. The values in column 2 are highlighted, and the event definition displays under Current Assigned Events.
Click Next.
From the Preview window, click Finish.
To preview the multipage portlet, select Approved under the Portlet Manager Status menu, select the SSCA Master portlet in the detail pane, and click the Preview button. Click Finance to display the employees in the Finance department, or click Mary Anne Shea to display her employee information.
Copyright © 2004. Sybase Inc. All rights reserved. |
![]() |