Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X
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
2) After resize the window, no options are selected
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