Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello I'm creating a web application with QlikView Workbench 10 and Visual Studio 2010. I would like to set a selection using a simple button click event.
According to the SDK documentation, I've written:
function ApplySelection() {
var lb = qva.GetQvObject("LB01", function(){});
var arrRecords = ["GE", "MI"];
lb.QvaPublic.Data.SelectTexts(arrRecords);
}
I've also tried:
lb.Data.SelectTexts(arrRecords);
Thanks for your help.
Check the attached example, Regards.
<html >
<head runat="server">
<title></title>
</head>
<script type="text/jscript">
OnUpdate = function() {
}
var MyObjectLB;
Init = function() {
MyObjectLB = qva.GetQvObject("LB01", OnUpdate);
}
Qva.BodyOnLoadFunctionNames.push("Init");
OnClickSelect = function() {
MyObjectLB.QvaPublic.Data.SelectTexts("GE", "MI");
}
</script>
<body>
<form id="form1" runat="server">
<qww:QvObject ID="QvObject1" runat="server" ObjectID="LB01"
ObjectType="List Box" QlikViewDocument="Films (Local)"
QvAjaxZfcPath="http://localhost/QvAjaxZfc/" />
<div>
<input id="Button1" type="button" value="button" onclick="OnClickSelect()" /></div>
</form>
</body>
</html>