Acts as a proxy to the running dynamic view server of the application.
More...
#include <javascript/serverside.h>
Acts as a proxy to the running dynamic view server of the application.
The single instance of IlsMvServer
running in the application is accessible to script functions through the global variable MvServer
.
Global functions declared using the ILS_GLOBAL_FUNCTION()
macros are implicit methods of this class.
- Warning
- This class is a JavaScript class, not a C++ one.
- See also
IlsMvProcess
(C++), IlsMvServer
(C++).
◆ DeclGlobalCallback()
void javascript::IlsMvServer::DeclGlobalCallback |
( |
String |
funcName, |
|
|
String |
resType, |
|
|
Int |
nbParam |
|
) |
| |
Declares an Rogue Wave Script function with a global callback that can be called from a component.
Note that global callbacks declared using this method cannot be invoked through the MvServer object.
You provide only the number of arguments that your callback will receive. All arguments will be of type string.
- Parameters
-
funcName | function name. |
resType | The resType argument takes the following valid types:
- void
- IlsBoolean or boolean
- char
- int
- long
- float
- double
- IlsString or string Any other type is considered as a user type.
|
nbParam | number of parameters. |
◆ DeclObjectLabel()
void javascript::IlsMvServer::DeclObjectLabel |
( |
IlsViewed |
obj, |
|
|
String |
label |
|
) |
| |
Associates a label with a server object and stores the association in the server.
- Parameters
-
obj | object to declare. |
label | label to associate to the object. |
◆ GetInstance()
IlsViewed javascript::IlsMvServer::GetInstance |
( |
String |
typeNm, |
|
|
Int |
id |
|
) |
| |
Retrieves an object instance that has been registered with identifier id in dictionary typeNm.
- Parameters
-
typeNm | dictionary. |
id | object id. |
- Returns
- The retrieved object or
null
.
◆ GetObjectFromLabel()
IlsViewed javascript::IlsMvServer::GetObjectFromLabel |
( |
String |
label | ) |
|
◆ Notify()
void javascript::IlsMvServer::Notify |
( |
| ) |
|
Triggers a notification cycle.
When callbacks are called from a component, there is no need to trigger a notification cycle as such a cycle will start after the request has been processed. This function is generally used when a Rogue Wave Script timer is fired to start a notification cycle explicitly.
- See also
IlsMvServer::Notify()
(C++).
◆ OpenView() [1/2]
void javascript::IlsMvServer::OpenView |
( |
IlsViewed |
object, |
|
|
String |
viewName |
|
) |
| |
Opens the dynamic view viewName on the object object.
This method can take a variable number of arguments. See the corresponding C++ member function IlsMvServer::OpenView()
.
- Parameters
-
object | origin of the view. |
viewName | name of the view to open. |
◆ OpenView() [2/2]
void javascript::IlsMvServer::OpenView |
( |
String |
objectLabel, |
|
|
String |
viewName |
|
) |
| |
Opens the dynamic view viewName on the object name objectLabel.
This method can take a variable number of arguments. See the corresponding C++ member function IlsMvServer::OpenView()
.
- Parameters
-
objectLabel | label of the origin of the view. |
viewName | name of the view to open. |
◆ ReplyError()
void javascript::IlsMvServer::ReplyError |
( |
String |
message | ) |
|
◆ ReplyMessage()
void javascript::IlsMvServer::ReplyMessage |
( |
String |
message | ) |
|
◆ ReplyWarning()
void javascript::IlsMvServer::ReplyWarning |
( |
String |
message | ) |
|
◆ UndeclObjectLabel()
void javascript::IlsMvServer::UndeclObjectLabel |
( |
IlsViewed |
obj | ) |
|