SSRS report calling two design from two menu items

I have one report with two designs and two menu items,I want to display each design based on the selected menuitem, i have modified InventValueReportController its overrides the reports depending on the the parameter declared in InventValueReportContract class parameter declaration

i have added my new report, it seems to be considering the last declaration instead of both

#define.reportName(‘InventValue.ValueReport’) (added)
#define.reportName(‘InventValue.Report’)

my code in the main method of InventValueReportController

switch (menuItemNameOutput)
{
case menuitemOutputStr(InventValue):
controller.parmReportName(ssrsReportStr(InventValue,Report));

break;

case menuitemOutputStr(ThemeInventValue’)
controller.parmReportName(ssrsReportStr(InventValue,ThemeInventValue));

break;

}

how do i solve this issue

How you are getting the value? Try below,

switch (_args.menuItemName())
{
case menuitemOutputStr(InventValue):
controller.parmReportName(ssrsReportStr(InventValue,Report));
break;
case menuitemOutputStr(ThemeInventValue):
controller.parmReportName(ssrsReportStr(InventValue,ThemeInventValue));
break;

}

Thanks Buddy