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

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
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.

I am not sure why your radio group did not work and would have to set this scenario up.  But this is something we do ALL of the time with combos.  The most common mistake is not changing the BindingProperty from SelectedValue to Text.

The only thing I cannot figure out how to do is to keep the BO sort order and the UltraGrid sort order in sync

The UltraGrid performs an internal sort of the items but does not actually sort the BO itslef.  If you want them to stay in sync, you will have to set the Sort property of the BO yourself in the ColumnClick of the grid.

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
Trent,

I tried to set the BindingProperty to Text, changed the RadioButton options to just the field values (FULL, ACCD, etc.) and still no change.  It does not prime any of the values from the table in this control. (IE:  if table has a PathOf = ACCD, I would like to have the appropriate option selected)

Ben

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
Thank you for the tip on the combo - I had to set the BindingProperty to Text and it worked.  However, I would still like to figure out the RadioButton issue since we have so many in the legacy system we are converting!
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 (132 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?

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
Any thoughts on the Radio button issue?  We use RadioButtons in our current legacy applications in quite a few places and we would rather not replace them with AutoComplete textfields or combo drop-lists.

Ben

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