cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

Dropw-down get refreshed on windows resize

egolindano
7-Bedrock

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

5 REPLIES 5

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

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.

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

Hi, Steve,  im using twx 7.3

Eddison,

I just attached my working version which I tried on ThingWorx 7.3.2-b39 - If you get a chance import and try it out open and view the mashup PTC-GAMER-LISTS-MU

Top Tags