Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

ClientSide Javascript on RadioButton Selection

Hello together,

I've seen some examples of how to perform a clientside javascript function from an htmlb element(inputfield).

I want to add this functionality to a radiobutton-group but can not realize it.

This is where I am:

<hbj:radioButtonGroup

id="radioGroup"

columnCount="1"

selection="BOL"

>

<hbj:radioButton

id="BOLProducts"

text="BOL Products"

key="BOL"

tooltip="Search BOL products"

jsObjectNeeded="TRUE"

>

<%

BOLProducts.setClientEvent(EventTrigger.ON_CLICK,"searchBOL()");

%>

</hbj:radioButton>

<hbj:radioButton

id="MOLProducts"

text="MOL Products"

key="MOL"

tooltip="Search MOL products"

jsObjectNeeded="TRUE"

>

</hbj:radioButton>

</hbj:radioButtonGroup>

But when I try this, I get a NullPointerException!

Any help would be great.

Thanks,

Andy

Not what you were looking for? View more on this topic or Ask a question