Hi,
I've made a DCT with hidden fields inside a container. I've used "onSaveValid" to save the data but I've noticed
an irregular behaviour of "onSaveValid" i.e. it is saving data sometimes and sometimes not when I open the DCR
from backend. Below is the JavaScript Code which is giving me issue.
-------------------- Javascript File ------------------------
IWEventRegistry.addFormHandler("onFormInit", init);
function init() {
// OnSave Event Call
IWEventRegistry.addFormHandler("onSaveValid", fetchOffers);
}
// This is Function for fetching items of offers
function fetchOffers(){
//alert("-------inside fetchOffers-------------");
var offerItem = IWDatacapture.getItem("/OurProgramme/OffersAndDeals/Offers");
var offerValue = offerItem.getOptions()[offerItem.getValue()].value;
//alert("OFFER ITEM = "+ offerItem);
alert("OFFER VALUE = "+ offerValue);
IWDatacapture.getItem("/OurProgramme/OffersAndDeals/OfferNameValue").setValue(offerValue);
return true;
}
Is this a bug?
If this is a bug, Has someone raised the issue about the same ?
TeamSite : 7.4.1
Thanks in Advance !