Home » Developer & Programmer » Forms » urgent...plz help.
urgent...plz help. [message #79274] Tue, 21 May 2002 00:55 Go to next message
Thomas
Messages: 67
Registered: September 1999
Member
in which trigger and what statements should be given to move to a detail block first item from the master block last item.
also find the number of days between two dates in two fileds and get the value calulted to an other filed. in an other field the result of multipliction of the days and rate should be made possible to appear after exiting the previous field.
Re: urgent...plz help. [message #79276 is a reply to message #79274] Tue, 21 May 2002 01:53 Go to previous messageGo to next message
Remash
Messages: 52
Registered: November 2000
Member
A simple way is to add a KEY-NEXT-ITEM under the last field of the master block. In the trigger write GO_BLOCK(your detail block), then GO_ITEM(first item in the detail block). Assume DATE1 & DATE2 are two date fields and DAYS, RATE & AMOUNT are numeric fields.
No. of days is :DAYS := (:DATE2 - :DATE1) + 1
:AMOUNT := :DAYS * :RATE;
Re: urgent...plz help. [message #79303 is a reply to message #79274] Wed, 22 May 2002 18:49 Go to previous message
George Lam
Messages: 2
Registered: May 2002
Junior Member
Use when-validate-item trigger and simply use '-' (i.e. "2001-01-01" - "2002-03-05") to compute the days between the dates.
Previous Topic: Re: FREE TRAINING ON ORACLE AND DEVELOPER200 CONTACT BY MAIL STEP BY STEP TAINING
Next Topic: Need help urgently!!! insert multiple lines from tabular
Goto Forum:
  


Current Time: Tue Apr 23 10:33:34 CDT 2024