Server API Reference Guide |
Rogue Wave Server Documentation Home |
JavaScript classes that can be used on component side. More...
JavaScript classes that can be used on component side.
This module describes the global methods and classes that are accessible for Rogue Wave Server/Rogue Wave Views integration. It is meant as a supplement to the Views Script for Rogue Wave Views documentation (Data Access package) and assumes that you are familiar with the Views Script environment within Rogue Wave Views.
Most of the global methods and classes described in this chapter reference Rogue Wave Server/Rogue Wave Views component objects, in which case they can only be used in the Views component and not in Rogue Wave Server Studio. Global functions that reference standard Rogue Wave Views objects can be used both with the Views component and Server Studio.
Keep in mind that:
When applicable, you can also refer to the corresponding class from the C++ library for more information. The server-side Views Script classes are described in JavaScript server side module.
javascript
namespace is a documentation convention to describe the Server JavaScript API. Classes | |
class | javascript::IlsMvComponent |
IlsMvComponent JavaScript proxy. More... | |
class | javascript::IlsRepresentation |
Implements the representations associated with each dynamic view in the server. More... | |
class | javascript::IlsRpObject |
The base class for any representation object. More... | |
class | javascript::IlsSwRow |
IlsSwRow JavaScript proxy. More... | |
class | javascript::IlsSwServerDataSource |
IlsSwServerDataSource JavaScript proxy. More... | |
class | javascript::IlsSwTable |
IlsSwTable JavaScript proxy. More... | |
Functions | |
IlvSwMemoryDataSource | javascript::IlsSwGetNamedDs (String name, IlvContainer cont) |
Returns the named data source in the panel. More... | |
IlsRepresentation | javascript::IlsSwGetRepresentation (IlvGraphic graphic) |
Returns the representation, if any, associated with the graphic. More... | |
IlsRepresentation | javascript::IlsSwGetRepresentationFromDs (IlvSwMemoryDataSource ds) |
Returns the representation, if any, associated with the data source. More... | |
IlsSwRow | javascript::IlsSwGetRow (IlvGraphic graphic, Int rowno=current) |
Returns the row, if any, associated with the graphic. More... | |
IlsSwRow | javascript::IlsSwGetRowFromDs (IlvSwMemoryDataSource ds, Int rowno=current) |
returns the row, if any, associated with the data source. More... | |
IlsSwTable | javascript::IlsSwGetTable (IlvGraphic graphic) |
Returns the table associated with the graphic if any. More... | |
IlsSwTable | javascript::IlsSwGetTableFromDs (IlvSwMemoryDataSource ds) |
Returns the table, if any, associated with the data source. More... | |
IlvSwMemoryDataSource javascript::IlsSwGetNamedDs | ( | String | name, |
IlvContainer | cont | ||
) |
Returns the named data source in the panel.
This function replaces the standard Rogue Wave Views mechanism used to find a data source in a panel, because Server-created data sources are not inserted in the pane and so cannot be retrieved via a call to getObject on the panel.
IlsSwServerDataSource
(JavaScript).name | data source name |
cont | container |
IlsRepresentation javascript::IlsSwGetRepresentation | ( | IlvGraphic | graphic | ) |
Returns the representation, if any, associated with the graphic.
IlsSwGetRepresentationFromDs
(JavaScript), IlsRepresentation
(JavaScript), IlsRepresentation
(C++).graphic | graphic the representation is associated with. |
IlsRepresentation javascript::IlsSwGetRepresentationFromDs | ( | IlvSwMemoryDataSource | ds | ) |
Returns the representation, if any, associated with the data source.
IlsSwGetRepresentation
(JavaScript), IlsRepresentation
(JavaScript).ds | data source the representation is associated with. |
IlsSwRow javascript::IlsSwGetRow | ( | IlvGraphic | graphic, |
Int | rowno = current |
||
) |
Returns the row, if any, associated with the graphic.
In the Views Script mapping, row numbers start from zero.
IlsSwGetRowFromDs
(JavaScript), IlsSwRow
(JavaScript).graphic | graphic the row is associated with |
rowno | [optional] If it is not provided, the current row is returned. |
null
if the graphic is not a field itf (data-source aware) gadget or is not attached to a Server data source. IlsSwRow javascript::IlsSwGetRowFromDs | ( | IlvSwMemoryDataSource | ds, |
Int | rowno = current |
||
) |
returns the row, if any, associated with the data source.
In the Rogue Wave Views Script mapping, row numbers start from zero.
IlsSwGetRow
(JavaScript), IlsSwRow
(JavaScript).ds | the data source the row is associated with. |
rowno | [optional] If the row number is not provided, the current row is returned. |
null
if the data source is not a Server data source. IlsSwTable javascript::IlsSwGetTable | ( | IlvGraphic | graphic | ) |
Returns the table associated with the graphic if any.
IlsSwGetTableFromDs
(JavaScript).graphic | the graphic the table is associated with. |
null
if the graphic is not a field itf data source aware gadget or is not attached to a Server data source. IlsSwTable javascript::IlsSwGetTableFromDs | ( | IlvSwMemoryDataSource | ds | ) |
Returns the table, if any, associated with the data source.
IlsSwGetTable
(JavaScript).ds | the data source the table is associated with. |
null
if the data source is not a Server data source.