Navigation using Short URLs

Hi,
I need to navigate from one page to another using short urls. I have a page P1 with iView V1 in it. I have another page P2. The hierarchy is as folllows:
Role R1
..|__ page P1
........ |__ iView V1
..|__ page P2
By clicking on a link in iView V1, i need to navigate to page P2 using short urls.
I am passing the long url of page P2 (ROLES://portal_content/.../roleR1/pageP2...) as a iView property to V1.
Can someone provide the code as to how to retrieve the short url(hashed valued) from the long url and how to navigate to page P2.
Any help is appreciated.
Regards,
Melwyn.

Hi Romano,
Thanks for the reply.
I tried the code snippet you gave me.
However the method getNavigationNodeHashedName() is not appearing in the list of methods.
I am only able to see the methods getInitialNodes(), getFirstNode(), getNode(), getNodes() and getNodeByQuickLink().
Following is my import statement.
import com.sapportals.portal.navigation.INavigationService;
The jars that i am using are com.sap.portal.navigation.api_service_api.jar and com.sap.portal.navigation.service_api.jar.
NWDS ver 7.0.15
Portal ver 2004s SP 15
Regards,
Melwyn.

Similar Messages

  • Any Security Problems with Navigation with Short URLs?

    Hi ,
    I want to use Navigation with Short URLs for my users to access the portal. But if the users give that Short URLs to other non-users , will the URL open?
    I will give the role for the users only. Non-users will not have particular role.
    Are these Navigation with Short URLs are safe to use?
    Advise me.

    Hi,
    The iview have "EveryOne Role" and "Super Admin Role".
    The portal will not allow any "anonymous" users, because it needs atleast "EveryOne Role" for the access.
    Will this create any problem.
    I think the "EveryOne Role" is there for the user, if the iview1 assigned for role1 but still in the permissions of iview1 have the "Everyonerole" , it is allowing user to access this right?
    Then I need to remove the EveryOne Role from the permissions.
    Regards
    Kiran

  • Can't use short URL

    I tried the following fix last week after I kept getting publishing error messages and at first it seemed to work, but even after I deleted it in iWeb, the test page was coming up as the first page. I found it in a folder on my iDisk and deleted the test page there. My problem now is that my Website is only accessible from the longer URL. If I use http://web.mac.com/rksmelser all that comes up is a message that the page cannot be displayed. It is accessible from http://web.mac.com/rksmelser/iWeb/randykaty That wouldn't be such a huge problem, but we are now in America on a reporting trip and we have had brochures printed with the shorter link. Any ideas? I am afraid of messing the situation up more. I am still having problems with uploading changes, but right now I would be satisfied with being able to use the shorter URL.
    This is what I followed to fix my problem:
    Thanks for any help!
    Hi geebee - bit long winded but this is the full fix
    that I wrote up for someone else - it worked for them
    so good luck.
    1. To create a new login, open system preference
    folder and open accounts. Unlock by clicking on the
    padlock icon. Now click on the plus icon which will
    allow you to create a new login name and password.
    Tick allow user to administer computer. Lock the
    padlock again and close window.
    2. Go to apple logo top left of screen and logoff
    your username - you will be prompted shortly with
    choice of logins and choose the new one - you get a
    fresh screen which looks like when you first switched
    on the mac. You can test iweb here by publishing any
    old template to see if it works. It should do.
    Assuming all is ok, this next is how to publish your
    existing site.
    3. Go back to your normal login. Find the domain file
    and copy it to dvd - domain file can be found as
    follows: open finder > click on house icon (yourname)
    click on library >click on application support
    click on iweb and here you will find domain file -
    copy it.
    4. Log out and log on to new login again - find
    domain file in this system and delete it then in its
    place put your copy domain file from the dvd. When
    you open iweb in this system you should see your web
    files and hopefully you should now be able to publish
    them. This is where I succeeded.
    5. If successful I have since discovered that you can
    do the reverse - ie. delete the domain file from your
    main login - copy domain file from your new login and
    put it back in the original system. I found this
    shook off whatever the problem was. I have also
    discovered since that I seem to have lost some
    functionality in that the slide shows don't seem to
    work now so I guess I might have to rebuild some of
    the pages - but the important thing is it will now
    publish.
    Hope you can follow this and hope you have the
    success I had. Let me know if there is anything else
    I can help with, and let me know if it works.
    Auray
    iMac duo Mac OS
    X (10.4.7)
    MacBook   Mac OS X (10.4.7)   iMac

    I'm sure I had used "Publish All" when this problem started last week, but I just tried it again and it seems to be working now! Yesterday when I re-published I just clicked on the link that comes up in the pop-up box and it wasn't working, but today it worked!
    Thanks for helping me not give up.
    Katy

  • Navigation with Short URLs for T.Code Published in the portal()

    Dear Expert
    We have the following issue:
    Requeriment:
    We created a report ABAP in the R/3. For this Report, the ABAP Team created a t.code ZPORTAL. For this t.code we created a service ITS in the t.code SICF, the name of this service is ZPORTAL. In the portal we created an type of iView IAC for call this service and assign the Iview to a page. And the Page to a role customer.
    In this moment the service work fine. The problem initial was that when the enduser press the button exit(Finalizar) the portal display the message Logged Off Successfully .
    We write in the forum of sdn with the following link:
    Logged Off Successfully
    And we made the step in the help.sap.com; But the result not is the that we wait.
    http://help.sap.com/saphelp_nw04s/helpdata/en/b3/7b8163404448e7aad7899c0b30313e/frameset.htm
    Please you can help me with suggestion.
    How can solve my issue and get the result that we wait..
    I can send documentation with the steps that I made, and the result that I want get.
    With kind regards
    Regards

    Hi,
    At System Administration > Navigation > Short URLs, the Short URL is activated?
    Can you see some URL codes on this page?
    Best regards
    João Macedo

  • Navigation with Short URLs for T.Code Published in the portal ESS

    Dear Expert
    We have the following issue:
    Requeriment:
    We created a report ABAP in the R/3. For this Report, the ABAP Team created a t.code ZPORTAL. For this t.code we created a service ITS in the t.code SICF, the name of this service is ZPORTAL. In the portal we created an type of iView IAC for call this service and assign the Iview to a page. And the Page to a role customer.
    In this moment the service work fine. The problem initial was that when the enduser press the button exit(Finalizar) the portal display the message Logged Off Successfully .
    We write in the forum of sdn with the following link:
    Logged Off Successfully
    And we made the step in the help.sap.com; But the result not is the that we wait.
    http://help.sap.com/saphelp_nw04s/helpdata/en/b3/7b8163404448e7aad7899c0b30313e/frameset.htm
    Please you can help me with suggestion.
    How can solve my issue and get the result that we wait..
    I can send documentation with the steps that I made, and the result that I want get.
    With kind regards
    Regards

    Hi,
    At System Administration > Navigation > Short URLs, the Short URL is activated?
    Can you see some URL codes on this page?
    Best regards
    João Macedo

  • Short URLs table is empty...

    Hello,
    When I go to System Administration->Navigation->Short URLs I get an empty non-populated table even though it's enabled (Use short URLs is set to true).
    Why is that and how can that be filled?
    Roy

    Dear Roy,
    See if this can help
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70a24307-33f4-2a10-f8aa-c9f9b7c9b94f
    Regards,
    Samir

  • Missing Short URLs..........!!

    Experts,
    In an attempt to configure and use Short URLs for my custom roles, even after double checking the settings for Short Urls from within System Administration --> Navigation --> Short Urls. Short URLs for the roles are not to be found or are not being generated !!
    1. Is there a way I can manually create or generate short URLs for sspecific roles,pages or iViews ? or
    2. Am i missing some thing in the configuration ?
    Let me know.
    -paras
    all helpful answers to get maximum points

    http://help.sap.com/saphelp_nw70/helpdata/EN/b3/7b8163404448e7aad7899c0b30313e/content.htm
    Enable/Disable Short URLs: When the short URL feature is enabled, all navigation URLs sent to the server are in short form. These URLs can be seen when, for example, adding a page to browser favorites.
    In order to use the Short URL's you need to
    1. Set the "Use Short URLs" property to "TRUE". This is done from System Administration -> Navigation -> Short URL's
    2. View the iViews atleast once from the portal, so that a short URL is generated before you can use the Short URL.
    Regards
    Shridhar Gowda

  • I want to create home page for my application with short URL

    I want to create home page for my application with short URL
    as when I want user to use my application user must go to URL like this
    http://127.0.0.1:7101/My-Project/faces/app/empModule/allEmployees/viewMyEmployees.jspxI want the user to use short URL , How can I use shorter URL not all this one.
    I want shorter URL for my application not to write full path .
    thanks in advance.
    Edited by: user611775 on Oct 31, 2010 10:21 PM

    Well,
    it's up to you. The first part (Mcit-Project-ViewController-context-root) is the context root which you define in the view controller project. 'faces' is the name the servlet filter reacts on. You can't omit it but shorten it in web.xml. The rest is your directory structure. I'm not sure how to shorten this other as to move the jspx files back into the web root folder.
    By the way an ADF faces app never uses the .jspx at the end of the url. If you specify '.jspx', you only render the page but don't start the work flow.
    Timo

  • WPC / Short URLs / two Toplevel Navigations?!?

    Hi there,
    i have a question. I use the WPC to create websites in the Portal.. also our Portal Startsite.. wo what i want to do is to create a Short Article and put there some links in to other Portal Applications.
    For example...
    Our Startsite:
    Welcome to our new Startsite..... etc...
    Here you can find the New Application XYZ.. click here: XYZ
    In the WPC i create a new LINK in the Article with the Short URL of the App.. looks like:
    https://portal.host.com/irj/portal?navigationtarget=navurl://a789a49d67ecebe5c185c013bc67a916
    So when i click now on the Startsite on this links.. the App opens.. BUT the problem is.. the link opens the complete Portal IN the Portal.. so then i see the Toplevel Navigation twice... ?!
    How can i create a link on a website in the Portal so that the link opens the app in the Portal with only one Toplevelnavigation?!?
    Regards
    Bjoern

    Hi Bjoern,
    If youu2019re using WPC Editor to create your links, you need to specify u201CTopMost Windowu201D as the target window. 
    To do this, click anywhere within your hyperlink, click the u2018Edit Hyperlinku2019 button on the WPC Editor toolbar, and select u2018TopMost Windowu2019 as your Target Window.
    Hope this helps,
    Harman

  • Short URL in the Form of Text Message like SDN for Enternal Facing Portal

    Hi,
    For the External Facing Portal, We are using the Light Frame work with Light Top Level Navigation and customized it for look and feel.
    When we publish the Anonymous User role for the EFP, and navigate through the roles, The Portal URL is getting added with Short URL's (NavigationTaeget.....)
    How to make this Short URL's in the form of Text Messages like example in SDN
    After clicking the Forums the URL shown is like https://sdn.sap.com/irj/sdn/forums instead of Short URL.
    We are looking for some thing same.
    Regards
    Sumanth

    Hi Sumanth,
    Short URL is automatically created by portal.
    So you cant make the short URL in the form of text message.Refer the following link
    <a href="https://weblogs.sdn.sap.com/pub/wlg/2452">https://weblogs.sdn.sap.com/pub/wlg/2452</a>
    <a href="http://help.sap.com/saphelp_nw70/helpdata/en/b3/7b8163404448e7aad7899c0b30313e/content.htm">http://help.sap.com/saphelp_nw70/helpdata/en/b3/7b8163404448e7aad7899c0b30313e/content.htm</a>
    Regards,
    Hemalatha

  • Short URL issue

    Dear Experts,
    I am able to find the short URL for the following iView in Development portal.
    ROLES://portal_content/com.sap.pct/every_user/com.sap.pct.erp.ess.bp_folder/com.sap.pct.erp.ess.roles/com.sap.pct.erp.ess.employee_self_service/com.sap.pct.erp.ess.employee_self_service/com.sap.pct.erp.ess.area_travel_expenses/com.sap.pct.erp.ess.12.tripform
    However, I could not able to find the short URL for the same iView in Quality portal.
    Would appreciate if you could help me on this please.
    I checked the following configuration in QA
    1.The said iveiw(WDA) has been opened in QA more than once
    2.Short URL is activated in system admin in QA portal.
    Thanks and Regards,
    Tarani Jena

    Hi Kevin,
    Thanks for your reply, which is helpful.
    I have done the following steps again
    Look at the iView in Content Admin to be sure you know it's technical name
    2. In the Portal, navigate to System Administration --> Navigation --> Short URLs (which is in detailed navigation)
    3. Verify that short URLs are active inthe top of this screen
    4. in the search field below, enter the technical name of your iView (use an asterisk before and after it to be safe) then click 'Search'
    5. you'll see the results below and find the short URL for this iView
    I could able to find the short URL in Dev. However could not find the short URL for the same iView in QA. Any idea, what am I missing in QA?
    Regards,
    Tarani Jena

  • Short URLS

    I have created some links in the masthead via a jsp page.  The links use the Short-URL provided by portal but the iViews/Pages that the links point to are set to Invisible in Navigation Area (they really don't 'belong' anywhere so I had no place to put them in the TLN or DTN.  I have three questions regarding this.
    First when I click the link it automatically selects the Home->Home Page from the TLN and highlights them as though this is the page you are viewing when indeed it is not. 
    Second the URL Address retains the Short-URL after the user has gone away from the iView/Page so if they refresh it takes them there and not the home page.
    Third I have one link that opens a Web Dynpro Application - I would prefer this open in a headerless window.  URL set up like this
    HREF="/irj/portal/?NavigationTarget=navurl://ea5eb6a6dd34b23acede90c1804ae156" target="_blank"
      It opens in a new window but it opens the entire portal (even though the iView is set to open in a headerless window).
    Does anyone know if there are workarounds for any of this?  While the first two would be nice to have the third is kind-of a must so any suggestions are appreciated.

    Hi TA,
    The first two issues you face are nuances of the SAP Portal - just the way the navigation service works.
    However to answer your third and most critical issue, I would suggest that rather then having the link to the iView like you do using a short URL and the ?NavigationTarget=abcec... you should just call the iView directly like http://myserver:port/irj/servlet/prt/portal/prtroot/pcd!3a.... you can get the right URL by previewing the iView or page via the PCD. That way you won't get the whole portal opening in the new window, just the iView.
    Hope this helps you.
    BRgds,
    Simon

  • Keeping the right site tied to my short url on MobileMe

    I have maintained multiple websites in multiple domain files, all published to MobileMe since iWeb first came out. I have one site which serves as an index page to all the sites I maintain. This index site is designed to be tied to my short url at MobileMe (http://web.me.com/username). That way from my short url I (or others) can access all the sites.
    Prior to iWeb 09, I knew how to make sure that site remained tied to my short user name. Namely, I only published website changes using "Publish to MobileMe" and never "Publish All to MobileMe."
    I recently bought a MacBook Pro, with iWeb 09 installed, and have shifted to using it to maintain my websites. But now, any time I update a website (using "Publish Changes"), that website "takes over" the short url.
    Is there a solution to this? I did try searching the forums before posting, but my search turned up so many "false matches" I'm afraid I gave up slogging through them all.
    kabing

    With iWeb 09 the last published site is the one that the will be the default site when entering the minimal http://web.me.com/username URL. You can fix that using the method Wyodor posted here: http://discussions.apple.com/thread.jspa?messageID=10748607&#10748607 .
    Or you can purchase a domain name for that entry site and use simple domain name forwarding with or without masking. The domain name would be pointed to the URL http://web.me.com/username/EntrySiteName/. Then it won't matter which site is the last published site.
    My tutorial site, http://toadstutorials.info, is setup with the simple URL forwarding with masking. Then down side to masking is that visitors can only bookmark the first/entry page of the site.
    OT

  • Using Go URL to Pass parameter between dashboard

    Hi All,
    I am trying to pass parameter using GO URL functionality from one dashboard analysis field to another dashboard.
    The navigation is working properly but the parameter is not getting passed, I am not sure why.
    The Called dashboard has a analysis which has IS PROMPTED filter attached to it for the passing filter. I tried various ways to make this work
    Option 1
    In the calling analysis, I am using a Narrative View and inside I have used the below code.
    <a href="saw.dll?Go&Path=/shared/MI/_portal/Client-MI&Page=Supplier%20Detail%20Tab&Action=Navigate&P0=1&P1=eq&P2=Dim%20Supplier.Supplier%20Name%20Current&P3=1+%22STR%20LTD%22"> @2[br/]
    This one navigate but filtering is not happening
    Option 2 (My first preference will be this option)
    Also I tried to provide custom Data Format under the column Properties
    [html]"<font class="nav" onclick=\"JavaScript:GoNav(event, '/shared/MI/_portal/Client-MI/Supplier Detail Tab','Dim Supplier','Supplier Name Current','"@"');\">"@"</font>
    This ends up giving error
    Type mismatch of catalog object /shared/MI/_portal/Client-MI/Supplier Detail Tab -- expected , got .
      Error Details
    Error Codes: UVWDR6UA 
    Also, both the tabs (Called and Calling are under the same Dashboard)
    Can anyone please let me know, were I am making mistake. I tried refereeing Oracle documentation but still no result.
    Thanks

    Looks like you've got it almost right - just an extra unneeded "
    <a href="two.jsp"?ant=<%= ant %>"><%=antName%></a>
    which should render on the page as something like
    My Ant Task
    When you click the link, it should pass that parameter, and you can get it via request.getParameter().

  • How to set a value to a Presentation Variable using GO URL?

    Hi All,
         I am working on a drill (GO URL) from Dashboard page1 to Dashboard page2.
         The problem I am facing is, I am not able to pass a value to the presentation variable through GO URL. (I have to pass "Customer Category" static
    value to The presentation variable present in Dashboard Page2 ).
         The Dashboard page2 is having a view select in which we are using presentation variable to select the report based on the value selected in
    View Select.
         For example: If the user selects "Customer Category" value in View select and clicks on GO button Customer Category report will show the out put.
         When i am drilling from Dashboard Page1 I have to pass a value to the presentation variable used in view select and also pass some filter condition in
         GO URL.
         Please let me know if it is feasible to pass a value to the presentation variable through GO URL in OBIEE 10.1.3.4.
         It will be greate if you can provide me with the syntax to set a value to the presentation variable of dashboard page2 through GO URL.
    Thanks and Regards,
    Sagar Vishwanathwar.

    1) You have to navigate to dashboard page, not to answer request = you have to use "Dashboard URL API" not GO URL API.
    2) On the target page, you have to place dashboard prompt, which sets required presentation variable.
    3) Refer to the target using Dashboard URL API and set filter on prompt column using URL parameters. Example: http://localhost:9704/analytics/saw.dll?Dashboard&PortalPath=%2Fusers%2Fadministrator%2F_portal&Page=page%201&Action=Navigate&P0=1&P1=eq&P2=D_TIME.YEAR_CODE&P3=%221996%22
    Do not forget to use Action=Navigate. The syntax for setting filters using url parameter is the same as for GO URL API described in Business Intelligence Presentation Services Administration Guide.
    This is the way, you can implement navigation to parametrized direct SQL reports including passing filter values...
    Regards K.

Maybe you are looking for