Skip to Content

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

setDefaultButton not working

Hi

Can anybody suggest me how to set default button in jspDyn page , so that on pressing enter button it should be submitted. I have used the below code but it is not responding to the Enter key.

<hbj:button

id="Search"

text="SearchOrder"

width="150px"

tooltip="Click here to search Orders"

onClick="SearchOrder"

disabled="false"

design="STANDARD">

<%

myFormId.setDefaultButton(Search);

%>

</hbj:button>

Regards,

Joseph

Former Member
Former Member replied

HI,

Try this

<hbj:button id="Send_Button"

text="Submit"

tooltip="Send feedback"

onClick="doProcess"

width="100"

design="EMPHASIZED">

<% myFormId.setFocusedControl(Send_Button); %>

</hbj:button>

If you use more then one "EMPHASIZED" button, the last button defined becomes "EMPHASIZED".

0 View this answer in context

Helpful Answer

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