Hi All,

I use a pre-insert interceptor to generate an ID for a record.

The insert operation is sucessfully on the database, I mean the SQL statement
runs  well.

After the followup of the form I want to display the generated ID but jdbform
does not.


WHERE fieldName1 is the first ID I generate
      fieldName2 is the second ID I generate

I know I could use sessions to pass data from Interceptor to the form, but is
there a cleaner way to do it without managing session variables?

My preinsert interceptor ends with the following lines..


................................................................

                        
System.out.println("++++++++++++++++++++++++++++++++++++++++++studentcode:" +
studentCode);
                        
System.out.println("++++++++++++++++++++++++++++++++++++++++++idperson:" +
new_id);
                                        
                        //Test per vedere se lo rilegge:
                        fieldValues.remove(fieldName1);
                        fieldValues.remove(fieldName2);
                        //Fine test se lo rilegge
                        setValue(table, fieldValues, fieldName1, 
Long.toString(new_id));
                        setValue(table, fieldValues, fieldName2, studentCode);
                        
                        personID_test=(String)
fieldValues.get("id_person").getFieldValue().toUpperCase();
                        studentcode_test=(String)
fieldValues.get("studentcode").getFieldValue().toUpperCase();
                        
                        return GRANT_OPERATION;

................................................................


Thanx 
Ivan

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.


-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id149&alloc_id66&op=click
_______________________________________________
DbForms Mailing List

http://www.wap-force.net/dbforms

Reply via email to