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

How do I post the running balance of mulitple records?

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

    How do I post the running balance of mulitple records?


    If I have a table with the following fields.

    Item - Date - Balance and Running_balance

    149P 5/1/2008 $6500
    149P 5/20/2008 $-2000
    149P 6/1/2008 $-3000
    $1500 is the total and can accomplish this in my grid but I need to write some code to go through each "Item" and order by "Date" take the
    "balance" for record 1 and post to the "Running_balance" then on the second same record for item 149P post the Running_balance of the record before/above it plus the records Balance and post to the Running_Balance?

    Can anyone point me in the right directions thanks much

    Nicholas
    Nicholas Wieland
    LedgerSuite.com Corp
    [email protected]
    http://www.ledgersuite.com


    #2
    Re: How do I post the running balance of mulitple records?

    Hi Nicholas,

    Have you looked at the Operations, Summarize and Post?

    These two combined have proved very powerful in extracting selected values and then posting them to another table.
    Regards
    Keith Hubert
    Alpha Guild Member
    London.
    KHDB Management Systems
    Skype = keith.hubert


    For your day-to-day Needs, you Need an Alpha Database!

    Comment


      #3
      Re: How do I post the running balance of mulitple records?

      Nicholas, permit me to ask a couple of clarifying questions.

      1) you've posted to the desktop forum for A5v9. Are you asking a Web App Server question? In desktop apps "grids" are called "browses". If you're really talking WAS then you've posted to the wrong forum.

      2) When you say "post" to a field do you mean "assign"? I ask because we have "Post" field rules and "Post" operations in A5v9. When you say you want to "Post" something it suggests either a field rule or operation. Is that what you meant? I think it unlikely since the field you want to change is in the same table, and the post field rule and post operations are designed to take field values from one table and "post" them in a second. But your use of the term "post" creates confusion, and responses like Keith's.

      And now for a wild guess:

      If you're really talking about assigning a computed "running balance" figure to a field in a column of an embedded browse object on a form, then turn to Dr. Wayne's book, "Xbasic for Everyone". He has a step by step example that shows you how to do this in the context of a checkbook application. Assigning the field value as records are entered is only part of what you need. You should anticipate changes and deletions in previously entered records also. These would affect the current balance of course. Dr. Wayne's example handles all of this. Recommended.
      Last edited by Tom Cone Jr; 06-01-2008, 07:49 AM.

      Comment


        #4
        Re: How do I post the running balance of mulitple records?

        Tom and Keith,

        Thanks, I thought questions about general Alpha should be in here but you are right I am working with a web app, however this is a xbasic question I think.

        Tom I have used the operations feature to pull records from 3 different tables into the table I am talking about, yes it works great. However once the data is in the Item_total table I need to run something that will add all records for the item(multiple same items) and by the date field and take the balance of the 1st record add to the field running balance then on the second record for that "SAME ITEM" take the prevouis running balance and add it to that records balance and post the results into the runnning balance field for the 2nd record and so on until the record for that item is done.

        Keith were do I find that book?

        Thanks
        Nicholas
        Nicholas Wieland
        LedgerSuite.com Corp
        [email protected]
        http://www.ledgersuite.com

        Comment


          #5
          Re: How do I post the running balance of mulitple records?

          Hi Nicholas,

          The book that Tom referred to "XBasic for Everyone" may still be available from

          https://www.alphasoftware.com/shop/i...asp?PRODID=597

          I trust you have understood what Tom was explaining to you.
          Last edited by Keith Hubert; 06-01-2008, 01:01 PM.
          Regards
          Keith Hubert
          Alpha Guild Member
          London.
          KHDB Management Systems
          Skype = keith.hubert


          For your day-to-day Needs, you Need an Alpha Database!

          Comment


            #6
            Re: How do I post the running balance of mulitple records?

            I thought questions about general Alpha should be in here but you are right I am working with a web app, however this is a xbasic question I think.
            Nope. If you look more closely you'll see that the forums are grouped by type and you've chose the forum for A5v9 that deals with desktop apps. Your question will get better exposure if you post to the web app server forum that corresponds to the version you're using.

            Comment


              #7
              Re: How do I post the running balance of mulitple records?

              Originally posted by NicholasWieland View Post
              THowever once the data is in the Item_total table I need to run something that will add all records for the item(multiple same items) and by the date field and take the balance of the 1st record add to the field running balance then on the second record for that "SAME ITEM" take the prevouis running balance and add it to that records balance and post the results into the runnning balance field for the 2nd record and so on until the record for that item is done.
              Sounds like you have a cumulative total (what you call "balance"), and a running balance. Be that as it may, Tom is right. Peter Wayne's Xbasic for everyone gives detailed step by step instructions to do what you want - and take into account making modifications on the fly, after the fact.

              P.S. I can see why you posted your xbasic question here. One gets far more responses in this forum than the relatively low-activity WAS forum(s).
              Peter
              AlphaBase Solutions, LLC

              [email protected]
              https://www.alphabasesolutions.com


              Comment

              Working...
              X