Server Module (PRIM_SRVM)
Server module executes on the server
Ancestors - Object (PRIM_OBJT)

Details


Server Modules are used for server-side processing for Visual LANSA Web applications.
Server Modules are primarily comprised of individual routines (SrvRoutines) that are typically coded to perform database centric processing. They also provide Session handling features allowing data to persist between calls to the server and a timeout to be specified. For complex applications requiring multiple Server Modules, a SessionIdentifier can be specified.

Example


This example shows a simple Server Module managing a Personnel table. It has routines that return all employee records as well as create, update and delete routines.
Begin_Com Role(*EXTENDS #PRIM_SRVM)
Def_List Name(#Employees) Fields(#Empno #Surname #Givename #Address1 #Address2 #Address3 #Postcode #Phonehme #Phonebus #Deptment #Section #Salary #Startdte #Termdate) Type(*working) Entrys(999)
Group_By Name(#Employee) Fields(#Empno #Surname #Givename #Address1 #Address2 #Address3 #Postcode #Phonehme #Phonebus #Deptment #Section #Salary #Startdte #Termdate)
Srvroutine Name(GetEmployees)
List_Map For(*Output) List(#Employees)