Home » Developer & Programmer » Forms » Summary Item problem
Summary Item problem [message #151623] Thu, 15 December 2005 21:46 Go to next message
Atul P
Messages: 61
Registered: June 2003
Location: Mumbai-Jakarta
Member

Hi

I am using Oracle Forms 6i.
I have 3 database Blocks.
1. HEADER
2. DETAILS
3. SUB DETAILS

Block SUBDETAILS is linked with DETAILS.
Now whenever I try to Have a Summarised column in my DETAILS BLOCK.
It gives an error.
As in I wish to show TOtal of AMount.
I use a NON-DATABASE-ITEM with calculation-SUMMARY

My SUmmarised Item is in DETAILS BLOCK.
PRE-COMPUTE set to NO
QUERY ALL set to Yes.

Still cannot Use the SUMMARY FUNCTION.
Howevere when I delete from SUB DETAILS Block It works fine.

Can someone explain why this happens.
And any solution to this.

p.s: I dont want to write a loop to calculate my Total Amount.



Thks
Atul P

Re: Summary Item problem [message #151669 is a reply to message #151623] Fri, 16 December 2005 02:03 Go to previous messageGo to next message
Maaher
Messages: 7065
Registered: December 2001
Senior Member
Atul P wrote on Fri, 16 December 2005 04:46

Now whenever I try to Have a Summarised column in my DETAILS BLOCK.
It gives an error.
An error? Then you have to implement a solution.

Seriously, you cannot expect to get a simple and clear solution unless you provide the exact error message. Or do you mean that the field contains erroneous data?

MHE
Re: Summary Item problem [message #151694 is a reply to message #151669] Fri, 16 December 2005 03:41 Go to previous messageGo to next message
Atul P
Messages: 61
Registered: June 2003
Location: Mumbai-Jakarta
Member

I have 3 blocks

HEADER
DETAILS
SUB_DETAILS (Linked with DETAILS)

NOw in DETAILS Block I have
Fields as below

DATABASE FIELD
TRND_AMOUNT -> Not Displayed

NON DATABASE FIELDS
NBT_AMOUNT -> Data Entered through Screen
NBT_A_AMOUNT -> Calculation (Formula Based :NBT_AMOUNT * N1)
NBT_B_AMOUNT -> Calculation (Formula Based :NBT_AMOUNT * N2)

Now at Bottom I wish to Show Summary for
All above four fields.
For
TRND_AMOUNT -> There is no error
HOwever when I want to show Summary using
Calculation-Summary for NBT_AMOUNT, NBT_A_AMOUNT, NBT_B_AMOUNT
then it shows following ERROR:
----------------------------------------------------------
FRM-30427: Summarized control item cannot reside in a block with Precompute Summaries set to Yes.
Item: NBT_TOT_A_AMT
Block: DETAILS
FRM-30085: Unable to adjust form for output.
----------------------------------------------------------
ABove conditions have been taken care off.
Still cannot get rid of the error.

Hwever if i remove the SUB_DETAILS BLOCK then the Error is not coming and I can RUN THE FORM.

hope this should be sufficent to put forward my problem.

Thks
Atul



[Updated on: Fri, 16 December 2005 03:46]

Report message to a moderator

Re: Summary Item problem [message #151702 is a reply to message #151694] Sun, 18 December 2005 07:35 Go to previous messageGo to next message
sachinjainonweb
Messages: 24
Registered: October 2005
Junior Member
Hi Atul,

Try this

DETAILS block properties:-
Pre-compute Summary -no
Query All Reords:-Yes


Make another block just to hold summary of the four fields, say CTRL block

CTRL block properties:-
single record -Yes
Query All Reords:-Yes
Pre-compute Summary -no
Database Block :-no

and four summary items in CTRL block , with
Calculation mode:- Summary
Summarized Block:-DETAIL
Summarized Item:-Items of Detail Block


Luck Always
Re: Summary Item problem [message #151954 is a reply to message #151702] Tue, 20 December 2005 01:05 Go to previous messageGo to next message
Atul P
Messages: 61
Registered: June 2003
Location: Mumbai-Jakarta
Member

Hi Sachin


Thanks I tried still does not work.
However when i Delete the Relationship between
SUB-DETAILS and DETAILS Block it works.

Also I tried to create same form with only required fields
it works.
So I guess I wil re-do the form.
Never know it might work.

Thks
Anyways
Atul P
Re: Summary Item problem [message #152395 is a reply to message #151954] Thu, 22 December 2005 21:12 Go to previous message
Atul P
Messages: 61
Registered: June 2003
Location: Mumbai-Jakarta
Member

Problem Solved !!!!!!!!1

the Problem has been solved.
I had POst-Change Trigger on the DETAILS Block to fetch
Description for some codes.
After getting rid of those POST-CHANGE triggers it works.

Thks
Atul P

Previous Topic: FRM-41810 when adding ON-LOGON trigger
Next Topic: Differece between the versions of forms
Goto Forum:
  


Current Time: Fri Sep 20 05:36:08 CDT 2024