Hi here it is,
<a href="#" onClick=confirm('Are you really sure deleting data?')> Delete</a>
Regards
Raja
Hello Mathias,
yes, of course. Here's an example. Set the original button for the planning function to "hidden". Then add a text component with type HTML and the following content (assuming the function button is call DeleteButton):
<script>
function SubmitWithPrompt(txtPrompt, txtStdButtonName) {
if( window.confirm( txtPrompt ) ) {
return( bspSubmit( txtStdButtonName ) );
}
}
</script>
<span><a href="#1" onclick="javascript:SubmitWithPrompt('Are you really sure deleting data?', 'DeleteButton'); return false;" class="sapBtnStd" OnMouseOver="javascript:window.status = 'Delete'; return true;" title=""><nobr>Delete</nobr></a></span>
When you execute the web interface and click the butten, the system will prompt you first.
Regards,
Marc
SAP NetWeaver RIG, US BI
Add a comment