Tags:
tag this topic
create new tag
view all tags
---+ New Group Around Widget Color Fields _There is a new group field around --- WIDGET color fields for the designer to use._ <em><br /></em> ---++ Overview: There is a new group field around --- WIDGET color fields for the designer to use. The group field is called --- WIDGET COLOR FG/BG/RO, which is a group around: <br /> WIDGET COLOR EN FG R/G/B/NL<br /> WIDGET COLOR EN BG R/G/B/NL<br /> WIDGET COLOR DB FG R/G/B/NL<br /> WIDGET COLOR DB BG R/G/B/NL<br /> WIDGET COLOR RO FG R/G/B/NL<br /> WIDGET COLOR RO BG R/G/B/NL <span style="color: #630000; font-size: 19px; line-height: 1em;">Usage:</span> <div id="_mcePaste">You can use this group field in the same way you use the individual color fields. This allows you to pass all 6 color groups at once.</div> For example, you could remap the 24 colour fields to a work field with 24 occurences. To do this, define a one-rec, working storage file with the following fields: <pre> Fld D --Stored--- -Options-- Seq No Field Name Typ Format S Start Len D DL AA KC ------- ---------------------- --- ----------------- - ----- ----- ---------- 100 COLOUR GROUP Hdr 1 24 200 COLOUR COLOURS Num 9(3) Oc 24 1 1 AA 300 COLOUR GROUP END Trl </pre> When defining the field to contain the 24 occurences, make sure you set the storage type to 'Binary' and put a range check of 'LE 255'. This will make sure each occurrence is a 1 byte binary field. Once defined, you can PASS --- WIDGET COLOR FG/BG/RO into a subroutine which RECEIVEs COLOUR GROUP and then refer to the colors by occurence number instead of field name. The occurrences map as follows: WIDGET COLOR EN FG (R/G/B/NL) are occurrences 1-4 WIDGET COLOR EN BG (R/G/B/NL) are occurrences 5-8 WIDGET COLOR DB FG (R/G/B/NL) are occurrences 9-12 WIDGET COLOR DB BG (R/G/B/NL) are occurrences 13-16 WIDGET COLOR RO FG (R/G/B/NL) are occurrences 17-21 WIDGET COLOR RO BG (R/G/B/NL) are occurrences 21-24 ---++ Comments: _Read what other users have said about this page or add your own comments._ <br />%COMMENT% -- Main.JeanNeron - 2013-11-28
E
dit
|
A
ttach
|
Watch
|
P
rint version
|
H
istory
: r3
<
r2
<
r1
|
B
acklinks
|
V
iew topic
|
Ra
w
edit
|
M
ore topic actions
Topic revision: r3 - 2013-12-31
-
JeanNeron
Home
Site map
Main web
MedicaidBilling web
Sandbox web
TWiki web
Main Web
Users
Groups
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
P
View
Raw View
Print version
Find backlinks
History
More topic actions
Edit
Raw edit
Attach file or image
Edit topic preference settings
Set new parent
More topic actions
Account
Log In
E
dit
A
ttach
Copyright © 2008-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback