|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
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. |
|
#3
|
|||
|
|||
|
Quote:
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... ![]() |
![]() |
| Viewing: Dev Shed Forums > Databases > Oracle Development > replace mask by switching between TabPages |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|