I have created a radio control editor by running through some samples
This editor creates a collection of a lookup editor's data source (from the helper class) and adds a radio edit for each object in that collection
The issue I am having, is when a user clicks on one of the radio buttons and processes the form, I get an error on the page saying that the pendingcallbacks function isn't found
I've attached the editor
The lines where it errors out:
function xafHasPendingCallbacks() {
var hasPendingCallbacks = false;
for(var i = 0; i < __pendingCallbacks.length; i++) {
if(__pendingCallbacks[i]) {
hasPendingCallbacks = true;
break;
}
}
return hasPendingCallbacks;
}
When it executes for(var i = 0; i < __pendingCallbacks.length; i++) {, the __pendingCallbacks returns null.
Steps to Reproduce:
Create an object with a persistent object as a property
Set the editor for that property to be the RadioEditor
Select a radio value, and hit Save, or any action.
Actual Results:
The lines where it errors out:
function xafHasPendingCallbacks() {
var hasPendingCallbacks = false;
for(var i = 0; i < __pendingCallbacks.length; i++) {
if(__pendingCallbacks[i]) {
hasPendingCallbacks = true;
break;
}
}
return hasPendingCallbacks;
}
When it executes for(var i = 0; i < __pendingCallbacks.length; i++) {, the __pendingCallbacks returns null.
Expected Results:
Action is executed correctly and the value selected in the radio edit is set to the property.