dont now if this is any different but here goes
First Source code- called to clear down combo and must be executed
//Created 08October2003
//Clear down a combox of all values
// Param1: ControlName of panel control
{
ObRun.ObPanel.ObCtrlGui.ObComboGui myCombo;
myCombo = (ObRun.ObPanel.ObCtrlGui.ObComboGui)ObUserAPI.getControlByName(this.getCaller(), new ObCharFld("*Current"), &(1:).toString());
if (myCombo != null) myCombo.clear();
}
And the second source code to add values
//Created 08October2003
//Add a value description and hidden key to a combo control
// Param1: ControlName of panel control
// Param2: Hidden Key to be returned to Action Diagram
// Param3: Combo value to appear to the EndUser
{
ObRun.ObPanel.ObCtrlGui.ObComboGui myCombo;
myCombo = (ObRun.ObPanel.ObCtrlGui.ObComboGui)ObUserAPI.getControlByName(this.getCaller(), new ObCharFld("*Current"), &(1:).toString());
if (myCombo != null) {
final String param0 = &(2:).toString();
final String param1 = &(3:).toString();
((ObComboData)myCombo.getData()).addValuePair(param1, param0);
((ObComboData)myCombo.getData()).finishValues(param1, param0);
}
}
this did work BUT CA java runtime changes and CA did not like me at the time for calling internal methods not offically exposed as they would change internal workings all the time which was and is their right,