Adding "insert and stay" (copy existing record) UI action to SDCL Scrum Process module
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2015 07:40 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2015 07:54 AM
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);
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2020 02:30 PM
Hi Anurag,
You got the script right? which i pasted here earlier?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2020 09:00 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2020 09:15 AM
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.