-1

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

i23
  • 508
  • 2
  • 12
Aziz Shaikh
  • 33
  • 1
  • 6

1 Answers1

0

There are multiple ways to fetch records from Openbravo's DAL.

  • OBCriteria
  • OBQuery
  • Using SQL/HQL Query Interface.

check the documentation of OBQuery here.

Check the implementation of OBCriteria in Openbravo's wiki page.

Gopinagh.R
  • 4,826
  • 4
  • 44
  • 60