How to determine if the current page is a "Community Knowledge Directory"

I am creating a new Navigation Scheme and I was wondering if anybody has figure out how to test to see if the current page the user is on is a "Community Knowledge Directory" page or not. What I am trying to do is display a different background color when the user lands on a page in a horizontal tab navigation. I've noticed that there is a control=SetSiteMap in URL when ever the user lands on the Community Knowledge Directory. Is that what I should be checking for?

I am creating a new Navigation Scheme and I was wondering if anybody has figure out how to test to see if the current page the user is on is a "Community Knowledge Directory" page or not. What I am trying to do is display a different background color when the user lands on a page in a horizontal tab navigation. I've noticed that there is a control=SetSiteMap in URL when ever the user lands on the Community Knowledge Directory. Is that what I should be checking for?

Similar Messages

  • How do I determine whether the current page in Forms is the last page.

    I have a requirement of printing amount in words using SPELL_AMOUNT Funtion Module, in SAP Scripts.
    When I have only one Item Line, I am able to successfully, print the amount.
    The moment i have line items pouring to the next page, I see that the I am unable to retrieve the spelled amount from the Function Module.
    I think may be i need to find out if the current page is the last page, and if it is so, print the amount on the last page, .i.e., the page where the item lines have overflowed to. How do i find this out.
    Can anybody, suggest something.
    Regards,
    Owais...

    I wonder if you could do something like this.  Wrap your logic with this IF statement.
    /: IF &PAGE& = &SAPSCRIPT-FORMPAGES&
    /: ENDIF
    Regards,
    Rich Heilman

  • How to you reference the current page number and total pages in a script?

    I'm trying write a small script to make field invisible when the current page equals the total number of pages, but with no luck.
    Can anyone advise how to do this?
    I've tried various ways to reference my fields, this being the most basic:
    if(pageNumber == totalPages) {
    continuedBase.presence = "invisible";
    // pageNumber has a run time property as "Current Page Number"
    // totalPages has a run time property as "Number of Pages"
    // continuedBase is a text field within the same subform as pageNumber and totalPages
    Thanks for any help offered.
    Russell

    If you are asking how to get the current page and total pages you acn use these commands:
    current page ----- xfa.layout.page(this)
    total pages ------ xfa.layout.pageCount()
    so your code woudl look like this:
    app.alert("The curent page is: " + xfa.layout.page(this));
    app.aler("The total number of pages is: " + xfa.layout.pageCount());
    if(xfa.layout.page(this) == xfa.layout.pageCount()) {
    continuedBase.presence = "invisible";

  • How to determine what the current group level is?

    Post Author: mavrick5
    CA Forum: Formula
    I hope someone can help me urgently.  I have a complex report which has multiple drill down levels.  I am printing values for sales and qty at each drill down level as well as a calculation for average selling price.  What I want to do is calculate the average for the totals, not calculate the average per detail line and then calculate the average of the average (if you understand what I mean).  I have the averages calculating correctly except the total line in each drill down. How can I determine in a formula what group total I am currently printing (eg. group footer 1, group footer 2, etc.).  If I can determine which group footer I am currently printing, then I can change my calculation based upon the drill down level and the group footer. Thanks in advance.

    Post Author: yangster
    CA Forum: Formula
    think you are looking for the functiondrilldowngroupleveljust pop that into a formula and drag it into your report you'll see it counts from 0 when no drilldown has been invokedi use drilldowngoruplevel a lot to display different page headers depending on drill down level

  • How do I programmatically reference the current page in 902?

    Hello,
    How do I programmatically reference the current page in 902?
    The Portal Smart Text option for Current Page is not flexible enough, and I wish to create my own custom greeting using PL/SQL.
    Cheers,
    John

    hi,
    If you are developing a PLSQL Portlet, then you do have a way for getting the page URL.
    The page URL can be obtained from the record, portlet_runtime_record. There is a filed page_urlavailable with portlet_runtime_record.
    The portlet_runtime_record is passed as a argument to the show_portlet procedure.
    --Sriram                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to get the current page URL

    HI All
    I am working in oracle apps 4.0
    I have one page called history in that i have one page item called Application url. My application id is 122 but its a copy of application 106
    How to get the current page url for the page item.
    Any steps should be help ful
    Thanks & Regards
    Srikkanth.M

    I'm not 100% clear on what the requirement is from the description, however it does sound like you are making things unnecessarily complicated.
    If you want permanent/ID-independent links then use application and page aliases.
    so here we used to display the url like this: <tt>{noformat}http://81.131.254.171:8080/apex/f?p=122{noformat}</tt>
    Do you mean that the URL is displayed like that? If so that doesn't seem particularly helpful. How is anyone supposed to know what it is?
    There are many ways to provide links in APEX&mdash;including lists and nav bars.
    Where the link is to another resource located on the same server (such as another page in the same app, or a different app in the workspace), relative addressing can be used, making it unecessary to include scheme, domain and port information in the URL. For example, if the page to be linked to has a page alias <tt>ABOUT</tt> in an application with alias <tt>UNITY</tt>, and the apps share an authentication scheme/cookie to permit shared sessions, then the link URL is simply
    f?p=UNITY:ABOUT:&APP_SESSION.

  • How to get the function name/ID  of the current page

    HI,
    I searched the forum and google, but it is not clear on how to get the function name of the current page.
    I have 4 functions in my self service A ,B,C,D (seeded page links ) they all have to go to a page called hhhPG. Based on which function user is clicks I have to show the data in hhhPG.
    so my question is how to get the function name ? I mean I need to know if user click on link A , B, C or D link and came to this page.
    I found below in one forum and also there is getfunctionID in pageContext , but I do not know what to pass to getfunctionid("???") to get value.
    FunctionSecurity funcSecurity = pageContext.getFunctionSecurity();
    Or is there a better way of know where user is coming from ? like geturl....
    Please help, I need this ASAP.
    Thank you.

    Use below to find out how the user came into the page
    FunctionSecurity funcSecurity = pageContext.getFunctionSecurity();
    boolean isFunc1 = funcSecurity.testFunction(funcSecurity.getFunction("YOUR_FUNCTION_SHORT_NAME1"));
    boolean isFunc2 = funcSecurity.testFunction(funcSecurity.getFunction("YOUR_FUNCTION_SHORT_NAME2"));
    boolean isFunc3 = funcSecurity.testFunction(funcSecurity.getFunction("YOUR_FUNCTION_SHORT_NAME3"));
    boolean isFunc4 = funcSecurity.testFunction(funcSecurity.getFunction("YOUR_FUNCTION_SHORT_NAME4"));
    So one of them will be true based on the function the user came in.
    Write your logic based on these flags.
    Regards,
    Peddi.

  • [CS5.5] How to import a snippet into the current page

    Hi All,
    I got the IDOMElement from the document UIDRef and imported the snippet into it. Here's the code-
    InterfacePtr<IDOMElement> documentElement(docRef, UseDefaultIID());
    if (documentElement == NULL)
        break;
    if ((status = Utils<ISnippetImport>()->ImportFromStream(tStream, documentElement)) == kSuccess)
        //success
    ( tStream is the IPMStream of the snippet I'm importing)
    This code above is able to import the snippet successfully to the first page of the active document, but I want it to be imported in the current active page instead. So for this, I tried getting the IDOMElement from the current page's UIDRef instead (logically I thought that this will import the snippet to the current page)-
    InterfacePtr<IDOMElement> documentElement(currentPageUIDRef, UseDefaultIID());
    But the result is just the same— the documentElement is not null, but the snippet is imported to the first page only.
    May be that the concept of IDOMElement is not clear to me, but I cant find any documentation of it in the SDK guides too. Can anyone explain to me what's an IDOMElement and how can I import a snippet to the current page?
    Any help will be highly appreciated. Thanks.

    @mfreitag, thanks a lot for your reply.
    I havent tried it yet, will let you know after I try it- but I want to ask that how will that help me placing elements to the page?   Can you please elaborate a bit.
    Actually in CS3, I used to follow this implementation to place the snippet into the current page-
    1. Create a dummy textframe in the current page (needed just to create a group).
    2. Create a Group using that dummy frame.
    3. Get the IDOMElement of the UIDRef of that group-
       InterfacePtr<IDOMElement> documentElement(groupUIDRef, UseDefaultIID());
    4. Import snippet to this DOM Element
    5. Delete the dummy frame
    The snippet items were added into the group beautifully in the active page. But when I was porting the plugin to CS5.5, steps after step-3 failed, and the snippet is imported to the 1st page/spread of the document.
    I'm not sure, but seems that things related to IDomElement are changed for CS3+. May be you have an idea whether I could use the similar implementation to get this thing work?

  • How do I close the current web page in Safari?

    UPgraded to IOS 8 because a friend said it cured his problems, so I took the plunge.
    BIg mistake.
    THis question concerns Safari.
    how do I close the current web page?

    I just found how to do this on my iPad!  At the top right are two squares overlapping.  Click on that and you will get your page hanging in space.  There is an X on the top (I think) left.  Click on that and TaDa!  Lost of hoops, but glad I found it.

  • How to exit the session at the end of the current page

    hi gurus,
    i want to exit the session at the end of the current page, so that when i am trying to open some other  page in the same browser it should ask for login id & pwd and should not pick the previous session-id.
    Regards,
    srikar

    Look at the below links, it might help you..
    [Link1|Re: Navigation with a new session]
    [Link2|how to end a session in bsp ?]
    Raja

  • In version 8 the "stop loading the current page" icon is missing. How do I get it back?

    I just installed version 8, and even though the features page says that the "stop loading the current page" will be a part of the default navigation toolbar, that icon is not on the toolbar. How do I get it to be there

    In Firefox 4 and newer versions, the Go, Stop and Reload buttons are combined in one button at the right end of the URL or Address bar. The button changes depending on the activity:
    *green Go arrow when typing in the address bar
    *red Stop ("X") button while page is loading
    *gray Reload (circular arrow) when page is finished loading.
    See image at the bottom of this reply
    Separate buttons are possible:
    #Open Customize Toolbar window by clicking Firefox button > Option > Toolbar Layout '''''OR''''' clicking View > Toolbars > Customize if using the Menu Bar '''''OR''''' right-click in an empty space on a toolbar and choose Customize
    #<u>While the Customize window is open</u>, Stop and Reload buttons will show separated between the address bar and the search bar
    #<u>While the Customize window is open</u>, drag the buttons anywhere on the Navigation toolbar
    #*order Reload-Stop will combine into one button
    #**leaving in this order between URL/Location/Address bar and Search bar will cause it to re-combine with the "Go" button at the right end of the URL/Location/Address bar
    #**leaving in this order elsewhere, the Reload and Stop buttons will combine into one button
    #*order Stop-Reload will remain separate buttons
    #*or drag a "Separator" from the Customize window between Reload-Stop and they will remain separate
    #click Done at bottom right of Customize window to finish
    See: https://support.mozilla.com/en-US/kb/how-do-i-customize-toolbars
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    You may need to update some plug-ins. Check your plug-ins and update as necessary:
    *Plug-in check --> http://www.mozilla.org/en-US/plugincheck/
    *Adobe Shockwave for Director Netscape plug-in: [https://support.mozilla.com/en-US/kb/Using%20the%20Shockwave%20plugin%20with%20Firefox#w_installing-shockwave Installing ('''''or Updating''''') the Shockwave plugin with Firefox]
    *Adobe PDF Plug-In For Firefox and Netscape: [https://support.mozilla.com/en-US/kb/Using%20the%20Adobe%20Reader%20plugin%20with%20Firefox#w_installing-and-updating-adobe-reader Installing/Updating Adobe Reader in Firefox]
    *Shockwave Flash (Adobe Flash or Flash): [https://support.mozilla.com/en-US/kb/Managing%20the%20Flash%20plugin#w_updating-flash Updating Flash in Firefox]
    *Next Generation Java Plug-in for Mozilla browsers: [https://support.mozilla.com/en-US/kb/Using%20the%20Java%20plugin%20with%20Firefox#w_installing-or-updating-java Installing or Updating Java in Firefox]

  • Don't know how to calcualte the current page in smartform for second layout

    Hi All ,
       Iam creating an smart form which contains two layout in a single form. I need the page number to be displayed as followes.
    1st layout : 1 of 2
                     2 of 2.
    in 2nd layout 1 of 2.
                        2 0f 2.
    I dont have any issues in printing total number of pages. i dont know how to calculate the current page for the 2nd layout. <<text removed>>
    Edited by: Matt on Jun 25, 2009 5:09 PM - Removed ALL CAPITALS from subject

    Hi,
    Create a New window of Type 'Final Window' and Position it in the layout where u want to display the page numbers.
    Now, create a text element in the window and create the text like below in the text element.
    P1 Page &SFSY-PAGE& of  &SFSY-FORMPAGES(3CZ)&
    &SFSY-PAGE&                            - Current Page No.
    &SFSY-FORMPAGES(3CZ)&         - Total No of Pages.
    Note: dont forget to create the window type as 'Final Window', otherwise it will show ssome junk...
    Hope it helps!!
    Rgds,
    Pavan

  • How can I temporary change the encoding of the current page as I can do on IE ?

    In IE, I can choose the encoding of the current page from the menu bar. How can I do this on Firefox ?
    Just the current page only. Not the preferred language in option menu please.

    Hi Aaron,
    If you want to see the most recent n samples in your chart while n can be modified during runtime, than I might have a solution for you...
    Please check out the modified VI.
    Regards,
    Thomas
    Attachments:
    Waveformdatapoints_mod.vi ‏13 KB

  • How do I stop "Are you sure you want to navigate away from this page? Press OK to continue, or Cancel to stay on the current page." from comeing up. It is new. Just started doing it yesterday morning.

    I have used FireFox to play the Game Kingdoms Of Camelot, a facebook game. I also have Grease Monkey and a 3rd party add on. I leave it running 24/7 to gather food in the game for my army. It has run smoothly for 6 mo. Yesterday 2/04/11 in the morning it started asking for conformation when the page refreshed. i want to know how to stop this Box from comeing up it will not continue without refreshing and will not refresh untill th question is answered. It says "Are you sure you want to navigate away from this page? Press OK to continue, or Cancel to stay on the current page."

    You're not going to stop it, and out here, what's illegal?
    What it boils down to is a matter of ethics, and it's wrong. But the web
    techies build this feature into their sites because they know somebody
    is going to fly in off an engine like Google or MSN. And take something,
    like a picture. Without stopping in and signing up or something else.
    But what if I or you is out collecting stamps or avatars or wallpapers,
    and have already taken a quiz, or signed up for a product? I've already
    done that...but the site developers who use this ingenious(hijacking)
    software don't see it that way, and don't care if you just got a computer
    and want to pick up something here or there. Those sites don't get
    anything when you visit and don't leave your number. I don't what
    these 19 tracking cookies are for, do you?
    "A liar should have a good memory" Scottish saying

  • How to achieve SUBMIT for the current page when I click other tab?

    Problem: How to achieve SUBMIT for the current page when I click other tab?
    Description: I have a two-page application and each page associates with a tab. Say page1 associates tab1 and page2 associates tab2. In each page, I have a submit button, a after submit process associated to the submit button, and a tabular form. For page1, I fill out the fields and hit the button. The page1 will appear again and I can see the data I have insert. However, If I fill out the fields and click the tab2 (page 2) instead. when I come back to page1, the data I filled out are all gone. Is there any way in HTML DB to force the submit in the current page after you click other page. If use JavaScript, what is code looks like.
    Appreciate your time and your answer.
    Mike

    Scott,
    just for clarity, if I understood correctly what you said there are two possibilities:
    1) keep the standard tab branch and give up the possibility of validating page items. Below you can find an example of such cases.
    2) Replace the template substitution string and perform a "custom" button-like submit also adding a branch to the main page associated with the tab. Page items will be validated if the branch firing point is set after the validations.
    I couldn't find an example of the latter, but I found easily an example of the former:
    it's the "Report attributes", page 420 of app 4000.
    If you enter 'aaa' in the "Number of rows" form field and then you press "apply changes", htmldb correctly displays an inline error message saying that the value must be numeric. On the contrary, if you click on the "Region Definition" tab, htmldb takes you to a page showing an oracle exception:
    ORA-20001: Error in DML: p_rowid=4785927011172906402, p_alt_rowid=ID, p_rowid2=, p_alt_rowid2=. ORA-20001: Invalid numeric value aaa for column PLUG_QUERY_NUM_ROWS
    Bye,
    Flavio

Maybe you are looking for

  • How to remove the add-on extension "undefined"???

    I have an add-on called "undefined" which has 5 buttons: Enable, Disable, Options, Remove, Ask to activate. I want to remove it, so I clicked on the Remove button, then it said "Nation Toolbar has been removed"... but after I go back to my Extensions

  • CE Bank Statement Load and Import Concurrent Request

    Hi All, I am trying to submit a concurrent request via PL/SQL for CE Bank Statement Loader but request_id always returns 0.. Being new to here i somehow cannot understand why so as I've tried this with GL's SQLLDR for the Journal Import. Here's a par

  • Setting defaults for reminders in iCal

    Is it possible to set a default for reminder in iCal? I would like to set it at e-mail the day before. However, iCal seems to have a reminder default as an alert (which is simply a pop-up), not  e-mail. For every event I creat in iCal, I am having to

  • Can we post data 32KB using utl_http package?

    I was using utl_http package for posting http data. Now there is a change in requirement and I have to call a web service instead of normal http post. Also the amount of data to be transferred now is >32KB (previously it was only 16KB). I have to man

  • Why can't my buddy see my Video?

    I am running iChat 3.0.1 on Tiger & I am chatting with someone using iChat 2.1 on Panther..... My camera is working fine, but the person I am chatting with has no way to see my video.... We are able to hear each other perfectly using iChat audio, but