printer text field is populated when screen option is selected

Hi,

Select any sales agreement ,in ‘Sales agreement’ tab, selected ‘Confirmation’ in Generate group then in ‘Confirm sales agreement’ dialog checked the option to ‘Print report’ then select the ‘Destination’ button then go in ‘Print destination settings’ dialog, selected ‘Screen’ → OK.

Observations:

  1. Printer text field is populated with printer name
  2. Print destination is screen. Please see the attached pic.

Expected Results:

  1. Printer text field should be blank, since screen is selected as a destination setting

i know this is standard ax property, can anyone help me to change this propert

Solution

In AgreementConfirmRunForm<<selectPrintDestination(method)

void selectPrintDestination()

{

SRSPrintDestinationSettings printSettings = agreementConfirm.parmPrintJobSettings();

if (SrsReportRunUtil::showSettingsDialog(printSettings))

{

agreementConfirm.parmPrintJobSettings(printSettings);

printerName.text(printSettings.printerName());

printDestination.text(enum2str(printSettings.printMediumType()));

if(printDestination.valueStr() == enum2str(SRSPrintMediumType::Screen))

printerName.text("");

}

}