Module CRADTEST.SRC
---------------------------------------------------------------------------
CRADTEST.VW
Shows various ways to use checkboxes and radios with DDs.
======================================================================
CRADTEST.SRC (view source)- import declarations
- opened database files
- Customer_Table : FileValidationTable
This is used to test file validation tables (the non visual tables). This
will build a list of all records from the customer file using default fields
for code and description (Code=1=cust# and desc=2=name). Because the list is non
static it will rebuild each time it is needed. Normally you do not do this - if
you had a lot of records this would be very slow. This is used by customer_number
- Customer_Validation_List : ValidationList
If the above table is used a default code popup list will be used. Here
we show how you can create a custom popup list. In this case, the list will
only show the description, sort the list and display a title. We will make this
our prompt list for customer_number.
- Customer_Test_DataDictionary : DataDictionary
Define_Fields()
Field_defaults()
- Cust_Form
--------------------end of dd------------------------------------------
┌─ Customer Entry Form: ─────────────────────┐
│ Customer Number: _____. │
├────────────────────────────────────────────┤
│ Name: ______________________________ │
│ Adrs: ______________________________ │
│--------------------------------------------│
│ City: ______________ ______________ │
│ │
│--------------------------------------------│
│ │
│ │
│ │
│ │
│ │
├─Comments───────────────────────────────────┤
│ │
│ │
│ │
└────────────────────────────────────────────┘
- State_Img
State:__
City_Img_________ _____________
States_img┌States───┐
│_______ │
│_______ │
│_______ │
└─────────┘
State2_img┌──────────────┐
#xB6 State: ______#xB6
└──────────────┘
Zip_etc_imgZip: __________
Credit Limit $______.__
Purchases $______.__
Balance $______.__
Cust_Entry : Entry_View_ClientAction_Bar (Main_Menu(self))
- Customer_dd : Customer_Test_DataDictionary
- Cust_Form : Entry_Form
- City : Radio_Entry_Form
sample of how to create a radio list. Note that changes
if the radio is reflected in other DEOs using the same file
field (and visa versa)
- Cust_Form2 : Entry_Form
show three ways to display a list of choices (code lists or
check lists.
1. Use a standard form and select the items with a popup code list
2. Create a scrolling radio list
3. Create a single item spin form
- States : Radio_Entry_Form
- State2 : Radio_Entry_Form
creat "spin style" deo
- Comments_Editor : Text_Window
References (0):
Field References (26):