To demonstrate the functions, opening quick report window is used.
WAY 1 - Using iURL
private void menuFrmMethods_menuTest_Execute(object sender, FndCommandExecuteEventArgs e)
{
iURL.Clear();
iURL.SetProtocol("ifswin");
iURL.SetProgId("Ifs.Application.QuickReporting.QuickReportDetail");
iURL.iParameters.SetAttribute("action", "get");
iURL.iParameters.SetAttribute("key1", this.sCQuickReportId);
iURL.Go();
}
WAY 2 - Using NavigationService.Navigate
Open new quick report window
public void OpenNewQuickReport()
{
Ifs.Fnd.Core.FndUrlAddress url = new Ifs.Fnd.Core.FndUrlAddress("ifswin:Ifs.Application.QuickReporting.QuickReportDetail?action=new");
this.NavigationService.Navigate(url, false, true);
}
Open existing quick report
public void OpenQuickReport(string sCQuickReportId)
{
Ifs.Fnd.Core.FndUrlAddress url = new Ifs.Fnd.Core.FndUrlAddress("ifswin:Ifs.Application.QuickReporting.QuickReportDetail?action=get&key1=" + sCQuickReportId);
this.NavigationService.Navigate(url, false, true);
}
No comments:
Post a Comment