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

Active link table questions

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

    #16
    Re: Active link table questions

    Mauricio, I agree and added your request to an existing Forum Support thread--

    http://msgboard.alphasoftware.com/al...334#post450334
    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


      #17
      Re: Active link table questions

      Thank you Mike I hope that someone at Alpha will take our suggestion
      Cheers
      Mauricio

      Comment


        #18
        Re: Active link table questions

        Originally posted by Selwyn Rabins View Post
        on the second question:
        i can't see any advantage in accessing local a5 tables as active-link tables rather than native tables. i have never tried it. in theory it might work using the Visual Fox Pro odbc driver. But if you did, you would loose long field names, all field rules and any extensions that a5 makes to the .dbf format.
        Hi, all.

        The above statement just caught my attention.

        Is it saying that I would not be able to set any field rules for active link tables? Aren't active link tables ordinary dbf tables?
        Jim

        Comment


          #19
          Re: Active link table questions

          Originally posted by jmatienza View Post
          Is it saying that I would not be able to set any field rules for active link tables?
          No, you can set field rules in them but if you used an ODBC driver to link to a DBF table, then you would not be able to use or set the field rules in the table you are linking to...

          Comment


            #20
            Re: Active link table questions

            Thanks, Andrea! I see I interpreted the statement wrong.

            So through active-link tables you can make field rules for backend database tables, as long as the backend is not itself a dbf table?

            This is a powerful feature indeed.
            Jim

            Comment


              #21
              Re: Active link table questions

              Originally posted by jmatienza View Post
              Thanks, Andrea! I see I interpreted the statement wrong.

              So through active-link tables you can make field rules for backend database tables, as long as the backend is not itself a dbf table?

              This is a powerful feature indeed.
              You can make rules BUT!!! They only get used if you use the active link table to update - or if you build in a routine that updates the field rules/calcs regularly.

              Comment


                #22
                Re: Active link table questions

                Would you clarify this for me, Andrea?

                Originally posted by NoeticCC View Post
                [Field rules] only get used if you use the active link table to update
                Field rules come into play mostly when entering new records, less often when editing existing records. Do these circumstances qualify when using active-link tables, without having to do programming outside the field rules facility?
                Jim

                Comment


                  #23
                  Re: Active link table questions

                  Originally posted by jmatienza View Post
                  Field rules come into play mostly when entering new records, less often when editing existing records. Do these circumstances qualify when using active-link tables, without having to do programming outside the field rules facility?
                  Yes, definitely no need to generally do any programming for inserting or editing records using active link tables - at least as long as you use a SQL database that has auto-increment capability... with Oracle for example you have to do a bit of coding to make auto-increment ID fields work properly but with mySQL it works wonderfully, and personally I find record amendments, queries etc. in Xbasic EASIER on SQL databases (NOT using active link tables) but that may well be because I have far more experience in SQL than with DBF tables.

                  In fact I have had great success converting several apps from DBF to mySQL with active links (the active link part so far only used for desktop with my developer copy rather than properly distributed tools as I generally tend to use desktop tools for admin stuff and the rest are WAS apps) where appropriate.

                  Some of the web-only ones I converted in as little as half an hour, once a recent patch made SQL-db stored images that are NOT Bitmaps possible to be used in web grids etc. by allowing you to specify the image type. E.g. our news & RSS feed pages* are 100% run by Alpha5 now (thanks to the rewrite module in Apache -which works almost exactly the same as stritran_smatch() in Xbasic - I can plant these bits painlessly in our main website which runs on a UNIX box), including a short news listing on the home page and more detailed listings with images.

                  The news items are currently entered or edited through an active link table, although I have not set any field rules because I am hoping to write a full web admin module for it soon so other users can add news items through a web interface.

                  http://www.charlesworth.com/

                  *OK the RSS feed is generated from an Alpha5 WAS page rather than BEING an a5w page of course

                  Comment


                    #24
                    Re: Active link table questions

                    Thanks, Andrea, for your incredibly helpful comments. What is it with auto-increment fields? They seem to be such a big issue among SQL databases.

                    I haven't made the plunge to V9 yet, though I find it terribly attractive. I'm still trying to learn Alpha Five on my current investment (V7). While I don't aspire to reach your level of expertise, I find your experiences very illuminating.

                    Alpha Five is truly a one-of-a-kind product!
                    Jim

                    Comment


                      #25
                      Re: Active link table questions

                      Originally posted by jmatienza View Post
                      Thanks, Andrea, for your incredibly helpful comments. What is it with auto-increment fields? They seem to be such a big issue among SQL databases.
                      I must admit in MS Access I always avoided auto-increments like the plague, however with mySQL, similar to Alpha5, when you optimize the table from mySQL Administrator, it resets the AutoIncrement numbers...

                      In Oracle on the other hand you need to use sequences to get the same auto-inc effect, which isn't as easy to work with from any application written against Oracle. It's not a big deal though, you just have to add a line of code in the CanInsertRecord event on a web grid (or OnSave events in browses for desktop etc) to grab the next sequence if a new item is inserted, e.g.

                      Code:
                      Dim NextVal as c
                      NextVal = sql_records_get("::name::TRK", "DUAL", "1=1","ELOGGER_USER_INFO_SEQ.NEXTVAL")
                      
                      DataSubmitted.EUI_ID = NextVal
                      And yes, Alpha5 is really rather special - I was impressed with the basic functions, but when I realised just how much you can do with a bit of coding I was blown away! :)

                      Comment


                        #26
                        Re: Active link table questions

                        I have a client who is working to migrate his fully working dbf based application to client server. As the first engine to try, they chose mysql. Unfortunately the primary function of the desktop application to manage set data (by saving parent id�s in each new child record) does not work. (or I have not configured it properly)

                        We do a simple one to many, two table set, using active link tables. Then to test, open the default form, add a parent record, then add a child record. The form sometimes give the illusion that it works, depending on the alpha build, but it does not.

                        Where the parent id should go in the child record, we get a null value, making the set totally unusable obviously. The child record gets created, but the link is never established because the null value never links to the parent.
                        Logical Design
                        Keven Thibeault
                        Boston, Massachusetts
                        Dwell in possibility

                        Comment


                          #27
                          Re: Active link table questions

                          Originally posted by kthibeault1965 View Post
                          I have a client who is working to migrate his fully working dbf based application to client server. As the first engine to try, they chose mysql. Unfortunately the primary function of the desktop application to manage set data (by saving parent id�s in each new child record) does not work. (or I have not configured it properly)

                          We do a simple one to many, two table set, using active link tables. Then to test, open the default form, add a parent record, then add a child record. The form sometimes give the illusion that it works, depending on the alpha build, but it does not.

                          Where the parent id should go in the child record, we get a null value, making the set totally unusable obviously. The child record gets created, but the link is never established because the null value never links to the parent.
                          I an unable to repeat any problem using my test data.

                          http://screencast.com/t/fH5NslFA

                          Comment


                            #28
                            Re: Active link table questions

                            I was able to repeat the problem using your test data.


                            you need to change the definition of your child_row table.

                            you currently have the header_id column set to allow null values.

                            this does not make sense as this is the linking field in the set.

                            if you edit the structure of the table and change the header_id column to be 'not null' then it will work.

                            we will change a5 so that in future, even if the column is set to nullable, it will work.

                            but in the mean time, the work around is trivial.

                            Comment

                            Working...
                            X