You are correct about clicking + and the subform opening, fill the popup and clicking add to add back to the table.
The services are setup correctly and pointed to the correct fields.
I do have Table OnShow event with the following:
if(BO.F_ExpenseCategory.getValue() !==''){
app.getForm('F_ExpenseForm').getBO().F_TempExpenseCategory.setValue(BO.F_ExpenseCategory.getValue()
);
}
//attach a listener to the temp dropdown and pass in my object
var srv = app.getForm('F_ExpenseForm').getServiceConfiguration('SC_GetGL_DeptExpCat');
srv.connectEvent("onCallFinished", function(success)
{
if(success) {
var j = BO.F_GLCode;
j.setValue(app.getForm('F_ExpenseForm').getPage('P_ExpensePage').F_TempGLCode.getValue());
app.getForm('F_ExpenseForm').getPage('P_ExpensePage').F_TempGLCode.getValue();
BO.F_GLCode.setValue(app.getForm('F_ExpenseForm').getPage('P_ExpensePage').F_TempGLCode.getValue());
}
});
If I remove the above code, the form and subform populate accordingly except for the GL code on the Subform/Table. Adding the code above back to the Table OnShow event, the GL code will populate, but any table entries already created will update with the latest GL code. Correct example would be:
With Department = Assembly, then Expense Category = Company Car > GL Code = 55461, Expense Category = Meals > GL Code = 55210, Expense Category = Transportation > GL Code = 55200.
But what I am getting is as follows: Department = Assembly, then Expense Category = Company Car > GL Code = 55200, Expense Category = Meals > GL Code = 55200, Expense Category = Transportation > GL Code = 55200.