Share via


BudgetPlanTemplateGenerationWizard.generateTemplate Method [AX 2012]

Generate a budget planning template based on the data collected in the BudgetPlanTemplateGenerationWizard form.

Syntax

public void generateTemplate([str _filePath, boolean _tempFile])

Run On

Client

Parameters

  • _filePath
    Type: str
    The user can override the file path for the generated file.
    Used when writing to a temp location instead of the stored location.
  • _tempFile
    Type: boolean
    True if the generated file shouldn't be added to the templates list. False by default.

Remarks

This method starts by creating a file using SysExcelApplication and adding a workbook to it. It creates the proper sheets, and adds the static text, then saves to the stored file path.

Then a WorkbookXmlPart is generated with the proper bindings and references.

See Also

Reference

BudgetPlanTemplateGenerationWizard Class