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

Lookups & Active Link Tables

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

    Lookups & Active Link Tables

    Hi,

    I'm toying with converting my current website dbf's to mysql tables and using active link tables.

    A major part of the current system core workings rely on lookups, for the life of me I can't get any lookup function to work on an active link table.

    Anyone had any joy or have I missed something?

    Regards JohnMcc

    #2
    Re: Lookups & Active Link Tables

    Lookups how? Table/field rules ones? Or lookup grids? If you just want to display a list of choices from an SQL table, in a grid or dialog component, you shouldn't use active link tables - I think with the latest update if you try to create a grid based on one, then it warns you not to - active link tables keep the connection to the db open which is not ideal for web apps.

    Why not just display the values from the SQL table directly, in a dropdown or combo box?

    Comment


      #3
      Re: Lookups & Active Link Tables

      Hi

      Sorry for my ambiguity, I meant the xbasic functions lookup(), lookupc(), lookupn() etc.

      lookupc()\lookupn() etc dont work as they dont seem to have access to the indexes of the active link table.

      Not sure on why lookup() doesnt work though.

      regards John
      Last edited by JohnMcc; 05-09-2008, 04:12 AM. Reason: grammar

      Comment


        #4
        Re: Lookups & Active Link Tables

        Originally posted by JohnMcc View Post
        Hi

        Sorry for my ambiguity, I meant the xbasic functions lookup(), lookupc(), lookupn() etc.

        lookupc()\lookupn() etc dont work as they dont seem to have access to the indexes of the active link table.

        Not sure on why lookup() doesnt work though.

        regards John
        Ah! Well yes the lack of indexes (indices?) is the problem, I know I did try it with lookup() before but with the SQL_Lookup() functions etc. it is just more convenient and reliable anyway - there is no need to use the active link table for everything when you can grab what you want directly from the SQL database :)

        Comment


          #5
          Re: Lookups & Active Link Tables

          Thanks for the advice NoeticCC

          I'm gathering active link tables are not the way forward for a web application then...

          John

          Comment


            #6
            Re: Lookups & Active Link Tables

            Originally posted by JohnMcc View Post
            Thanks for the advice NoeticCC

            I'm gathering active link tables are not the way forward for a web application then...

            John
            Indeed - web apps have always been able to update SQL tables anyway, and active link tables are geared towards desktop use. They are very handy for writing maintenance or data entry desktop modules for web apps, but not really the way to go for web apps themselves.

            If you need to display data from SQL and dbf tables, I guess a mapped table might work, but I haven't tried this so far.

            Comment


              #7
              Re: Lookups & Active Link Tables

              As of the last patch, you should now be able to reference mapped tables from WAS pages using Xbasic, haven't tried it but this might work for lookups that need to combine dbf and sql tables.

              They also fixed some problems with field rule table lookups referencing active link tables in a recent patch, so perhaps this has also fixed the problems with the lookup functions on a-l tables?

              They also changed it so you can't select a-l tables as grid sources at all, but it's faster to use a view or table directly from the SQL database anyway.

              Comment


                #8
                Re: Lookups & Active Link Tables

                http://downloads.alphasoftware.com/A...easenotes.html

                Comment


                  #9
                  Re: Lookups & Active Link Tables

                  Originally posted by JohnMcc View Post
                  Hi,

                  I'm toying with converting my current website dbf's to mysql tables and using active link tables.

                  A major part of the current system core workings rely on lookups, for the life of me I can't get any lookup function to work on an active link table.

                  Anyone had any joy or have I missed something?

                  Regards JohnMcc
                  we have been able to repeat your problem with active-link tables in a Web application under the following conditions:

                  1. the active-link table uses a named connection.
                  2. there is no Database (.adb file) open (which would always be the case if you are using the stand alone Application Server, as opposed to the Server built into the full copy of A5).

                  In the mean time, if you convert your active-link definition to use an explicit connection string (right click on the table, select Active-Link, Utilities) it will work.

                  we will fix this.

                  in general, however, in a Web application, we prefer to see direct use of AlphaDAO to communicate with server databases, rather than going through active-link tables. using AlphaDAO directly is more efficient.

                  Comment


                    #10
                    Re: Lookups & Active Link Tables

                    Hi,

                    Again, thanks for all the help and advice.

                    Much appreciated

                    John

                    Comment

                    Working...
                    X