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

saveListEdits()

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

    saveListEdits()

    I have a load of lists with detail sections that all work just fine. But one will not push a new record to the table. Edits are recorded just fine. But new records, while they show up in the list with a Blue triangle in the corner after a Save, don't go any further.

    None of these make a difference.

    {dialog.object}.saveListEdits('LIST1',{rows: 'allRows'});
    {dialog.object}.saveListEdits('LIST1',{rows: 'current'});
    {dialog.object}.saveListEdits('LIST1');

    Been over the Detail View settings a lot of times in the last 24 hours.

    Synch policy is client-to-server whenever use saves edits to a row in a list
    Table properties Permissions allow Insert, primary key is properly set, etc. etc.
    Global Errors placeholder isn't displaying anything.

    Believe me, I've been through this, tried every switch on/off combo I can think of, no dice. Should have just started again from scratch about 20 hours ago.

    Any thoughts? I don't know how I can see what's (not) happening when I attempt the {dialog.object}.saveListEdits() functions.
    -Steve
    sigpic

    #2
    Re: saveListEdits()

    Update - resolved this by updating my A5 install. Was working with an older build for customer compatibility.
    -Steve
    sigpic

    Comment


      #3
      Re: saveListEdits()

      I'm having the same issue: I can create a new entry in the detail view pop up window and I can save it to the list...it shows the blue triangle in the upper right corner of the row...I synchronize the row and the blue triangle disappears but the record is never written to the table. When I refresh the lists - the row disappears. I am using the latest build: 2999-4519. The list is built from a singular table. The only thing I can think of that may be an issue is that the table's primary key is an auto-increment field which I obviously don't edit...it should be generated when the list writes the rest of the fields to the table.

      Additionally, I can edit an existing record (entered directly into the table), save the changes to the list, which are reflected in the row, orange triangle shows up in the corner...I sync, the orange triangle goes away, when I refresh the row reverts to the original values - no edits were written to the table.

      Anyone have any insight?

      Thanks.
      Last edited by asully; 12-02-2015, 04:20 PM.

      Comment


        #4
        Re: saveListEdits()

        Originally posted by asully View Post
        I'm having the same issue: I can create a new entry in the detail view pop up window and I can save it to the list...it shows the blue triangle in the upper right corner of the row...I synchronize the row and the blue triangle disappears but the record is never written to the table. When I refresh the lists - the row disappears. I am using the latest build: 2999-4519. The list is built from a singular table. The only thing I can think of that may be an issue is that the table's primary key is an auto-increment field which I obviously don't edit...it should be generated when the list writes the rest of the fields to the table.

        Additionally, I can edit an existing record (entered directly into the table), save the changes to the list, which are reflected in the row, orange triangle shows up in the corner...I sync, the orange triangle goes away, when I refresh the row reverts to the original values - no edits were written to the table.

        Anyone have any insight?

        Thanks.
        Hi,

        Have you tried to recreate your scenario using Northwind DB. If you can recreate it what you are doing and post the UX component, I can look at it. I have a 3 tier list in a disconnected application where only the lower tier is editable...I did manage to get it working with a bunch of help from Alpha. :) Another suggestion is using the list genie it should be able to recreate what you are trying to do in about 15 to 20 minutes at a basic level so you can see where you went awry.

        Comment


          #5
          Re: saveListEdits()

          Originally posted by kenshap View Post
          Hi,

          Have you tried to recreate your scenario using Northwind DB. If you can recreate it what you are doing and post the UX component, I can look at it. I have a 3 tier list in a disconnected application where only the lower tier is editable...I did manage to get it working with a bunch of help from Alpha. :) Another suggestion is using the list genie it should be able to recreate what you are trying to do in about 15 to 20 minutes at a basic level so you can see where you went awry.
          Thanks for the suggestion - except the genie only applies to SQL or static data driven lists...I use the native dbf's. Is that a limitation of the list synchronize; that it only works with SQL and not Alpha's native dbf's?

          Thanks.

          Comment


            #6
            I know this is a very old thread, but I've come across this issue and had some questions about it. I guess the savelistedits() function does not work for .dbf files and probably never will. I got the error
            Not supported for .dbf tables
            First, am I correct in my assumption? Second, if so, is there a workaround, or am I just trying something that in the "normal world" would be a bad practice and not be done?

            The reason I'm still working with dbf and don't plan on converting to SQL any time soon is because I just work on my LAN with my developmental license. What I was going to use this function for is to take some work out on my phone and sync when I get back into the office (on the LAN).

            Tell me if I have this option... Is there a way to get those records on the list that need to be edited? If so, I could do the "sync" with an xbasic function.
            Brad Steinfeldt

            Comment


              #7
              Hi Brad,
              Don't take this wrong but avoiding sql because you're planning to be on just a lan is a poor excuse.
              Mysql offers a free product and is far better at handling data than dbf tables.
              The fact that something you want to use is not supported should tell you it's time to advance at least
              a little bit.
              If you need help moving to sql, just ask.
              The 2 things you should have to make the conversion easier would be the structure of your table(s),
              and your data in a text file.
              Gregg
              https://paiza.io is a great site to test and share sql code

              Comment


                #8
                I only sync when I'm developing for mobile apps and NEVER in the browser - much better. I'd also take up that very generous offer.

                Pete
                Insanity: doing the same thing over and over again and expecting different results.
                Albert Einstein, (attributed)
                US (German-born) physicist (1879 - 1955)

                Comment


                  #9
                  Gregg and Pete,

                  Thanks for your responses. I appreciate them. Your comments also let me know the direction to go, but it won't be SQL just yet. I don't need the sync just yet.

                  About 5 years ago, I realized that my desktop app (what I'd been using and tweeking for over 25 year) would become obsolete. At that time, I figured it would be best to start with the database structure (SQL), so that's what I did. Unfortunately, after the 2 months of learning and creating a SQL database with web components, I realized that I couldn't use any of old app; I'd have to rewrite everything completely. Because of the time, that wasn't an option, especially since I could use a majority of my app stuff by using the DBF structure. This transition has allowed me the opportunity to learn Web Components while still having the familiarity with the native DBF I've worked with for decades. In time, I think my transition will be much easier to convert the data structure to SQL. That's my hope, and when I'm ready, I really appreciate your willingness and kindness to help.

                  Brad
                  Brad Steinfeldt

                  Comment


                    #10
                    Hi Brad,
                    Change sucks but sometimes it’s a good pain. I integrated sql into an app i designed in 1997 and I’m almost finished integrating sql into an app i designed in 2005(this one takes a 60 minute process down to 5 minutes). Don’t let anyone make you forget about the ability to send sql results to a dbf table.
                    Gregg
                    https://paiza.io is a great site to test and share sql code

                    Comment


                      #11
                      Light bulb moment Gregg.
                      Don’t let anyone make you forget about the ability to send sql results to a dbf table.
                      Insanity: doing the same thing over and over again and expecting different results.
                      Albert Einstein, (attributed)
                      US (German-born) physicist (1879 - 1955)

                      Comment


                        #12
                        Hey Gregg,

                        Converting to SQL may have to come sooner than I want. I'm having another issue with a list action script, and maybe the worst part is not knowing if my problem is a something I don't understand in general, or it's a problem because I'm using DBF. What SQL managment platform do you use or recommend? MySQL Workbench? Navicat? or what?
                        Brad Steinfeldt

                        Comment


                          #13
                          I prefer Toad.
                          Workbench is too much work (I prefer to let computers do most of the work) and Navicat just didn't feel right.
                          Toad has the added benefit of working with arguments.
                          Let me know if I can help.
                          Gregg
                          https://paiza.io is a great site to test and share sql code

                          Comment


                            #14
                            Another vote for toad, if you can still get it? They withdrew support for it. The replacement was rubbish in comparison! I may have a copy of the installation file on my office pc if you need it shout out.

                            Comment


                              #15
                              Is this the replacement for Toad? SQL Server Database Management Tools | Toad for SQL Server (quest.com) I don't want to start down the rubbish road.
                              Brad Steinfeldt

                              Comment

                              Working...
                              X