import java.math.BigDecimal;
import org.compiere.util.DB;
import org.compiere.util.Env;
String sql = "SELECT t.campo1, t.campo2 FROM Tabla t;";
rows = DB.getRowSet(sql);
// You can use "while" instruction when result are many rows
if(rows.next())
{
A_Tab.setValue("Campo1", rows.getString(1));
A_Tab.setValue("Campo2", rows.getInt(2));
...
};return "";
No hay comentarios:
Publicar un comentario