Want u fetch all record from a table which name is shipment type
ShipmentType st = OBProvider.getInstance().get(ShipmentType.class);
what should i use to know the lenght of it to run a for loop
Example:
for(i=0;i<=st.getID.length();i++;) {
ToDo my action
}
PS:Using Openbravo
There are multiple ways to fetch records from Openbravo's DAL.
check the documentation of OBQuery
here.
Check the implementation of OBCriteria
in Openbravo's wiki
page.