Hi Makis,
you need to pass an implementation of CCComboFieldIdText.ILogic interface into the constructor method - this interface contains all the access functions you need to provide to make the control work - independent if it is inside or outside a grid.
For this interface there are two default implementations: LogicByLoadedList and LogicByResource (which internally extends LogicByLoadedList). Of course you may add any own implementation...
So: you can do somthing like the following:
Code:
public class GridItem...
{
CCCOmboFieldIdText m_cfMedicine;
ILogic m_logic;
public GridItem()
{
m_logic = ...;
m_cfMedicine = new ...(m_logic);
}
public String getCfMedicineId() { return m_logic.getId(); }
}
Kind regards, Björn
PS: it's a pity that the page bean component does not offer a getter to its ILogic... ;-) - so, we just added this for the next update...