Acts as a proxy to the running dynamic view server of the application. More...
#include <javascript/serverside.h>
Public Member Functions | |
| void | DeclGlobalCallback (String funcName, String resType, Int nbParam) |
| Declares an Rogue Wave Script function with a global callback that can be called from a component. More... | |
| void | DeclObjectLabel (IlsViewed obj, String label) |
| Associates a label with a server object and stores the association in the server. More... | |
| IlsViewed | GetInstance (String typeNm, Int id) |
| Retrieves an object instance that has been registered with identifier id in dictionary typeNm. More... | |
| IlsViewed | GetObjectFromLabel (String label) |
| Retrieves a declared object from its label. More... | |
| void | Notify () |
| Triggers a notification cycle. More... | |
| void | OpenView (IlsViewed object, String viewName) |
| Opens the dynamic view viewName on the object object. More... | |
| void | OpenView (String objectLabel, String viewName) |
| Opens the dynamic view viewName on the object name objectLabel. More... | |
| void | ReplyError (String message) |
| Return an error message to the current interactor. More... | |
| void | ReplyMessage (String message) |
| Returns a message of type information to the current interactor. More... | |
| void | ReplyWarning (String message) |
| Returns a warning message to the current interactor. More... | |
| void | UndeclObjectLabel (IlsViewed obj) |
| Undeclares the object as an identified object. More... | |
Public Attributes | |
| IlsMvUser | interactor |
The current interacting user (IlsMvUser). | |
| String | serverName |
The name used to initialize the process (see -ilsn option in class IlsMvProcess). | |
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.
IlsMvProcess (C++), IlsMvServer (C++). | 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.
| funcName | function name. |
| resType | The resType argument takes the following valid types:
|
| nbParam | number of parameters. |
| void javascript::IlsMvServer::DeclObjectLabel | ( | IlsViewed | obj, |
| String | label | ||
| ) |
Associates a label with a server object and stores the association in the server.
| obj | object to declare. |
| label | label to associate to the object. |
| IlsViewed javascript::IlsMvServer::GetInstance | ( | String | typeNm, |
| Int | id | ||
| ) |
Retrieves an object instance that has been registered with identifier id in dictionary typeNm.
| typeNm | dictionary. |
| id | object id. |
null. | IlsViewed javascript::IlsMvServer::GetObjectFromLabel | ( | String | label | ) |
Retrieves a declared object from its label.
IlsMvServer::GetObjectFromLabel(). | 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.
IlsMvServer::Notify() (C++). | 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().
| object | origin of the view. |
| viewName | name of the view to open. |
| 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().
| objectLabel | label of the origin of the view. |
| viewName | name of the view to open. |
| void javascript::IlsMvServer::ReplyError | ( | String | message | ) |
Return an error message to the current interactor.
IlsMvServer::ReplyMessage().| message | message. |
| void javascript::IlsMvServer::ReplyMessage | ( | String | message | ) |
Returns a message of type information to the current interactor.
IlsMvServer::ReplyMessage().| message | message. |
| void javascript::IlsMvServer::ReplyWarning | ( | String | message | ) |
Returns a warning message to the current interactor.
IlsMvServer::ReplyMessage().| message | message. |
| void javascript::IlsMvServer::UndeclObjectLabel | ( | IlsViewed | obj | ) |
Undeclares the object as an identified object.
IlsMvServer::UndeclObjectLabel().| obj | object to undeclare. |
© Copyright 2018, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.