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

What Am I Doing Wrong?

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

    What Am I Doing Wrong?

    I am trying to figure something out but failed.

    I have a form and have a browse on the form with several fields.

    Two thing:

    1)
    I am trying to pass filed value to filter the browser. it works fine BUT it puts me to first parent record.

    Say I am on parent record id no. 2. while I am on that i am trying to filter data and as soon as I click filter button it puts me back to record number 1.

    What is really doing on and how do I fix this? If I am on record #2 I would like to stay on 2 and use the fileds to filter data out.

    2)
    Also, when I am using the filter I would like to show a messgge if the value does not exit in the browse table and don't do anything. How would i accomplish this.

    My project is attached.

    Also here is the code I am using to filter the


    Code:
    datafilter="(mainfilter = "+quote(mainfilter.value)+")"
    topparent:tables:producttable.filter_expression =  datafilter
    topparent:tables:producttable.query()
    end
    Attached Files

    #2
    Re: What Am I Doing Wrong?

    Mark,

    Searching the child records from one to many set's form has the problem and see Learning Alpha Five. They have a few article about the query on child tables.

    The Child record searching is not simple as you think and maybe, you have to Re-design of your structure ...

    Comment


      #3
      Re: What Am I Doing Wrong?

      Any references?

      Comment


        #4
        Re: What Am I Doing Wrong?

        It works in term of filtering but the main problem is the parent record goes to the my 1st record.

        Comment


          #5
          Re: What Am I Doing Wrong?

          Mark,

          I think your code is fine with in one table and but
          I think after found the records from child table, A5 is forced to go the first record. I could be wrong and read the articles from Learn Alpha...

          Comment


            #6
            Re: What Am I Doing Wrong?

            I didn't look at your code, but if you are using xbasic, should be a snap - I have had this issue for years.

            define a global variable in the auto exec

            dim global rnum as n
            (rnum for record_number)

            then in the code that runs the query say

            dim global rnum as n
            t=table.current(1) 'the parent
            rnum=t.recno()

            'run the query

            then
            t=table.current()
            if t.recno() <> var->rnum
            parentform.index_set("")
            parentform.find(var->rnum)
            Cole Custom Programming - Terrell, Texas
            972 524 8714
            [email protected]

            ____________________
            "A young man who is not liberal has no heart, but an old man who is not conservative has no mind." GB Shaw

            Comment


              #7
              Re: What Am I Doing Wrong?

              Hi Marrin:

              Can you give me a sample project? I am not familiar with with instruction you provided, and x-basic.

              Thanks.

              Comment


                #8
                Re: What Am I Doing Wrong?

                If you have logmein or similar, send me a link to get on your computer, and I'll see if I can help you fix it - it's too time consuming to write an app.
                Cole Custom Programming - Terrell, Texas
                972 524 8714
                [email protected]

                ____________________
                "A young man who is not liberal has no heart, but an old man who is not conservative has no mind." GB Shaw

                Comment


                  #9
                  Re: What Am I Doing Wrong?

                  Sent you my contact number to call or can I call you?

                  Comment


                    #10
                    Re: What Am I Doing Wrong?

                    Hi Martin:

                    One new issue. The filter works great for existing parent record but the filter shows the data for few seconds and then disappears after that. This only happens when I am creating a new record.

                    Any help would be great! Screencast is attached.

                    thanks.
                    Mark
                    Attached Files

                    Comment


                      #11
                      Re: What Am I Doing Wrong?

                      Mark, your questions are valid.
                      To be of use in the future please start a new thread for each problem and title it appropriately so the help given will serve others with similar problems.
                      As well as attract more relevant help for the topic.
                      Like "Filtering child records shows then disappears creating a new record"

                      Then explain what is disappearing
                      "..filter shows the data for few seconds and then disappears "

                      Comment


                        #12
                        Re: What Am I Doing Wrong?

                        Mark,

                        The filter works great for existing parent record but the filter shows the data for few seconds and then disappears after that
                        That is right and It should be that way. I assume that you want to do this ... filter with group from product table and see it in a form. or ....

                        Comment

                        Working...
                        X