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

Link Letter DB to Client DB

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

    Link Letter DB to Client DB

    Hi folks,
    I've drawn a blank here and hope one of you can enlighten me once again.
    I created a "Letter" table whuch allows the user to create many different letters.

    The Letter table fields are:
    Letter Description (Index)
    Date Letter Created
    Header
    Body
    Footer


    What I'm trying to do is have the user select a letter from the letter table and then have the user bring up another table (client) and tag each client that the user wants to receive the letter.

    Let's say I have an Un-Paid Dues report and 5 clients have not paid their dues for the 1st quarter. The user should be able to tag those 5 users in the client database and print the same letter for each of them (like a mail merge).

    I want the user to select which letter first from the letter menu either from a dropdown and then use the tag function in the client form. Once all clients are tagged, I will have a print button to produce the letters.

    Am I clear as mud?

    Please help

    #2
    Re: Link Letter DB to Client DB

    In the interest of good design, add a field to the letter table to give each letter some sort of id. Create a field in your client table to hold an id_to_be _sent. Link the two tables on the id or use the id in a lookup to decide which letter to send.

    Rough outline, anyway.
    There can be only one.

    Comment


      #3
      Re: Link Letter DB to Client DB

      I set up separete letters and that works fine however, it's not dynamic. I want the user to develope his own letters on-the-fly, save them to the table and when needed call one up and "select" the residents to send the letter to.

      I really want the letter table to be the primary and the resident table to be the secondary. On the form, is the letter table and an embedded browse to the right of the letter. I have a button to mark residents and when I say print lettr, I wan't to print the "current letter only" for all marked residents, not the entire letter table.

      Comment


        #4
        Re: Link Letter DB to Client DB

        Rudy,

        And yet a different way to do this.......

        You have to first have a way to send the same letter to multiple clients (a filter of some kind).

        Have a way to mark the client records--could just have a logical checkbox field.

        You could then call up on a form with embedded browse the client records that meet the criteria you have set--your example being clients who have unpaid dues for the first quarter and have the checkboxes set to true (checked)...in doing so you could uncheck or show more records that could be checked.....

        Then have your filter you have for sending the letters to send to only clients who have the True value in the checkbox.
        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: Link Letter DB to Client DB

          Hey Mike,

          Could I set up a 2nd common letter table ( 1 entry only) and on my main letter table copy the "current record displayed" to the common table. Then proceed to my letter form and tag my residents and print the tagged resident's letters from the common letter table?

          There is no realitionship between the resident table and letter table. I simply want to select a letter, tag the residents and print that letter. I already have a routine to mark records.

          Thanks

          Comment


            #6
            Re: Link Letter DB to Client DB

            Hi Rudy,

            I think you want to do more work than is necessary! :)

            The following I just did and it works I believe as you want. I had to create an email and a checkbox field and then used them on an embedded browse. Use your field names where indicated. I simply took an Action Script to send a generic saved letter and then converted to xbasic and modified it a little. I used a variable for the "to_param" . Your options may be different as well such as I sent the mail as RTF. If neccessary I could put together a small sample of this.


            Code:
             
            'Send a report, label, letter, form or browse layout as an attachment to an e-mail message. You can specify which records to send.
            
            dim shared lst as c
            lst=""
            if tablecount("YOUR TABLE","YOUR CHECKBOX FIELD NAME")>0
             lst=table.external_record_content_get("YOUR TABLE","alltrim(YOUR EMAIL FIELD NAME)","","YOUR CHECKBOX FIELD NAME")
                [COLOR=red]lst[/COLOR]=crlf_to_comma(lst)
              else
                ui_msg_box("Attention!","You have not selected any clients!")
            end if
            query.filter = ""
            query.order = ""
            to_param = a5_eval_expression([COLOR=red]lst[/COLOR],local_variables())
            cc_param = a5_eval_expression("",local_variables())
            bcc_param = a5_eval_expression("",local_variables()) 
            subject_param = a5_eval_expression("TEST_MULTI-MAIL",local_variables()) 
            message_param = a5_eval_expression("",local_variables())
            
            :Letter.Send("YOUR SAVED LETTER","RTF",query.filter,query.order,"default",to_param,subject_param,message_param,cc_param,bcc_param)
            LATER:If wanted, I am sure a similar way could be used to choose a letter if you have a "choice list" that you pick letters from by again using a variable to place in the Letter.send().
            Last edited by MikeC; 06-27-2008, 12:08 PM.
            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


              #7
              Re: Link Letter DB to Client DB

              Mike, Thanks for all your time and effort trying to teach an old dog like me. I kept saying letter howevre when I print, I want to use a Report, not Letter. The user can add a new letter to the letter table via letter_admin_form, then mark the residents from an embedded browse on the same letter_admin_form, then print the selected letter for all the marked resifents using a Report.

              2 tables, a resident table and a letter table. There is no relationship between the two.
              I set up a test db called testletter with the 2 tables however I can't fugure out how to perform the above mentioned procedure.

              If I email you the test table, do you think you can apply the procedure to it and email it back to me?

              I really do not understand the coding above, however, if I analyize your sent procedure, I can apply it to my app.

              Thanks,
              Rudy

              Comment

              Working...
              X