Developer 2000: Windows and Canvas Views 2
Date: 1996/08/17
Message-ID: <4v4jhk$jgr_at_newsbf02.news.aol.com>#1/1
Hi!
Thanx for responding in advance!
I have a window called SCHOOL to which two content canvases called
SUBJECT_CANVAS and COURSE_CANVAS are attached. The SUBJECT_CANVAS
contains the
SUBJECT block which is a single record block. The COURSE_CANVAS has the
COURSE block which is also a single record block.
Also, the "view" property of the window SCHOOL is SUBJECT_CANVAS,
meaning the primary view is set up for the SUBJECT_CANVAS. The SUBJECT
block
has a button called 'PRESS' which has a
WHEN-BUTTON-PRESSED trigger attached to it which reads:
begin
replace_content_view('SCHOOL', 'COURSE_CANVAS');
end;
Thus, the system is set up like this:
When a user enters into the form, the school window comes up. The user
can perform
a query on the SUBJECT block, then if the user desires to look up the
COURSE block, he/she needs to bring up the COURSE_CANVAS on the
same SCHOOL window. To do that user can click
on the button "PRESS" and basically the above code
will be executed. However, the COURSE_CANVAS is not coming up in the
SCHOOL window.
I read thru the HELP section and looked thru it a little
more carefully. What I am almost sure is happening is this:
ORACLE FORMS 4.5 always displays the current item or the item that
has "FOCUS". When I first enter into the SUBJECT block in
the SCHOOL window, The focus is in one of the text items in the SUBJECT
block
called Subject_Id, and when I click on the button "PRESS", the focus
of Subject_Id prevents the code in the button from doing what is needed.
In other words, the SUBJECT_CANVAS would have been replaced by the
COURSE_CANVAS if it were not for the FOCUS problem.
Is there a way to do this?
Also, what is the use of having a built-in like
REPLACE_CONTENT_VIEW to switch a window's content canvas-view
when a simple Go_Block('COURSE') OR Go_Item('COURSE.COURSE_ID') routine
in the
WHEN-BUTTON-PRESSED trigger of "PRESS" can bring up the
current item into focus and thus bring up the COURSE_CANVAS into
display?
Thank you very much for helping me. I Certainly Appreciate it.
Bye!! Have a Nice Weekend!!
Anand
email: nvedula_at_aol.com
fax: 703 437 6053
Received on Sat Aug 17 1996 - 00:00:00 CEST