i'm newcomer dashcode, , had same problem today. well, did little hit , miss job through debug, ended following code:
code:
function showoption(event){ // menu points static list comprises menu. var menu = dashcode.getdatasource("listmenu"); // idx points current rowindex (disabled multi selection). var idx = menu.__selectionindexes[0]; // "theoption" object array holds key/value pair (label/value). // value set name of layer. var theoption = menu.__content[idx][1]; newtransition = new transition(transition.none, 0.0, transition.ease_timing); //change foreground of stack according theoption document.getelementbyid("stacklayout").object.setcurrentviewwithtransition(theoption, newtransition, false); }
for uglyness of code, feel not correct/best solution, had not time investigate "valueforkey' approach but, nonetheless, worked. set "onclick" method on listrowtemplate1 object.
Comments
Post a Comment