Hello,<br><br>I would like to create a ruby plasma applet which will use the tasks data engine. <br>I have a problem to call operations on service.
<p style="margin: 0px; text-indent: 0px;"><span style="color: rgb(0, 0, 0);">In plasmaengineexplorer i can close a window but i don't manage it in ruby</span></p><br>
<p style="margin: 0px; text-indent: 0px;"><span style="color: rgb(0, 0, 0);">service=dataEngine("tasks").serviceForSource(dataEngine("tasks").sources.first)</span></p>
<p style="margin: 0px; text-indent: 0px;"><span style="color: rgb(112, 144, 112);"></span><span style="color: rgb(0, 0, 0);">service.startOperationCall(service.operationDescription("close"))</span></p>
<p style="margin: 0px; text-indent: 0px;"><span style="color: rgb(112, 144, 112);"></span><span style="color: rgb(0, 0, 0);"><br></span></p><p style="margin: 0px; text-indent: 0px;"><span style="color: rgb(0, 0, 0);">This does not do anything.</span></p>
<p style="margin: 0px; text-indent: 0px;"><span style="color: rgb(0, 0, 0);"><br></span></p>
<p style="margin: 0px; text-indent: 0px;"><span style="color: rgb(112, 144, 112);"></span><span style="color: rgb(0, 0, 0);">pp service.operationNames gives an empty array</span></p>
<p style="margin: 0px; text-indent: 0px;"><span style="color: rgb(112, 144, 112);"></span><span style="color: rgb(0, 0, 0);"><br></span></p>I attached the plasmoid source code. This action is triggered when clicking on the plasmoid and then clicking on a window name in the list.<br>
<br>Thanks for your help<br>Cédric H<br>