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

display logical field as checkbox in a list control

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

    #16
    Re: display logical field as checkbox in a list control

    That is getting me much closer, David! I am actually running an action to callback to an xbasic function that updates the value to true or false accordingly, then refreshing the list row so that other calculations in the view that react to the true or false value will show. The only trouble I'm having right now is that I populate some fields outside of the list with the onclick event of the list. I use the values in those fields in my xbasic funtion. It appears that clicking on the checkbox does not trigger the onclick event of the list. I can click elsewhere on the row and my fields do get populated. I tried putting the run action to populate in the javascript function but that didn't help. I'm tired and may not be making sense...
    Carol King
    Developer of Custom Homebuilders' Solutions (CHS)
    http://www.CHSBuilderSoftware.com

    Comment


      #17
      Re: display logical field as checkbox in a list control

      Correction to last post: I populate the controls outside of the list using the OnSelect event of the list box, not the OnClick event. I was away from computer when typing that last post. It appears that clicking the check box does NOT cause the OnSelect event of the list box to fire. Besides not running my action to populate those controls, my Xbasic function ends with a javascript command to refresh the list row ({dialog.object}._listRefreshRow('LIST1');) and that does not happen either, UNLESS I click somewhere else on the row. If I select the row by clicking on it some other way first before the check box, the OnSelect event of the list fires and then clicking the checkbox causes all my code to function properly, and the row gets refreshed showing the proper checked or not checked check box.
      Carol King
      Developer of Custom Homebuilders' Solutions (CHS)
      http://www.CHSBuilderSoftware.com

      Comment


        #18
        Re: display logical field as checkbox in a list control

        I solved my issue. My javascript function had a message box in it and I needed to wrap it in a Timeout function. The message box was firing so fast that the OnSelect of the list did not happen somehow.

        In case anyone is curious about my javascript function now, here it is:

        Code:
        function poCheckMark(row) {
        	//The first part of the code makes it so the check box immediately displays a check mark if checked
        	//or displays unchecked if unchecked, so that user feels like something has happened
        	//The runAction does an Ajax callback that updates the value on the server, closes the msg box, and refreshes the list row.
        	var currState = $('poCheckbox'+row).checked;
        	{dialog.Object}.__checkRow = row;
        	if (currState == true){
        		setTimeout("$('poCheckbox'+{dialog.Object}.__checkRow).checked=true;",50);
        		setTimeout(function() {
        			A5.msgBox.show('Updating Data On Server','<div style=\'padding: 20px;\'>Your data is being updated on the server.<br>It will take a moment to recalculate ECC and refresh the row after this message closes.<br>Please wait...</div>','none',function() {});
        		},100);
        		setTimeout(function(){
        			{dialog.object}.runAction('SetUsePOToTrue');
        		},100);
        	} else	{
        		setTimeout("$('poCheckbox'+{dialog.Object}.__checkRow).checked=false;",50);
        		setTimeout(function() {
        			A5.msgBox.show('Updating Data On Server','<div style=\'padding: 20px;\'>Your data is being updated on the server.<br>It will take a moment to recalculate ECC and refresh the row after this message closes.<br>Please wait...</div>','none',function() {});
        		},100)
        		setTimeout(function(){
        			{dialog.object}.runAction('SetUsePOToFalse');
        		},100);
        	}		
        }
        Carol King
        Developer of Custom Homebuilders' Solutions (CHS)
        http://www.CHSBuilderSoftware.com

        Comment


          #19
          Re: display logical field as checkbox in a list control

          Well, darn. I did all that work on checkboxes as per David's idea and they don't work on my Ipad...
          Carol King
          Developer of Custom Homebuilders' Solutions (CHS)
          http://www.CHSBuilderSoftware.com

          Comment


            #20
            Re: display logical field as checkbox in a list control

            Is it a requirement that the user click on the actual checkbox to interact with it... or is the action of selecting a row ok for turning the checkbox on or off?

            Comment


              #21
              Re: display logical field as checkbox in a list control

              User must click the checkbox. Actually there are 2 different check boxes on the line for different things and some hyperlinks and images that have on click events.
              Carol King
              Developer of Custom Homebuilders' Solutions (CHS)
              http://www.CHSBuilderSoftware.com

              Comment


                #22
                Re: display logical field as checkbox in a list control

                Screenshot of my list control
                image.jpg
                Carol King
                Developer of Custom Homebuilders' Solutions (CHS)
                http://www.CHSBuilderSoftware.com

                Comment


                  #23
                  Re: display logical field as checkbox in a list control

                  David, or anyone, do you think there is a way to make your checkboxes so that they will work on a touch screen like an Ipad?
                  Carol King
                  Developer of Custom Homebuilders' Solutions (CHS)
                  http://www.CHSBuilderSoftware.com

                  Comment


                    #24
                    Re: display logical field as checkbox in a list control

                    So... I asked Selwyn why the code David gave us for the checkbox will not work on a touch screen and his response is below. I tried just sticking that into the template for the logical field along with the other stuff already in the template and it just made the checkbox disappear completely. So... I failed and need some help interpreting Selwyn's answer...

                    Answer from Selwyn:
                    "that's because the list control by default handles all keystrokes.
                    you need to add the following to your template for the <Input> element

                    Code:
                    onkeydown="$e.stopPropagation(event);" onmousedown="$e.stopPropagation(event);" onmouseup="$e.stopPropagation(event);" ontouchstart="$e.stopPropagation(event);" ontouchend="$e.stopPropagation(event);" onclick="$e.stopPropagation(event);"

                    Here's what I ended up with in my template (that made the checkbox disappear)...
                    Code:
                    <onkeydown="$e.stopPropagation(event);" onmousedown="$e.stopPropagation(event);" onmouseup="$e.stopPropagation(event);" ontouchstart="$e.stopPropagation(event);" ontouchend="$e.stopPropagation(event);" onclick="$e.stopPropagation(event);" input type="checkbox" name="poCheckbox" id="poCheckbox{<ZeroBasedRowNumber>}" onclick="poCheckMark({<ZeroBasedRowNumber>});" value="value">
                    Carol King
                    Developer of Custom Homebuilders' Solutions (CHS)
                    http://www.CHSBuilderSoftware.com

                    Comment


                      #25
                      Re: display logical field as checkbox in a list control

                      Just an FYI. I gave up on this and reverted to using check box conditional images. Thanks for the help.
                      Carol King
                      Developer of Custom Homebuilders' Solutions (CHS)
                      http://www.CHSBuilderSoftware.com

                      Comment


                        #26
                        Re: display logical field as checkbox in a list control

                        Well, 3 1/2 years later.... I have decided to tackle this again. I have a UX with a list control and have put check boxes as per David and with other features I described above, etc. I have the checkboxes working on my laptop, but they still don't work on my Ipad. They don't do anything on Ipad. See message I put above about trying what Selwyn suggested for this and then how I failed. I haven't tried that again because it made my checkboxes disappear before. DAVID??? Have you gotten the checkboxes to work on a tablet? Or anyone else???

                        BTW, in my new UX, I figured out how to loop through the records in the list control, capture their primary keys, and then do my ajax callback and use Xbasic to update the values related to those checkboxes all at once, INSTEAD of each time a user clicks on the checkbox. If anyone is interested in how I did that, I'll try to explain it.
                        Carol King
                        Developer of Custom Homebuilders' Solutions (CHS)
                        http://www.CHSBuilderSoftware.com

                        Comment


                          #27
                          Re: display logical field as checkbox in a list control

                          What version/build of Alpha are you using?

                          Is this a Web app running on an iPad... or a Mobile PGB app?

                          Comment


                            #28
                            Re: display logical field as checkbox in a list control

                            Originally posted by Davidk View Post
                            What version/build of Alpha are you using?

                            Is this a Web app running on an iPad... or a Mobile PGB app?
                            I am on 3962_4772 build from December of 2016. It is a web app running on an Ipad. A few of my home builder customers like to bring up the application out in the field on their tablets and do their check marks.
                            Carol King
                            Developer of Custom Homebuilders' Solutions (CHS)
                            http://www.CHSBuilderSoftware.com

                            Comment


                              #29
                              Re: display logical field as checkbox in a list control

                              I realize that I could spend a lot of time trying to put this big component into mobile one, but, for now, I am just wondering if I can get the checkbox on the list control to work on a tablet. If not, I may provide the ux for people on desktops, and ALSO my current grid that customers use effectively on their tablets. (EXCEPT that grid is very slow opening and I'm trying to get away from that with UX)
                              Carol King
                              Developer of Custom Homebuilders' Solutions (CHS)
                              http://www.CHSBuilderSoftware.com

                              Comment


                                #30
                                Re: display logical field as checkbox in a list control

                                Post a simple, zipped, UX containing just a List Control with a couple of columns... one of which is your Checkbox. The Checkbox must be styled exactly the way you want it to look.

                                If it's connected to a SQL Table, then include a SQL dump of the table... with just a few records... or no records... doesn't matter.

                                I'll post back a UX that will work on an iPad.

                                Comment

                                Working...
                                X