Get URL, code link properties of iview

Hello SDN,
I have few iviews in a folder. I have a program which iterates through all the objects in folder and if the object is an URL iview, i want to open it in a new window using "window.open(Url)" Two questions i have,
to check if the object is an URL iview, I am using this code
String path = "<path of the object>";
IPcdContext targetobject =      (IPcdContext) initialContext.lookup(path);
Object attr4 = iattrs.get("CodeLink").get().toString();
and i want to compare it with the "com.sap.portal.httpconnectivity.urliviews.runtime"
but i get attr4 as "null".
although i know that it is a URL iview, how do i get the actual URL in the URL iview. what property should i access and how?
could someone please help?
thank You

Hi,
Hello SDN,
I have few iviews in a folder. I have a program which iterates through all the objects in folder and if the object is an URL iview, i want to open it in a new window using "window.open(Url)" Two questions i have,
to check if the object is an URL iview, I am using this code
String path = "<path of the object>";
IPcdContext targetobject = (IPcdContext) initialContext.lookup(path);
Object attr4 = iattrs.get("CodeLink").get().toString();
and i want to compare it with the "com.sap.portal.httpconnectivity.urliviews.runtime"
but i get attr4 as "null".
Try the following code instead: (also have a look at the doc here: http://help.sap.com/saphelp_nw70/helpdata/EN/44/6aaf92f5a23672e10000000a114a6b/content.htm)
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY,IPcdContext.PCD_INITIAL_CONTEXT_FACTORY);
env.put(Context.SECURITY_PRINCIPAL, request.getUser());
env.put(Constants.REQUESTED_ASPECT, PcmConstants.ASPECT_SEMANTICS);
String attr = "";
InitialContext iCtx = null;
try
     String iViewID = "pcd:portal_content/...../...";
     iCtx = new InitialContext(env);
     IiView myIView =(IiView)iCtx.lookup(iViewID);
     attr = myIView.getAttribute("CodeLink");               
} catch(Exception Ex) {
     Ex.printStackTrace();
response.write("Value of Parameter CodeLink is " + attr");
Replace the value of the String Variable iViewID with the complete PCD Path of your iView. You will need to perform a JNDI Lookup on the ID. If you have a naming convention it should be possible to generate the IDs dynamically in your Code. Otherwise just provide a list of all IDs and iterate through the list to provide the appropriate ID.
although i know that it is a URL iview, how do i get the actual URL in the URL iview. what property should i access and how?
could someone please help?
Mmmh, good question. You can try to access it the way I described above. I've never tried for a URL iView.
Try URL as name of the property or maybe LaunchURL or SourceURL. If both do not work you can try to get a list of all Paramerters (I think there should be a method for this). You could print all parameters and its values so you can find out the name of the URL Property.
Hope this helps (Points are appreciated if helpful )
Cheers

Similar Messages

  • Something wrong with my 'get url' code...

    I've got a button that's in a flash movie embedded in an html
    document. When pressed, I want it to open a new window displaying
    this URL: E:\Folder Name\Movie Name.html
    I've attached the following code to the button:
    on (release) {
    getURL ("javascript:spawnWindow('E:\Folder Name\Movie
    Name.html','Newwin','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable= no,width=400,height=400')");
    Nothing happens when I press the button with the existing
    code, but when I replace the URL with an http address, such as
    http://www.google.ca/, it works,
    and the new window launches.

    Maybe its a real problem if u want to get a direction such us
    E:\something, this link will never work if u upload it on internet,
    may be u should put instead of that direction, "Movie Name.html"
    and place the swf next to ur .hml file.
    Maybe its also because "movie name.html" it has an space in
    the name, i got such big problems doing that, u may use this
    movie_name.html

  • Communication b/n iviews --- Can we get the code for SAP's standard iviews?

    hi All,
    I have a requirement where I have to pass the user input data obtained in a standard iview(provided by sap) to a custom built iview and process it from there.
    If I have to use the EPCF's client data bag for this purpose, I must be able to edit the code which produces the standard iview(provided by sap) which I think is not possible, as we cannot get the code for the standard iviews provided by sap.
    Have anybody come across this kind of issue? If so, can you help me in solving this issue? Is there any workaround for this?
    Any input in this regard will be of great help to me and will be suitably rewarded.
    Thanks & best regds,
    Alagammai.

    hi George,
    Tnx a lot.
    But I have already tried importing par files into NWDS. I am not able to see any source code(like jsp or java)which can be edited. I am able to see only class files.
    Does that mean that the class files are to be decompiled, edited, compiled and then uploaded to the portal?
    best regds,
    alagammai.

  • Get URL + load Movie

    I am going from one Flash site to another and use the get URL
    code just fine getURL("
    http://www.site2.com).
    When I get to site2 how does one pass loadMovie or other
    commands to site2 flash from site 1 with the get URL command? Is
    that a case for shared Objects?
    Thanks

    It looks like you are loading in an external .swf for the
    thumbnails and the larger images for each section. If you want to
    update a particular section's photos, then you can just replace the
    old .swf with a new one with the same name. Your movie will then
    use the new .swf when it is called to be loaded.
    You should not use getURL() for any of this. GetURL() is used
    to load a new .html document into a browser.

  • This is showing up on videos I try to view. I have latest update. It is a box that displays over video that says, get video URL, get embed code, etc. how do I correct it?

    A Box has just started showing up that has the following.
    get video url
    get video URL at current time
    Get embed code
    report playback issue
    get debug info
    stats for nerds
    about the HTML.5 player
    this is on every video on face book. How to fix?

    I had the same issue.
    I had a youtube downloader app that had a plug-in installed on my Home Safari. I deleted that app. and the plugin. Not sure if that was the culprit, but I figured I'd try.Thought maybe some bug crossed over when syncing the two safaris.
    Anyway, I ended up unlinking my Mobile Safari to my Home Safari (iPad; iCloud/Safari/OFF)
    A prompt will come up asking what you want to do with previously synced data: Delete from My iPad (don't worry, you'll get it back)
    Your bookmarks should disappear.
    Reset HOME Safari : Safari/Reset Safari (everything checkmarked)
    Turn ON the Mobile Safari again (if you want to relink to the Home version) or keep off (and rebuild it from scratch on iPad alone)
    Personally, I turned it on, got my bookmarks back then turned it off and pressed Keep on my iPad.
    Now the two aren't linked and I have the bulk of my bookmarks back.
    There might be variations of this solution so play around with the process and be sure to refresh your Mobile Safari browser on a video clip to see if it takes.

  • Get original URL for Link to a Document content type

    Hello,
    I'm having a SharePoint doc library with ItemAdded event receiver attached to it and "Link to a Document" content type enabled. My general question is:
    How to get URL that the link points to?
    I'll show you how I'm trying to achieve that:
    SPWeb parentWeb = properties.Web;
    if (properties.ListItem.ContentType.Name == LinkContentTypeName)
    object urlFieldValue = properties.AfterProperties["URL"];
    if (urlFieldValue != null && urlFieldValue.ToString() != String.Empty)
    // continue
    But I always get null so I can't even get inside IF statement. I've tried to install ItemAdded event receiver as synchronous, but it didn't make a difference. I'd appreciate any ideas.
    Regards
    Tomasz

    This is not very convenient solution, because ItemUpdated can be executed more than once. However this certainly will work, so I'll accept this as a workaround. Actually I've found another one. I'm parsing link aspx file and I'm getting the URL
    from mso:URL tag:
    <%@ Assembly Name='Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' %><%@ Register TagPrefix='SharePoint' Namespace='Microsoft.SharePoint.WebControls' Assembly='Microsoft.SharePoint' %><%@ Import Namespace='System.IO' %><%@ Import Namespace='Microsoft.SharePoint' %><%@ Import Namespace='Microsoft.SharePoint.Utilities' %><%@ Import Namespace='Microsoft.SharePoint.WebControls' %><html xmlns:mso="urn:schemas-microsoft-com:office:office" xmlns:msdt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"><Head> <META Name='progid' Content='SharePoint.Link'><!--[if gte mso 9]><SharePoint:CTFieldRefs runat=server Prefix="mso:" FieldList="FileLeafRef,URL,_x0043_C1,KitId,ItemKey,Suffix_x0020_Code"><xml><mso:CustomDocumentProperties><mso:URL msdt:dt="string">http://serverUrl/sites/arrangement1/Shared Drawings/test, test</mso:URL><mso:ContentType msdt:dt="string">Link to a Document</mso:ContentType><mso:File_x0020_Title msdt:dt="string">Winding A Assembled</mso:File_x0020_Title>
    <mso:Revision_x0020_Number msdt:dt="string">-</mso:Revision_x0020_Number>
    <mso:Page_x0020_Size msdt:dt="string">A2</mso:Page_x0020_Size>
    <mso:ContentTypeId msdt:dt="string">0x01010A0082704B66E8B222478AF2E379D8A2FFB9</mso:ContentTypeId>
    <mso:ItemKey msdt:dt="string">1</mso:ItemKey>
    </mso:CustomDocumentProperties></xml></SharePoint:CTFieldRefs><![endif]--></head><body><form id='Form1' runat='server'><SharePoint:UrlRedirector id='Redirector1' runat='server' /></form></body></html>
    Regards
    Tomasz

  • Is it possible to haven an active url or link in 'Article Properties'?

    Is it possible to haven an active url or link in 'Article Properties'?

    No, you can't. The text you use in the various article property fields is just plain text and doesn't get converted to links when shown in the viewer UI.
    Neil

  • How to get anonymous guest link "View Only" and "Edit" URL using JSOM or Search API ?

    Hi,
    I need to get list item anonymous guest link View Only and
    Edit URLs (as shown in image below) using JSOM or SharePoint 2013
    Search API.
    the URL will be like this - https://<site URL>/_layouts/15/guestaccess.aspx?guestaccesstoken=yRaYGmE9n
    Any one has any idea how to do achieve this?
    Thanks
    Shakir

    Hi Shakir,
    To get the anonymous guest link “View Only”, we can use SP.ObjectSharingInformation.anonymousViewLink property in sp.js.
    https://msdn.microsoft.com/en-us/library/office/jj246826.aspx
    To get the anonymous guest link “Edit”, we can use SP.ObjectSharingInformation.anonymousEditLink property in sp.js.
    https://msdn.microsoft.com/en-us/library/office/jj246468.aspx
    We can also use REST API to get the guests links:
    _api/web/Lists/getbytitle('library name')/items(item id)/GetObjectSharingInformation?$expand=SharedWithUsersCollection&retrieveAnonymousLinks=true
    Thanks,
    Victoria
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • What is a deep link? How to get a deep link of a page and get it displayed in another page or iview?

    I  am asked to get the deep link of a particular iview in a page in ESS role and use it in another page so that the users can easily navigate to the deep linked contents..

    Hello Ajeeth,
    maybe you should ask the person who gave you the assignment, what they mean by "deep link".
    Regards,
    Steffi.

  • Get a community link / url from a communityID

    I am building a custom navigation and I am trying to create a link to a community. If I have the community id is there anyway to get the corresponding link to the community from an api call or query the community to get the full URL?

    Yes. However, there are at least four different ways of doing it. It all depends on what suits your needs.
    The simplest way would be to emit it using pt:openerLink tag with ClassID=512 and Mode=2 (see PT Enterprise Web Development Guide for more info).
    Another way would be to use the OpenerAS:
    usingcom.plumtree.server; //plumtreeserver.dllusingcom.plumtree.portaluiinfrastructure.classtypedescriptors.classframework; //portaluiinfrastructure.dllusingcom.plumtree.uiinfrastructure.statichelpers; //uiinfrastructure.dllusingcom.plumtree.xpshared.htmlelements; //uiinfrastrucutre.dll
    IPTSessionptSessionptSession=(IPTSession) parentActivitySpace.GetUserSession();stringbaseUrl=ConfigHelper.GetApplicationBaseURL(this.parentActivitySpace);stringhref=OpenerAS.GetOpenObjectFullURLAsString( PT_CLASSIDS.PT_COMMUNITY_ID, communityId, IPTOpenerConstants.OPENER_MODE_VIEW, baseUrl, ptSession.GetSessionInfo().GetCurrentUserID());HTMLAnchorlink=newHTMLAnchor(baseUrl+href); //concat because href comes as partial url
    You could also use ASCompoundList, add a single entry and then use it to get the URL:
    ASCompoundListcpList=newASCompoundList();cpList.AddCommPageURL(pageName, communityId, pageID, "", -1);CListURLMediatormediator=newCListURLMediator(parentActivitySpace, cpList);HTMLAnchormyLink=((HTMLAnchor) mediator.GetEntryAtIndex(0));
    Or you could use the ASURL to do the same.
    Ruslan.

  • Document url link on webdynpro iview

    Dear All
    We have developed  custom webdynpro ivew.
    Assigned that ivew to page and can display in ESS submenu.
    and one more km doc iview is there for document disply.
    But requirement is when enduser access webdynpro ivew  , in the same page there should be one link
    If enduser wants to download that document he has to use that link. becuse that doc is relavant to that iview.
    How can we do or organize this page.
    Please help .
    Thanks and regards
    kumar.

    Dear Raghu,
    Thanks for your response.
    How can I display link in webdynpro iview with the name of document.
    Ex : Please click here to download the form as mentioned below.
    file :  link : formdownload.pdf.
    If I click on this link it has to down load to enduser's local system.
    Please suggest.
    Regards
    Kumar.

  • Updating sniffer code link in Template

    I have a horizontal CSS menu in a DW template that requires a
    bit of sniffer code to work properly in IE
    Below is the code in the template:
    <!--[if lt IE 8]>
    <style type="text/css" media="screen">
    #menuh{float:none;}
    body{behavior:url(../ebs/csshover.htc); font-size:100%;}
    #menuh ul li{float:left; width: 100%;}
    #menuh a{height:1%;font:bold 0.7em/1.4em arial, sans-serif;}
    </style>
    <![endif]-->
    Child pages of the template do not update the path to
    csshover.htc to create the proper relative path.
    Is there anything I can do to make this section get updated?
    Thanks,
    Jegger

    Here are seven common mistakes that will result in changes
    not propagating
    from Template to child -
    1. Rename the Templates folder
    2. Move the Templates folder to some other folder level in
    the site other
    than root level
    3. Move a template out of the Templates folder.
    4. Make changes to an editable region of the template (which
    will not
    propagate)
    5. Assume that template changes can be uploaded to the server
    without also
    uploading the changed local files
    6. Corrupt the site cache so that the link between template
    and child page
    is broken
    7, Improperly create your child pages by simply opening the
    template,
    adding page specific content, and resaving the template with
    an *.html
    extension rather that its *.dwt extension. (you can tell if
    this is the case
    by looking at the code on a child page - if you see anything
    like <!--
    TemplateBeginEditable... then this is what you have done)
    The 6th problem can be repaired by using SITE | Advanced >
    Recreate Site
    Cache, and the six others can be fixed by just not doing
    them. Have you
    done any of those?
    Or, read this -
    http://www.adobe.com/go/dd83ba8b
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "mmazza" <[email protected]> wrote in
    message
    news:fnnjsf$bfs$[email protected]..
    >I have an email link in my site's template that when I
    change the links
    >properties, it doesn't update on the linked pages. Any
    suggestions?

  • How to get PERNR from employee search(teamviewer) iView in to a WD-4-ABAP.

    Hello All,
    I had developed a new Web Dynpro for ABAP (WD4A) component for updating a custom Infotype. This application is meant for the manager to maintain some specific data through portal for his employees in the team.
    WD4A application is built based on the employee number it receives from the portal.
         How could I get PERNR from employee search(teamviewer) iView in to my WD4A component?
    In portal I had developed a test page by copying the standard page from MSS com.sap.pct.erp.mss.general_information, and added my WD4A application through an iView into this page.
    Then I hided all the other iVews in the page except (1) employee search and (2)my WD4A iVew. On the preview everything appears fine.
    During the preview of this page it triggers the WDDOINIT of WD4A component main view and then the WDDOMODIFYVIEW. When I select an employee from the employee search, then it triggers only WDDOMODIFYVIEW in the WD4A application and not the WDDOINIT anymore.
    In my  WDDOMODIFYVIEW I had inserted the following code:
      DATA lo_api_component TYPE REF TO if_wd_component.
      DATA lo_portal_manager TYPE REF TO if_wd_portal_integration.
      lo_api_component = wd_comp_controller->wd_get_api( ).
      lo_portal_manager = lo_api_component->get_portal_manager( ).
      DATA lo_api_controller TYPE REF TO if_wd_view_controller.
      lo_api_controller ?= wd_this->wd_get_api( ).
      CALL METHOD lo_portal_manager->subscribe_event
        EXPORTING
          portal_event_namespace = 'urn:com.sap.mss.employeesearch'
          portal_event_name      = 'selection_changed'
          view                   = lo_api_controller
          action                 = 'GET_SELECTED_PERNR'.
    And in the action: 'GET_SELECTED_PERNR'
    METHOD onactionget_selected_pernr .
      DATA lv_str_pernr TYPE string.
      DATA lv_strlen TYPE i.
      DATA lv_pernr TYPE pernr_d.
      DATA lv_offset TYPE i.
      wdevent->get_string(
      EXPORTING
      name = 'PORTAL_EVENT_PARAMETER'
      RECEIVING
      value = lv_str_pernr ).
      lv_strlen = STRLEN( lv_str_pernr ).
      lv_offset = lv_strlen - 8.
      lv_pernr = lv_str_pernr+lv_offset(8).
    ENDMETHOD.
    This is not functioning form me. The action is not getting trigged with the code in WDDOMODIFYVIEW.
    I had gone through several threads in u2018SDN say:
         Pass pernr to WebDynro
         MSS - General Information - Related Activities Links persnr.
         SAP Note: 1112733.
    Most of the threads are answered but incomplete. In some threads people shared document personally which had been helpful.
    I am stuck with this scenario of handling the employee number from employee search iView. Helpful suggestions will be rewarded for sure.
    Thanks in advance.

    Do i understand you correctly that you are not getting the portal event ?
    This can be several reasons ?
    Both portal system and WDA server has to be in same domain and same proptocol to communicate with Portal event.
    Please check in that direction and search posts on this topic.

  • Get Url

    Hi,
    I have created following embedded code
    <object width='576' height='353' ID="Object1"
    VIEWASTEXT>
    <param name='movie' value='
    http://invind05/Rohit2/find_url.swf'
    />
    <param name='wmode' value='transparent'/>
    <embed src='
    http://invind05/Rohit2/find_url.swf'
    width='576' height='353' type='application/x-shockwave-flash'
    wmode='transparent'/>
    </object>
    This code will be used by client on any
    http:// xyz/abc.html.
    Iwant to get the url where the above .swf file is used. I
    donot want to add Java Script function in the embedded code.

    Kevin wrote:
    > How can i get a browser to load a new page url once a
    flash movie ends.So
    > the viewer doesnt have to click a link to open the new
    browser window? Ive
    > tried the get url action but no success so far.
    Place a key frame on the last frame of the timeline with
    getURL action.
    getURL("somepage.html");
    Once the movie reaches that frame, it will automatically call
    the browser window.
    It's good idea to place stop(); action on that frame as well,
    sometimes the movie
    rewind itself while the browser process the action, making
    impression like there
    is more to come and user get suddenly shifted elsewhere. They
    tend to hit the back
    button to go back see what has happened.
    Best Regards
    Urami
    Beauty is in the eye of the beer holder...
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • Manipulation of partner link properties

    Hello,
    I want to assign a variable to a property of a partner link in JDev.
    Here my source code of the assign activity:
    <assign name="Assign_1">
    <copy>
    <from variable="inputVariable"/>
    <to partnerLink="PartnerLink_1"
    bpelx:property="retryMaxCount"/>
    </copy>
    </assign>
    So I did what was written in the documentation of oracle BPEL manipulation of partner link properties, but it dosent work
    Someone can Help
    thanks

    User,
    The people on the [url http://forums.oracle.com/forums/forum.jspa?forumID=320]SOA Suite Forum or [url http://forums.oracle.com/forums/forum.jspa?forumID=212]BPEL Forum can probably better help.
    John

Maybe you are looking for

  • Using ImageIcon in Linux

    Hi, I tried to use jpg image inside JLabel. This is working in Windows. But I tried in RedHat Linux 9. I can't see the jpg image inside the label. I have included the code. Thanks in advance. import java.awt.*; import java.awt.event.*; import javax.s

  • SiteMinder Authentication Realm has NOT been correctly configured and...

    Hi All, When I set the realm (associated with the authentication provider) as UNPROTECTED, I see the following in my AUWebAgent.log (authentication web agent log): [31 Aug 2006 16:19:07,050] [main] [INFO] Configuration: Support for TP cookies is : EN

  • Code Insight Weaknesses / Issues

    Congratulations Oracle, SQL Developer is a great product. However, major gripe for our developers is the weakness of SQL Developer's code insight. For example a) Package names and or proc / func names - all of the results are always in uppercase, rat

  • HT6114 upgrade from osx 10.7.5

    How do I upgrade from MAC OSX 10.7.5 to Mavericks?

  • Invoice from Delivery

    How can I know if an invoice is generated from a delivery or from an order ? What is the delivery ref. number inside the OINV table ? Thank you ! Giuseppe