GetFullContext method (DataWindows)
Description
This method returns
a string representing the context of the client-side control to
be passed on a form submit.
Controls
DataWindow type |
Method applies to |
---|---|
Web |
Client control |
Syntax
[Web DataWindow client control]
1 |
string <span>dwcontrol</span>.GetFullContext ( ) |
Argument |
Description |
---|---|
dwcontrol |
A reference to a DataWindow control |
Return Values
String
Usage
Use to host multiple DataWindows.
Examples
The following client side script transfers the context
and action from one DataWindow to the DataWindow being submitted.
1 |
<SCRIPT> |
1 |
function dw_first_OnSubmit() |
1 |
{ |
1 |
dw_first.submitForm.dw_second_context.value =<br> dw_second.<span>GetFullContext</span>(); |
1 |
dw_first.submitForm.dw_second_action.value = ""; |
1 |
} |
1 |
1 |
function dw_second_OnSubmit() |
1 |
{ |
1 |
dw_second.submitForm.dw_first_context.value =<br> dw_first.<span>GetFullContext</span>(); |
1 |
dw_second.submitForm.dw_first_action.value = ""; |
1 |
} |
1 |
</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:
-
dw_first must have dw_second_context
and dw_second_action defined -
dw_second must have dw_first_context
and dw_first_action defined
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments