In this procedure, create an event to link employee information to the SSCA Master application.
Creating an event for employee information
From Mobile Web Studio, select Applications from the Build menu in the left pane, and select Approved under Application Manager.
From the list of approved applications that displays in the detail pane, right-click SSCA Department and select Define Events.
The Define Click Across Events window appears showing a grid with one column – Employee.
Click Select to the left of the grid, then click Next. The Preview window displays.
Look for the Assign An Event section of the window, and create a server-side event that associates the cells in column 1 (Employee) with the SSCA Department application. To do so, make these changes (accept the defaults for all others):
Row – enter all
. This
places the event on the header as well as the records; alternatively
you could enter 2-
(a 2 followed
by a dash, no space) to indicate every record from 2 to the last
record, excluding the header).
Column – enter 1
to
indicate column 1 (Employee) is included.
Event Name – enter Emp
Name
. This event name is used as the parameter
name by the target application, 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 this 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 mobile applications, you must always create a server-side event,
so the option should not be selected.
Click Find application to open the Search window, and click Search.
In the Results pane, select the SSCA Employee application and click Add.
The Search window closes, and the application 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.
Click Next.
From the Preview window, click Finish.
To preview the application, select Approved under the Application Manager Status menu, select the SSCA Master application in the detail pane, and click the Preview button.
Click one of the links under Dept Name to view a list of employees in the department. For example, click Finance to view the employees in the Finance department.
Click one of the links under Employee to view details about the selected employee. For example, click Julie Jordan to view employee details about Julie.
Copyright © 2005. Sybase Inc. All rights reserved. |
![]() |