detail block not displaying values when master block is executed [message #394151] |
Wed, 25 March 2009 18:54 |
nastyjillu
Messages: 211 Registered: February 2009
|
Senior Member |
|
|
hi,
i have 3 blocks. block A,B and C.
A is master block to B (B is detail block to A)
B is master block to C.(C is detail block to B)
when i query the form, blocks A and B displays the values.
but C doesnt display.
block C displays values only when i click in block C.
what is the reason for this?? how to solve this problem??
thanks
jillu
|
|
|
|
Re: detail block not displaying values when master block is executed [message #394350 is a reply to message #394165] |
Thu, 26 March 2009 09:46 |
nastyjillu
Messages: 211 Registered: February 2009
|
Senior Member |
|
|
i changed it as you said. still its not working.
deferred was 'yes' and automatic query was 'No' before. i made both as 'No'.
coordination property for relation in block A is deferred='yes', automatic query='No'. but block B is displaying values when block A is executed. then why is block C not displaying values until i click on that block??
jillu
|
|
|
|
|
Re: detail block not displaying values when master block is executed [message #394401 is a reply to message #394392] |
Thu, 26 March 2009 16:12 |
nastyjillu
Messages: 211 Registered: February 2009
|
Senior Member |
|
|
but now there is no on-populate-details or on-clear-details trigger present in block B.
is this correct. i read that when we are creating relation, then these 2 triggers should be present even if they have NULL in them.
is there any workaround for this, like coding in other triggers such that these 2 triggers are not necessary. ?
thanks
jillu
|
|
|
|
Re: detail block not displaying values when master block is executed [message #394527 is a reply to message #394460] |
Fri, 27 March 2009 12:10 |
nastyjillu
Messages: 211 Registered: February 2009
|
Senior Member |
|
|
there are on-populate-details trigger and on-clear details trigger in form level. might be that is taking care.
i have got other issue in other form.
let me explain you.
i have 3 blocks. suppose 'A', 'B','C'.
A is master block to B (B is detail block to A)
B is master block to C.(C is detail block to B)
now we want to get rid of block 'A'.so that block B is the first block in the form and C is the next block (below block B).
now i deleted the relation in block A and made all the items in block A as invisible. and i positioned the block B as first block after ctrl block in object navigator. and i made required property of items in block A as 'No'.
and also in when-new-form-inst trigger iam writing
go_block('B') i tried go_item('B.name') also.
now when i compile the form and open the application iam getting below error:
frm-40106:no navigable items found in destination block.
i know that go_block is refering block A ,thats why iam getting error.
but block A is no more master block as i deleted the relation it had and is also not the first block in the object navigator.
even though iam getting same error. what is the root cause for it??
can i delete block A from object navigator?? does this solve my problem?
but its not right to delete the block as we may need it in future.
thanks
jillu
|
|
|
Re: detail block not displaying values when master block is executed [message #394557 is a reply to message #394527] |
Fri, 27 March 2009 15:04 |
nastyjillu
Messages: 211 Registered: February 2009
|
Senior Member |
|
|
i solved the issue,
solution is:
open property pallette of the module (right click on module name-> open property).
i gave the first navigation block as B.
now its working fine, it opens form and have cursor on B block. but iam getting other issue here.
when the form is opened and iam getting the same error at the bottom of the form. error is below:
frm-40106:no navigable items found in destination block.
why am i getting this error again??
other issue iam getting is, when i query for some record and click on the detail blocks its fine. but when i click on the B block from detail blocks , B blcok is getting executed and its showing the values which were displayed at the form opening.
how to solve this?
|
|
|
|
|
|
Re: detail block not displaying values when master block is executed [message #394692 is a reply to message #394625] |
Sun, 29 March 2009 18:12 |
nastyjillu
Messages: 211 Registered: February 2009
|
Senior Member |
|
|
but i dont want to show block A in the form, then where is the point of navigation??
i want to show block B as first block and block A as second block.
i want to get rid of block A. i dont want block A.
and block B has enterable fields.
as i told about a query in cursor. its fetching min(seq) from ao_mods table. and min(seq) is block A. so obviousle block A is assigned for master_block.
|
|
|
|
|
|
|
Re: detail block not displaying values when master block is executed [message #395124 is a reply to message #394151] |
Tue, 31 March 2009 07:08 |
cookiemonster
Messages: 13963 Registered: September 2008 Location: Rainy Manchester
|
Senior Member |
|
|
Now I'm really confused.
Who said anything about deleting data from a table?
I certainly didn't - I suggested you delete the datablock from the form (in form builder).
What is this cursor?
Is there a relationship between block A and block B?
You said a while back that you got rid of the relationship but your lastest post seems to imply a relationship still exists.
|
|
|
Re: detail block not displaying values when master block is executed [message #395245 is a reply to message #395124] |
Tue, 31 March 2009 21:12 |
nastyjillu
Messages: 211 Registered: February 2009
|
Senior Member |
|
|
we have all the block names in a table called ao_block.
we have module names in a table called ao_modules.
same with fields.
so there is a cursor in a PLL which gets value of l_master_block parameter as block A.
that is why A acts as master block.
even though i delete datablock A, it doesnt make difference.
so i have to make changes in table.
my leader is working on it. we have to do something about data.
thanks for help.
will let u know what we did to solve
|
|
|