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

Companion Form for an Embedded Browse

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

    Companion Form for an Embedded Browse

    I have forms with embedded browses for child table records. I have a button(s) which opens companion form(s) for adding or editing child records displayed in the embedded browse. A companion form is opened to add new records. When closing the form and returning to the parent form, regardless of whether a new child record was created, the record focus in so far as the child table is concerned is automatically placed on the very last record of the pertinent embedded browse. When exiting the companion form back to the parent form shouldn�t record focus relative to the embedded browse be placed either onto the just created child record or back on to the same record that was focused if no new child record was in fact created?

    #2
    Re: Companion Form for an Embedded Browse

    Hi Douglas,

    I have what sounds the same situation, where I need to enter records into a another table that is not in the same set as the opening form, but is related. I do not have a browse on that form that needs to be refreshed. This new form is in a separate set but with same parent as the first form.

    This is how I do it.

    Save Record.
    Open Child form with a filter to match Job Number , enter all required records, there is a browse on this form.
    On Close button, Save Record and Close form.
    This returns the user back to the form at the same record they left it at.

    From what you are describing you are opening another form to enter child records which belong to the browse on the form you have just come from. Why not enter the data into the bowse on that form? Or, when you close the second form, open the first form with a filter which finds the correct record.

    Just a couple of thoughts.
    Regards
    Keith Hubert
    Alpha Guild Member
    London.
    KHDB Management Systems
    Skype = keith.hubert


    For your day-to-day Needs, you Need an Alpha Database!

    Comment


      #3
      Re: Companion Form for an Embedded Browse

      Keith, thanks for your suggestions.

      The issue I am confronting is only with the addition of new records using the companion browse. Editing records with a companion browse works perfectly fine; i.e. when closing the companion browse in the edit mode the record focus returns to the correct/same record in the parent form�s embedded browse. It just makes no sense to me that when creating a new record in a companion browse that the embedded browse focus back on the parent form should not be placed onto the newest record that was just created in the companion browse.

      I�ve attached two screen shots to help illustrate what I �m trying to accomplish.

      The first partial screen shot shows a parent form with an embedded browse titled �Rental Units�. Rental_Units is a child table that carries detail records for individual units. Much of the detail for each unit is also shown directly on the parent form under the heading �Rental Unit Details�. So the user can browse through the units in the embedded browse and their details are then displayed on the parent form. Nifty. I want to add new units by calling a companion form. Calling the companion form is pretty simple and straightforward. The problem is that when I exit the companion form after saving new records the embedded browse focus for �Rental Units� shown on the parent form always moves automatically to the last record of the browse, which likewise means that the child record fields displayed on the parent form also are those of the last record in the browse.

      The second screen shot shows the results after having added new units via the companion form. Note the embedded browse is now focused on the very last record of the child table (based on sort order). In fact the very last physical record was not the last record added in the companion form � it was the first and record 1A was the last added. I think the proper behavior should have the focus be placed on record 1A, not 2; i.e. the record last in focus in the companion form at the time it was closed. If not that one then at least maybe it should remain on or return to the child record that was in focus when the companion form was opened. In any case the last physical record of the sort order makes no sense.

      From what you are describing you are opening another form to enter child records that belong to the browse on the form you have just come from. Why not enter the data into the bowse on that form? Or, when you close the second form, open the first form with a filter which finds the correct record
      .

      I have played around with using a filtered form as you mentioned. But I have found one shortcoming that leads me not to want to use it for entering child records. When a regular form (not companion) is opened in the manner you are describing the parent form is not deactivated by A5. By that I mean the parent form can still be clicked on even closed with the secondary form being left open. With a companion form the parent form is always deactivated by A5 while the companion form is open and then reactivated when the companion form is closed. I haven�t yet figured out a simple way to accomplish the same result (deactivating and reactivating the parent) using a regular form. I still would just prefer the companion form operate in the manner that I've desxribed.

      Regarding the creation of the child records directly on the parent form. Two issues:
      1) Maybe I am missing something, but if child fields are directly displayed on the parent form, unless they are actually contained in an embedded subform, it isn�t possible to create a new child record without forcing the parent table into create mode as well, and
      2) There may be situations where not all child fields are going to be displayed on the parent form, thus necessitating the use of a companion or regular form to add complete new records.

      Comment


        #4
        Re: Companion Form for an Embedded Browse

        Hi Douglas,
        By that I mean the parent form can still be clicked on even closed with the secondary form being left open. With a companion form the parent form is always deactivated by A5 while the companion form is open and then reactivated when the companion form is closed.
        This is easily accomplished by opening the form as dialog. This will not allow any "movement" between forms until it is closed. One very important note about dialog forms (and a VERY useful one!) is that say you call the form from a button. This calling script can contain several actions after calling a form as dialog but they will not be performed until the form is closed. So you would open the form as dialog, do whatever, then close it...except it actually is still in memory and so the aforementioned calling script can then continue and use what was done on the dialog form. Now a VERY important thing is to make sure that the dialog form is closed completely at the very end of the script (it is not visible but was still in memory and this "second" closing closes it from memory also.). Action Scripting will take care of this normally but not always--if you do ever open a form as dialog and while working notice another or many instances of the same form (they will show as the same form name but with numeric suffixes), then it tells you that the dialog form was not closed completely.

        This is a very nice feature to have once you get familiar with the concept.
        Mike
        __________________________________________
        It is only when we forget all our learning that we begin to know.
        It's not what you look at that matters, it's what you see.
        Henry David Thoreau
        __________________________________________



        Comment

        Working...
        X