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

Search bar not working when using phonegap

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

    Search bar not working when using phonegap

    Hello,

    I am a relatively new Alpha user and could do with some help using the "search" features of Alpha.

    I have got a working app which I have built for mobile (I eventually want to distribute the app on the app stores, android first). The app is very similar to the "Conference App" that Alpha uses to demonstrate the basic functionality of mobile apps. The data for the list is based on an MS Access database (which I have used connection strings to link to the list) and seems to be working well (i.e. My list is populated and when the user clicks on the list item it will open a panel with the specific information regarding that list item). Yay!

    However, I have also included a search feature both on the main page and the panel that includes the list. These searches are both keyword searches that filter the list down based on the keyword search. When I run the Live Preview in Alpha, this search feature works fine and does exactly what I want it to do. However, when I then deploy the app using the PhoneGap builder (and subsequently install the app onto my device for testing) the search feature does nothing and the buttons don't seem to even respond.

    Is there something that I need to do to point the search button and text box at the database that the list is using, because I am using phonegap or is this something that should just work (and i have therefore, done something wrong).

    Thank you in advance,

    Alex

    #2
    Re: Search bar not working when using phonegap

    Hello again,

    No one has replied to this last post despite lots of views. I am still having issues with the search feature on my mobile application. However, I have done some digging and I have noticed some stuff that will potentially make a bit of a difference.

    Firstly, I didn't mention before that I my database is a very simple database which has two tables that are linked. However, I am using a select query to gather the required information (all of the data across the two tables) and then loading that data into my List Control. To be honest, there isn't really any need to have the data stored in an external database because I am not recording anything and the data is static (i.e. A directory of websites that doesn't change). I have looked at the HTML file for my application and I have noticed that all of the information is included (because this is how the list is populated). Therefore, I think I should be able to run a search without needing to do any call-backs at all, as I am simply trying to apply a filter to the already loaded information.

    In an attempt to try things in a different way, I tried to build the data into the app permanently by setting the List Control up using static data, however, I must have too much information for this because it only let me add 54 or 120 records in the "Static Data - Text Import" feature. If I could add all the data in here I think I would have solved the problem.

    Therefore, I would really appreciate it if someone could let me know how to either:

    Add more data in the static data source property of the List control

    Or

    How to apply a filter to the list using the information that is stored in the HTML file for my application

    My eventual goal is to have my app running using phonegap (as explained in my previous post) where the search feature filters the data in the list. If this can be done (which I'm sure it should be able to) without having to make an external call back, I should be able to create my app using phonegap build and not require an external server at all (as the app is pretty much self contained). I would be happy to include the PhoneGap build link to my app in my next post if someone shows some interest or can help me further.

    Thanks in advance,

    Alex

    Comment


      #3
      Re: Search bar not working when using phonegap

      I wish someone would respond to your post. I am having the exact same issue.

      Comment


        #4
        Re: Search bar not working when using phonegap

        Hi Alex,

        I think what you need to do is include specific details about how you are performing your search. What Alpha tools are you using... what are you calling, etc. I don't think it really matters how you are populating your List control. Once populated you can run a client-side filter on that List a couple of different ways.

        Comment


          #5
          Re: Search bar not working when using phonegap

          David, I have created a very small app, mainly just to test PhoneGap. I have created a UX page with a couple of panel cards. One card has a Button, a text box and a list object. I enter text to filter the list data in the text box, then click the button which runs a Java action script that simply sets the filter on the list box. This works fine when ran on my development computer; however, does not do anything when ran on my android device. I have tried a couple of different variations, and all have the same outcome.

          Your help with this is MUCH appreciated.

          Comment


            #6
            Re: Search bar not working when using phonegap

            Again... you need to be very specific. "Java [sic] (Javascript) action script that simply sets the filter on the list box" leaves much to the imagination. Which specific action are you using (the exact name) and what are it's settings.

            Comment


              #7
              Re: Search bar not working when using phonegap

              David, does this show you what you are asking for? Again, it works fine on my desktop computer, just not after I send to PhoneGap.

              ListFilter.jpg

              Comment


                #8
                Re: Search bar not working when using phonegap

                Yes... now we're talkin'...

                Here's one of the best tips in the whole world... read, read, read the notes the Alpha gives you. Notes give you very specific information as well as clues to what might be going on if you're not getting the results you expect. The action you're using performs an ajax callback to do a server-side search. This is fine... but... since you're dealing with a callback... and PhoneGap Build... then your component must be published and the URL for Ajax Callbacks must be correctly set in the PhoneGap Build builder.

                Unless you really want to do a server-side search I would suggest you do a client-side search. The notes in the action you're currently using tell you how to do that. Use the List Control Actions action... or use the Javascript methods of the List control .filterListClientSide or .setFilter.

                Comment


                  #9
                  Re: Search bar not working when using phonegap

                  Yes... read, read, read is the BEST tip in the whole world! That was my problem. Thank you for your help.

                  Comment

                  Working...
                  X