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

Auto increment feature

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

    Auto increment feature

    I am working on creating a Proposal form and have a few questions:
    1. Is it possible to override the auto increment feature without manually turning it off. My form sometimes requires multiple pages which should have the same number.
    2. For the rich text field that I set up for the body of the proposal - is there a way to establish when the first page of typing is full? Currently I can type more than will fit on one page and don't know where to stop and go to a second page.
    3. I have a hidden field where I want to type the Proposal amount but not have it show when I print the form.

    Any help is appreciated.

    #2
    Re: Auto increment feature

    1. Is it possible to override the auto increment feature without manually turning it off. My form sometimes requires multiple pages which should have the same number.
    No
    2. For the rich text field that I set up for the body of the proposal - is there a way to establish when the first page of typing is full? Currently I can type more than will fit on one page and don't know where to stop and go to a second page.
    No
    3. I have a hidden field where I want to type the Proposal amount but not have it show when I print the form.
    Question is?

    Most will advise you that forms are for viewing and reports are for printing. You can import your form into a report.
    There can be only one.

    Comment


      #3
      Re: Auto increment feature

      Is it possible to override the auto increment feature without manually turning it off. My form sometimes requires multiple pages which should have the same number.
      It should not be necessary. The autoincrement should be for the current record not something elase in most cases.


      For the rich text field that I set up for the body of the proposal - is there a way to establish when the first page of typing is full? Currently I can type more than will fit on one page and don't know where to stop and go to a second page.
      May i suggest a little trial and error in sizing the rich text field so you don't go past the end. Meaning the square you make, you wouldtype down to the bottom and stop? You can also have a tab system and more than one rich text field(1 on each tab?).

      I have a hidden field where I want to type the Proposal amount but not have it show when I print the form.
      A conditional object can handle that. You can also mark a field to not print(I believe).

      As Stan so nicely suggested, PUT IT IN A REPORT for printing. It will solve so many of the problems. Believe me, most all of us have tried printing a form. Few have succeeded and most of thosed were with mixed success.



      .
      Dave Mason
      [email protected]
      Skype is dave.mason46

      Comment


        #4
        Re: Auto increment feature

        Linda,
        If there are other circumstances that dictate to not follow Stan or Dave's advice (unlikely!!), then it is possible to alter or take away field rules via xbasic and then reinstate them--as Stan said, no way to override. You also could use the form's OnTimer event to count the characters in the RTF field and have a message show up to let you know when that amount shows up---not accurate but would give you an idea. There may be a way to check number of lines and would be better but did not find a way. The following could be used for this if wanted....change the number of characters to suit and maybe have 1 second for the form's timer (too much "flicker" otherwise).

        Code:
        topparent.commit()
        dim tbl as p
        dim sv_cnt as n
        tbl=table.get("Your_Table_Name")
        
        string=RTF_FIELD_TO_TEXT("RTF_Name")
        sv_cnt=len(alltrim(string))
        
        if sv_cnt>=25 'change to however many is deemed necessary.
        msgbox("The page is full...")
        sys_send_keys("{BACKSPACE}")
        end if


        LATER EDIT: Just tried something else and seems to work fine for counting lines....so if you know how many lines in your rtf field coincide with a printed page then the following may be of use.
        Code:
        dim tbl as p
        dim shared sv_line_cnt as n
        tbl=table.get("Your_Table_Name")
        
        string=RTF_FIELD_TO_TEXT("RTF_Name")
        sv_line_cnt=line_count(string)
        if sv_line_cnt>=3 'However many lines make up a printed page
        msgbox("The page is full...")
        sys_send_keys("{BACKSPACE}")
        end if
        Last edited by MikeC; 09-23-2009, 01:22 AM.
        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


          #5
          Re: Auto increment feature

          Originally posted by Linda Bronson View Post
          Is it possible to override the auto increment feature without manually turning it off. My form sometimes requires multiple pages which should have the same number.
          As MikeC said, it is possible to alter or take away field rules via xbasic and then reinstate them. I have the following user defined function that I believe Stan helped me with that changes the Field Type Field Rule as desired. I don't know about what "manually" might mean for you. I have this on buttons, so it is manual, I guess, but I don't have to got to control panel and open the table in design mode and go to field rules. I'm sure there is a way to create some script with conditions to run it if absolutely neccessary. Here it is for what it's worth.

          I don't remember how I came up with the value for auto increment being - AutoInc - but that's what it is. I don't know what it is for Calculated, maybe - Calc ?. Anyway....To change from auto increment to user entry it would be:
          Code:
          FRFT_change("<tablename>","<fieldname>","AutoInc","User")
          To change from user entry to auto increment it would be:
          Code:
          FRFT_change("<tablename>","<fieldname>","User","AutoInc")

          Code:
          FUNCTION FRFT_change AS C (tablename as C, fieldname as C, start_type as C, end_type as C)
          	
          'This function is used to changes the Field Rule Entry Type between Auto increment, User Entry, and calculated
          
          DIM VMESS AS C
          VMESS = "This function requires exclusive use of the table and cannot be run when others are accessing the database"
          
          Ui_msg_box("FIELD RULE CHANGE MESSAGE",VMESS)
          
          dim tablename as C
          dim fieldname as C
          dim start_type as C
          dim end_type as C
          dim vpre as C
          
          vPre = "rul." +fieldname+".Data_type="
          
          dim ptr as P
          
          ptr = table.open(tablename,FILE_RW_EXCLUSIVE)
          rul = ptr.rules_get()
          rul.change_begin()
          evaluate_template(vpre + s_quote(start_type))
          rul.change_end()
          ptr.close()
          
          ptr = table.open(tablename,FILE_RW_EXCLUSIVE)
          rul = ptr.rules_get()
          rul.change_begin()
          evaluate_template(vpre + s_quote(end_type))
          rul.change_end()
          ptr.close()
          
          END FUNCTION
          Mike W
          __________________________
          "I rebel in at least small things to express to the world that I have not completely surrendered"

          Comment


            #6
            Re: Auto increment feature

            Make Another Table With An Autoincrement Field And Use That As A Lookup For Your Proposal Number Field. If You Need A New Number Just Add It To Your Autoincrement Table Then Select That No For Your Proposal Number.?????????? Good Luck

            Comment

            Working...
            X