Invoke an iView to get markup fragments

Hi all
I want to search an iView with any ID in PCD. Then i would like get the markup fragments from this iView.
I think normaly the iView will rendered on the iView Server, but the code fragments are saved in PCD or anywhere. Can anyone explain me the livecycle until the iView will displayed? Where can i get the markup fragments from any iViews.
There are any methods in API to get the markup? I dont found it?
Have anyone any idea?
I hope that anyone can help me!
Michael

Sure, here is the sample code for method doOnNodeReady
protected void doOnNodeReady(IPortalComponentRequest request,
      IEvent event)
  //set http content type to excel format
  HttpServletResponse response = request.getServletResponse(true);
  response.setContentType("application/vnd.ms-excel");
  response.setHeader("Content-Disposition", "attachement;filename=\"abc.xls\"");
  java.io.PrintWriter out = response.getWriter();
  // print out the header
  out.print(headerSubject + "\t");
  out.print(headerDueDate + "\t");
  // then print out your data
  out.close();

Similar Messages

  • Invoking an iView directly?

    Hi,
    I am trying to invoke an iView directly through a url which is looks something like mentioned below.
    https://SAP_Server/irj/servlet/prt/portal/prtroot/pcd:portal_content/Folder1/com.xyz.rl.ABCRoles/com.xyz.rl.ManagerRole/com.xyz.ivu.SomeIView
    When I invoke it through this link it works fine. Now I added a few lines to the iview code to get some request parameters and process accordingly. Eg:
    String reqPage = request.getParameter("reqPage");
    //use the reqPage value and coded some logic
    Now I want to invoke the iView through the following url
    https://SAP_Server/irj/servlet/prt/portal/prtroot/pcd:portal_content/Folder1/com.xyz.rl.ABCRoles/com.xyz.rl.ManagerRole/com.xyz.ivu.SomeIView?reqPage=HomePage
    Now I get an exception which says
    iView not found:pcd:portal_content/Folder1/com.xyz.rl.ABCRoles/com.xyz.rl.ManagerRole/com.xyz.ivu.SomeIView?reqPage=HomePage
    How can I call the IView directly and pass some params to it ?
    Any help will be highly appreciated and rewarded.
    Thanks & Regards,
    Sudhir

    hi sushir,
    write this code,its work
    String hostName =
    TaskBinder.getCurrentTask().getProtocolAdapter().getServerName();
    int port =
    TaskBinder.getCurrentTask().getProtocolAdapter().getServerPort();
    String url =  http://  + hostName + ":“ + port + "/irj/portal?“ + “NavigationTarget” + "="
          + iviewPath //pcd location
          + "&“  + “DynamicParameter” + "="
                      + dynamicParameterName //parameter name
         + "%3D“ + dynamicParameterValue //parameter value
         + "&“ + “NavigationContext” + "=";
    thanks,
    dibyendu

  • Address iView not getting displayed in ESS

    Hello Everyone,
    When I am logging into ESS with an User of SAP systen, I am unable to see the Address iView of the corresponding employee to whom the user is assigned.A number of iViews is getting displayed for different countries but I am unable to get the iView which I am looking for.Even when I am clicking on the iViews which are getting displayed no data is getting displayed.I am using country grouping 40 i.e India.I have also set the parameter in the User profile(UGR 40 and UCN IN).
    Also for some of the links, when I click them the page is getting refreshed continuously without any display.Bu twhen I am tyring the view the same using the PZ screens it is coming properly.
    Please let me know what settings are required to get the proper iView.
    With Regards,
    Kaustuv Goswami.

    Hi Kaustav,
    Go to the portal->content administration->webdynpro and see in the left pane where all the deployed applictions will get displayed.You can chekc the same thru SDM also.
      For deployment, you can download the .SCA file from the service market place and deploy it thru SDM.
    Regards,
    Sharadha

  • Error: Could not get markup. The cookie or session is invalid or ...

    When I run the portlet getting the below error:
    Error: Could not get markup. The cookie or session is invalid or there is a runtime exception.
    I have gone through the log, it's processing the request.
    Any help on this ...

    first can you give us some idea about which product/component/platform/version are you working with. and how did you edit the 'portal prefs'.
    thanks!

  • FPN: No ESID found error while invoking BEx iviews for Reports.

    Hi Everybody,
    We have a federated portal network [FPN] setup. We are EP 7 SP15 for both Consumer portal and BI producer portal.
    The content is delivered to users via RRA Remote Role Assignment ] in consumer portal for BI portal roles from Producer bi portal.
    The problem is when we are trying to access BEx iviews for Reports i get the error: Internal error No esid found.
    The BEx iview for Queries are running fine but the problem is for BEx iviews for Reports in consumer portal.
    All reports are running fine in producer BI portal.
    Consumer portal AD UME and producer portal is ABAP UME.
    Please help to fix this.
    Below is the trace.
    #1.5 #00237DA36C70002900000015000058A7000477861BB01CF2#1257317780692#com.sap.security.core.umap.imp.UserMapping#sap.com/irj#com.sap.security.core.umap.imp.UserMapping.getInverse
    MappingData(String, ISystemLandscapeObject)#J2EE_GUEST#0#####SAPEngine_Application_Thread[impl:3]_29##0#0#Info##Java###Found local user "" being mapped to backend user ""
    for system .#3#USER.R3_DATASOURCE.RAMA#RAMA#"(null)"#
    #1.5 #00237DA36C70002900000016000058A7000477861BBFA58B#1257317781710#com.sap.ip.bi.base.exception.BIBaseRuntimeException#sap.com/irj#com.sap.ip.bi.base.exception.BIBaseRuntimeEx
    ception#RAMALINX#2777#####SAPEngine_Application_Thread[impl:3]_29##0#0#Error#1#/Applications/BI#Plain###Exception thrown: com.sap.ip.bi.base.exception.BIBaseRuntimeException:
    Error: Internal error. No esid found.
    com.sap.ip.bi.base.exception.BIBaseRuntimeException: Error: Internal error. No esid found.
         at
    com.sap.ip.bi.webapplications.runtime.jsp.portal.services.BIRuntimeService._createController(BIRuntimeService.java:687)
         at
    com.sap.ip.bi.webapplications.runtime.jsp.portal.services.BIRuntimeService.createController(BIRuntimeService.java:642)
         at
    com.sap.ip.bi.webapplications.runtime.jsp.portal.services.BIRuntimeService._handleRequest(BIRuntimeService.java:343)
         at
    com.sap.ip.bi.webapplications.runtime.jsp.portal.services.BIRuntimeService.handleRequest(BIRuntimeService.java:276)
         at
    com.sap.ip.bi.webapplications.runtime.jsp.portal.components.LauncherComponent.doContent(LauncherComponent.java:24)
         at
    com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
         at
    com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
         at
    com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest
    (PortalRequestManager.java:136)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
         at
    com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
         at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:645)
    at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
         at
    com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest
    (PortalRequestManager.java:189)
         at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
         at
    com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
         at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run
    (Dispatcher.java:524)
         at java.security.AccessController.doPrivileged(AccessController.java:246)
         at com.sapportals.portal.prt.dispatcher.Dispatcher.service
    (Dispatcher.java:407)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service
    (InvokerServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet
    (HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at
    com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
         at
    com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
         at
    com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle
    (RequestAnalizer.java:265)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request
    (Processor.java:175)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at
    com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at

    Darryl
    Thank you for the quick reply.. I did check and the system property field was blank
    I also wanted to point out that we are not experiencing this issue in our Dev enviornment, and all content was transported to Q.  Only in Q are we getting this issue.
    Please advise

  • Creating iviews programatically - getting OperationFailedException

    Hi,
    While creating a iViews programatically I am getting
    OperationFailedException exception.
    This is the piece of code which is throwing the exception
    NewObjectDescriptor IVtoCreate = null ;
    try
    IVtoCreate = (NewObjectDescriptor) iViewSrv.instantiateDescriptor(CreateMethod.NEW,
    "pcd:portal_content/com.sap.pct/every_user/general/iViews/com.sap.km.iviews/com.sap.km.NewsBrowser" ,
    request.getUser()); }
    catch( ObjectNotFoundException ex)
    ex.getMessage() ;
    catch( OperationFailedException ex)
    ex.getMessage();
    I am using EP SP9. and
    I want to create a iview from NewsBrowser.
    I tried with NEW as well as DELTA_LINK way , still I am getting the same error.
    can anyone please help on this
    thanks
    pk

    Hi,
      Check the code snippet below.
    Object user = request.getUser();
    Hashtable env = new Hashtable();
    env.put("java.naming.factory.initial", "com.sapportals.portal.pcd.gl.PcdInitialContextFactory");
    env.put("java.naming.security.principal", user);
    INewObjectDescriptor iDesc = null;
    IiViews iSrv = (IiViews) PortalRuntime.getRuntimeResources().getService("com.sap.portal.ivs.iviewservice.iViewsSrv");
    try {
         Context iCtx = new InitialContext(env);
         Context iviewCtx = (Context) iCtx.lookup("portal_content/sample/iViews);
         iDesc =     (INewObjectDescriptor) iSrv.instantiateDescriptor(
              CreateMethod.DELTA_LINK, sampleiViewName ,
              (IPrincipal) user);
    catch (NamingException ne) {
          //logger component statements
    Regards,
    S.Divakar

  • Using xml iView to get data from URL generating rss feeds

    hi,
    I have a URL
    http://xml.weather.yahoo.com/forecastrss?p=USCA1116
    from the yahoo weather site.
    It opens XML data.
    I then created an XML iView in the following way:
    In step 3 in XML source; i typed the above URL. Clicked on Next.
    In Step 4 for Selected XML translation format I chose MY_RSS_TO_XHTMLB.
    When I preview it gives the message : Error while using XML iView, please contact your system administrator.
    I have Portal SP14.
    So as mentioned before in a forum, I went to System Administration -> System Configuration -> Service Configuration -> Applications -> com.sap.portal.ivs.httpservice-> proxy
    and changed "HTTP Proxy Host" to "proxy" and "HTTP Proxy Port" to 8080.
    Then to re start I right clicked com.sap.portal.ivs.httpservice, went to Administrate and restarted the services.
    But I still get the same message
    Error while using XML iView, please contact your system administrator.
    Can you please let me know if these 2 settings are correct.
    thx.

    Hi,
    Could you please let me know if you were able to solve this issue. Inspite of all the suggested configuration we are still getting the same error, as stated by you.
    Anyone able to overcome this issue, please reply. Also let me know if we need to consider any specific versions of portal & browser, JRE etc..
    Thanks,
    KSK

  • How to invoke binding in the get and set

    Hi, i am new to jsf and i have urgent question that i will be thankful to answer.
    I am using this code:
    <rich:tab label="Application" id="applicationTab">
                   <h:form id="applicationForm" binding="#{adminBean.applicationForm}">
                        <h:inputHidden id="tabname" value="application" />
                        <h:commandButton value="change" action="#{adminBean.storeProperties}">
                        </h:commandButton>
                        <f:verbatim>
                        </f:verbatim>
                   </h:form>
    </rich:tab>
    But the value of adminBean.applicationForm is changing and i need the ui to change when the value changes, but the binding is only invoked in the constructor. How can i change it?
    I would appreciate any answer ASAP

    Sorry about that, I was wrong about the gets in the subsequent render responses. The children just gets reflected in the instance.
    I created a small test snippet and it just works.
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <f:view>
        <html xmlns="http://www.w3.org/1999/xhtml">
            <head>
                <title>Test</title>
            </head>
            <body>
                <h:form binding="#{myBean.form}">
                    <h:commandButton value="add" action="#{myBean.action}" />
                </h:form>
            </body>
        </html>
    </f:view>
    package mypackage;
    import javax.faces.component.html.HtmlForm;
    import javax.faces.component.html.HtmlOutputText;
    public class MyBean {
        private HtmlForm form;
        public void action() {
            HtmlOutputText text = new HtmlOutputText();
            text.setValue(" " + form.getChildCount());
            form.getChildren().add(text);
        public HtmlForm getForm() {
            return form;
        public void setForm(HtmlForm form) {
            this.form = form;
    }Give it a try and see if it works.

  • How to get index fragmentation percentage by sql query

    hi, experts, I built some indexes in my database. the database is not accessible by me. it is by DBA. I could not ask him to use interface on management studio to check every indexes fragmentation percentage everyday. is there any sql queries to get the  index
    fragmentation percentage?
    then I could write a sql and execute from a windows scheduler to export report everyday.
    the sql server version is 2005
    Thank you very much!

    hi
    check this link: http://gallery.technet.microsoft.com/scriptcenter/Check-SQL-Server-a-a5758043
    SELECT OBJECT_NAME(ind.OBJECT_ID) AS TableName,
    ind.name AS IndexName, indexstats.index_type_desc AS IndexType,
    indexstats.avg_fragmentation_in_percent
    FROM sys.dm_db_index_physical_stats(DB_ID(), NULL, NULL, NULL, NULL) indexstats
    INNER JOIN sys.indexes ind
    ON ind.object_id = indexstats.object_id
    AND ind.index_id = indexstats.index_id
    WHERE indexstats.avg_fragmentation_in_percent > 30
    ORDER BY indexstats.avg_fragmentation_in_percent DESC
    [Personal Site] [Blog] [Facebook]

  • Iview is getting greyed out sometimes

    Dear experts,
    I have created a VC model and published the iveiw in portal so when i login to portal and run the application sometimes its getting greyed out and sometimes its working.
    what could be the reason, i have other vc models on portal they are working fine.
    this particular problem iview has a function module to change the backed system status of the activites.
    any options to be checked.
    i want to upload the screen shot but doesn't know how to doit.
    thanks and regards
    Neel

    Hi ,
    Can you send the Modle and Screen shot to my id :[email protected]
    Regards,
    Govindu

  • Any iviews not getting opened from the portal content.

    Hi,
    Recenlty i found that the any of the iviews of the portal content are not getting opened.When i click on any of the iviews a blank page pops up.But the iviews when dispayed in the top level navigation gets opened there.Even the personalize option in the masthead pops with a blank screen.
    Am not able to figure where the problem is exactly.Pls help.
    Regards.
    Adity.

    We are using IE-7 and as per our clients requirements the portal has to be run on IE-7.May be this may be the browser problem but what settings i need to do to make all iviews running fine.This problem was not earlier but i am seeing this since a week.And all iviews pop up with a blank screen.
    Regards
    Adity

  • Invoking Transaction iView

    Hi All,
    I have a requirement wherein I have to invoke a transaction iView from a process.The transaction iView has been created and working fine. I am using VC as my UI tool.
    The problem is that whenever I invoke the transaction iView from the portal, it requires me to re-enter the PORTAL user-id password.
    Is there any way of proceeding without having to re-enter the PORTAL credentials on invoking the transaction iView ?
    Regards,
    Gaurav.

    Hi Gaurav,
    You will have to implement Single Sign On between the portal and the backend system.
    Kindly read the following pages on help.sap.com
    http://help.sap.com/saphelp_nw70/helpdata/EN/02/d4d53aa8a9324de10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw70/helpdata/EN/a4/235342d8a7be30e10000000a155106/frameset.htm
    In short:
    1. Download the portal certificate.
    2. Set the following parameters in using RZ11.
            login/accept_sso2_ticket = 1
            login/create_sso2_ticket = 0
    3. Use transaction STRUSTSSO2 and import the certificate.
    Then restart the ABAP Instance.
    Thanks,
    GLM

  • Can I force UWL iview to get the updated task items when first visit

    Hi all:
        We are implementing EP7 on aix. Currently UWL iView will not display the updated items when first click on. Only when I click on the tasks tab, it will display the updated items. I change set keepItemCountUpdated tag to “Yes”, but it doesnot work.
        Can we force the UWL iview to connect to backend to get the updated items when it is first launch ?

    Have a look at the properties of the UWL iView, for example "Wait duration before calling providers on loading of UWL" and similar properties.
    You could try setting these to lower numbers to hurry up the initial update.......

  • Error 7 occurred at invoke node in CMP Get VI Hierarchy.vi

    I get this Error 7 when doing compare VI hierarchies for two VI.  I clicked on continue but the program will not continue.

    Hi John,
    This has previously been reported to be caused by one of the hierarchies
    not being of the same version of LabVIEW as the other. The workaround
    is to mass compile the old VIs by going to "Tools » Advanced » Mass Compile..." and selecting the directory or library that holds the old VIs.
    Let me know if that doesn't solve your issue, thanks.
    - Philip Courtois, Thinkbot Solutions

  • How to use JDBC iView to get data from MSSQL

    Hi Guru,
    I just try to follow the Demo (from SDN) to use JDBC iView. In the step of selecting query or existing function, I choose the query option to broswer the table. But the system is not display any tables. It just keep on displaying 'Loading ...'. Is there anything wrong with that?
    Thanks for your help,
    Bo

    Hi Bo,
    I got the same problem with your, do you know how to fix the problem?
    Thanks,
    Ku

Maybe you are looking for