Important Update: Community URLs redirect issues are partially resolved. Learn More. .

cancel
Showing results for 
Search instead for 
Did you mean: 

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 :

UshaMoourakonda
Contributor

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.

Usha
6 REPLIES 6

EricaChalfin
Archer Employee
Archer Employee

Usha Moourakonda‌,

 

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

DavidPetty
Archer Employee
Archer Employee

Usha, what version of Archer are you on?

 Advisory Consultant

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();

We are in 6.2 Version.

Usha

Thanks let me try and check it.

Usha

JeffConti
Contributor III
<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.