on 04-13-2014 10:40 AM
Hi,
Can someone please explain or share some source for creating ContextMenu having Checkboxes
Regards,
Sam
hi samba ,
can u please breifly explain what you wanted ..... ? Im not able to understand your requirement.
Regards
Govardan Raj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Govardan,
I am just trying to display a Context Menu with CheckBox items as shown below
But am getting the below error while selecting the checkboxes.
Caused by: java.lang.NullPointerException: while trying to invoke the method com.sap.tc.webdynpro.progmodel.context.AttributePointer.getElement() of a null object loaded from local variable 'property'
at com.sap.tc.webdynpro.progmodel.view.SecureInteractionHelper.updateAttribute(SecureInteractionHelper.java:153)
at com.sap.tc.webdynpro.progmodel.view.SecureInteractionHelper.updateAttribute(SecureInteractionHelper.java:136)
at com.sap.tc.webdynpro.clientserver.uielements.adaptbase.AbstractAdapter.updateAttributeAsKey(AbstractAdapter.java:1433)
at com.sap.tc.webdynpro.clientserver.uielib.standard.uradapter.MenuCheckBoxAdapter.onSelect(MenuCheckBoxAdapter.java:738)
at com.sap.tc.webdynpro.clientserver.uielib.standard.uradapter.MenuCheckBoxAdapter.onPOPUPMENUITEMSELECT(MenuCheckBoxAdapter.java:727)
at com.sap.tc.webdynpro.clientserver.uielib.standard.uradapter.MenuAdapter.onPOPUPMENUITEMSELECT(MenuAdapter.java:826)
Could you please help me.
Cheers,
Samba
Hi samba,
your error shows that there is java.lang.null pointer exception...
i.e you are trying to access a node with cardinality 0...n and which does not have elements in it.
so try to fix that issue , it wil solve your problem, another thing is on click of select
put the below code
if(null != wcontext.currentcontextelement().getxxx())
{
your code to do if check box is selected
}
Regards
Govardan Raj
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.