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

Select and Delete Multiple records with a check box

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

    Select and Delete Multiple records with a check box

    Hi

    My requirement is:

    i have a grid and each row of grid got checkbox.
    i need to check all checkbox when a checkbox(which placed inside or outside grid, preferably inside grid as a column name CHECKALL) is checked.

    i need exactly like checkall option in our personal mail inbox which will allow us to do multiple selection in one check.

    Thanks For any help.
    Robert.

    #2
    Re: Select and Delete Multiple records with a check box

    That'll take a bit of javascript. There are plenty of javascript functions out there to do what you want. A little google searching should find something that suits you.
    -Steve
    sigpic

    Comment


      #3
      Re: Select and Delete Multiple records with a check box

      Yes, i achieved that with the help of JavaScript

      Thanks
      Robert

      Comment


        #4
        Re: Select and Delete Multiple records with a check box

        Originally posted by robert brown View Post
        Yes, i achieved that with the help of JavaScript

        Thanks
        Robert

        Robert,

        Can you share your new found discovery so that others can benefit from that knowledge? At least a link!

        Tom

        Comment


          #5
          Re: Select and Delete Multiple records with a check box

          Robert,

          I am also very interested in achieving this.

          Can you put your solution on the forum. The javascripts interfacing with the grid component would be very useful.

          Denis

          Comment


            #6
            Re: Select and Delete Multiple records with a check box

            I believe there is a sample that does just this in the web application samples that Alpha provides.

            Pat
            Pat Bremkamp
            MindKicks Consulting

            Comment


              #7
              Re: Select and Delete Multiple records with a check box

              Pat,

              Thank you for your reply.

              I keep loosing the web location of the samples. Can you give me the URL for the latest set. If you have them....

              Thanks,


              Denis

              Comment


                #8
                Re: Select and Delete Multiple records with a check box

                When you first start A5, the database list allows you to look at sample and tutorial databases. Select the web page demo off there. The page allows you to change where they are copied, so a location I give you may not be correct.

                Pat
                Pat Bremkamp
                MindKicks Consulting

                Comment


                  #9
                  Re: Select and Delete Multiple records with a check box

                  Thanks Pat.

                  I am aware of the local one's, it was just that i didnt have my development laptop with me. No worries, thanks for the pointer, I will check it out when i get back.

                  Thanks again.

                  Denis

                  Comment


                    #10
                    Re: Select and Delete Multiple records with a check box

                    Originally posted by robert brown View Post
                    Hi

                    My requirement is:

                    i have a grid and each row of grid got checkbox.
                    i need to check all checkbox when a checkbox(which placed inside or outside grid, preferably inside grid as a column name CHECKALL) is checked.

                    i need exactly like checkall option in our personal mail inbox which will allow us to do multiple selection in one check.

                    Thanks For any help.
                    Robert.
                    Hi the solution for the above problem ,

                    First to create "CHECK ALL" option i grid. I created that using HTML in the Freeform Layout of the grid,
                    the code is
                    <input type="checkbox" value="Approval" id="tryme" ></input>

                    After creating the checkbox in the freeform layout
                    I used java script , As i have to do make all checkbox true on selection of "CHECK ALL". Iam executing the loop "Count" times, Count is the total number of records in the grid. Iam iam finding before the javascript in XBASIC
                    Hope what is explained is clear

                    <script>

                    window.onload = init;
                    function init(){
                    var counts = <%a5 ?count %>;
                    var thistxt = document.getElementById("tryme")
                    var myval = thistxt.value;
                    thistxt.onclick = chkall
                    function chkall(){
                    for (i=1;i<=counts;i++)
                    {
                    var lvl = "V.R"+i+".status";
                    if (thistxt.checked==true)
                    {
                    document.getElementById(lvl).checked = true}
                    else{
                    document.getElementById(lvl).checked = false}
                    }}}
                    </script>



                    Thank you
                    Robert

                    Comment


                      #11
                      Re: Select and Delete Multiple records with a check box

                      Robert,

                      Thank you for your response.

                      I am trying to use this code, but I think I am getting stuck on where I would point the checkall to.

                      I have two colums of checkboxes, (1) CHK1 and (2) CHK2. These are shown as fields within the grid component. Therefore every record will have the two checkboxes by there side.

                      This is where i think i am going wrong.... I have placed

                      Code:
                      <input type="checkbox" value="Approval" id="tryme" ></input>
                      in the FREEFORM Edit Regions (Above Grid) section, which gives me a check box above the grid results. I then placed the javascript directly below the checkbox code.

                      Code:
                      <html><head><title></title>
                      <link rel="stylesheet" type="text/css" href="file:///C:\Program Files\A5V8/css/Page1/style.css ">
                      </head>
                      <body  class="Page1 PageBODY">
                      <font size=2>Level 2 Items</font>
                      
                      <input type="checkbox" value="Approval" id="tryme" ></input>
                      
                      <script>
                      window.onload = init;
                      function init(){
                      var counts = <%a5 ?count %>;
                      var thistxt = document.getElementById("tryme")
                      var myval = thistxt.value;
                      thistxt.onclick = chkall
                      function chkall(){
                      for (i=1;i<=counts;i++)
                      {
                      var lvl = "V.R"+i+".status";
                      if (thistxt.checked==true)
                      {
                      document.getElementById(lvl).checked = true}
                      else{
                      document.getElementById(lvl).checked = false}
                      }}}
                      </script>
                      </body>
                      When i check the newly created single checkbox, my other checkboxes do not get checked. Now I know the obvious reason is probably because I have not specified in code what to check when this is selected.

                      Could you help me futher with this?

                      Thanks in advance.

                      Denis

                      Comment


                        #12
                        Re: Select and Delete Multiple records with a check box

                        Originally posted by den1s View Post
                        Robert,

                        Thank you for your response.

                        I am trying to use this code, but I think I am getting stuck on where I would point the checkall to.

                        I have two colums of checkboxes, (1) CHK1 and (2) CHK2. These are shown as fields within the grid component. Therefore every record will have the two checkboxes by there side.

                        This is where i think i am going wrong.... I have placed

                        Code:
                        <input type="checkbox" value="Approval" id="tryme" ></input>
                        in the FREEFORM Edit Regions (Above Grid) section, which gives me a check box above the grid results. I then placed the javascript directly below the checkbox code.

                        Code:
                        <html><head><title></title>
                        <link rel="stylesheet" type="text/css" href="file:///C:\Program Files\A5V8/css/Page1/style.css ">
                        </head>
                        <body  class="Page1 PageBODY">
                        <font size=2>Level 2 Items</font>
                        
                        <input type="checkbox" value="Approval" id="tryme" ></input>
                        
                        <script>
                        window.onload = init;
                        function init(){
                        [COLOR="Red"]var counts = <%a5 ?count %>;[/COLOR]
                        var thistxt = document.getElementById("tryme")
                        var myval = thistxt.value;
                        thistxt.onclick = chkall
                        function chkall(){
                        for (i=1;i<=counts;i++)
                        {
                        var lvl = "V.R"+i+".status";
                        if (thistxt.checked==true)
                        {
                        document.getElementById(lvl).checked = true}
                        else{
                        document.getElementById(lvl).checked = false}
                        }}}
                        </script>
                        </body>
                        When i check the newly created single checkbox, my other checkboxes do not get checked. Now I know the obvious reason is probably because I have not specified in code what to check when this is selected.

                        Could you help me futher with this?

                        Thanks in advance.

                        Denis
                        Hi Denis
                        I think you had placed Javascript in the HTML part that is in the freeform layout. You have to place javascript in the boby part of .a5w web page. And count u better initialise as 3 or 4 something likt that in the starting..
                        Try this and let me know.
                        Robert

                        Comment


                          #13
                          Re: Select and Delete Multiple records with a check box

                          Hi Robert,

                          Thank you for your time with this.

                          I have now placed the javascript into the body section of the a5w page. Where in the code do i specify which checkboxes to check when i select check all?

                          Thanks,

                          Denis

                          Comment


                            #14
                            Re: Select and Delete Multiple records with a check box

                            ok so.. now u placed the javascript in the a5w page. Good.

                            No go through the java script code once more properly, as u have to make bit changes in that. i will explain u . Please look the codes below in red colour font ok.

                            --- 1----assign count = 5
                            --- 2----tryme is my check box that i placed in the free form layout's name,
                            --- 3---- and i mentioned lvl as V.R"+i+, .. this means V.R.1 is ur first grid check box, V.R.2 will be ur second, V.R.3 will be ur thrid like that.. u please go through the HTML and Xbasic script of the grid, u can c "V.R..." If you read this javascript arleast 3 or 4 times perfectly u will get a good idea. And tell me the result ok..



                            <script>
                            window.onload = init;
                            function init(){
                            var counts =5;
                            var thistxt = document.getElementById("tryme")
                            var myval = thistxt.value;
                            thistxt.onclick = chkall
                            function chkall(){
                            for (i=1;i<=counts;i++)
                            {
                            var lvl = "V.R"+i+".status";if (thistxt.checked==true)
                            {
                            document.getElementById(lvl).checked = true}
                            else{
                            document.getElementById(lvl).checked = false}
                            }}}
                            </script>
                            </body>



                            Robert

                            Comment

                            Working...
                            X