Name

submit — associates a form with a dataset

Synopsis

LZX: submit
JavaScript: lz.submit
Type: Class
Access: public
Topic: Components.Base Components
Declared in: lps/components/base/submit.lzx

Description

Used with form or baseform, the submit tag associates the form with its dataset. See form tag for example code.

Associates a form with a dataset.

Superclass Chain

node (LzNode) » submit

Known Subclasses

Details

Properties (6)

data
<attribute name="data" value="0" />
public var data;
The dataset that specifies the request url, which will also hold the result of the query.
_dataDel
<attribute name="_dataDel" value="0" />
private var _dataDel;
error
<attribute name="error" type="string" value="" />
public var error : String;
Error from most recent response or empty string; cleared to empty string each time a request on the dataset is made. Default: ''
_errorDel
<attribute name="_errorDel" value="0" />
private var _errorDel;
status
<attribute name="status" type="string" value="ok" />
public var status : String;
Read-only status of data request. Possible values are 'ok', 'requesting', and 'error'. Default: 'ok'.
_timeoutDel
<attribute name="_timeoutDel" value="0" />
private var _timeoutDel;

Methods (7)

_clearDels()
<method name="_clearDels" />
private function _clearDels();
Remove any existing delegates.
destroy()
<method name="destroy" />
private function destroy();
_recvdata()
<method name="_recvdata" />
private function _recvdata();
_recverror()
<method name="_recverror" />
private function _recverror();
_recvtimeout()
<method name="_recvtimeout" />
private function _recvtimeout();
setDataset()
<method name="setDataset" args="dset" />
public function setDataset(dset : LzDataset);
Method to set the dataset associated with form.
submit()
<method name="submit" />
public function submit();
Data from all sibling components and their children will send as a request to the server using 'data' dataset.

LZX Synopsis

<class name="lz.submit" extends=" LzNode ">
  <attribute name=" data " value="0" />
  <attribute name=" _dataDel " value="0" />
  <attribute name=" error " type="string" value="" />
  <attribute name=" _errorDel " value="0" />
  <attribute name=" status " type="string" value="ok" />
  <attribute name=" _timeoutDel " value="0" />
  <method name=" _clearDels " />
  <method name=" destroy " />
  <method name=" _recvdata " />
  <method name=" _recverror " />
  <method name=" _recvtimeout " />
  <method name=" setDataset " args="dset" />
  <method name=" submit " />
</class>

JavaScript Synopsis

public lz.submit extends  LzNode  {
  public var data ;
  private var _dataDel ;
  public var error  : String;
  private var _errorDel ;
  public var status  : String;
  private var _timeoutDel ;
  prototype private function _clearDels ();
  prototype private function destroy ();
  prototype private function _recvdata ();
  prototype private function _recverror ();
  prototype private function _recvtimeout ();
  prototype public function setDataset (dset : LzDataset);
  prototype public function submit ();
}