Home » Developer & Programmer » Forms » proble of content canvas
proble of content canvas [message #262720] Tue, 28 August 2007 02:23 Go to next message
fam_bila
Messages: 43
Registered: August 2007
Location: pakistan
Member
hiii! Razz
i make a cnvas with some text items and button on it.now, i want that when i press the button a new content canvas should open. rather in new window or same window.
Plz help me to solve it.
regards
Re: proble of content canvas [message #262787 is a reply to message #262720] Tue, 28 August 2007 05:07 Go to previous messageGo to next message
Soumen Kamilya
Messages: 128
Registered: August 2007
Location: Kolkata
Senior Member

Attached that content canvas with a new window which is not used by your default canvas. then call the SHOW_WINDOW Built-in function from WHEN-BUTTON-PRESSED trigger of a button. It will works.

Cheers
Soumen
Re: proble of content canvas [message #263401 is a reply to message #262787] Wed, 29 August 2007 23:46 Go to previous messageGo to next message
fam_bila
Messages: 43
Registered: August 2007
Location: pakistan
Member
I have done iit.and set the window primary canvas property as canvas2...it compile and work properly but give an error like this.
FRM-30161: Inconsistent relationship between window MY_WINDOW and its primary canvas MARK_ATT.
Window MY_WINDOW


how can this error remove.
plz help me.
thanks
Re: proble of content canvas [message #263415 is a reply to message #263401] Thu, 30 August 2007 00:22 Go to previous messageGo to next message
djmartin
Messages: 10180
Registered: March 2005
Location: Canberra ACT Australia
Senior Member
Account Moderator
Google 'FRM-30161' and you will find http://srmwww.gov.bc.ca/imb/3star/oracle_support/body-forms_migration_faq.html#FRM-30161 Does the entry under 'FRM-30161' help at all?

David
Re: proble of content canvas [message #263455 is a reply to message #262720] Thu, 30 August 2007 02:17 Go to previous messageGo to next message
fam_bila
Messages: 43
Registered: August 2007
Location: pakistan
Member
sorry ,the solution tells in th given link is confusing .i cant understand how to hit re-inherit button on the desired property..
plz solve my problem.
regards
Re: proble of content canvas [message #263469 is a reply to message #263455] Thu, 30 August 2007 02:28 Go to previous messageGo to next message
djmartin
Messages: 10180
Registered: March 2005
Location: Canberra ACT Australia
Senior Member
Account Moderator
Do you have the main window defined first? Is it defined as the 'console window' (this is a form level property)? Is the canvas for the first window defined before the canvas of the second window?

Have you defined the 'primary canvas' on each of your windows? Are they different and correct?

Do you have the canvas property 'raise on entry' set to 'yesy' on more than one canvas?

David
Re: proble of content canvas [message #263481 is a reply to message #262720] Thu, 30 August 2007 02:56 Go to previous messageGo to next message
fam_bila
Messages: 43
Registered: August 2007
Location: pakistan
Member
David,thanks for helping me..

I have set all these properties as you says, but the problem is remain same.

plz try to further solve it.
thanks
Re: proble of content canvas [message #263718 is a reply to message #263481] Thu, 30 August 2007 19:46 Go to previous messageGo to next message
djmartin
Messages: 10180
Registered: March 2005
Location: Canberra ACT Australia
Senior Member
Account Moderator
So you are saying that you have 'raise on entry' set to 'yes' for both. Set this to 'no' for the second one.

David
Re: proble of content canvas [message #263751 is a reply to message #262720] Thu, 30 August 2007 23:39 Go to previous messageGo to next message
fam_bila
Messages: 43
Registered: August 2007
Location: pakistan
Member
now i set the "raise on property" as 'yes' for the first and 'no' for the second one..but the erro is reamin same.
Re: proble of content canvas [message #263761 is a reply to message #263751] Thu, 30 August 2007 23:59 Go to previous messageGo to next message
djmartin
Messages: 10180
Registered: March 2005
Location: Canberra ACT Australia
Senior Member
Account Moderator
If acceptable, please post your form.

David
Re: proble of content canvas [message #263790 is a reply to message #262720] Fri, 31 August 2007 01:22 Go to previous messageGo to next message
fam_bila
Messages: 43
Registered: August 2007
Location: pakistan
Member
No Message Body
Re: problem of content canvas [message #263796 is a reply to message #263790] Fri, 31 August 2007 01:31 Go to previous messageGo to next message
djmartin
Messages: 10180
Registered: March 2005
Location: Canberra ACT Australia
Senior Member
Account Moderator
I asked
Quote:
Have you defined the 'primary canvas' on each of your windows? Are they different and correct?
Unfortunately, you have both canvases pointing to the same window. Change the 'window' of 'enter_att' to point to 'att'.

David
Re: problem of content canvas [message #263808 is a reply to message #263796] Fri, 31 August 2007 01:51 Go to previous messageGo to next message
fam_bila
Messages: 43
Registered: August 2007
Location: pakistan
Member
thanks David.
now there is no error,but when i press the button,it doesnot open the second canvas.
regards
Re: problem of content canvas [message #263812 is a reply to message #263808] Fri, 31 August 2007 01:53 Go to previous messageGo to next message
djmartin
Messages: 10180
Registered: March 2005
Location: Canberra ACT Australia
Senior Member
Account Moderator
You have to use a 'go_item' to move the focus to an item on the other canvas.

David

[Updated on: Fri, 31 August 2007 01:53]

Report message to a moderator

Re: proble of content canvas [message #264304 is a reply to message #262720] Mon, 03 September 2007 00:00 Go to previous messageGo to next message
fam_bila
Messages: 43
Registered: August 2007
Location: pakistan
Member
sir plz help us :in which trigger we can use go_item and what is the syntax of go_item.

regards
Re: proble of content canvas [message #264586 is a reply to message #264304] Mon, 03 September 2007 20:35 Go to previous messageGo to next message
djmartin
Messages: 10180
Registered: March 2005
Location: Canberra ACT Australia
Senior Member
Account Moderator
fam, get real!! Get a copy of the Forms reference manual in pdf format and save the thing on your PC, on your network, and on your thumb-drive (USB drive). Open it and do a 'find' for 'go_item'.

You can put it in the 'when-button-pressed' trigger.

David
Re: problem of content canvas [message #264893 is a reply to message #264586] Tue, 04 September 2007 23:15 Go to previous message
fam_bila
Messages: 43
Registered: August 2007
Location: pakistan
Member
thanks David my problem has solved..
Previous Topic: is it possible to write a procedure inside a trigger
Next Topic: Problem with Pre-Record trigger
Goto Forum:
  


Current Time: Fri Dec 02 14:22:47 CST 2016

Total time taken to generate the page: 0.22211 seconds