row.setAttribute(Date,Date)
Good morning.
I need to know how to employ the setAttribute method in Row Class. I have an attribute in my DataBase of Date type, and I require to insert a Date object. My code is the following:
ViewObject vo = ...
Row r = vo.createRow();
SimpleDateFormat formatter1 = new SimpleDateFormat ("dd-MM-yyyy");
setAttribute("EventDate",new Date((formatter1.format(eventdate)).toString()));
//eventdate is an String that gets the date
//EventDate is the atribute of type Date in DataBase
vo.insertRow(r);
Module.applicationModule().getTransaction().commit();
Note: I can4t use the <jbo:setAttribute> tag because that interacts only with view and I need to update the tables in the DataBase. When I try to update the view appears an error.
Please help me, I need that urgently. Thanks.
Oscar Romero.