Hi
I have following code in the WebReport widget and it works more or less (it opens Dialog with another WebReport in the content)
<<
<script>
csui.require(['csui/lib/marionette','csui/lib/jquery','csui/utils/contexts/page/page.context','csui/controls/dialog/dialog.view','webreports/widgets/tilereport/tilereport.view'], function (Marionette,$,PageContext, DialogView,TileReportView)
{
var context = new PageContext();
function showAddPanel()
{
sampleTileReportView = new TileReportView({
context: context,
data: {
title: 'WebReport Sample',
id: 58585,
scroll: false,
header: true,
parameters: [
{
name: 'documentID',
value: '299292'
}
]
}
});
dialog = new DialogView({
className: 'cs-properties',
largeSize: false,
view: sampleTileReportView
});
dialog.show();
// Fetch the WebReport output from the server to populate the tile with
context.fetch();
}
$("#addbtn").click(function(){
showAddPanel();
});
});
</script>
<input type=button id=addbtn value=Ok />
>>
In the other WebReport that is shown inside Dialog I have a button "Close" to which I'd like to attach action "Close Dialog" & "refresh parent widget (the one below)".
Or more likely I will have some javascript code that will have OnFinish call to close Dialog and Refresh parent widget
How do I do that?
Thanks
Uldis