Edit Box

Visual LANSA

Edit Box

Field Name

EMPNO(Alpha 5)

Description

How to visualize a field as text or numeric data in a grid.

Create a grid component. From the fields tab add the EMPNO field to the grid as a column. Set the ReadOnly property of the created column to FALSE. Load the grid and the column can be edited.

Field Source

Begin_Com Role(*EXTENDS #PRIM_OBJT)

 
Begin_Com Role(*Visual #PRIM_EVEF) Name(#VISUALEDIT) Defaultvisual(True) Height(19) Usepicklist(False) Width(209)
 
End_Com
 
End_Com

 

Form Source

Function Options(*DIRECT)

 
Begin_Com Role(*EXTENDS #PRIM_FORM) Clientheight(147) Clientwidth(492) Height(174) Left(369) Top(152)
 
Define_Com Class(#PRIM_GRID) Name(#GRID) Captionnoblanklines(True) Componentversion(1) Displayposition(1) Height(128) Left(41) Parent(#COM_OWNER) Showbuttonselection(True) Showselection(True) Showselectionhilight(False) Showsortarrow(True) Tabposition(1) Top(9) Width(344)
Define_Com Class(#PRIM_GDCL) Name(#GDCL) Displayposition(1) Parent(#GRID) Readonly(False) Source(#EMPNO) Width(30)
 
Evtroutine Handling(#COM_OWNER.CreateInstance) Options(*NOCLEARMESSAGES *NOCLEARERRORS)
 
Select Fields(#SECTION) From_File(PSLMST)
 
Add_Entry To_List(#GRID)
 
Endselect
 
Endroutine
 
End_Com

 

Appearance

 

Ý 3.6.10 List Samples