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

Signature capture in SQL table

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

    Signature capture in SQL table

    This is a little complicated. I have a VFP application tied to SQL Server data that we are extending to mobile devices using Alpha Anywhere. One of the functions we need to do is to be able to capture a signature on delivery of an order and then be able to produce this signature on an invoice (after order is shipped) which is generated out of the VFP application, so it is a standard VFP report form.

    So, my questions are (plus a few at the bottom):
    1. What method should I use for the signature capture?
    2. What file type should the data be stored in?
    3. How can I get that to display on the invoice?

    It looks like the signature control stores as a PNG image, which VFP can't directly read.
    The ink control signature is stored in an ASCII format, which looks promising, but is there some method of converting that on the fly into an image that I can then use?
    Is there some type of COM control or something that will read that into an image?

    I'm assuming that this is possible to do, but I am just not seeing the forest through the trees at this point, so any pointers would be appreciated.

    #2
    Re: Signature capture in SQL table

    I use the ink control and on an iPad. I store it in a varchar(MAX) on SQL. On the report, I use the Override type of "Ink Image".

    It is all working well.

    Comment


      #3
      Re: Signature capture in SQL table

      Just for clarification... could you elaborate on exactly what control you're using for a signature? There are 4 controls in Alpha that can be used for Signatures.

      Yes... the SignatureCapture Control stores the signature as a PNG... Blob in SQL.
      The Ink Control - its format - is a nasty concoction of Alpha's... proprietary... very unfortunate as it's creator, and Alpha, have no interest in doing anything with it... no interest in detailing or exposing its format. It looks like this... right? #A5Ink version 1.0 settings %json% {"page":{"width":5,"height":3,"unit":"in

      I've asked, for years, that its format be explained so that we could do things like draw arrows, circles, anything... but... nothing. Too bad.

      Does VFP understand base64 image strings? If so, then you could convert the PNG image to base64 and store that in another field. You could do this either on the Client-Side with Javascript or Server-Side with XBasic... or even within SQL Server... on a Trigger.

      If you really want to use the Ink Control... then XBasic has this function... a5_ink_to_png. Once in a format the world understands... you can convert it to something else.

      https://www.alphasoftware.com/docume...20Function.xml
      Last edited by Davidk; 03-02-2018, 12:15 AM.

      Comment


        #4
        Re: Signature capture in SQL table

        David,

        Thanks for responding. I haven't determined what control to use at this point as I am trying to figure out what the best way to make it work is in our environment.

        But, I went with your information and came up with a workable solution for either the Signature Capture control or the Ink control using a server side call out in the afterDialogValidate to save the file in a server shared folder that is globally accessible. I was able to then use that information to generate it onto a Visual Foxpro report form. So, I have a proof of concept and that is what I was trying for. I wouldn't have been able to do it without the information you provides, so it is greatly appreciated. I'm still not sure which control should be used, but the method will work for either of them using either the png_to_bitmap if working with the Signature Capture control or the a5_ink_to_png and then the png_to_bitmap if working with the Ink control.

        Do you have any pros and cons with which one you consider to be better? I did notice that with the a5_ink_to_png, I could control the size as well and playing around with that allowed me to get a good file size that was still excellent when printed, so I may stay with that, but if there is a legitimate reason to not work with that, I would like to know for the long run.

        Thanks again.

        Comment


          #5
          Re: Signature capture in SQL table

          I think either would be fine. I don't know why Alpha would introduce another format... but there you go. Sometimes I think it's a process of "we can do it, so we will"... instead of "we can do it, but should we". Seems like a bit of a rogue move... but there you go.

          If they'd document it that'd be nice, but requests are falling on deaf ears.

          Comment

          Working...
          X