How to disable/hide report/Batch Job parameter on Dialogue
To hide the parameter from report/job dialogue, use the below annotation on the param method of the Report/Job data contract class.
[SysOperationControlVisibilityAttribute(false)].
Sample
Parameter will visible:
[DataMemberAttribute,
SysOperationLabelAttribute(literalStr("Task Size")),
SysOperationGroupMemberAttribute("ParameterGroup"),
SysOperationDisplayOrderAttribute("3")]
public AD_BatchTaskSize parmBatchTaskSize(AD_BatchTaskSize _batchTaskSize = batchTaskSize)
{
batchTaskSize = _batchTaskSize;
return batchTaskSize;
}
Parameter will not visible:
[DataMemberAttribute,
SysOperationControlVisibilityAttribute(false)]
public RecId parmFromRecId(RecId _fromRecId = fromRecId)
{
fromRecId = _fromRecId;
return fromRecId;
}
Support Faryal's Cusine