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

Fly-out forms wanted

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

    Fly-out forms wanted

    I have a customer table containing 2 sets of address fields, say billing and delivery. I would like the main record creation card just to show the billing fields. I would like all the delivery fields to fly out in some way from the main form. I want these fields to default conditionally to equal the billing fields.
    I placed an action button on the main form that opens a second form containing the delivery fields.
    The script is
    "
    DIM layout_ptr as P
    layout_ptr = :Form.load("Main_Delivery")
    layout_ptr:tables:main.filter_expression="SORTKY = '" + SORTKY.TEXT + "'"
    layout_ptr:tables:main.order_expression=""
    layout_ptr:tables:main.query()
    layout_ptr.show()
    layout_ptr.activate()
    "
    This doesn't work as I want, probably because the record has not yet been saved from the main form. But if it is saved first, the defaults no longer operate on the delivery form.
    I tried using a sub-form instead, but this does not offer the 'fly-out' capability and cannot be resized.
    Should I be making the delivery addresses a separate table within a set?
    Or can the above xBasic be modified to work as I want (I have not learned xBasic yet).


    #2
    RE: Fly-out forms wanted

    Ian,

    This is a case where you may want to use a tabbed subform, and put the delivery address fields on the second page of the tabbed object.

    Unlike other programming environments with which you may be familiar Alpha Five forms are always 'bound' to the tables upon which they are based. If your primary address fields and your delivery address fields are in the same table, when you open your new form to enter the delivery address values, you've opened a second instance of the same table. That instance of the table doesn't 'know about' the first instance, and can't see the record you were working on because it hasn't been saved yet. Hope this explanation clarifies things for you.

    -- tom

    Comment


      #3
      RE: Fly-out forms wanted

      Thanks.
      I've had a quick look at tabbed subforms.
      (Confusingly, they are called Tagged Objects in the program and Tagged Subforms in the Help - there seem to be quite a few of these discrepancies in Help!).

      So I could have fields that are only visible if you click on the second tab. But won't the object still take up all the space required by the fields on the main form?
      If the size of each tab could be different that might solve it, but this doesn't seem to be the case.

      I am aiming for a set of fields that are optional when creating a record. They appear only when asked for, and take up no screen space otherwise.
      When they do appear, they may be set to default to equal others fields in the same record. (They must only default if the cursor enters the field).
      I suspect you could have some code to save the record before the optional fields appear, in which case a separate form would know about them.
      But if I understand it right, defaulting can only happen when the record is first created, so this would not work.

      I have experimented with a set, and this would probably do the job. But is there a simpler way?

      Regards, Ian.

      Comment


        #4
        RE: Fly-out forms wanted

        Ian,

        Once you get more familiar with Xbasic you will realize that there are several different ways to achieve what you're looking for.

        I think the easiest way would be to put the delivery address fields in a separate table, along with a field (like customer number) to identify, uniquely, the customer to whom the delivery address belongs. Then link this second table one-to-one to the main table, using the customer identifier field as the key.

        Base your form for the delivery address on the second table.

        Put a button on the main form to open (load) the second form when the user needs to enter a delivery address. Pass the customer identifier field and default address values to the second form. There's an example of how to do this in the Code Archive message forum, it's called something like 'Passing Values Between Forms".


        Another approach would be to use the same two table set I've just described, but base the data entry form on the set, instead of on the main table, alone.

        Then drop a tabbed subform object on the form. Put the fields from the main table on tab page1, and the fields for the delivery address on tab page2. If you do this, check out the FAQ in the Tech support section of this board because the tabbed subform object probably will need to be tweaked to behave as you will want.

        -- tom

        Comment


          #5
          RE: Fly-out forms wanted

          Thanks again.
          I've found the Passing Values example and will look at that.
          Could you help me find the Tech Support section and the FAQ you mention?
          Ian

          Comment


            #6
            RE: Fly-out forms wanted

            It sounds to me like what you're after is a "conditonal object" for your form. Check out what the A5 documentation and help have to say about them and see if that isn't close to what you want.

            Comment


              #7
              RE: Fly-out forms wanted

              Ian, sorry. My mind played a trick on me. The FAQ I had in mind is not here in Tech Support section of the alpha Five web site. It's the FAQ article at www.learn alpha.com

              go here:

              http://www.learn alpha.com/FAQs/FAQs.htm

              -- tom

              Comment


                #8
                RE: Fly-out forms wanted

                Thanks - that's helpful. Now I can at least have a sort of tabbed subform that is completely hidden when not needed.
                But it still takes up space on the main layout.
                What I was thinking of was a subform that has its own window, so that no space is taken up on the main layout (except for a button of some kind).
                I think I can do this with a set of two tables - I just wanted to be sure there was no simpler way.
                Ian

                Comment


                  #9
                  RE: Fly-out forms wanted

                  If your billing and delivery address fields are all the same size, a conditional object would not take up more space. If the only reason you are creating a second table is because of space on your main form, try using a conditional object.

                  Comment

                  Working...
                  X