Oracle Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesOracle Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old June 4th, 2004, 09:45 AM
hudo hudo is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 97 hudo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 23 m 19 sec
Reputation Power: 5
replace mask by switching between TabPages

Hello,

I have a canvas MYMAIN (canvas-type Content) which contains the "insert query" part/blocks. Than I have a canvas TABWALL (canvas-type Tab) which contains several
Tab Pages, one for scott.emp one for scott.dept. The canvas TABWALL is a little bit shifted compared to MYMAIN (TABWALL has a viewport x position 150 and a viewport y position 75). Now the question:
if the cursor/focus is on the TabPage with scott.emp, a forms-mask should appear left on MYMAIN where you can enter into two text items two values as limits for scott.emp.sal for querying the scott.emp table.
if the cursor/focus switches to the TabPage with scott.dept, the forms-mask (on MYMAIN ) described above should be replaced by another forms-mask for querying the scott.dept table (for example a text item where you insert a "deptno" and the corresponding record is then displayed on the TabPage with scott.dept.

How can I replace/overwrite a mask by switching between Tab Pages ?? Each Tab Page should have a corresponding "query mask" on the MYMAIN.

Thanks in advance

Reply With Quote
  #2  
Old June 4th, 2004, 11:18 AM
Kraeg Kraeg is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Location: Schaumburg, IL
Posts: 20 Kraeg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I would set up a procedure that sets the item property based on tab page. Call the procedure from the when-tab-page-changed trigger. I recommend calling a procedure instead of embedding the code in the trigger because if you change tab pages programmatically the w-t-p-c trigger does not fire.

availble identifiers are :system.tab_new_page, :system.tab_previous_page and get_canvas_property 'topmost_tab_page'. Careful reading the system variables if you are changing tabs programmatically as they don't populate as you would think.

This method should help as long as you don't want different data types in the field. That property can only be set at design time. To circumvent that you would need to create mulitple items, then hide / unhide depending on tab page change.

Reply With Quote
  #3  
Old June 4th, 2004, 11:54 AM
hudo hudo is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 97 hudo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 23 m 19 sec
Reputation Power: 5
Quote:
Originally Posted by Kraeg
This method should help as long as you don't want different data types in the field. That property can only be set at design time. To circumvent that you would need to create mulitple items, then hide / unhide depending on tab page change.


You mean different data types in the query fields ?? YES different data types should be possible. The query masks should be independant from each other, just dependend on the TabPage..

How can I hide/unhide a mask/block depending on the TabPage switch ?

Does there even exist a "standard solution" where for example on the left side (on MYMAIN) are the query masks and on the right side (on the Tab PAges) will then the result of the query displayed, whereas the query masks change/adapt automatically depending on the selected TabPage...

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesOracle Development > replace mask by switching between TabPages


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway