Important Update: Archer Community Scheduled Maintenance on November 23–24 - New Community Launching Soon! Learn More..
2020-01-06 02:44 AM
I have this code for custom Save button, but it is giving warning stating changes are not saved but the record is saving.Could you please suggest :
<a title=" Save and Submit " id="customButtonReview" onclick="javascript:$('#master_btnApply').click();" href="javascript:Save(function(){ ValuesChangeSS('Objectname', 'ObjectID');})"><img src="archer/BackgroundImageGenerator.axd?className=StyledButton&classProperties=caption:Save and Submit;iconSetStyle:VistaRound;baseColor:%23DDDDDD;disabled:False" alt="Save and Submit." border= "8" height= "35" onmouseover="this.style.backgroundColor='#CFB53B';"onmouseout="this.style.backgroundColor='#0052CC';" ></a>
<script language="JavaScript" type="text/javascript">
function Save(Call) {
ShowAnimationAndPostback('master$btnApply');
ShowAnimationAndPostback('master$btnSave');
Call();
}
function ValuesChangeSS(fieldID, assignedValue) {
var valueArray = new Array(1);
if (confirm("Your record is saved with the provided details") == true) {
valueArray[0] = assignedValue;
ArcherTech.UI.GenericContent.GetInstance().setFieldValue(fieldID, valueArray,'');
ShowAnimationAndPostback('master$btnApply');
ShowAnimationAndPostback('master$btnSave');
}
It is performing actions and saving the record but i am getting Warning when i am trying to close the record "X" your changes are not saved do you want to continue.
2020-01-06 11:42 AM
I've moved your question to the RSA Archer Customer/Partner Community" data-type="space space where it will be seen by the product's support engineers, other customers and partners. Please bookmark this page and use it when you have product-specific questions.
Alternatively, from the RSA Customer Support page, click on Ask A Question on the blue navigation bar and choose Ask A Product Related Question. From there, scroll to RSA Archer Suite" data-type="space and click Ask A Question. That way your question will appear in the correct space.
Regards,
Erica
2020-01-06 11:48 AM
Usha, what version of Archer are you on?
Advisory Consultant
2020-01-06 01:12 PM
I suspect pre 6.7
I had same when moved from 5.5 to 6.X due to ShowAnimationAndPostback('master$btnApply');
Better to always use $('#master_btnApply').click();
2020-01-07 02:12 AM
We are in 6.2 Version.
2020-01-07 02:14 AM
Thanks let me try and check it.
2020-02-13 03:30 PM
<div style="text-align:center;"><img src="../BackgroundImageGenerator.axd?className=StyledButton&classProperties=caption:Save And Close Record;iconSetStyle:VistaRound;baseColor:%23DDDDDD;disabled:False" onclick="$('#master_btnSave').click();"></div>
Hope that helps. A simple save and close button.