Alpha Software Mobile Development Tools:   Alpha Anywhere    |   Alpha TransForm subscribe to our YouTube Channel  Follow Us on LinkedIn  Follow Us on Twitter  Follow Us on Facebook

Announcement

Collapse

The Alpha Software Forum Participation Guidelines

The Alpha Software Forum is a free forum created for Alpha Software Developer Community to ask for help, exchange ideas, and share solutions. Alpha Software strives to create an environment where all members of the community can feel safe to participate. In order to ensure the Alpha Software Forum is a place where all feel welcome, forum participants are expected to behave as follows:
  • Be professional in your conduct
  • Be kind to others
  • Be constructive when giving feedback
  • Be open to new ideas and suggestions
  • Stay on topic


Be sure all comments and threads you post are respectful. Posts that contain any of the following content will be considered a violation of your agreement as a member of the Alpha Software Forum Community and will be moderated:
  • Spam.
  • Vulgar language.
  • Quotes from private conversations without permission, including pricing and other sales related discussions.
  • Personal attacks, insults, or subtle put-downs.
  • Harassment, bullying, threatening, mocking, shaming, or deriding anyone.
  • Sexist, racist, homophobic, transphobic, ableist, or otherwise discriminatory jokes and language.
  • Sexually explicit or violent material, links, or language.
  • Pirated, hacked, or copyright-infringing material.
  • Encouraging of others to engage in the above behaviors.


If a thread or post is found to contain any of the content outlined above, a moderator may choose to take one of the following actions:
  • Remove the Post or Thread - the content is removed from the forum.
  • Place the User in Moderation - all posts and new threads must be approved by a moderator before they are posted.
  • Temporarily Ban the User - user is banned from forum for a period of time.
  • Permanently Ban the User - user is permanently banned from the forum.


Moderators may also rename posts and threads if they are too generic or do not property reflect the content.

Moderators may move threads if they have been posted in the incorrect forum.

Threads/Posts questioning specific moderator decisions or actions (such as "why was a user banned?") are not allowed and will be removed.

The owners of Alpha Software Corporation (Forum Owner) reserve the right to remove, edit, move, or close any thread for any reason; or ban any forum member without notice, reason, or explanation.

Community members are encouraged to click the "Report Post" icon in the lower left of a given post if they feel the post is in violation of the rules. This will alert the Moderators to take a look.

Alpha Software Corporation may amend the guidelines from time to time and may also vary the procedures it sets out where appropriate in a particular case. Your agreement to comply with the guidelines will be deemed agreement to any changes to it.



Bonus TIPS for Successful Posting

Try a Search First
It is highly recommended that a Search be done on your topic before posting, as many questions have been answered in prior posts. As with any search engine, the shorter the search term, the more "hits" will be returned, but the more specific the search term is, the greater the relevance of those "hits". Searching for "table" might well return every message on the board while "tablesum" would greatly restrict the number of messages returned.

When you do post
First, make sure you are posting your question in the correct forum. For example, if you post an issue regarding Desktop applications on the Mobile & Browser Applications board , not only will your question not be seen by the appropriate audience, it may also be removed or relocated.

The more detail you provide about your problem or question, the more likely someone is to understand your request and be able to help. A sample database with a minimum of records (and its support files, zipped together) will make it much easier to diagnose issues with your application. Screen shots of error messages are especially helpful.

When explaining how to reproduce your problem, please be as detailed as possible. Describe every step, click-by-click and keypress-by-keypress. Otherwise when others try to duplicate your problem, they may do something slightly different and end up with different results.

A note about attachments
You may only attach one file to each message. Attachment file size is limited to 2MB. If you need to include several files, you may do so by zipping them into a single archive.

If you forgot to attach your files to your post, please do NOT create a new thread. Instead, reply to your original message and attach the file there.

When attaching screen shots, it is best to attach an image file (.BMP, .JPG, .GIF, .PNG, etc.) or a zip file of several images, as opposed to a Word document containing the screen shots. Because Word documents are prone to viruses, many message board users will not open your Word file, therefore limiting their ability to help you.

Similarly, if you are uploading a zipped archive, you should simply create a .ZIP file and not a self-extracting .EXE as many users will not run your EXE file.
See more
See less

