ok so far i manage to create another boolean parameter on contract & depend on that parameter (true/false) i can show Price Value or hide it. i also able to hide those parameter from Parameter Input Form.
im still stuck at setting the new parameter value base on Menu Item who call it.
* My New Contract Parameter
[
DataMemberAttribute('ShowValue'),
SysOperationLabelAttribute(literalStr("Show value")),
SysOperationHelpTextAttribute(literalStr("Show Value")),
SysOperationDisplayOrderAttribute('3'),
SysOperationGroupMemberAttribute('group_notdefined_at_classdeclaration')
]
public boolean parmShowValue(boolean _ShowValue = ShowValue)
{
ShowValue = _ShowValue;
return ShowValue;
}
* My Controller
class InventOnHandTransController extends SrsReportRunController
{
}
public static void main(Args args)
{
InventOnHandTransController controller;
controller = new InventOnHandTransController();
controller.parmArgs(args);
controller.parmReportName(ssrsReportStr(InventOnHandTrans, Report));
controller.startOperation();
}
protected void preRunModifyContract()
{
InventOnHandTransContract Contract;
Contract = this.parmReportContract().parmRdpContract() as InventOnHandTransContract;
Contract.parmShowValue(true);
super();
}
What do i miss here? Thanks