Adding "insert and stay" (copy existing record) UI action to SDCL Scrum Process module

dlrich
Kilo Contributor

What is require to add "insert and stay" (copy existing record) UI action to SDCL Scrum Process module?   That is, what is the effort and level of customization required and what are the risks?

7 REPLIES 7

Anurag Tripathi
Mega Patron
Mega Patron

Hi David,



I have not tested /used it so test well.


Here is what you will need to do


Create a new ui action on the required table (rm_enhancement i presume)


Active - true


Name - Insert And Stay


Form Context Menu - True


Action - sysverb_insert_and_stay


Condition -> as per your needs



Script


doInsertAndStay();


function doInsertAndStay() {


    var saveMe = current;


    current.insert();


    action.setRedirectURL(saveMe);


}


-Anurag

Hi Anurag,

You got the script right? which i pasted here earlier?

Vasu1
Mega Contributor

Hi Anurag,

 

I tried your script in PDI it s working fine.

But the requirement is different if i click insert and stay on stories from the page has to show old number and create a copy with new number

for example story1234 if i click insert and stay on that it has to stay on stry1234 copy created as 1235?

 

please can you help with that?

 

Best,

chavan

Insert and stay by nature takes you to the new record created. 

You can somehow try to save the url and of the previous record and many set the url to that record.

 

-Anurag