radio buttons

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    radio buttons

    Believe me I have 'done due diligence' on this one...
    3 threads in v6 and 110 in v5.... pdf's, chm's, the works.
    Learned alot about radio buttons on forms and have been able to get them on the form and have scripts to hide or display fields and labels depending on the value of the field....
    The usual stuff, cash, check, credit card...
    I have tried the field as logical and character but I cannot get the choices to acknowledge the fact they are being chosen...
    The field 'blinks' when clicked on but the button will not change from a blank....
    Does anyone have any experiences similar, and if you solved it, how???
    D

    #2
    RE: radio buttons

    Did you define the choices for the field?

    Comment


      #3
      RE: radio buttons

      The field 'blinks' when clicked on but the button will not change from a blank...

      That's a little bit unclear. Can you be more specific?
      Peter
      AlphaBase Solutions, LLC

      [email protected]
      https://www.alphabasesolutions.com


      Comment


        #4
        RE: radio buttons

        yes
        the field name is tx_payment_type, C,3
        the choices were:
        Credit Card|cc
        Cash|csh
        Check|chk
        Have a 'hide' script that fires on fetch, and hides all the
        secondary data associated with credit card and check.
        Also have 'hide/show' script that fires OnChange for this
        field that hides all if 'csh' and shows selectively for 'cc' and for 'chk'..
        ALSO:
        when I tried to enter a new record, a5 almost locked up and kept repeating 'invalid number'...
        Now, that just happened and I have not had time to determine whether or not it is being caused by the radio buttons, or some other field ahead of them...
        Will be back
        D

        Comment


          #5
          RE: radio buttons

          not really
          when you click on any of the radio buttons, there is a
          momentary 'shift' in color and opacity in and around the radio button; but the button will not change.
          The form is set up for no edits, but before I try to click on the button, I click on my 'change record' button which allows the changes to be made...
          In the bottom toolbar, the change icon is displayed - indicating change mode - and it clears if I press 'save record' button or 'cancel changes' button. All 3 of these buttons are run by Action Scripts...
          D

          Comment


            #6
            RE: radio buttons

            Ok just went and made a new db with a new form
            fields were name,c,25 -- amt,n,7.2 -- payment c,3
            edited the form and changed the character field 'payment'
            from 'type-in field' to 'radio button'.
            Listed the same choices as above and voila...
            as you would expect, it works just fine...
            That means that I have something
            in the table
            in the form
            in the embedded browse
            in the calculated variables
            or somewhere I can't think of
            THAT
            is blocking the proper function of the radio buttons...

            Can't give anymore info at this time
            Goin' back to work on it..
            Will pass along any additional problems and/or hopefully
            the final solution
            D

            Comment


              #7
              RE: radio buttons

              Ok --
              when I click on the buttons, they do the 'flyover thing'.
              they change from orange to grey..
              when I print out the value of the field in the Interactive window, it is = to the last radio button that I clicked...
              soooooooooooooooooo, the button is accepting the input and changing accordingly (I tried the above twice using two different buttons, so I know it's OK).
              What is not happening is that the button does not show that it has been selected....
              Since the 'value' is correct, I am assuming that the ability to hide/show portions of the form will work OK, and my data will be correct.. but it will not show on the form I am using to complete the customer transaction... and I really need it to be there....
              D

              Comment


                #8
                RE: radio buttons

                so much for assume:
                the onfetch 'hidden' fields and labels do not show up when
                the radio buttons are 'pressed'...

                the following is what comes from
                ?tx_open_form.tx_payment_type
                in the interactive window after 'pressing' credit card
                I'm lost..

                D
                Code:
                .Refresh()  'Force repaint of control.
                .Remember_Initial()  'Remember position/size information into initial property list(s).
                .Repaint()  'force a repaint of the control or window.
                .Reset_Anchors(N xsplit,N ysplit)  'Reset the anchors on objects based on x & y split (x/y less than one if axis ommitted).
                .SessionHandle()  'Returns the session handle of the TX_PAYMENT_TYPE window.
                .Show()  'Shows the TX_PAYMENT_TYPE window.
                .TextReplace(N start,N len,C text[,L processed])  'Replace control's text.
                .TextSelect(N start[,N len[,L processed]])  'Select control's text.
                .Type()  '
                align = "Left"
                +border.
                +choice.
                +code.
                +entry.
                +event.
                +field.
                +fill.
                +font.
                +initial.
                +object.
                rotation = 0
                +settings.
                +shadow.
                tag = ""
                text = ""
                value = "cc "
                vertical_align = "Top"
                word_wrap = .F.

                Comment


                  #9
                  RE: radio buttons

                  You have a lot going on there, I can see why you might be having problems. Clearly there is a conflict. Simplify everything to just the Radio Button portion of it - get rid of all the other junk. If that works (and it probably will), then begin addding all the other stuff one item at a time and test each stepp to make sure it is working - OR post your table/form here.
                  Peter
                  AlphaBase Solutions, LLC

                  [email protected]
                  https://www.alphabasesolutions.com


                  Comment


                    #10
                    RE: radio buttons

                    Thanks..
                    I have already started doing that.
                    I put the buttons on first and am rebuilding the form...
                    Big PITB but worth it if it gets the job done...
                    Still don't know why but I may find out what is causing the problem as I start to add back all the features that are now present on the 'troubled' form...
                    I really do appreciate the help and the interest.
                    Will post a solution -- if I find one
                    D

                    Comment


                      #11
                      RE: radio buttons

                      Problem solved...
                      I don't know why it works now but
                      I just deleted the field and then dragged it back on the form
                      made it into a radio button, listed the options, and it works..
                      The only thing that may be the answer lies in the fact that the original 'drag and drop' did not seem to work smoothly
                      there may have been something that I did wrong that caused the glitch..
                      Sorry for any inconvenience and thanx for the help
                      D

                      Comment


                        #12
                        RE: radio buttons

                        Sometimes a field or an object gets corrupted for no good reason during the design process. The "good" news is, the more experience you gain, the more easily one identifies these problems.

                        Best of luck!

                        Peter
                        Peter
                        AlphaBase Solutions, LLC

                        [email protected]
                        https://www.alphabasesolutions.com


                        Comment


                          #13
                          RE: radio buttons

                          Choices on a form only work when they are numbers-

                          So... they should be

                          Cash|1
                          Check|2
                          Credit Card|3

                          or whatever- this is all I have gotten to work.

                          Comment


                            #14
                            RE: radio buttons

                            This script fires under the OnFetch event for the form and works just fine....
                            Code:
                            'Date Created: 03-Dec-2004 05:20:14 AM
                            'Last Updated: 03-Dec-2004 08:18:28 PM
                            'Created By  : R. Coleman
                            'Updated By  : R. Coleman
                            'Script Name :hid_payment_types
                            
                            'Conditional code follows. Executes only if the condition expression is True.
                            IF topparent:tx_payment_type.value="csh" 
                            	'Hide  everything on current form.
                            	topparent:tx_credit_card_expire_lbl.hide()
                            	topparent:tx_credit_card_expire.hide()
                            	topparent:tx_credit_card_type_lbl.hide()
                            	topparent:tx_credit_card_type.hide()
                            	topparent:tx_credit_card_number_lbl.hide()
                            	topparent:tx_credit_card_number.hide()
                            	topparent:tx_chk_number_lbl.hide()
                            	topparent:tx_chk_number.hide()
                            	topparent:checkbox19.hide()
                            	topparent:tx_chek_processed_lbl.hide()
                            	topparent:checkbox20.hide()
                            END IF
                            
                            IF topparent:tx_payment_type.value="crc" 
                            	'Hide  check fields.
                            	topparent:tx_chk_number_lbl.hide()
                            	topparent:tx_chk_number.hide()
                            	topparent:checkbox19.hide()
                            	topparent:tx_chek_processed_lbl.hide()
                            	topparent:checkbox20.hide()
                            	'Show credit card fields.
                            	topparent:tx_credit_card_expire_lbl.show()
                            	topparent:tx_credit_card_expire.show()
                            	topparent:tx_credit_card_type_lbl.show()
                            	topparent:tx_credit_card_type.show()
                            	topparent:tx_credit_card_number_lbl.show()
                            	topparent:tx_credit_card_number.show()
                            end if	
                            
                            if topparent:tx_payment_type.value="chk"
                            	'Show check fields.
                            	topparent:tx_chk_number_lbl.show()
                            	topparent:tx_chk_number.show()
                            	topparent:checkbox19.show()
                            	topparent:tx_chek_processed_lbl.show()
                            	topparent:checkbox20.show()
                            	'Hide credit card fields.
                            	topparent:tx_credit_card_expire_lbl.hide()
                            	topparent:tx_credit_card_expire.hide()
                            	topparent:tx_credit_card_type_lbl.hide()
                            	topparent:tx_credit_card_type.hide()
                            	topparent:tx_credit_card_number_lbl.hide()
                            	topparent:tx_credit_card_number.hide()
                            END IF
                            
                            end

                            Comment


                              #15
                              RE: radio buttons

                              A similar Action Script using the same "crc", "csh" and "chk" fires under the OnChange event on the radio buttons and that also works just fine....
                              Depending on the choice, the action script hides all, hides one-shows the other, etc...
                              It seems to work whether you use numbers or character variables...
                              D

                              Comment

                              Working...
                              X