How to reference current tab on page zero?

Hi,
I have regions placed on page zero. How could I reference the current tab? I have to many pages, so using display condition by using page ID is little uncomfortable. I thought I could make a condition by using SQL expression and referring the label or name of the currently active tab. I think, this is a trivial question, but I can not find how to referre to the current tab's name or label.
Tamas

Hi
I have the exact same problem.
I cant have multiple navigators on page 0.
Therefore my navigator on the left hand side should be dynamic, based on the tab I click.
I've gotten this far (select statement below), but I don't know how to reference the current tab that I've clicked on / the current tab is active (see :P0_TAB_NAME)
select "MENU_CODE" id,
"PARENT_MENU_CODE" pid,
decode(menu_type,'FL','<img src="#APP_IMAGES#folder.png" border="0"
style="vertical-align:middle">&nbsp<b>' ||menu_description,
'PG','<img src="#APP_IMAGES#pgm.png" border="0"
style="vertical-align:middle">&nbsp<b>' ||menu_description,
'PG','<img src="#APP_IMAGES#tree_group.png" border="0"
style="vertical-align:middle">&nbsp<b>' ||menu_description) name,
decode(page_name,null,null,'f?p=&APP_ID.:'||page_name||':&SESSION.') link,
null a1,
null a2
from "CANELAB_NAVIGATOR" a, APEX_APPLICATION_TABS b
where b.display_sequence = a.menu_group
and b.tab_name = :P0_TAB_NAME
order by MENU_CODE

Similar Messages

  • How to get current tab name or tab id or related info?

    Hi ,
    I would like to hide/show tabs according to users' page privileges list. So I need get current tab ID or tab Name in runtime environment to know if show/hide it for current user. :APP_USER
    Could you please provide any info about this requirement? Or do you have alternative method to control tabs' hide/show?
    thanks
    Ruiping

    最爱用中文 wrote:
    Hi Jari,
    Thanks for your info. Even if set authorize schema to tabs, I still need to get the relationship between "current tab" and "privilege&users". So I think evrm's hard-code method above is avaliable.I agree with Jari: APEX provides Authorization schemes specifically for this purpose. You need to reverse your thinking on how to implement this.
    For more information consult the documentation on APEX security, specifically using authorization schemes to restrict access to pages and control rendering of components.
    Tutorial: Adding Security to your Database Application (APEX 4.0)
    Use Authorization Schemes to control access/rendering for security ("only managers see/access this page and it's associated tab"); and Conditions to control rendering for functional reasons ("region only displayed if account is in arrears").
    Authorization Schemes have the benefits of being reusable, performing better, and allowing central maintenance of security-related code. This makes it easier to change the implementation&mdash;say moving from role information held in database tables to groups defined in LDAP.
    I worked for a number of years with an application where authorization schemes are not properly used (decisions made before my involvement) and all security and business logic relating to rendering and processing is wrapped up in spaghetti code in conditions. It's impossible to maintain.
    It is of course advisable to make both authorization scheme and business logic condition code more reusable and maintainable by locating it in API packages.

  • How do i set tab control page size programmatically?

    Hi,
    I have a tab control in my program and each page has different amounts of controls on it. I would like to know how I can make the tab control pages resize automatically, only to fit the controls on the page and not have extra space underneath that other pages require.

    romulus wrote in message news:<[email protected]>...
    > Hi,
    >
    > I have a tab control in my program and each page has different amounts
    > of controls on it. I would like to know how I can make the tab control
    > pages resize automatically, only to fit the controls on the page and
    > not have extra space underneath that other pages require.
    You can use the tab control property 'PaneDimension' to
    programatically change the size of the tab control. To
    programatically find the areas occupied by the controls on each page:
    Use the 'Pages' property of the tab control to get a reference to the
    desired page; wire that to a property node and select the
    'ControlsOnPage[]' property; iterate through all the control
    refere
    nces, getting the position and bounds of each control, using
    'Max & Min' and shift registers to find the extent occupied by the
    controls.
    Paul Cardinale

  • How to get current application and page references

    Hi,
    I have buttons (to print and download in PDF, CSV, XLS) on several pages... at the moment I am using following code to get them working...
    http://apex.oracle.com/pls/apex/f?p=31815:3:&SESSION.:PDF
    which means that on every page I need to put the reference in hard coding... is there a way to replace page number and application ID with a reference (similar to what I've done above to the session ID)... something like this
    http://apex.oracle.com/pls/apex/f?p=REF_APP_ID:REF_PAGE_ID:&SESSION.:PDF
    Thanks

    Hi,
    Use substitution strings. And you do not need write whole URL
    http://download.oracle.com/docs/cd/E17556_01/doc/user.40/e15517/concept.htm#sthref156
    f?p=&APP_ID.:&APP_PAGE_ID.:&SESSION.:PDFRegards,
    Jari

  • How to reference current ICP in calc script?

    Hello Everyone,
    I am working on an HFM calc script. I am trying to assign the current ICP member to a variable. I attempted this using the following line of code:
    POV_ICP = HS.ICP.MemberFromID(HS.ICP.IDFromMember(""))
    I don't receive any error messages, but I don't seem to be populating the POV_ICP variable either.
    Your help is greatly appreciated!
    Chris

    Ha ha... Good one.
    I came back to post A solution and low and behold - you arrived at the same...
    You've probable realized that the POV_ICP was only ever going to reference the ICP_None account under any condition.
    Glad to hear you're back on track - G'Luck
    Public Const WriteToFilePath = "C:\Documents and Settings\Admin\My Documents\!WRITEtoFILE" 'Will write log to app server you are currently logged on to. Need to ensure this path exists on each app server
    Sub WriteToFile(txtStringToWrite)
    On Error Resume Next
    Const ForReading = 1, ForWriting = 2, ForAppending = 8
    Dim fso, f
    Set fso = CreateObject("Scripting.FileSystemObject")
    Set f = fso.OpenTextFile("C:\Documents and Settings\DemoUser\My Documents\!WRITEtoFILE\RulesLog.txt", ForAppending, True)
    f.WriteLine txtStringToWrite & " " & Now()
    f.Close
    On Error GoTo 0
    End Sub
    'CALCULATE
    SUB Calculate()
    'Set current POV members
    POV_YEAR = HS.Year.Member
    POV_PERIOD = HS.Period.Member
    POV_SCENARIO = HS.Scenario.Member
    POV_ENTITY = HS.Entity.Member
    POV_VALUE = HS.Value.Member
    'Variables
    vPeriodNum = Hs.Period.Number()
    vPeriod = HS.Period.Member()
    vScenario = Hs.Scenario.Member()
    vYear = Hs.Year.Member()
    vEntity = Hs.Entity.Member()
    vValue = Hs.Value.Member()
    vEntisBase = HS.Entity.IsBase("","")
    IF vEntisBase = TRUE AND (vValue = "<Entity Currency>" or vValue = "<Entity Curr Adjs>" or vvalue = "[Elimination]") THEN
    'Check for value in ICP
    SET DataUnit = HS.OpenDataUnit("")
    lNumItems = DataUnit.GetNumItems
    FOR i = 0 TO lNumItems-1
    'Get the next item from the dataunit     
    CALL DataUnit.GetItem(i, strAccount, strICP, strCustom1, strCustom2, strCustom3, strCustom4, dData)           
    CALL WriteToFile(POV_SCENARIO & " " & POV_YEAR & " " & POV_PERIOD & " " & POV_ENTITY & " " & POV_VALUE & " " & (strAccount & " " & strICP & " " & strCustom1 & " " & strCustom2 & " " & strCustom3 & " " & strCustom4 & " " & dData))
         IF strAccount = "X" THEN
         'Do Nothing
         ElseIf dData <> "0" THEN
    ''      ElseIf dData = "1" THEN
         END IF
         NEXT
    END IF
    END SUB
    This taken from the Rules.txt file...
    Actual 2007 Jan EntityCashPool <Entity Currency> [ACashPool] WI [None] [None] [None] [None] 555555 2/1/2011 11:33:22 PM
    Actual 2007 Jan EntityCashPool [Elimination] [ACashPool] WI [None] [None] [None] [None] -555555 2/1/2011 11:33:22 PM
    Actual 2007 Jan EntityCashPool [Elimination] ICRecPayDiff WI [None] [None] [None] [None] 555555 2/1/2011 11:33:23 PM

  • How to open "All Tabs" from previously shown pages history?

    Hi,
    How to open "All Tabs" from previously shown pages history. I am not asking about "Reopen from last session". I am asking about how to open all tabs from previous webpage links from a past date from history, currently its allowing me to select each page link manually by clicking it.
    Thank you!

    Select the first item you wish to open, scroll down to the last, Shift-click that one & all those between should be selected too. Double-click on them & they should all start to open... or you can copy & then drag/paste into a new or existing bookmarks folder.

  • Current Tab page

    hello !!
    i ask how can i get the current tab page ID !!!

    Hi,
    to get the tab page ID you have to use the built-in Find_Tab_Page (see Forms Help for more information).
    The variable :SYSTEM.TAB_NEW_PAGE could be used if the name of the tab page is unknown.
    DECLARE
    tp_id TAB_PAGE;
    BEGIN
    tp_id := FIND_TAB_PAGE('MyTabPage');
    END;
    Regards,
    Markus

  • I want to open bookmarked pages in a new tab, like it used to, rather than having it replace the current page in the current tab. Ho do I do this?

    In earlier verisions of Firefox, when I opened bookmarked pages, they opened in a new tab. Now, in version 6.0.1, when I open a bookmark, it opens in the current tab and replaces the page I am reading. I want the bookmarks to open in a new tab just like links open in a new tab. How do I do that?

    Middle-click the bookmark with the mouse scroll wheel to open the link in a new tab.
    See also:
    *Open Bookmarks in New Tab: https://addons.mozilla.org/firefox/addon/open-bookmarks-in-new-tab/

  • How can I set the "tab groups" page as my home page?

    I've searched for about:config options, and even installed Customizable Shortcuts 0.5.11.1 with the hopes that there would be a shortcut for "options" or "preferences", so that I could simply click "set as home page" while in the tab groups page. No dice. I've just started working with tab groups again (I was away on Chrome for maybe a year... but I'm back), and I think it would be great if I could simply have all my tab groups displayed when I start firefox up. How do I do it?

    The tab view page is dynamically populated based on the tab groups in the current window. Although the "page" has an address, opening that address directly yields a blank tab, so I think that's a dead end.
    Since the keyboard shortcut is Ctrl+Shift+e, maybe you can find a way to send that automatically?
    Also, if you rely heavily on tab groups, I assume you are using something like the [https://addons.mozilla.org/en-US/firefox/addon/session-manager/ Session Manager extension] to protect against data loss. Because tab groups (and of course the tabs themselves) are stored only long enough to restore the immediately previous session, it's not too difficult to accidentally lose them all.

  • Is there any way to close just the "current tab" in firefox rather than all 3 or 4 that may be open and lose the entire web page?

    If I am on a website and open a few different pages, and then decide to go back to an earlier page, or close that particular page, I get a message that says you are about to close 3 tabs or 4 tabs etc. If I only want to close the "current tab" I am on, I was able to do that with Internet Explorer. Is there any way this can be done on Firefox?

    For more help, see the '''[[Tabbed browsing]]''' page.

  • You changed the order of the menu for "Open in a new window" or "Open in new Tab", How can I change it back? Or how can I omit any reference to tabs? I do not use them at all.

    You changed the order of the menu for "Open in a new window" or "Open in new Tab", How can I change it back? Or how can I omit any reference to tabs? I do not use them at all.

    You can use the Menu Editor add-on to rearrange or remove menu items - https://addons.mozilla.org/firefox/addon/menu-editor

  • How do I get bookmarks on the toolbar to open in the current tab, and not open in a new tab?

    how do I get bookmarks on the toolbar to open in the current tab, and not open in a new tab?

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • How to get the name of the current tab.

    Hi Experts,
    I have two tabs in my tab strip and a button common to both the tabs.Can you please let me know how to get the name of the current tab in the event method of the push button.
    Thanks in advance.
    Regards,
    Arun

    1.Declare an Action for OnSelect event of Tabstrip. This event is triggered whenever any change in tab occurs.
    2. Declare an Import Parameter in this method
       Tab type String.
    3. This parameter has value of the selected TAB.
    4. You can set this value in some Attribute in Attribute Tab in this event only (OnSelect):
         wd_this->Att  = Tab.
    Att is the attribute created by you in Attributes Tab of View. ( of type String)
    5. Now the selected Tab ID is stored in this Attribute Att.
    6. In the Onaction of Button , retrieve the selected tab value from this attribute using :
               Data : lv type string.
                lv =  wd_this->Att
    Now lv has your selected TAB ID.
    I hope it would help you.
    Edited by: Saurav Mago on Oct 13, 2009 2:22 PM

  • How can I make new tabs open next to the current tab?

    New tabs are advertised in Firefox 5.0 as being set to open next the the current tab by default. Mine, however, do not do this. They open to the right of the last tab, necessitating a lot of tab-scrolling, and a minor waste of time.
    I have not installed the extension that forces the tab behaviour I'm currently witnessing.
    Is there a kind soul out there with any suggestions for how I can get my new tabs to appear next to the tab I'm working on?

    Tabs that are "related" to the current tab, like the same domain, open to the right of the current tab. Other links that are from other domains open at the right end of the tab strip.
    The pref for that actions is '''browser.tabs.insertRelatedAfterCurrent'''.
    To have them all open to the right of the current tab would need an add-on, if that action even exists in an add-on.

  • Is there a keyboard shortcut to open the previous page in a new tab that is right next to the current tab?

    Let's say I'm currently on page X, and the previous page I came from was page Y. Is there a keyboard shortcut to open page Y in a new tab right next to the tab with page X?
    Currently my only solution is to hold down cmd (for mac) and click the back arrow button, but again, I'm looking for a keyboard shortcut. I know CTRL + T opens up the same page in a tab right next to the current one, but I have to wait for it to load then press backspace to go back one page.

    Hello marsfoxbeta, command + shift + T
    [https://support.mozilla.org/en-US/kb/keyboard-shortcuts-perform-firefox-tasks-quickly#os=mac&browser=fx22 Keyboard shortcuts - Perform common Firefox tasks quickly]
    thank you

Maybe you are looking for

  • Is there a limit to no. of summary fields that can be used in a cross tab?

    Hi, While creating a cross tab is there a limitation to number of summarized fields that can be used? - The cross tab when uses 184 fields as summary fields leads to Crystal report application to crash at the time of export to excel. - Tried with two

  • Problème driver NI-DAQmx 8.0.2

    Bonjour, Je vous expose mon problème : j'essaye actuellement d'installer une carte d'acquisition NI PCI-6034E sur mon PC. Je tourne sous Linux, distribution Debian, la 6.0, avec un noyau 2.6.32. J'ai lancé le script d'installation du driver NI-DAQmx

  • SAP R/3 in order status showing accounting documnet not cleared

    Hi All, SAP R/3 in order status showing accounting documnet not cleared but when i checked in billing document and customer account its showing posted but order showing...same error. Thanks in Advance.. URS, PURI......

  • Two problems with a grep solution?

    Hello! I have two problems that I need some help with. I've been searching around for solutions, but are unsure what approach that is the best: A: I need a new (or next) paragraph style after TWO hard line breaks. How do I do this? Do i search for tw

  • ALV Grid multiple row selection, disabling some

    Does anyone know if it is possible to have an ALV grid with multiple row selection allowed but for some rows the row selection is disabled? Kind regards, John.