Search This Blog

Showing posts with label IFS-Client. Show all posts
Showing posts with label IFS-Client. Show all posts

Friday, July 29, 2022

How to call dialog in private solution in C# in IFS Applications?

SessionModalDialog(Pal.GetActiveInstanceName("dlgInvoicPeriodAllocation"), Ifs.Fnd.ApplicationForms.Int.Explorer.ExplorerForm, SalString.Null)

Adding new item to default attr in client in IFS Applications

Override vrtDataRecordFetchEditedUser

public override SalNumber vrtDataRecordFetchEditedUser(ref SalString lsAttr)
{
	return this.DataRecordFetchEditedUser(ref lsAttr);
}

public new SalNumber DataRecordFetchEditedUser(ref SalString lsAttr)
{
	#region Actions
	using (new SalContext(this))
	{
		Ifs.Fnd.ApplicationForms.Int.PalAttrAddNumber("ACTIVITY_SEQ", colnActivitySeq.Number, ref lsAttr);
		Ifs.Fnd.ApplicationForms.Int.PalAttrAdd("DATE_TYPE", colsDateType.Text, ref lsAttr);
	}
	return 0;
	#endregion
}

Navigate to Feature Form / Open Window using iURL in IFS Applications

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);
}

Read file content from an Oracle Directory in PL/SQL/ in IFS

Read single file DECLARE file_handle_ UTL_FILE.FILE_TYPE; directory_name_ CONSTANT all_directories.directory_name%TYPE := ...

Popular Posts