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



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

Tablet Sample App: Checklist Items

  • Filter
  • Time
  • Show
Clear All
new posts

  • Tablet Sample App: Checklist Items

    The "pass/fail" controls in the sample tablet app are Custom Items created using a ViewBox. Dan Bricklin explains how these controls were built in two videos. The first video, shown below, covers how the Editor Set for the checklist items was built. It uses a combination of a ViewBox, CSS styles, and some javascript to create a button-like interface. In the second video, "Tablet Form Checklist Swipe", Dan Bricklin explains how the swipe and double tap behaviors were implemented.

    Tablet Form Checklist Items
    presented by Dan Bricklin, Alpha Software CTO

    Video Link:

    Check out the second video, Tablet Form Checklist Swipe, in the video library:

    Prerequisite Knowledge Base
    If you're unfamiliar with the sample tablet application or would like to download it, check out these resources:

    Have you created a Custom Item in your tablet application or made modifications to the sample app?
    Last edited by Sarah Mitchell; 09-11-2015, 05:27 PM.
    Sarah Mitchell
    Director of Customer Success | Alpha Software Corporation
    Get in the know! Join us for our Weekly Webinars: TransForm Tuesday and Wednesday's Alpha Anywhere Demo and Q&A
    Connect with us: Instagram | Twitter | Facebook | LinkedIn | YouTube

  • #2
    Re: Tablet Sample App: Checklist Items

    Hi Sarah,

    Thanks for the great app. I've created a fire inspection app using the example and have it connected to a sql server database. All is working as expected when an item(s) are swiped and the database is updated when a synchronization is run but when the pass/fail buttons are used I can see the field being changed accordingly and the record is marked as dirty but after a sync is run the data in the database is not updated. For some reason the pass/fail is not working to set the field swipe. Is there something I've missed that is causing this to happen?



    • #3
      Re: Tablet Sample App: Checklist Items

      Al, is it possible that the field data type could be the issue? What is it?

      I'd be interested in pursuing this issue of yours... but there are a number of ways to establish a pass/fail button. Is it in a ViewBox? A FormView? An Editor? Are you working from a List Control?

      I have a UX with a List Control, a FormView with several fields running off an Editor. But... one INT field... is shown in the List Fields tab as (L) and I have Transform data type set ToLogical.

      In the List it displays as true or false. I don't have an Editor for this field... it's a direct edit... and in the FormView it has Other Settings set to Has On/Off Value, Logical, true,false and it's set as a Switch item. Tapping on the Switch and saving causes the List to change to true or false and it does then sync to the table without issue.

      There are a number of ways to mix and match all this stuff... and I think it's easy to get wrapped around the axle... as I've done many times. Could you post a simple example of what you're working with?


      • #4
        Re: Tablet Sample App: Checklist Items

        Hi David,

        Thanks for your comments. I am used a copy of the Sample Tablet App listed earlier in this thread that is connected to a SQL Server database and most are of char() type. I'm also using a List Control, FormView and an Editor that has a ViewBox. I've been making an attempt to package the app up with an access database so I can post an example as you requested.



        • #5
          Re: Tablet Sample App: Checklist Items

          If it's too much trouble for the Access table, then you could dump a SQL Server table... with or without data... and I'll put that in. If the table isn't too complex you could just list the fields and I'll build it.


          • #6
            Re: Tablet Sample App: Checklist Items

            Hi David,

            Please find attached a scaled down version of the app. I've taken your advice and included two sql files along with the UX. Please use Al for the login and password.
            Attached Files


            • #7
              Re: Tablet Sample App: Checklist Items

              A scaled down version? Yikes... I'd like to see the full version. The sample is far too complex to debug in it's entirety... logins, offline data cache... so I went back to basics and started with the section that's giving you trouble... List1... and the non-updating of the Pass/Fail process. I copied List1 and pasted it into a new UX. Then I added the Detail View fields and the normal Save and Sync buttons.

              Running the UX at this point allowed me to select and edit a row... but the Pass/Fail fields would not update.

              This is because you have the Inspections table set to Read-Only in the List, Detail View, Table Properties. Correcting that... and turning off "Check for write conflicts" on 2 of the Date fields allowed my test UX to update Pass/Fail. I think your date fields may not be formatted correctly because they're showing odd dates when rendered... but that's a different issue.

              I couldn't test with your UX because there's too much going on in your setup that I don't have duplicated. So... test with yours and report back.

              BTW, the test tables were great... but you forgot to include Department in the Table script which made the full Data script fail. Easily corrected but thought I'd let you know.


              • #8
                Re: Tablet Sample App: Checklist Items

                Sorry for the problem with the Department table and the read only on Inspections. So I'm able to swipe an item and after I run a sync on that record the data is saved accordingly. But when I use the editor EDITORCHECKLISTITEM and ViewBox control radiobuttons to update the fields it reflects the correct color but after a sync the data is not saved and is returned to is original value.
                Thanks again for your help.


                • #9
                  Re: Tablet Sample App: Checklist Items

                  I think I've found this issue. Have a look in the EDITORCHECKLISTITEM property... Get value from editor. This is where we commit the value we just chose from the Radio button. The problem is that value is coming back as an array... not a straight value.

                  This code...

                  var vbobj = {dialog.Object}.getControl('radiobuttons');
                  return vbobj.value;
                  returns a array with a single entry.

                  So... it's messing with the save... giving a really odd error... but one that tells me we have a data problem.

                  The code should read...

                  var vbobj = {dialog.Object}.getControl('radiobuttons');
                  return vbobj.value[0];
                  Attached is a really simple UX working with your SQLServer Inspection table showing Pass/Fail working.
                  Attached Files


                  • #10
                    Re: Tablet Sample App: Checklist Items


                    Thank you so much for your help. I've made the change in my Inspections app and it's working great. I know I've got more to work on such as the date fields but I'm pleased that you were able to help with this problem. I'm sure that others who used the Tablet Sample as a template will benefit from this solution.

                    Thanks again!


                    • #11
                      Re: Tablet Sample App: Checklist Items

                      Excellent... glad it worked out... and thanks for your posted sample and data... it really helps. Real data-bound examples are so important in understanding how to work with the FormView and ViewBox controls. These are really powerful controls when used by themselves and even more so when used together.