Fixed List Using Radio Buttons


Author
Message
Ben Kim
Ben Kim
StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)
Group: Forum Members
Posts: 99, Visits: 253
Hello,

I am trying to add a field to a maintenance form that is a VARCHAR(8).  The valid values are hard coded and can be one of the following (i.e. if ACCD specified ACCD is stored in the table column as the value):

FULL - Full Incident Entry
ACCD - Accident Entry
CIT - Traffic Citation Entry
PARK - Parking Ticket Entry
FI - Field Interview or Other Entry

I have set up a RadioButtonGroup and added the options there.  I have ensured the BindingField is correct (in this case PathOf), and set the BindingProperty to TAG.  For each RadioButton option, I have entered a Tag corresponding to the code (FULL, ACCD, CIT, PARK, FI).  When I run the form it does not show any value checked even though the value exists.  I have added a TextField and bound it to the same BO.Field and it works.

Example:

0  FULL - Full Incident Entry
0  ACCD - Accident Entry
0  CIT - Traffic Citation Entry
0  PARK - Parking Ticket Entry
0  FI - Field Interview or Other Entry

(The zeros represent the radio button control)

I have also tried a combo box with the Items Collection set.  This did not work either.  Also tried the AutoCompleteCollection settings, although the items showed up, they did not prime with the current value.

2ND problem:

I have an UltraGrid which works great on the Maintenance form.  The only thing I cannot figure out how to do is to keep the BO sort order and the UltraGrid sort order in sync.  For example, I click on the Description column of the grid, I want to sort the BO collection in the same order so when I use the Navigation buttons, everything stays in sync with the grid as far as the "sort order" is concerned.

Any ideas would be appreciated!

Thanks!

Ben

Replies
Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
How are you populating a combo?  See the attached sample.
Attachments
ComboSample.zip (148 views, 119.00 KB)
Ben Kim
Ben Kim
StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)
Group: Forum Members
Posts: 99, Visits: 253
Thanks.  Got the combo working fine.  Now I just have a problem with the RadioButtonGroup/Option controls. 

Settings:

RadioButtonGroup
    BusinessObject - IncdTypeBO
    BindingField - PathOf
    BindingProperty - (Tried Text and Tag ->yes I added Tags to each option)
    BorderStyle - FixedSingle

RadioButton1
    MyValue - Auto set to 1
    Text - FULL
    Tag - FULL (tried with and without Tag property set)

RadioButton2
    MyValue - Auto set to 2
    Text - ACCD
    Tag - ACCD (tried with and without Tag property set)

RadioButton3
    MyValue - Auto set to 3
    Text - CIT
    Tag - CIT (tried with and without Tag property set)

RadioButton4
    MyValue - Auto set to 4
    Text - PARK
    Tag - PARK (tried with and without Tag property set)

RadioButton5
    MyValue - Auto set to 5
    Text - FI
    Tag - FI (tried with and without Tag property set)

Ideas?

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search