Grid: Insert in selected rows the same value

Hello,

I am trying to find in a way in a Grid to insert a special value to selected rows. Value is not always the same so I have to use kind of a prompt message to enter the value and then to insert this value into selected rows.

I know how to insert a predefined value into selected rows with help of new button and RUN. But I don’t know how to implement the prompt message in to this RUN option, since value is always different.

I know how to create a prompt message with new button and JavaScript, but it doesn’t work in new button RUN.

var person = prompt(“Please enter step number”, “0”);

if (person != null) {
document.F1.main_prod_step.value = person;
}

Can some one help?

BR
Stefan