<?add-page-total: INV_AMT ; INVOICE_AMT_PT ?> Here INV_AMT is a field name and INVOICE_AMT_PT is a varable which stores the pa ge total. To show the page total , add the below tag in the footer or Header <?show-page-total: INVOICE_AMT_PT; #,##0.00 ?> CREATE OR REPLACE TRIGGER dept_bir BEFORE INSERT ON departments FOR EACH ROW BEGIN IF :new.id IS NOT NULL THEN RAISE_APPLICATION_ERROR(-20000, 'ID cannot be specified'); ELSE SELECT dept_seq.NEXTVAL INTO :new.id FROM dual; END IF; END;