GetFullContext

Description

This method returns a string representing the context of the client-side control to be passed on a form submit.

Applies to

DataWindow type

Method applies to

Web

Client control

Syntax

Web DataWindow client control

string dwcontrol.GetFullContext ( )

Argument

Description

dwcontrol

A reference to a DataWindow control

Returns

String

Usage

Use to host multiple DataWindows.

Examples

Example 1

The following client side script transfers the context and action from one DataWindow to the DataWindow being submitted.

	<SCRIPT>

	function dw_first_OnSubmit()

	{

		dw_first.submitForm.dw_second_context.value =
			dw_second.GetFullContext();

		dw_first.submitForm.dw_second_action.value = "";

	}


	function dw_second_OnSubmit()

	{

		dw_second.submitForm.dw_first_context.value =
			dw_first.GetFullContext();

		dw_second.submitForm.dw_first_action.value = "";

	}

	</SCRIPT>

To enable the second DataWindow to create the required fields on the submit form, each of the DataWindows must have two arguments defined in the SelfLinkArgs property: