There are ussually context menu on right mouse click.
But in grid widget , the context of column can be lost , especially if user right clicks on column headers.
The context menu is displayed, but another column or field can have focus.
So if you implement such functionality as hide column to cursor menu for entity with grid, another column can be hidden.
– allow block right mouse popup on grid column headers
– create RightClick trigger for grid column headers similary as left mouse click trigger is implemented, with ColumnName as parameter.
(And optionally allow programmatically show cursor menu)
The language specific characters are correctly interpreted only if asn file is created with Unicode character set.
Default character set for text files ( notepad.exe) may be other, ANSI in my case. Character set is than probably written in text file anyway .
Character set mishmash can be source of hidden errors, especially in path and entity assignments.
(win81, cze,Uniface 9.604)
In ASN file is defined
AppDescription=Střední odborné učiliště
In Uniface I get following value
$logical(\”AppDescription\”)=\”Støední odborné uèilištì\”
Create method or property to detect what type of widget(grid in my case) is used for entity
Create INIT triggers/operations for ENTITIES on conceptual and component level.
Call them while NEW instance of EntityCollection are created
…after component operation INIT succeeds.
…(+ ?? maybe,when outer occurrence will be created ??)
Status>=0 should be returned by trigger code if initialization is succesfull.
It should allow to programmer to define dynamic entity initialization in model
– setting valreps to entity columns
– grid column visibility, grid column width
and so on
Now , it can be done in init trigger of component, so there is no model inheritance
There procedure with well-known structure and functionality used in code
As new customer demands appears, some extension are needed
>>> optional string Condition=\\\\\\\”\\\\\\\”:in <<<
and some time later another param needed
optional string Condition=\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\":in
>>> optional numeric FromInExcelRow=1:in <<<<
and so on