In version 6, the Apply and Save buttons were modified from version 5. Now, we have to click Save and move the mouse far right to close the record. I made a simple custom object that moves and renames the Save Record button along with adding a Close Record button. Here is a screenshot:
These buttons work great. However, I would like to know if it is possible to combine the Save and Close on a single click like it did in Version 5. Is that possible?
- Community Thread
- Forum Thread
- RSA Archer
- RSA Archer Suite
- Tips and Tricks
To save and close, check out these links:
The record page will see the return of Save and Close in an upcoming release.
Please Join an RSA Archer Working Group & See Upcoming Schedule and Attend an RSA Archer Roadmap Session. Joining the working groups allows you to speak directly with the Product Team about common issues, provide feedback on current and future features, and share experiences with other customers.
Awesome! Thanks for sharing.Very slick.
I must've misinterpreted your statement about moving the buttons. I was trying to actually get the existing close button and move it. Looks like you added a new one and moved that one.
When I was trying to move existing button I was doing something like this:
var x = document.getElementsByClassName("CloseButtonCell");
var x = document.getElementsByClassName("frame-icon-close");
...grabbing the element by class name then and doing the appendchild to the toolbar like you did.
Problem was/is that it was not working all the time. It would work the first time into a record. But, as I kept trying to test/re-test, I'd get a null exception. I believe because of the use of Iframes, etc.
So, I couldn't get the document to actually find the classname unless I was actually in a browser developer window and clicked on the element.
I like how you created the element outside the script and moved that one. Very slick. In the instance where I was creating my own button to mimic the close, I was setting all the properties like:
var closebutton = document.createElement("a");
closebutton.className = "tb-btn-link-left"...
closebutton.id = "...
I didn't need to use 2 custom objects, btw. I was able to just set to "both" and it works just fine. But, I was only using the "Close" button.
Since you were kind enough to share...
Just a little something I discovered in my travels in case you want to need to check for view or edit mode...
State 2 is view mode and State 1 is edit mode.
This way you can keep your code in 1 custom object instead of having to create multiples.
Looked at the article "implemented old save functionality..."
Seems if you try to close too soon, the save will not work. Which, again points back to using something like cookies.
Not sure if you've seen this happen, yet. But, if you have a form (sub-form) that has an attachment field and you add an attachment, the screen refreshes. Then, it actually creates a 2nd html (Save and close) button on your form.
I'd be happy to share what I have if you want it.
Drop the semi-colon from . It should just be 
<div class="tb-btn" data-icon="" data-icon-pos="left">
Oh and upper-case E