Home » Developer & Programmer » Forms » Problem in blocks and canvas
Problem in blocks and canvas [message #142067] Thu, 13 October 2005 06:34 Go to next message
selvakumar_82
Messages: 138
Registered: October 2005
Location: chennai
Senior Member

hi ,

In a single form i have two canvas, consider A and B

if i compile A (data block canvas )i am getting only B canvas output, if i compile B canvas i am getting B canvas output,

In canvas A i have various blocks , i have to execute query .
How to access both canvases...........

and one more thing is ,

i have to access A blocks through B canvas

what r the criteria i have 2 consider....

what is the solution,,,,,,,,,,,,,?


Re: Problem in blocks and canvas [message #142072 is a reply to message #142067] Thu, 13 October 2005 06:42 Go to previous messageGo to next message
kiran
Messages: 503
Registered: July 2000
Senior Member
I dont have Forms on my machine.My assumption is that you might have created Canvas B before Canvas A , so only when you run the form you are getting Canvas B.

So in the tree , place Canvas A ahead of Canvas B , while running you will get the Canvas A.

For moving from one block to another block you can use
"go_block()" function.

--Kiran.
Re: Problem in blocks and canvas [message #142225 is a reply to message #142067] Thu, 13 October 2005 18:49 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Actually, when you compile, you are compiling the FORM not just a canvas. The canvas that contains the first enterable item found in the form is the canvas that is displayed.

Which version of forms are you running? What are the names of the blocks in your form - IN ORDER please; you have two canvases - okay; how many windows? What is the 'primary canvas' for your window? What is the first enterable item in your form and on which canvas does it live?

David
Re: Problem in blocks and canvas [message #142239 is a reply to message #142225] Thu, 13 October 2005 22:21 Go to previous messageGo to next message
selvakumar_82
Messages: 138
Registered: October 2005
Location: chennai
Senior Member
In canvas B i have 2 items in a block ,

i have to execute query in that block,

the main problem is i dont know how to link that , Canvas B with canvas pl/sql coding ,

sample coding is ,

go_block(b)

exe_query;

first record ;

while trans_id is not null loop then

if trans_id =1 then
set_menu_item_property('some menu_name' ) to disable the menu item through canvas b values,,,,,

like this it will take final record and select all the menu items





Re: Problem in blocks and canvas [message #142241 is a reply to message #142239] Thu, 13 October 2005 22:34 Go to previous messageGo to next message
selvakumar_82
Messages: 138
Registered: October 2005
Location: chennai
Senior Member
froms 6i , 2 blocks we are using,

only one window ,
Re: Problem in blocks and canvas [message #142243 is a reply to message #142241] Thu, 13 October 2005 22:58 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Quote:

What are the names of the blocks in your form - IN ORDER please
Quote:

What is the 'primary canvas' for your window? What is the first enterable item in your form and on which canvas does it live?
Please answer previous questions.

David
Re: Problem in blocks and canvas [message #142248 is a reply to message #142243] Thu, 13 October 2005 23:19 Go to previous messageGo to next message
selvakumar_82
Messages: 138
Registered: October 2005
Location: chennai
Senior Member
Blocks name is

transview : in this i have user_id and trans_id

user : in this i have canvas items like various push buttons ,

primary window is : transview
Re: Problem in blocks and canvas [message #142252 is a reply to message #142248] Thu, 13 October 2005 23:26 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
For the third time
Quote:

What is the first enterable item in your form and on which canvas does it live?



David
Re: Problem in blocks and canvas [message #142260 is a reply to message #142252] Fri, 14 October 2005 00:05 Go to previous messageGo to next message
selvakumar_82
Messages: 138
Registered: October 2005
Location: chennai
Senior Member
wait,

first i have one login screen (form),

if login id is valid it will call another form ,

in that form i have two canvases ,

in that 2 canvases in s datablocks canvas and another one contain varoius push buttons,

if i press various push button , the custom menu will change ,

i have to give authentication for menus ,

so, based on trans_id in the data block , the security will be provided ,

So, first enterable item in login form is user_id,

through that IN USER CANVAS (when button pressed ) i will call another procedure to provide authentication.
In that authentication
i mentioned various trans id , so i dnt know how to execute that particular query in that block ,

it doesnt disable the menus based on blocks trans id..........................

thats it
Re: Problem in blocks and canvas [message #142263 is a reply to message #142260] Fri, 14 October 2005 00:15 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Okay, you have two forms - what are their names? Do you have two canvases in the logon form?

David
Re: Problem in blocks and canvas [message #142298 is a reply to message #142263] Fri, 14 October 2005 01:54 Go to previous messageGo to next message
selvakumar_82
Messages: 138
Registered: October 2005
Location: chennai
Senior Member
no only one canvas in that form:

one for login and another one is entry:
Re: Problem in blocks and canvas [message #142344 is a reply to message #142067] Fri, 14 October 2005 04:27 Go to previous message
selvakumar_82
Messages: 138
Registered: October 2005
Location: chennai
Senior Member
i got it ,

thanks a lot,
Previous Topic: associating keys with triggers
Next Topic: mime type of a blob column
Goto Forum:
  


Current Time: Fri Sep 20 00:57:06 CDT 2024