pillai.ganesh
26th November 2014, 15:01
Hi Guys,
I'm facing a strange problem... Unable to Disable the New Button on the MMT.
I'm developing a customization where based on some parameter settings I need to disable the new button on the MMT. (i.e. Data will be filled through a "generate session". Manual New is not allowed.)
I have written code in DAL- method.is.allowed() to disable new if the DAL_NEW action is not occurring by my "generate session". So for all the other places new button should be disabled.
But to my surprise the New button remains enabled on MMT; even when the method.is.allowed(DAL_NEW) returned false.
I tried adding add.set.is.allowed() on UI template with UI script... Even this didnt worked.
I also tried disable.commands("add.set") in init.group of group.1 section. even this is not disabling.
I'm able to disable duplicate, delete, modify, etc... But the new is not getting disabled on MMT.
So, is it that... We cannot disable new button on MMT?
Thanks,
Ganesh
I'm facing a strange problem... Unable to Disable the New Button on the MMT.
I'm developing a customization where based on some parameter settings I need to disable the new button on the MMT. (i.e. Data will be filled through a "generate session". Manual New is not allowed.)
I have written code in DAL- method.is.allowed() to disable new if the DAL_NEW action is not occurring by my "generate session". So for all the other places new button should be disabled.
But to my surprise the New button remains enabled on MMT; even when the method.is.allowed(DAL_NEW) returned false.
I tried adding add.set.is.allowed() on UI template with UI script... Even this didnt worked.
I also tried disable.commands("add.set") in init.group of group.1 section. even this is not disabling.
I'm able to disable duplicate, delete, modify, etc... But the new is not getting disabled on MMT.
So, is it that... We cannot disable new button on MMT?
Thanks,
Ganesh