Home » Developer & Programmer » Forms » Refresh Detail lines when Header Changes (Forms 10g)
Refresh Detail lines when Header Changes [message #480150] Thu, 21 October 2010 08:12 Go to next message
cotton
Messages: 10
Registered: February 2010
Junior Member
Hello,

My issues is when I changes the data in Header block the detail block should corresponding data immediately related to header on the detail lines.

The form is based on master detail relationship.


Thanks
Saurabh
Re: Refresh Detail lines when Header Changes [message #480151 is a reply to message #480150] Thu, 21 October 2010 08:18 Go to previous messageGo to next message
cookiemonster
Messages: 13938
Registered: September 2008
Location: Rainy Manchester
Senior Member
That's vague.
What are you changing in the header exactly. What do you expect to happen in the detail records exactly?
Re: Refresh Detail lines when Header Changes [message #480159 is a reply to message #480151] Thu, 21 October 2010 09:02 Go to previous messageGo to next message
cotton
Messages: 10
Registered: February 2010
Junior Member
I have 3 Fields in the header.

In Details there is a tabular table of 5 columns where the data is displayed and entered.

Now if there is change in data in the header the data should change as per the conditions of the header .

I can put a Query button but the users don't want to do so.
They want the same should change on fly and they can edit and delete anything they want.

Thanks
Re: Refresh Detail lines when Header Changes [message #480163 is a reply to message #480159] Thu, 21 October 2010 09:17 Go to previous messageGo to next message
cookiemonster
Messages: 13938
Registered: September 2008
Location: Rainy Manchester
Senior Member
cotton wrote on Thu, 21 October 2010 15:02

Now if there is change in data in the header the data should change as per the conditions of the header .


That tells me nothing. Give an example.
Re: Refresh Detail lines when Header Changes [message #480171 is a reply to message #480163] Thu, 21 October 2010 10:02 Go to previous messageGo to next message
cotton
Messages: 10
Registered: February 2010
Junior Member
Okay here is an example.

Header
Id :
Name :
PIN :

Lines
Address :
City :
Metro :
Visit Done:
Comments:

Now when the user enter
ID : 100
Name : Saurabh
Pin : 110000

The lines should Display
Address : 123 North Caro
City : GHZ
Metro : No
Visit Done: 1
Comments: none

Now when ID is changed to 2 or any of the header is changed the lines should change as follows
Address : 987 Marco Road
City : IND
Metro : Yes
Visit Done: 10
Comments: none

Thanks
Saurabh
Re: Refresh Detail lines when Header Changes [message #480172 is a reply to message #480171] Thu, 21 October 2010 10:08 Go to previous messageGo to next message
cookiemonster
Messages: 13938
Registered: September 2008
Location: Rainy Manchester
Senior Member
So when you say change what you mean is re-query?
Re: Refresh Detail lines when Header Changes [message #480230 is a reply to message #480150] Thu, 21 October 2010 19:45 Go to previous messageGo to next message
cotton
Messages: 10
Registered: February 2010
Junior Member
Yes the same should re-query the data on the new condition.

Thanks
Saurabh
Re: Refresh Detail lines when Header Changes [message #480279 is a reply to message #480230] Fri, 22 October 2010 03:51 Go to previous message
cookiemonster
Messages: 13938
Registered: September 2008
Location: Rainy Manchester
Senior Member
Quite why you didn't say that in the first place I don't know.
Best you're going get is to put execute-query in one or more key-next-item triggers on the header block.
Previous Topic: frm-40200 error in LOV
Next Topic: Frm:40401
Goto Forum:
  


Current Time: Thu Sep 19 12:26:59 CDT 2024