Skip to content

Instantly share code, notes, and snippets.

@bayramcetin
Created November 3, 2023 14:53
Show Gist options
  • Save bayramcetin/3b9f3dc872bf9f21d682b3e4ba7f2583 to your computer and use it in GitHub Desktop.
Save bayramcetin/3b9f3dc872bf9f21d682b3e4ba7f2583 to your computer and use it in GitHub Desktop.
Dynamics 365 FO Create Temp Form Report
[Form]
public class ETGProdCostTrialBalanceControl extends FormRun
{
ETGProdCostTrialBalanceControlTmp tmp;
[DataSource]
class ETGProdCostTrialBalanceControlTmp
{
/// <summary>
///
/// </summary>
public void init()
{
super();
ETGProdCostTrialBalanceControlTmp.linkPhysicalTableInstance(tmp);
}
}
[Control("Button")]
class btnRun
{
/// <summary>
///
/// </summary>
public void clicked()
{
super();
ETGProdCostTrialBalanceControlDP controlDP = new ETGProdCostTrialBalanceControlDP();
controlDP.transDate = TransDate.dateValue();
controlDP.run();
tmp = controlDP.tmp;
ETGProdCostTrialBalanceControlTmp.linkPhysicalTableInstance(tmp);
ETGProdCostTrialBalanceControlTmp_ds.executeQuery();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment