Class: DFEntry_Radio_Group_Mixin
Class Hierarchy:
cObject

Mixin


DFEntry_Radio_Group_MixinMixins:
Find_Edit_Mixin, Navigate_Mixin, Nesting_Mixin, Server_Mixin, Verify_Mixin,
Class Definition
Properties
Integer
Code_Display_Mode
String
Default_Value
when cleared..find it
Integer
Entry_Values
integer
NoPut_State
just like items
integer
Object_Item_Entry_Exit
if false, entry and exit messages are not used
integer
Object_Validation
if false, object validation is skipped
integer
Private.Data_Field
integer
Private.Data_File
integer
Private.item_entry_msg
following 6 messages added to 8.2 to properly support item entry,exit and validate
created to support item_entry_msg
integer
Private.item_exit_msg
created to support item_validate_msg
integer
Private.item_Validate_msg
created to support item_exit_msg
integer
Private.Prompt_Object
integer
Private.Zoom_Object
integer
Retain_State
just like items
Integer
Validate_All_Items_State
when true validation is part of validate_items (aka a save)
Functions and Procedures

Activating()
Augment to send Initialize_list (for dynamic lists)

Add_Radio_Item(String Descr_value String Data_Value)
Message to add radio Items to a list. Similar to Add_Item except
it handles an optional second and third parameter. If no 2nd param the
first is used in its place. If no third param, the record value is
not stored.
This also keeps track of the readio item's original order in aux_value.
If the radio list is then sorted this provides a pointer from the list
back to the entry_value array (which is not sorted).
Send Add_Radio_Item Item_Value {Data_Value} {Rec_Value}
Integer iRec

Bind_Data(integer File# Integer Field#)

Bottom_of_Panel()
created for Navigation support

Clear_Radio(String Dflt Integer RetainIt)
Clear radio object. All items select state to false
and set current item to default.
Pass: Dflt - value to set
RetainIt - if TRUE retain the current value
string
Code_Description_Value(String DescVal String DataVal)
Augment to support various description/data Display formats.
String
Current_Item_Data_Value()
Find the data value of the current selected radio item
Integer
Data_Field(Integer Itm#)
Integer
Data_File(Integer Itm#)
integer
Data_to_Description_item(String sValue)
Pass data value and return the position in the radio. -1 if not found
If list is sorted, the entry_value items and the list items will not
be in the same order. Each radio item's aux_value contains the position
in entry_value list (the ev list does not change).

Define_DFEntry_Radio_Group_Mixin()

Delete_Data()
Augment to delete the entry_value data as well.

Display_Description(String DataVal)
Set the radio item to the value passed. If not found, leave item where
it is with nothing selected.

End_Construct_Object()
Fill_List at end of construct object

Entry_Clear(integer file#)
created for EntItem simulation: file# <> 0 means use Cleared-array

Entry_Clear_All(integer file#)
created for EntItem simulation:

Entry_Defaults()

Entry_Display(integer file# integer flag)
This has never been used internally and it is private. It should be safe to remove it.
Procedure SET Record_Value Integer Itm Integer iRec
If Itm eq CURRENT Get Current_Item to Itm
Set Value of (Entry_Values(self)) Item (Itm*2+1) to iRec
End_Procedure
Function Record_Value Integer Itm Returns Integer
If Itm eq CURRENT Get Current_Item to Itm
Function_Return (Value(Entry_Values(self),Itm*2+1))
End_Function
created for EntItem simulation and Server support:
if file# = 0, display only if Target_File is in Done-array
else display only if file# = Target_File

Entry_Update(integer file# integer flag)
created for EntItem simulation and Server support
Normally entry_update gets called during saves and finds. When
Save: file# = 0 flag = 3
Find: file# <> 0 flag = 1
Allow Update Rules:
if Save update (file#=0, flag=3)
Allow Update if not noput and Target_File is in Done-array
and (new record or changed_state).
else if Find_Update (file#=Target_File, Flag=1) or misc (file#=0)
Allow Update
Modified so that an unchanged item is moved to the field if
the main file is a new record.
String
Entry_Value(Integer Itm)
Integer
Exec_Entry()
Integer
Exec_Exit()
integer
Exec_Validate()

Fill_List()
integer
Filled_Count()

Initialize_List()
If there are no items send fill_list.
Also check to see of a scroll bar is needed. Display scroll bar if it
is.
Note If you want to rebuild an item list you should:
Send Delete_Data
Send Initialize_List
Do not Send Fill_List directly (it won't handle scroll bar right)
Integer
Item_Changed_State(Integer iItem)
integer
Item_Count()
when the DEO attaches to the server it expects item_count to
exist. Return 1, Radios always map to a single data field
String
Item_Data_Value(integer iItem)
Find the data value of the passed list item
integer
Item_Entry(integer msg# integer item#)
Item_entry/exit/validate are the non DD versions and are probably never called. Lifted from entitem.pkg
Normally, the dd versions of these will get called
Integer
Item_Entry_msg(Integer iItem)
integer
Item_Exit(integer msg# integer item#)
Integer
Item_Exit_msg(Integer iItem)
Integer
Item_Limit()
added for DEO support. It is always 0
integer
Item_Validate(integer msg# integer item#)
Integer
Item_Validate_msg(Integer iItem)
integer
OnRadioGroupEntering()
these two functions are called by radio objects when an entering or exting
event for the entire radio group. These trigger exiting and entering messages
integer
OnRadioGroupExiting()

Prompt()
Integer
Prompt_Object(Integer Item#)
Integer
ProtoType_Object()
added for DEO / prototype object support. It is always self

Refresh(integer notifyMode)

Request_Find(integer mode integer entUpdtFlag)
FindEdit support behavior

Request_Superfind(integer mode)
FindEdit support behavior
integer
Select_State(integer iItem)

Set(Integer item# Integer Obj#)

Set(Integer iItem Handle hoPrompt)

Set(integer item# integer File#)

Set(integer item# integer Field#)

SET(Integer Itm String Val)

Set(Integer iItem Integer iState)
Get/Set item_chagned_state. These messages should not affect our radio
list. They should redirect to changed_state

Set(integer iItem integer iState)

Set(Integer iItem Integer hMsg)
added for 8.2 support. This now allows DD and non DD based radio objects to support
validation, entry and exit messages. This allows support of:
get/set item_entry_msg
get/set item_exit_msg
get/set item_validate_msg
with DDs these are rarely used.

Set(Integer iItem Integer hMsg)

Set(Integer iItem Integer hMsg)

Top_of_Panel()
created for Navigation support NoDoc=True
integer
Validate_Items(integer fg)
this is mostly lifted from val_mx.pkg. It's simpler because there is only one item
to validate.

Zoom()
Handle
Zoom_object(Integer iItem)