I have 2 view pages are in the same portlet.
When I try to click element(using command link) in Asyn Table row in first view page, it opens the second view page using the value from first view page & pulls the other related fields for the 2nd view page using flow service (here I’m using the preference to pass the value b/w views in portlet). This is working fine.
But my requirement is: In the second view page I have 2 different command buttons (ex: create & update buttons). One button (create) should be disabled when this 2nd page is getting opened from 1st page. When we open the 2nd page directly other button (update) should be disabled (other one should be enabled).
Tried for the 1st functionality using the below in “beforeRenderResponse” function:
htmlCommandButton1.setEnabled(false); htmlCommandButton1.setActionCommand("Disable"); htmlCommandButton1.Rendered(false);
None of this worked. Your views please.