IlsSwTable
JavaScript proxy.
More...
#include <javascript/clientside.h>
Public Member Functions | |
String | getDefaultCollector () |
Returns the collector currently used to add a new row. More... | |
IlsSwRow | getRow (Int rowno=current) |
Returns the row from the table. More... | |
Boolean | onTableUpdate (Int colno, Int rowno, String value, Boolean isProperty) |
Changes the value of the corresponding attribute on the server via a call to the function IlsRpObject::onUpdate() on the representation object. More... | |
void | propertySwOnDereference (Int colno, Boolean force=false, IlsSwServerDataSource sds=null,...) |
Dereferences a property in the table if the column colno in the property data source is a hyper-reference. More... | |
void | setDefaultCollector (String collector) |
This method specifies which collector should be used by default when a new row is added to the table. More... | |
void | setRowType (String SvType, String rpObjType) |
Sets the type of the row that will be created when a new row is inserted in a table. More... | |
IlsSwTable
JavaScript proxy.
IlsSwRow
(JavaScript), IlsSwTable
(C++). String javascript::IlsSwTable::getDefaultCollector | ( | ) |
Returns the collector currently used to add a new row.
IlsSwRow javascript::IlsSwTable::getRow | ( | Int | rowno = current | ) |
Returns the row from the table.
rowno | [optional] If the row number is not provided, the current row is returned. In the Rogue Wave Views Script mapping, row numbers start from zero. |
Boolean javascript::IlsSwTable::onTableUpdate | ( | Int | colno, |
Int | rowno, | ||
String | value, | ||
Boolean | isProperty | ||
) |
Changes the value of the corresponding attribute on the server via a call to the function IlsRpObject::onUpdate()
on the representation object.
The rowno and colno arguments indicate which attribute in the server (via the mapping) should be updated.
colno | column number. In the Rogue Wave Views Script mapping, column numbers start from zero. |
rowno | row number. In the Rogue Wave Views Script mapping, row numbers start from zero. |
value | the value of the attribute to be set in the server. This parameter is entered as a string but will be converted to the correct type when used. |
isProperty | [optional] This optional argument can be provided to indicate whether the update should be done on the attribute in the main data source or in the property data source. If this parameter is not specified, the method chooses a value based on the data source that was used to get the table object. |
void javascript::IlsSwTable::propertySwOnDereference | ( | Int | colno, |
Boolean | force = false , |
||
IlsSwServerDataSource | sds = null , |
||
... | |||
) |
Dereferences a property in the table if the column colno in the property data source is a hyper-reference.
colno | In the Rogue Wave Views Script mapping, column numbers start from zero. |
force | [optional] specifies whether a new view must be instantiated when the same view is already opened on the same object. Its default value is false. |
sds | [optional] If the sds parameter is supplied, it is used to open the new view. If not, the new view is opened with the preregistered panel and Server Data Source, if any. |
... | You can pass up to 10 arguments to open the view. These arguments are used as the values of the view parameters. |
void javascript::IlsSwTable::setDefaultCollector | ( | String | collector | ) |
This method specifies which collector should be used by default when a new row is added to the table.
This method is useful only for multiple row tables. See the User's Manual for more information about multiple row tables.
If you want to add a row to the second relation, you must call:
collector | the name of the collector you want to use. |
void javascript::IlsSwTable::setRowType | ( | String | SvType, |
String | rpObjType | ||
) |
Sets the type of the row that will be created when a new row is inserted in a table.
This method is useful only for multiple row tables. See the User's Manual for more information about multiple row tables. The type of row must be compatible with the default collector used on this table.
The view specification is:
The code can be:
SvType | the type of the Server object that is associated with the row. |
rpObjType | the name specified in the dynamic-view type specification file for the IlsSwRow object you want to create. |