In this procedure, create an event that links department information with the SSCAMaster application.
Creating an event for department 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 SSCAMaster
and
select Define Events.
The Define Click-Across 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 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 (Dept Name) with the SSCADepartment application. To do so, make these changes (accept defaults for all others):
Row – enter 2-
(a
2 followed by a dash, no space) to indicate every record from 2
to the last record, excluding the header). Alternatively, you can
enter all
to place the event
on the header as well as the records.
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 application, in this case, SSCADepartment.
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.
Click Find Application to open the Search window. Click Search.
In the Results pane, select the SSCADepartment application and click Add. This forms the event association between the SSCAMaster application and the SSCADepartment application.
The Search window closes, and the application details are displayed.
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 SSCAEmployee application. Under Assign Event For, complete these options:
Row – enter all
.
This places the event on the header as well as the records; alternatively
you can 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 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 application, in this case SSCAEmployee.
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 – 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 mobile applications, you must always create a server-side event.
Click Find Application to open the Search window. Click Search.
In the Results pane, select the SSCAEmployee application and click Add.
The Search window closes, and the application details are displayed.
In the Assign Event section, 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 application, select Approved under the Application Manager Status menu, select the SSCAMaster application in the detail pane, and click the Preview button.
You can try either link:
Under Dept Head, select an employee, such as Judy Snow. Judy’s employee information displays. In Emp Name, type in an employee, such as Mary Anne Shea and click OK to see Mary Anne Shea’s information. Then close the window.
Under Dept Name, select a department link, such as Finance. Employees in the Finance department display. In Dept Name, type another department, such as Sales, and click OK to see employees in the Sales department. Then close the window.
Close the window to exit.