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

Urgent Help Needed

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

    Urgent Help Needed

    Hi,
    i�m using A5 since a few years now and everytime i discover new things .
    For example,the problem i�m having now is about a VideoRent app.
    I know that i can make an MovieId as "unique" so there is no duplicates.
    But you ever tried to make a simple Video Rent app ?
    Well,it�s normal that a guy want to watch again a movie he rented a year before,
    but when i put the MovieId i cannot choose if i want or not re-rent that movie.
    I mean there is no exeptions,if it is a duplicate record it does not accept the MovieId.
    Strange thing......
    So here i�m again asking for an help.
    Do you have some idea or tip about this matter ?

    Remember that i should have a message in the moment i insert the MovieId and then Enter,
    telling me something like this:
    "Thi movie was rented in "date",do you want to re-rent ?"
    "Yes" carry on
    "No" Abort

    Any help would be appreciate,without it i can�t go on in build my app.

    Thanks to all.

    Best regards from Claudio

    #2
    RE: Urgent Help Needed

    Claudio,

    Bill gave you the answer in a previous message. Substitute your values for his model. If you cann't get it to work, post your expression giving table_name and index name, - though you can hardly miss with his formula.

    Msg ID: 56325
    Subject: RE: About duplicates
    Author: Bill Warner
    Date: 03-13-2002 08:51
    File:

    You might try this:

    IF exist(value,"table_name","index_name")
    ' message and/or code here

    In the EXIST function shown, VALUE is a value derived from the current record, such as CUST_ID+CODEID; INDEX_NAME is the name of the index in TABLE_NAME that will identify the buyer and product. For example, you might create an index (called INDEX_NAME in the example above) that would sort on CUST_ID+CODEID, to identify the customer and product, so you know if a specific customer bought a specific product.

    Comment


      #3
      RE: Urgent Help Needed

      Maybe i explained myself in bad english,i know and i�m sorry for that.
      The problem is that does�nt work,maybe i dont know where to put this formula and i dont know how to write the message.

      Thanks anyway.
      Claudio

      Comment


        #4
        RE: Urgent Help Needed

        Assuming you have a set in which the parent table is CUSTOMER, there is a one-many child (RENTALS), and a one-one link to RENTALS called MOVIES; also assuming that RENTALS has the fields MOVIEID and CUSTID in it.

        When a customer comes in, you find their name, and then put the movie in the embedded browse (RENTALS). You want a message to appear when they have already rented that movie.

        Here's the script:

        IF exist(movieid+custid,"tablename.dbf","movie_cust")
        ui_msg_box("REPEAT","You have already rented")
        'whatever code you want when there is a repeat
        END IF

        First, you can make the above a global script called REPEAT (or other name). Then go to the field rules for the set, click on EVENTS, find the movieid field in the one-many child, and put in the ONWROTE event:

        script_play("repeat")

        This should do it for you. good luck.

        Comment


          #5
          RE: Urgent Help Needed

          CV

          IF exist(value,"table_name","index_name")
          UI_MSG_BOX("Notice","You have previously rented this video")
          End IF

          Put the above script on the OnDepart event of a field on your form where you enter the Video name or number.

          You will need to create an index that combines CustomerID and VideoID.

          Tom

          Comment


            #6
            RE: Urgent Help Needed

            First of all i want to thank you all for your kindness and help.
            I thought the best thing to do is to send to you a little
            app (17 kb) like this we can understand more about my little
            problem.Hope you dont mind.

            Thanks again and i wait anciously for your comment.

            Best regards from Claudio.

            P.S.
            The app it�s just for formulas purpose.
            All the missing fields will be created in
            the existing tables only if i can solve the
            problems first.

            Comment


              #7
              RE: Urgent Help Needed

              Claudio,

              Here is one idea using the CanWrite event for the movie_id field in field rules. This may give you some ideas. I have added a logical field called "save_it" to the table. I added this to require a true value in this field to save the record. Without it, a user could press F9 with the cursor in the movie_id field and the record would save even if they pressed no on the message box. I added a default value for this field which initiallt sets the value to .F. and added a check to see if its value = .T. in the CanSave event for the table. It can be true only after the CanWrite event is completed.

              I also shortened your index names to 10 characters. Everytime I would save the table, Alpha would shorten the index names. It is a good idea to keep index names to 10 characters or less.

              Don't worry about your English. It is much better that my Portugese.

              Jerry

              Comment


                #8
                RE: Urgent Help Needed

                Thanks Jerry,i�ll try your ideas and i�ll let you know.
                Regards from Claudio

                Comment

                Working...
                X