5 Replies Latest reply on Oct 1, 2017 1:21 PM by stevegr RSS
    egolindano Explorer

    Dropw-down get refreshed on windows resize

    Hi. I have a mashup which has a repeater with several dropdown list.. But, there's a problem. If i select an option from a dropdown  and after that   resize the window, the option is not select anymore.

     

    So my question.. is there any way to prevent or solve this? thank you for your help.. I attach two images referred to my problem.

     

    1) Non resized window with some options selected

     

    zsad.png

     

    2) After resize the window, no options are selected

     

    213123.png

      • Re: Dropw-down get refreshed on windows resize
        stevegr Apprentice

        I explored the problem and I did see the lists reset but it you set in the repeater use Load/ No unload - The selected items are not lost

          • Re: Dropw-down get refreshed on windows resize
            egolindano Explorer

            Hi, Steve.. Thanks you for your reply, I tried what You said but, with no success. Anyway I'm gonna try again, if It works  I tell you.

              • Re: Dropw-down get refreshed on windows resize
                stevegr Apprentice

                Eddison,

                What version of Thingworx are you using? - My test was on 8.1.0-b52

                 

                I used the code below to create the dummy list

                 

                var params = {

                infoTableName : "InfoTable",

                dataShapeName : "PTC-GAMER-PICKLISTS-DS"

                };

                 

                 

                // CreateInfoTableFromDataShape(infoTableName:STRING("InfoTable"), dataShapeName:STRING):INFOTABLE(PTC-GAMER-PICKLISTS-DS)

                var result = Resources["InfoTableFunctions"].CreateInfoTableFromDataShape(params);

                 

                 

                var params = {

                infoTableName : "InfoTableGamers",

                dataShapeName : "PTC-GAMER-LIST-DS"

                };

                 

                 

                // CreateInfoTableFromDataShape(infoTableName:STRING("InfoTable"), dataShapeName:STRING):INFOTABLE(PTC-GAMER-LIST-DS)

                var gamers = Resources["InfoTableFunctions"].CreateInfoTableFromDataShape(params);

                 

                 

                var params = {

                infoTableName : "InfoTableGames",

                dataShapeName : "PTC-GAMER-LIST-DS"

                };

                 

                 

                var newEntity = new Object();

                newEntity.StringField = "GAMER1";

                gamers.AddRow(newEntity);

                newEntity.StringField = "GAMER2";

                gamers.AddRow(newEntity);

                newEntity.StringField = "GAMER3";

                gamers.AddRow(newEntity);

                 

                 

                // CreateInfoTableFromDataShape(infoTableName:STRING("InfoTable"), dataShapeName:STRING):INFOTABLE(PTC-GAMER-LIST-DS)

                var games = Resources["InfoTableFunctions"].CreateInfoTableFromDataShape(params);

                 

                 

                var params = {

                infoTableName : "InfoTableSystems",

                dataShapeName : "PTC-GAMER-LIST-DS"

                };

                 

                 

                var newEntity = new Object();

                newEntity.StringField = "GAME1";

                games.AddRow(newEntity);

                newEntity.StringField = "GAME2";

                games.AddRow(newEntity);

                newEntity.StringField = "GAME3";

                games.AddRow(newEntity);

                 

                 

                // CreateInfoTableFromDataShape(infoTableName:STRING("InfoTable"), dataShapeName:STRING):INFOTABLE(PTC-GAMER-LIST-DS)

                var systems = Resources["InfoTableFunctions"].CreateInfoTableFromDataShape(params);

                 

                 

                var newEntity = new Object();

                newEntity.StringField = "SYSTEM1";

                systems.AddRow(newEntity);

                newEntity.StringField = "SYSTEM3";

                systems.AddRow(newEntity);

                newEntity.StringField = "SYSTEM3";

                systems.AddRow(newEntity);

                 

                 

                var newEntity = new Object();

                newEntity.GAMERS = gamers;

                newEntity.GAMES = games;

                newEntity.SYSTEMS = systems;

                 

                 

                result.AddRow(newEntity);

                 

                3 List in a Mashup

                 

                View Mashup

                 

                 

                After resize