Server
API Reference Guide
Product Documentation:

Visualization Server
Documentation Home
List of all members | Public Member Functions
javascript::IlsSwRow Class Reference

IlsSwRow JavaScript proxy. More...

#include <javascript/clientside.h>

Public Member Functions

Int getRowNumber ()
 Returns the number of a row in its table. More...
 
Boolean onRowUpdate (Int colno, String value)
 Changes the value of the corresponding attribute on the server. More...
 
void swOnDereference (Int colno, Boolean force=false, IlsSwServerDataSource sds=null,...)
 Dereferences the row at the specified column number colno if the column is a hyper-reference. More...
 

Detailed Description

IlsSwRow JavaScript proxy.

Warning
This class is a JavaScript class, not a C++ one.
See also
IlsSwTable (JavaScript), IlsSwRow (C++).

Member Function Documentation

◆ getRowNumber()

Int javascript::IlsSwRow::getRowNumber ( )

Returns the number of a row in its table.

In the Rogue Wave Views Script mapping, row numbers start from zero.

Example
var row = IlsSwGetRow(obj);
var rowNumber = row.getRowNumber();
Returns
the number of a row in its table.

◆ onRowUpdate()

Boolean javascript::IlsSwRow::onRowUpdate ( Int  colno,
String  value 
)

Changes the value of the corresponding attribute on the server.

Example
var row = ...;
row.onRowUpdate(1, "23");
Parameters
colnoindicates which attribute in the server (via the mapping) should be updated. In the Rogue Wave Views Script mapping, column numbers start from zero.
valuethe value of the attribute to be set in the server. This attribute is entered as a String but it is converted to the correct type when used.
Returns
False if the modification is not allowed.

◆ swOnDereference()

void javascript::IlsSwRow::swOnDereference ( Int  colno,
Boolean  force = false,
IlsSwServerDataSource  sds = null,
  ... 
)

Dereferences the row at the specified column number colno if the column is a hyper-reference.

In the Rogue Wave Views Script mapping, column numbers start from zero.

var row = ...;
row.swOnDereference(0,true);
Parameters
colnocolumn number. In the Rogue Wave Views Script mapping, column numbers start from zero.
force[optional] specifies whether a new view instance 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 or 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.
javascript::IlsSwGetRow
IlsSwRow IlsSwGetRow(IlvGraphic graphic, Int rowno=current)
Returns the row, if any, associated with the graphic.