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

filter for embedded browse

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

    filter for embedded browse

    I am going nuts trying to filter an embeded browse with what I'll call a compound filter expression. There are six fields involved in the filter. Specifically I want to display in an embedded browse any missed punches. There are six fields holding the time stamps. Let's say the fields are a,b,c,d,e,f. I can use several query methods in xbasic in the OnInit event to work for a simple query such as "a='' .and. b""''" . The problem is that I cannot get the filter to work if I combine this with another simple expression such as
    ("a='' .and. b""'')+ ".or." +("b='' .and. c""''")

    The compound expression works, but the browse data has changed to that of the first record in the parent table, rather than the record that was queried by a password entry. Even odder, the parent form of the browse has the correct record displayed in it's fields which was queried from the password entry. It is just the embedded browse which has changed parent records. I have tried setting a filter in the form properties and that works fine for a simple expression, but a compound expression is ignored, but at least the browse data is not changed.
    Thank you in advance for any suggestions,
    Mark

    #2
    RE: filter for embedded browse

    I had a similar situation (I think--if I read your post correctly). I was using a filtered browse in ver 4.5 which worked fine. (Although one of the people who responded said it should not have). The suggestion was to run a query when the form whic hold the browse is opened. That seems to have done the trick.

    Regards
    Jim

    Comment


      #3
      RE: filter for embedded browse

      Jim,
      I did run the queries in the OnInit event as well as trying to run them off a button. I wonder if these query methods are not capable of compound expressions in conjunction with an embedded browse. I can do something similar using the table_open() method and I assign each filter expression to a variable. I combine the variables as follows: query.filter=filter1+".or." +filter2 etc for all five filters. Then use qry=tbl.query_create(). This queries the table just fine, and I can check it for results, but it does not show up in my browse. I include a variable containing the appropriate employee_id in the filters. I've tried with and without the employee_id on the form.
      Thans,
      Mark

      Comment


        #4
        RE: filter for embedded browse

        While experimenting, I have found that when a form with embedded browse is based on a table, then it works just fine even with the most complicated compound filter expressions. When the form and browse are based on the set, that is when it does not work. I tried updating indexes also for the tables and set. I guess I'll just base my form on the table rather than set for now, but hopefully someone can tell me what I may be doing wrong.

        There must be something about basing a form with embedded browse on a set as compared to a table that I do not understand. Any help is greatly appreciated.
        Thanks in advance,
        Mark

        Comment


          #5
          RE: filter for embedded browse

          Mark,

          Use the query genie. It should handle what you want unless you've a super complex query.

          Selwyn has provided quite a number of Genies to do complex things and it's a lot easier and quicker than T&E w/XBasic. After you get it working, you can always convert it to Xbasic.

          kenn
          TYVM :) kenn

          Knowing what you can achieve will not become reality until you imagine and explore.

          Comment

          Working...
          X