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

Adding a fake field

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

    Adding a fake field

    Alpha 5, V10.5 web app.

    I have a table that tracks mileage, starting and ending, along with date. I didn't add a field to keep track of the total, avoiding the whole calculated field subject.

    Is it possible to have a field in Alpha 5 that actually does not exist? Something that can calculate the field in a grid after it is entered, but goes away when the browser is closed.

    Now I understand I could do this outside of Alpha with a view (MySQL) but I was hoping to do everything pretty much with Alpha. (And I would have to learn how to create a view.)

    Thanks for any assistance.

    William

    #2
    Re: Adding a fake field

    Alpha does have calculated fields that exist only in memory.
    There can be only one.

    Comment


      #3
      Re: Adding a fake field

      Thanks for the quick response. After your response, I looked again, and I think I figured it out.

      I tried using the logicalRecNo, and turned it into a calculated field. Seems to be working. Unfortunately the summary values section has disappeared for this field. But it does seem to work.

      Is this what you meant?

      Comment


        #4
        Re: Adding a fake field

        I was thinking of this.
        There can be only one.

        Comment


          #5
          Re: Adding a fake field

          William,

          If you are using a web app and MySQL, then you can create a field in the select statement, such as
          Code:
           
          SELECT startmiles, endmiles, (endmiles-startmiles) AS drivenmiles FROM milehistory
          This shows history, but not as you enter.

          or you can use
          Code:
           
          SELECT startmiles, endmiles, 0 AS drivenmiles FROM milehistory
          and set the calculation in the field properties in Alpha. This will show results as you enter.

          In either case, the summary functions will be available.

          Unfortunately for me, I haven't been able to get the summary functions to work on Alpha calculated fields. It shows the label "Total" and a value of 0.
          Pat Bremkamp
          MindKicks Consulting

          Comment


            #6
            Re: Adding a fake field

            Originally posted by Stan Mathews View Post
            I was thinking of this.
            Maybe I am stupid, but where do I find this? I searched Alpha Wiki and cannot even figure out where this image is from, nor how to get to that specific genie. It looks similar to the query (AlphaDAO) though.

            I have located the genie button with the linked grids, but I do not find anything that builds a calculated field, nor matches the image you linked too.

            Comment


              #7
              Re: Adding a fake field

              hmmm....bubble help of the Stan's image told me that it was a grid....which is from the web side.... So I opened up the web control panel, chose to create a grid, and Stan's image appeared. Try it and see.....
              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


                #8
                Re: Adding a fake field

                Okay, I finally found it. I was always going under the AlphaDAO query, but it was under Alpha 5 .dbf.

                When creating a grid, Alpha 5 warns that it is better to use AlphaDAO. But still I cannot figure out what to put into the Calculated fields on that page. Everything I have tried has given me an error, and has not created the virtual field I am looking for.

                I went ahead and created a calculated field in my table. It does work, although I see no reason to store the information in the database, plus it violates the rules set up by the Mere Mortals book. But there was no problem with the expression in the field, and I even have the total at the bottom.

                But I would still like to figure out what I am doing wrong, or not understanding. I currently have 19 tabs open in Firefox searching the WIKI, these forums, and even Google.

                And Pat, the expression does work, although it says I need a primary key field. I used Navicat, instead of typing in all the code directly. I am currently using the lite version, with the intent of getting the full version sometime before my app goes live. Unfortunately the lite version doesn't give access to the view builder, which i assume is like the grid builder.

                Anyway I was under the impression that I could use Alpha to do anything a view would do, which is why I never built any views.

                Comment


                  #9
                  Re: Adding a fake field

                  I didn't know there was a "Lite" version of Navicat. If you are planning to buy the "Pro" version and can spring for it now, then it is well worth it. I can't imagine not using views.

                  That said, a view is just a predefined select statement. It saves time and a lot of brain twisting in complex relationships. But, if you pick "Select statement" instead of "Table", you can type in the statements I suggested right in the Alpha query tab and not have to put an extra field in your table.

                  Pat
                  Pat Bremkamp
                  MindKicks Consulting

                  Comment


                    #10
                    Re: Adding a fake field

                    Originally posted by Pat Bremkamp View Post
                    I didn't know there was a "Lite" version of Navicat. If you are planning to buy the "Pro" version and can spring for it now, then it is well worth it. I can't imagine not using views.

                    That said, a view is just a predefined select statement. It saves time and a lot of brain twisting in complex relationships. But, if you pick "Select statement" instead of "Table", you can type in the statements I suggested right in the Alpha query tab and not have to put an extra field in your table.

                    Pat
                    Ah, select statement instead of table. Exactly what I was looking for, works perfectly.

                    Thank you very much.

                    Comment

                    Working...
                    X