RECOMMENDATION: If you are using a version of The Portal Connector higher than 4.0, we strongly recommend utilizing the MVC based widgets and components to create your site. This documentation is for legacy purposes only and will soon be deprecated.

get_input()

Returns the input element of the widget.

Example-QUERYSTRING FETCH INPUT ELEMENT

tpc.forms[0].TpcQueryString.get_input();
Parameters

None

Returns

JQuery Object

enable()

Enable the widget on the page.

Example-QUERYSTRING ENABLE WIDGET

tpc.forms[0].TpcQueryString.enable()
Parameters

None

Returns

None

get_element()

Returns the element of the widget.

Example-QUERYSTRING FETCH ELEMENT

tpc.forms[0].TpcQueryString.get_element();
Parameters

None

Returns

JQuery Object

disable()

Disable the widget on the page.

Example-QUERYSTRING DISABLE WIDGET

tpc.forms[0].TpcQueryString.disable()
Parameters

None

Returns

None

get_model()

Returns the model object of the widget, which contains a number of useful properties related to the widget.

Example-QUERYSTRING FETCH MODEL

tpc.forms[0].TpcQueryString.get_model();
Parameters

None

Returns

Object

get_type()

Returns the widget type.

Parameters

None

Returns

String

get_value()

Returns the value of the widget.

Example-QUERYSTRING FETCH VALUE

tpc.forms[0].TpcQueryString.get_value();
Parameters

None

Returns

String if text attribute.
Integer or Decimal if Numeric attribute.

get_container()

Returns the container element of the widget.

Example-QUERYSTRING FETCH CONTAINER ELEMENT

tpc.forms[0].TpcQueryString.get_container();
Parameters

None

Returns

JQuery Object