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

Why does UX LIST not support updates in Multi-Select mode for listObj.updateTableRow?

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

    Why does UX LIST not support updates in Multi-Select mode for listObj.updateTableRow?

    I really wanted to make a UX LIST that operated in multi-select mode and allowed updates.

    I seem to be in a catch 22 situation.

    If I turn on Multi-Select then the LIST does not let me have a "Detail View".

    If I turn off "Detail View" (so I can have a multi-select LIST) then the LIST does not allow me to call the JS library method for a LIST called "updateTableRow()" because it fails to define that method for me unless I really have a Detail View.

    #2
    Re: Why does UX LIST not support updates in Multi-Select mode for listObj.updateTableRow?

    It kind of makes sense since there would be more than one detail view in a multi selected list. I still think you could then do an xbasic update on the selected rows though, if not you would have to have the rows in an array. Btw I am thinking out loud, not from experience in it. Maybe Kate’s will have run into that, he seems pretty in the know on these things...and maybe a solution.
    NWCOPRO: Nuisance Wildlife Control Software My Application: http://www.nwcopro.com "Without forgetting, we would have no memory at all...now what was I saying?"

    Comment


      #3
      Re: Why does UX LIST not support updates in Multi-Select mode for listObj.updateTableRow?

      If you select 2 rows in a List... which row do you want to update?

      Normally it's List --> Row --> Detail --> Edit --> Save

      If you have 2 rows selected... how do you / what do you Edit and Save?

      Maybe further details from you will help enlighten this process... but you can see the logic issue here... right?

      I can see how you could put together a process of your own. Simulating your own Multi-Select would be too much trouble. So use the List Multi-Select.

      Writing data back to the List... and getting that data back to your tables is easy enough outside the normal Alpha process. But you may be giving up some features that Alpha builds in.

      Comment


        #4
        Re: Why does UX LIST not support updates in Multi-Select mode for listObj.updateTableRow?

        The updateTableRow() JS method I mentioned is described in the documentation as:

        The .updateTableRow() method is the programmatic equivalent of the user entering some values into the List Detail view controls and then clicking on the Save button to save their changes back to the List.
        That method takes two parameters: 1) the row number in the LIST to be updated, and 2) a JS Object containing field names from the LIST and the values you want assigned to them.

        It is potentially a great method that seemingly would allow me to call it for each of the selected items in a multi-selection LIST. By its own documentation that method is meant to be used without needing "Detail" controls on the UX; you gather the update values yourself and pass them to the method. So, theoretically it does not need "Detail" controls in the way we normally think of them for a LIST. That is, you do not need 2-way detail controls that display existing values from the currently selected row AND also collect new values.

        For a "use" case, think of the button in a UX that allows you to paste a property from one control to several controls - you select a source property, click the dropper icon, select the target properties and then click OK. Being able to duplicate one value to multiple line items in a list is a common UI feature. Although, rather than using two lists like the UX Builder does, it is more common to use just a single list. Also, remove the restriction of copying only one value at a time. In its basic form, the user ends up with: 1) a LIST for making multiple selections, 2) A group of controls for entering property values, 3) an "Apply" button.

        I could work around the "catch-22" multi-select problem by implementing my own multi-select methods.

        However, if I were to do that there are problems with the underlying implementation of listObj.updateTableRow() that I'd rather not get into now.

        Comment


          #5
          Re: Why does UX LIST not support updates in Multi-Select mode for listObj.updateTableRow?

          You can do what you describe but, as it stands, some of it would have to be outside the scope of Alpha features.

          You could ask Alpha to remove the Multi-Select / Detail View restriction. The removal of that simple check would allow you to proceed easily.

          Comment


            #6
            Re: Why does UX LIST not support updates in Multi-Select mode for listObj.updateTableRow?

            Originally posted by Davidk View Post
            You can do what you describe but, as it stands, some of it would have to be outside the scope of Alpha features.
            Yep, but Alpha's updateable LIST control is so close to being able to programmatically update the selected rows with a particular set of values.


            Originally posted by Davidk View Post
            You could ask Alpha to remove the Multi-Select / Detail View restriction. The removal of that simple check would allow you to proceed easily.
            Yes, normally I would make that request. But from what I can see, there are underlying problems with the implementation of "listObj.updateTableRow()" -- it ends up calling "{DialogObject}._updateListDataFromUXControls()" and that method has design issues. To me it looks like that method, and the methods that call it, need to be re-written. I don't know all the situations that the code is trying to handle. Perhaps if there were a non-minified version of the library or I spent more time figuring out the situations where that method can be called.

            Comment


              #7
              Re: Why does UX LIST not support updates in Multi-Select mode for listObj.updateTableRow?

              Perhaps if there were a non-minified version of the library ...
              http://unminify.com/ :)

              Comment


                #8
                Re: Why does UX LIST not support updates in Multi-Select mode for listObj.updateTableRow?

                I mean an A5 JS library with source comments.

                Comment


                  #9
                  Re: Why does UX LIST not support updates in Multi-Select mode for listObj.updateTableRow?

                  Originally posted by RichCPT View Post
                  there are underlying problems with the implementation of "listObj.updateTableRow()"
                  I've manually updated many Lists using this method and never had an issue.

                  You seem to be stuck. You don't want to ask Alpha for changes... you don't want to bypass Alpha features... so I'm not sure you can accomplish what you want... the way you want to do it.

                  Comment

                  Working...
                  X