Version 1.7.4 comes with the following
changes:
- More
methods for the Text Area BIG Text
feature.

The Text Area BIG Text allows the user to load/update huge
contents of several megabytes. It exists for a while, but some
methods have been added:
- BIG_VALIDATION_TRIGGER (set the named trigger used to validate
the CLOB)
- BIG_SET_BORDER (Set the component border style)
- BIG_SEARCH (search and highlight a string in the text)
- BIG_SEARCH_COLOR (set the highlight search color)
- BIG_SET_UPDATABLE (allow/avoid updating the content)
- BIG_GET_HASH (get the current text hash value)
As the BIG Text feature is based on a standard multi-line
TextItem, but actually does not use it at all. The standard Forms
item is overloaded by a Java Swing JTextPane component, reason why
the standard Forms trigger don't fire for it, like the
When-Validate-Item trigger for instance. While the BIG Text item
looses the focus, an event is sent back to Forms with 3
indications:
- The Text Item name.
- The updated flag (true/false).
- The Forms named trigger to use to do the validation
job.
---------------- --
BIG Text -- ---------------- Elsif
(EventName = 'BIG_FOCUS_LOST') then
get_parameter_attr(eventValues,'ITEM_NAME',eventValueType,
p1);
get_parameter_attr(eventValues,'BIG_UPDATED',eventValueType,
p2);
get_parameter_attr(eventValues,'BIG_TRG_NAME',eventValueType,
p3); If p2 = 'true' and p3 is not null
Then
execute_trigger(p3); End if
; End if;
The BIG_GET_HASH is usefull to get the current item hash value to
compare with another hash previously calculated (at first item
population time for example) to see if the content needs to be
saved.
Other methods are explained in the LAF_XP_TextArea documentation,
particularly the BIG_SEARCH that allows the user to search a word in
the text, then jump to the found occurence.
The laf.pll has been updated to include a
function that rebuild a CLOB variable with the content of the
underlying PJC.
Read more details in the LAF_TextArea documentation (BIG Text
section).
Test the new /fmb/test_laf_big_text_10g.fmb sample
dialog. For 11g
users, a test_laf_big_text_11g is also
provided.
Bug correction: LAF_XP_PopList when
used in a multi-record table-block.
Re-compile the
laf.pll
See the old version
new
features.
|