none
Windows 8 -> Old values was displayed ​​in altered fields

    Question

  • Old values was displayed ​​in altered fields. The new data is stored correctly in the database. On the Screen we see the old value. Even a restart of the computer does not help. There again, the old values ​​are displayed. Can we disable this in Lightswitch or SQL Server??

    On another computer with Windows 7 and SQL Server 2008 we don't have this problem!

    We hope You can help us?!

    Regards

    J.Nord


    • Edited by J.Nord Monday, January 07, 2013 7:28 AM
    Sunday, January 06, 2013 6:39 PM

All replies

  • Sounds like there is a reference messed up in the code, as you say the database is showing the new values, but the code is sowing old values...

    I would fireup the debugger and put a watch on the list to see where it is getting the values from.

    Monday, January 07, 2013 3:14 AM
  • As additional information: We use WCF RIA service.
    We found the problem but not a solution. If we reset the browser history, the correct values ​​are displayed.
    We have the database cache turned off in our browser settings. But with new input in the Screen the problem recurs. This problem we have only in Windows 8.

    The problem is not solved. Is there a setting in Windows 8 or WCF Ria Services to disable the cache?

    So we can't publish lightswitch program under Windows 8 !!



    • Edited by J.Nord Sunday, February 17, 2013 12:28 PM
    Monday, January 07, 2013 8:09 AM
  • Hi j.Nord 

    Can you give us a project that exhibits this behavior so we can investigate here? Did you try Glenn's suggestion? Are the values being cached in your RIA service? It also may be your caching options in IIS that you need to check.

    Thanks,

    -Beth


    Senior Program Manager, Visual Studio Community http://www.bethmassi.com http://msdn.com/lightswitch http://dev.office.com

    Tuesday, October 22, 2013 3:19 PM
    Owner

  • I had a similar issue once. I do not remeber where I got the hint but in my case following worked:

    Some data are cached in:
    C:\Users\XXX\AppData\Local\Microsoft\Windows\Temporary Internet Files

    so you have to delete the formula data stored by lightswitch:
    open internet explorer -> internet options -> delete -> formular data

    Tuesday, October 22, 2013 3:36 PM
  • @ PjotrX
    This helps clear the cache only once. Then it occurs again. The user can not delete the cache after each entry.

    @ Beth Massi
    The problem occurs in the following constellation:
    - Windows 8 or Windows 7
    - Internet Explorer 10 (very important) not Internet Explorer 9
    - We have German language
    - We have a desktop application (Silverlight) integrated with the WCF-RIA-Service.

    This problem we have on more then one computer!

    Microsoft support we have given "all" necessary supports. See follow Support ID:

    Microsoft Support ID: [REG: 113030810273442] PRO/DE/IE10

    We spend one "week" to give microsoft all what they need. We teach microsoft support employee in the design of the program. To date we have no solution!


    • Edited by J.Nord Tuesday, October 22, 2013 8:14 PM
    Tuesday, October 22, 2013 8:11 PM
  • Hi J.Nord,

    I'm sorry you're frustrated with Microsoft support services. I can have the LightSwitch engineering team look at this directly if you can provide the project to us.

    Thanks,

    -Beth


    Senior Program Manager, Visual Studio Community http://www.bethmassi.com http://msdn.com/lightswitch http://dev.office.com

    Tuesday, October 22, 2013 9:25 PM
    Owner
  • Hi beth,

    the code is your support since months ago! I told you the support ID. We even back then telephoned a member of the LightSwitch Support. How much work we are still stuck in your bug. Who pays the entire cost?

    None of Microsoft is ready to talk about our work effort of about a week.

    You have the support ID and then you have the source code of the bug.

    The contact person in Germany is:

    Diyan Turlakov
    Microsoft - Platform Support Team
    Stream customer service for Microsoft
    Germany Tel: +49 (0) 180/567 233 0 *

    He has everything you need.

    We hope after over half a year "finally" on a solution.

    The damage is huge.

    thanks

    j.nord

    The last bug [REG:113030510262300] we could write the program again with a workaround, because there was no solution.





    • Edited by J.Nord Wednesday, October 23, 2013 6:54 AM
    Wednesday, October 23, 2013 6:28 AM
  • Hi Beth

    This same issue has been reported a few times on this forum, this is not a new finding that data is cached in the browser even when the record in the database is updated. (HTML Client)

    Wednesday, October 23, 2013 8:27 AM
  • Hi J.Nord,

    My apologies. I figured if you had the project handy we could cut through the red tape and act quickly here. I will contact support services and let you know what we find out.

    -Beth


    Senior Program Manager, Visual Studio Community http://www.bethmassi.com http://msdn.com/lightswitch http://dev.office.com

    Wednesday, October 23, 2013 3:41 PM
    Owner
  • Hi Nicholas,

    I believe this is a different issue than the HTML client refresh. We enhanced the refresh API in VS2013. See: http://lightswitchhelpwebsite.com/Blog/tabid/61/EntryId/1208/New-API-For-Refreshing-Data-in-LightSwitch-in-Visual-Studio-2013.aspx

    Cheers,
    -Beth 


    Senior Program Manager, Visual Studio Community http://www.bethmassi.com http://msdn.com/lightswitch http://dev.office.com

    Wednesday, October 23, 2013 3:57 PM
    Owner
  • Hi Beth

    Yup, you are correct, my apologies, I did a quick test and i'm very happy this issue has been resolved.

    Thanks
    Nicholas

    Friday, October 25, 2013 8:15 AM
  • Hi J.Nord,

    I was finally able to get a sample project from customer support services today and I got it running and I do see the caching issue. Diyan never contacted the LightSwitch team because it seems to be an IE issue so he is engaging with the IE team. I also told Diyan to contact you with an update on a permanent fix.

    For now, I found a work-around for you. In the sample code you provided, on the "Einrichtungeingabe" screen code, you are calling the kindergarten_SingleOrDefault(int) method to populate the screen property. Instead, provide a where clause directly like so:

    this.kindergartenProperty = data.kindergarten.Where(k => k.adressennr == this.intAdressennr.Value).SingleOrDefault();

    This seems to solve the problem and the current values are always displayed.

    Also you reported performance problems but this project runs fine. If you are still seeing perf problems please provide us a project exhibiting that behavior so we can have a look. If you can give me the project directly instead of going through support that will save a lot of time.

    Hope this helps,
    -Beth


    Senior Program Manager, Visual Studio Community http://www.bethmassi.com http://msdn.com/lightswitch http://dev.office.com

    Wednesday, November 06, 2013 8:09 PM
    Owner
  • Hi Beth,

    we have upload the sample Project for the performance problem.  With each new record, the performance is worse.

    We hope you can find the performance problem.

    Regards

    j.nord

    Wednesday, November 13, 2013 2:09 PM