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

list synchronize removes records from view?

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

    list synchronize removes records from view?

    I'm working with the new disconnected features of the list control and persisting data locally. It all works beautifully until I try to synchronize records from the server. Then, whatever records are currently displayed in the list disappear and are irretrievable until I reload the page. So, for example, if my list is filtered to show a portion of the records and I synchronize from the server, that portion of records disappears. I can filter for other records and they will still be available.

    This is true if I create a button to sync the record or if I set the list Synchronization Policy to "Perform a server-to-client synchronization whenever a client-to-server synchronization is performed". What am I doing wrong?

    #2
    Re: list synchronize removes records from view?

    In the "list" display all the "key fields" for testing. You may see that the values for one or more may be null, and this may make them go away when refreshed. Because they do not get committed (synchronized) - they reappear when the page is refreshed.

    Regards.

    Comment


      #3
      Re: list synchronize removes records from view?

      Thanks Mkpatil. I'm not actually inserting records, so the specific suggestion you gave wasn't the right answer. But it did lead me to look at my query which has a join in it. When I remove the join, it works as expected. The joined table is marked as read-only, but I've now tried different join methods, putting all the keys and join keys in the list view and detail view, but I'm getting the same results as before. I click Synchronize, get a message to say the records were synchronized (client to server) and then all the records in the list suddenly disappear. I see in the pre-release notes that Alpha had fixed a bug with incremental refreshes if there were multiple lists in the UX, but I've got just 1 list and it definitely isn't working.

      Thanks again Mkpatil. Any other ideas out there?

      Comment


        #4
        Re: list synchronize removes records from view?

        This remains true even if I put
        Code:
        {dialog.object}.refreshListData('LIST1',{mode:'incremental'});
        in the onClick of a button.

        I can set a filter and whatever records are displayed per the filter when I run
        Code:
        {dialog.object}.refreshListData('LIST1',{mode:'incremental'});
        disappear. Records matching other filter requests still appear fine.

        Comment


          #5
          Solved: list synchronize removes records from view?

          Update:

          My query was built on an argument whose value was drawn from another control on the UX. When the control is marked "Hide" it doesn't work; when marked Show/hide 1=2, it does.

          Comment


            #6
            Re: list synchronize removes records from view?

            I lied. Apparently my believed solution was a fluke. Back to Mkpatil's answer, for those wondering, even if you don't have insert functionality in your list detail, an update can remove the values of columns. These were then not showing up because of a filter I had running on the list.

            Comment


              #7
              Re: list synchronize removes records from view?

              Maybe someone can riddle me this...

              I have two lists (parent and child) and the child works wonderfully with its detail view (all I am doing is loading the data from the list and the user has the option to check a box saying something was done). This all saves and syncs correctly.

              Now when I make changes to the detail view of the parent list I run into issues, mainly I can save the data and the list updates correctly but the primary key is blank (when looking at the debug information) so obviously upon hitting the sync button I get a message saying the database couldn't find the data I was requesting. I have made it so the primary key is visible in the list and even after hitting save it is showing as the right value but I don't know why it disappears as the primary key in the debug data...?

              I have seen people posting issues tied to having joined tables and my parent list has a main table with three joined tables but I made them all read only (which I had to do because they all have the same name for a primary key and if I used an alias name here then I would get the error saying the primary key fields weren't mapped correctly to list fields). For this case it doesn't matter if those tables have to stay read only, it was just a side note because I could see myself needing to join tables in the future for disconnected capabilities that had their primary keys called "ID" and therefore I would have this issue again and I'm not sure if this is somehow also causing my current issue. Thanks for the help!

              Comment


                #8
                Re: list synchronize removes records from view?

                I *think* you may have to have all of the primary and joined primary keys in the detail view.

                Comment


                  #9
                  Re: list synchronize removes records from view?

                  Gave that a shot and to no avail, below are some photos of what I am dealing with. As you can see from the first photo of the list definition it as the "orders.order_id" as the primary key. From the detail view this data is showing up but when you look at the third photo you will see my primary key is empty..?Screen Shot 2014-12-11 at 3.36.24 PM.png

                  Screen Shot 2014-12-11 at 3.36.00 PM.png

                  Screen Shot 2014-12-11 at 3.35.37 PM.png

                  Any other ideas? I will continue to tinker with things to see if I can find what's causing the problem. Thanks for the quick reply!

                  Comment


                    #10
                    Re: list synchronize removes records from view?

                    If someone could run a quick test for me (as I can't because obviously there is something wrong with my list set-up), can you set up a debug button, use a search part to load data into your list, then click the debug button (which will show you the data in the list for the record you are on) and let me know if the primary key shows up? It looks like somehow (even though the primary key is defined) I don't have a primary key of my list, even on the initial load of the data the primary key is blank. I'm starting to think it has something to do with the fact I am using joins but I really hope not. Thanks!

                    Comment


                      #11
                      Re: list synchronize removes records from view?

                      So after deciding to start from scratch and work from the very beginning one table and just a few fields at a time, it looks like as soon as I add the signature to the list data my primary key disappears, however after deleting the signature field from my query and the signature component the primary key is still absent. I know plenty of people have gotten the signature control to work with he offline capabilities but I think most of them are on a more recent pre-release. Feel like this bug needs to be squashed quick in a release alpha deems worthy of production, if not it looks like I'll be jumping on the pre-release bandwagon!

                      Comment

                      Working...
                      X