Hi Experts,
I need to use same view for two applications in one application
the buttons should be in enabled and in one application the
buttons shoul be in disable , how to achieve this task plz help in this
i wriiten some code but the button is not enabling so how to make it to enable......
the code is as follows..............
public void wdDoInit()
{
//@@begin wdDoInit()
IWDProtocolAdapter protocolAdapter = WDProtocolAdapter.getProtocolAdapter();
IWDRequest request = protocolAdapter.getRequestObject();
wdComponentAPI.getApplication().getApplicationInfo().findInApplicationProperties("readOnly").getValue();
String paramValue = request.getParameter("readOnly");
if(paramValue!=null){
if(paramValue.equalsIgnoreCase("false"))
{
wdContext.currentLocalelementsElement().setIsdisplay(true);
}
else{
wdContext.currentLocalelementsElement().setIsdisplay(false);
}
}
else{
wdComponentAPI.getMessageManager().reportException("param value null",false);
}
plz............help me in this ......waiting for u r response..................
plz help me ..............................
Regards,
Shilpa
Edited by: pasumarthi shilpa on Jun 4, 2008 12:12 PM