cancel
Showing results for 
Search instead for 
Did you mean: 

simple confirm window. easy problem

Former Member
0 Kudos

Hi all,

<b>SRM-module</b>

<b>transaction:</b> se80

<b>Object name:</b> BBP_QUOT -> Topic 99 -> HTML Templates -> SAPLBBP_QUOT_UI_ITS_300

When bidder publish his offer by pressing publish button we want to add some extra window where bidder confirm his decision.

<b>Original code :</b>

`if( SB_SAVE.exists )`

`if( SB_SAVE.disabled )`

`BBPDisabledButton(SB_SAVE.label)`

`BBPButtonSpace()`

`else`

`BBPButton(label=SB_SAVE.label, jsFunction="clickONE('QUOT_SAVE','"&SB_SAVE.label&"')",tooltip=#TOOLTIP_SAVE)`

`BBPButtonSpace()`

`end`

`end`

`BBPSetExtButton("SB_SAVE")`

......

function clickONE(OkCode,label){

if ( hit >= 1 ){

this.count++;

}

else

{

hit = 1;

if (!document.layers){

var element = document.getElementsByName(label);

element[0].style.cursor="wait";

}

SetOkCode(OkCode,'BBPForm', '', '', '');

}

}

<b>Our modification:</b>

function confirmSave() {

if( confirm("Are you sure?") == "true" )

{

SetOkCode(jsFunction="clickONE('QUOT_SAVE','"&SB_SAVE.label&"')",'')

}

}

.......

if( SB_SAVE.exists )`

`if( SB_SAVE.disabled )`

`BBPDisabledButton(SB_SAVE.label)`

`BBPButtonSpace()`

`else`

`BBPButton(label=SB_SAVE.label, jsFunction="confirmSave()", tooltip=#TOOLTIP_SAVE)`

`BBPButtonSpace()`

`end`

`end`

`BBPSetExtButton("SB_SAVE")`

confirm Windows is working but after clicking OK nothing happen. We don't have any documentation about class in this template . Java don't show errors in this code.

Any suggestions?

I think it should be easy one. <b><REMOVED BY MODERATOR></b>

Best Regards.

Peter

Title and Message were edited by:

Alvaro Tejada Galindo

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Ok, we fix the problem. Our function should be after clickOne function to work.