Dynamic Replacement of IView

Hi all,
A portal page to integrate several kinds of contents is in general the best way.
But how can you handle dynamic replacement of an iView of a page (the page contains more than one iView) by another one by using the Portal navigation service of the WebDynpro Runtime? If I navigate to the target application with mode WDPortalNavigationMode.SHOW_INPLACE, the content of the page at all is replaced by the target iView. Is there a possibility to access/replace only the desired iView of the page?

Hi Purav,
You can refer to this [link|http://help.sap.com/saphelp_nw70/helpdata/en/5f/cf9d4207e1c86ae10000000a155106/frameset.htm] for dynamic assignment of an iview to a page.
Do you want to assign a particular iview on the basis of user access?
If yes you need to personalize iview properties for individual users.
Hope it helps.
Thanks,
Ami
Points are always welcomed.

Similar Messages

  • Replace an iView dynamically by another one by portal navigation service

    Hi all,
    A portal page to integrate several kinds of contents is in general the best way.
    But how can you handle dynamic replacement of an iView of a page (the page contains more than one iView) by another one by using the Portal navigation service? If I navigate to the target application with mode WDPortalNavigationMode.SHOW_INPLACE, the content of the page at all is replaced by the target iView. Is there a possibility to access/replace only the desired iView of the page?
    Thanks.
    Cemal

    See for the solution the following post.
    Replace an iView dynamically by another one by portal navigating service
    Cemal

  • Replace an iView dynamically by another one by portal navigating service

    Hi all,
    A portal page to integrate several kinds of contents is in general the best way.
    But how can you handle dynamic replacement of an iView of a page (the page contains more than one iView) by another one by using the Portal navigation service of the WebDynpro Runtime? If I navigate to the target application with mode WDPortalNavigationMode.SHOW_INPLACE, the content of the page at all is replaced by the target iView. Is there a possibility to access/replace only the desired iView of the page?
    Thanks.
    Cemal

    Hi Laurent,
    this is no possible with WebDynpro except the IFRAME - UI - Element of the webdynpro. But the iframe ui-element is declared as deprecated for future releases.
    The solution is a portal component with an embedded html-iframe. The src - attribute of this iframe can be filled dynamically by the portal eventing.
    You create a dynpage as a event receiver. This fills the src-attribute of the html-iframe by the event param dataObject.
    The code below can help you:
    Create output. Called once per request.
              public void doProcessBeforeOutput() throws PageException {
                   Form myForm = this.getForm(); // get the form from DynPage
                   IPortalComponentRequest request = (IPortalComponentRequest)this.getPageContext().getRequest();
                   String Output =
                        "<iframe id='LauncheriFrame' src='' width='100%' height='100%' margin='0' padding='0' frameBorder='0'></iframe>"
                             + "<script>"
                             + "function <eventhandler>(eventObj){"
                             +"document.getElementById('LauncheriFrame').src = eventObj.dataObject;"
                             + "}"
                             + "EPCM.subscribeEvent('<namespace>', '<Eventname>', <eventhandler>);</script>";
                   this.getPageContext().write(Output);
    I hope that helps you.
    Cemal

  • How to carry out Dynamic Replace action in OSb

    Hi all
    I want to do a dynamic replace in OSB.
    like
    Lets my input be :-
    <cli:AccountInquiryRequest xmlns:cli="http://client.accountInquiry.dto.cards.nab.cz.fc.ofss.com">
    <cli:requestUID>string</cli:requestUID>
    <cli:cardType>string</cli:cardType>
    <cli:AcctId>5</cli:AcctId>
    <cli:scr>AcctId</cli:scr>
    <cli:dest>requestUID</cli:dest>
    </cli:AccountInquiryRequest>
    So what i want to do is check for element name in <scr>(in this case AcctId) and then replace the contains of the <AcctId> with the contains of the element name given in <dest>(in this case its requestUID)
    so in this case i want to replace the contain of requestUID with AcctId .
    Please help !!!
    Thanks

    I think you need to determine the xpath used for replace at runtime.. You can try looking at xslt xalan:evaluate function for this.
    The function syntax is as :
    <xsl:value-of select="xalan:evaluate($XPath)"/>
    You need to construct $XPath to point to right xpath . e.g concat("$body/*:",$body/*:dest)
    This will make $XPath to = $body/*:requestUID
    You can then pass this xpath string to xalan:evaluate.

  • Dynamic naviagation of iview

    hi all.
    please help me in following scnerio.
    i have two webdynpro application ZWD1 and ZWD2.
    In portal i have attached iview of ZWD1 as dynamic navigation.
    it is showing me ZWD1 in "navigation panel". now i want to launch ZWD2 in "portal content area" on clicking on button of ZWD1.
    thanks

    Hi Jignesh,
    Add the following code in the onAction of the button for portal navigation from iView1 to iView2 within the portal content area.
    WDPortalNavigation.navigateAbsolute(
         "ROLES://portal_content/XYZContent/XXX/XXXRoles/XXXRole/com.sap.usrRole1",
         WDPortalNavigationMode.SHOW_INPLACE,
         (String) null,
         (String) null,
         WDPortalNavigationHistoryMode.NO_DUPLICATIONS,
         (String) null,
         (String) null,
         (String) null
    The very first argument for navigationAbsolute() method is the pcd path of the target iView (iView2 in your case).
    This pcd path can be picked up from the iView properties and just the pcd:portal_content/......... need to be replaced by
    ROLES://portal_content/.......
    Use SHOW_INPLACE in case you want the target iView to cover whole of the portal content area and SHOW_EXTERNAL to open the target iView in an external popup window.
    Regards,
    Tushar Sinha

  • Passing Parameters dynamically to an iview in the portal

    Hi All,
        I have 2 iviews.  IviewA, IviewB. These are PAR based iviews(dynpage technology).
    IviewA displays a dropdown which contains:
    2006
    2007
    2008.
    If the user selects a particular year say 2006 and click next, IviewB should display 2006 data.  Right now, it is displaying only 2006 data irrespective of the year selected from the drop down since 2006 value is hardcoded in the property of IviewB.
    Is there anyway to pass these parameters (2006,2007,2008) dynamically in portal so that respective year data will be displayed instead of achieving it through coding?
    Hope I am clear.  Please suggest.
    Regards,
    Subashini.

    Hi Subashini,
    When a business application uses more than one iView, you need the EPCF service to transfer data between the iViews. The EPCF service provides:
    ·        Mechanisms for eventing between iViews.
    ·        A Java object, called a client data bag, that serves as transient data buffer on the browser.
    The EPCF implementation itself is based on JavaScript and Java applets.
    Kindly go through the following links, you should find a solution.
    Forum threads:
    1.
    2.
    SAP Library:
    1. http://help.sap.com/saphelp_nw04/helpdata/en/ce/3e98408d953154e10000000a1550b0/frameset.htm
    2. http://help.sap.com/saphelp_nw04/helpdata/en/9f/6fa84016631814e10000000a1550b0/frameset.htm
    Regards,
    Anagha

  • How to dynamically replace variables in SMARTFORM texts based on item data?

    Hi experts,
    I'm currently designing a confirmation of order using Adobe PDF forms. The general layout with tables, pictures and texts was not big deal.
    But one tiny bit doesn't work and I'm becoming more and more desperate about it.
    We need various free texts for our pdf form. I created the texts using smartform texts. Some of these texts need to be slightly dynamic, so I added some dynamic fields in it.
    For example:
         "The material is currently out of stock.You can expect shipping around week &num_week&."
    To replace the dynamic field &num_week& in my interface, I read that I have to name the dynamic field exactly like the corresponding field in my interface. In my case this would be now:
         "The material is currently out of stock.You can expect shipping around week &SLS_PRT_COM-ITEM_DETAIL-ZZ_EXTRAFIELDS-ZZWEEKNUM&."
    To see the text on my form, I added a text object with type 'text module' and the proper textname. Of course I'm able to insert text on my form, save and activate it without problems. But if I want to print the form, nothing happens as the print program exits with an error code.
    After some hours I found out that this problem only occurs if I'm trying to replace the dynamic field with a field from the item table. Using a field from head details or globals like sy-mandt works like a charm.
    So my question is: Is it possible to use item data to replace dynamic fields of a smartform text?
    Greetings and thanks in advance!
    André

    Hi
    Have a look at the links below:
    LiveCycle ES2 * Adobe LiveCycle Designer ES2
    Using floating field in Adobe Forms to display text paragraph with dynamic variables in between
    After adding the floating field it will apeare in the hierarchy pallet above or bellow the text field.
    Good luck
    Shai.

  • Dynamic REPLACE with java.nio.CharsetEncoder

    Hi,
    I want to write an XML generator. Depending on the Charset,
    I have to replace certain characters (for example > 255 in
    case of ISO-8859-1) with &#dddd; (dddd being the numeric
    value of the character).
    It seems that CodingErrorAction.REPLACE would be well suited
    for that, but it can only replace static strings and not
    dynamically generated strings.
    Am I missing something? Or any suggestions how to use the
    CharsetEncoder anyways?
    Regards,
    Jochen

    Hello-oooo? Ever heard of xerces? Why write yet another xml generator when there are packages already written out there?

  • Dynamic KM Document IView

    Hi,
         Is there any way to use a single KM Document IView for all of my KM Documents?  I'd like the KM Document location/name to be used as a parameter so I don't have to create an IView for each document.  This way I could use the same IView as many links on the nav panel.
    Can anyone help!??

    did u see this blog?
    SP12/SP20: Setting URL Dynamically in URL iView

  • Dynamically replacing DD to corresponding date

    I am having a table where I can store DD-MON-YYYY such that when it display the output it should be last business day`s date in DD-MON-YYYY format. I am using replace statement to achieve this.
    Can anyone provide a solution if i want to print today`s date by giving (DD+1)-MON-YYYY some thing like that, such that i can replace the dates dynamically depending on the format given in the table.
    eg:- If i want to print 2 business day`s prior to sysdate means, can i use (DD-2)-MON-YYYY, such that it will get replaced with 2 business days prior to sysdate.
    Appreciate your help on this..
    thanks. !!!

    Thanks Robert.
    But to be more clear, what i want is :
    If someone is inserting DD-MON-YYYY`s in the table, my PLSQL block will replace those with last business day`s date currently.
    I am using REPLACE(recordtype.column_name, 'DD', TO_CHAR(TRUNC(getbusinessdate(sysdate),-1),'DD'));
    Similarly for MON and YYYY ,another 2 REPLACE statements.
    But now another requirement came like it should not be last buiness date always. Sometimes the user wants to get today`s date printed or may be 2 days prior.
    So there should be some flexibilty such that the dates should be printed dynamically, say if we are inserting like DD-2 or DD+1 in the table, corresponding dates should be printed. If DD alone, then last business date like that.
    Thanks in Anticipation. !!!

  • Dynamic WD Component iView not visible?

    Hi all
    I am using a WD Comp iView. Source view is triggering a page service to set up a target view on the WD Comp iView place holder. Even though i face no exceptions the WD Comp iView is invisible. I have checked all ppties but of no avail. I m NOT using OBN, it is just a page service. The iView are all WD views, can any one please help? Thank you.
    regards
    LNV

    Hey Carol,
         I was kinda facing a similar problem. Could you please tell me how exactly you solved the problem. Will be a great help.
    Regards

  • Pass parameters dynamically to url iview from web dynpro abap

    Hi,
    I am trying to pass 3 key-value pairs via absolute navigation to a URL iview.
    The url expected is : http://www.sap.com?field1=value1&field2=value2&field3=value3
    For this, I have done the following:
    1) Created a url iview with the 3 parameters in get.
    2) Used the pcd location of the url iview and referred it in the navigate_absolute method.
    Following is the call:
            CALL METHOD lr_port_manager->navigate_absolute
              EXPORTING
                navigation_target   = wa_navigation-target
                navigation_mode     = wa_navigation-mode
                use_sap_launcher    = abap_false
                business_parameters = l_bus_parameter_tab.
    The l_bus_parameter_tab has the key-value pairs populated and I can see them populated.
    However, when the url is being called the parameters are not getting passed. Am I missing anything to be passed?
    Thanks.

    Hi Kumar,
    I have followed your reccomendation and updated the code and iview properties.
    The code now looks like:
            l_parameter-key = 'userid'.
            l_parameter-value = sy-uname.
            INSERT l_parameter INTO TABLE l_bus_parameter_tab.
            l_parameter-key = 'portal'.
            l_parameter-value = 'test'.
            INSERT l_parameter INTO TABLE l_bus_parameter_tab.
            l_parameter-key = 'mode'.
            l_parameter-value = 'I'.
            INSERT l_parameter INTO TABLE l_bus_parameter_tab.
    *End of business parameters population
            CALL METHOD lr_port_manager->navigate_absolute
              EXPORTING
                navigation_target   = wa_navigation-target
                navigation_mode     = wa_navigation-mode
                use_sap_launcher    = abap_true
               business_parameters = l_bus_parameter_tab.
                launcher_parameters = l_bus_parameter_tab.
    However, when the method is called, it does nothing and the url does not get called.
    When I manually add parameters to the url iview and preview it, it does the job.
    For some reason, these parameters are not getting passed to the url iview or page.
    Is there a limitation that parameters cant be passed to url iviews?

  • Dynamically change URL iView link

    Hi,
    I have a requirement like this:
    Button1 would open an external link from Portqal
    Button2 would open a KM document from KM
    Button3 would open a KM folder
    In future the link type of these button can change.
    These external link, KM document location and KM folder location are read from a properties file and are subject to change.
    Here is my Approach
    I have created a separate URL iViews for testing purpose and tested that with URL iView, it is possible to open:
    External link in the format of http://www.<link>.com
    KM Folder in the format /irj/go/km/navigation/documents/..../<Destination Folder> , &
    KM document in the format /irj/go/km/docs/documents/..../<Destination File>
    I have now created a single URL iView pointing to a default URL(google), and marked the URL iView parameter Forced URL - Enabled as True
    The plan is to use this single iView for invoking any type of links - be it external, KM Folder or KM document
    In WebDynpro, I have tried using the following code to call this iView:
    WDPortalNavigation.navigateAbsolute(("ROLES://portal_content/demo_role/universal_url_iview",
    WDPortalNavigationMode.SHOW_EXTERNAL,
    WDPortalNavigationHistoryMode.ALLOW_DUPLICATIONS,
    "forcedURL="+dynamicURL);
    Not Working! Always opening the default google link.
    WDPortalNavigation.navigateAbsolute(("ROLES://portal_content/demo_role/universal_url_iview",
    WDPortalNavigationMode.SHOW_EXTERNAL,
    WDPortalNavigationHistoryMode.ALLOW_DUPLICATIONS,
    "app.forcedURL="+dynamicURL);
    Not Working! Always opening the default google link.
    where dynamicURL= either  http://www.<link>.com or /irj/go/km/navigation/documents/..../<Destination Folder> or /irj/go/km/docs/documents/..../<Destination File>
    Am I missing any configuration or the code is wrong?

    You really need to open the url within an iView? Oo
    IWDWindow window=wdComponentAPI.getWindowManager().
    .createExternalWindow("http://www.google.co.in","Google-search for an email address",false);
    window.setWindowSize(100,100);
    window.open();
    or
    String linkToBeOpen = "https://www.sdn.sap.com/irj/sdn";
    IWDWindow window =
    wdComponentAPI.getWindowManager().createNonModalExternalWindow(
    linkToBeOpen,
    "My window title");
    window.show();
    or
    import com.sap.tc.webdynpro.clientserver.portal.WDPortalUtils;
    import com.sap.tc.webdynpro.clientserver.navigation.api.WDPortalNavigation;
    if ( ! WDPortalUtils.isRunningInPortal()  ) { // standalone mode
      wdThis
        .wdGetExternalcompInterfaceViewController()
          .wdFirePlugGoToUrl(urlobject);
    } else { // portal iView mode
      WDPortalNavigation.navigateAbsolute(
        ... /*set of parameters that I do not understand ;) */
    regards,
    Angelo

  • Dynamically Replacing Location Attributes

    Hello,
    I am having trouble changing the validation entity group using the BefConsolidate event script.  This is my code below:
    Sub BefConsolidate(strLoc, strCat, strPer, strTCat, strTPer, strEntGroup)
        If InStr(UCase(strLoc), "EA") > 0 Then
            RES.PblnValEntGroupOverride=TRUE
            RES.PstrValEntGroup="TOT"
        End If   
    End Sub
    I am using similar code to dynamically change the import format and that works fine.  I am using FDQM, Fusion Edition 11.1.2.1.
    The RES. statements are coming straight out of admin guide so I am not sure why this will not work.
    The location in question does have a default validation entity group assigned.
    Thank you,
    Matthew

    Hello,
    Yes I am able to write to file before end if.  I also took out end if statement which to me would me FDM would fire the event for all locations without restriction.
    I have not tried the same code in other event script.  Would that work?  The RES statement specifically relates to a consolidation trigger.  I can try another event to see.
    Thanks.

  • Dynamically replacing pattern using SQL only

    Hi ,
    Table File name
    CREATE TABLE file_name_table AS
    ( SELECT 'FILE_A_[PATTERN1]_[PETTERN2].txt' AS file_name FROM DUAL
    UNION
    SELECT 'FILE_B_[PATTERN3].txt' FROM DUAL
    UNION
    SELECT 'FILE_B_[PATTERN3]_[PATTERN4].txt' FROM DUAL)Pattern Table
    CREATE TABLE pattern_table AS
    ( SELECT '[PATTERN1]' AS pattern, 'P00191' AS pattern_value  FROM DUAL
    UNION
    SELECT '[PATTERN2]' AS pattern, 'P00293' AS pattern_value  FROM DUAL
    UNION
    SELECT '[PATTERN3]' AS pattern, 'p567' AS pattern_value  FROM DUAL
    UNION
    SELECT '[PATTERN4]' AS pattern, 'p879' AS pattern_value  FROM DUAL
    UNION
    SELECT '[PATTERN5]' AS pattern, 'p005' AS pattern_value  FROM DUAL)Now I need a view which will show the follwing output
    'FILE_A_P00191_P00293.txt'
    'FILE_B_p567.txt'
    'FILE_B_p567_p879.txt'basically the in the output the pattern will be matched and the pattern in file name will be replaced by the pattern value of pattern table. Hope I am clear. Please help.
    Edited by: Mr Lonely on May 22, 2013 1:25 PM -- Fixed the output.

    Hi Jeneesh,
    This is working excellent.
    However I have a small problem.
    If filename contains something in [] for example filename_[FIXED] and that pattern does exists in the pattern table then it's replacing it with null.
    For example.
    FILE_NAME                        NEW_FNAME                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     
    FILE_B_[PATTERN3].txt            FILE_B_p567.txt                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 
    TEST_[TEST_PATTERN].txt          TEST_.txt                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       
    TEST_[TEST_PAT].txt              TEST_LOL.txt                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
    FILE_A_[PATTERN1]_[PETTERN2].txt FILE_A_P00191_.txt                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              
    FILE_B_[PATTERN3]_[PATTERN4].txt FILE_B_p567_p879.txt                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Edited by: Mr Lonely on May 22, 2013 3:21 PM

Maybe you are looking for

  • My iphone 5 says that it's connected to home wifi but I can't access the internet

    We just got Comcast Xfinity internet installed and I have no idea if that's the problem (or if it's because our wifi does not require a password) but my iPhone 5 (and my boyfriend's) will connect to our home network wifi but when I try to use the int

  • I'm a newbie - Would you recommend using jdeveloper to build my website?

    I am after some advice. I want to build a website which will have a members area and several other bits of server-side functionality. I have built 1 or 2 sites using dreamweaver - with PHP and MySQL. I could simply build the site with the above but a

  • Updated now will not open at all or restore session

    I recently updated firefox. Since updating now it will not open at all. It says it is not responding and wont restore a session or anything. All my important bookmarks was on this browser. I have tried deleteing and re-installing. I have also tried r

  • User authentication and Searching in ADAM

    Hi, I am facing a problem in ADAM Search. I am able to authenticate with an user but failing in ADAM Search. I didnt understand what could be the problem. I am giving my code here. String adminName = "CN=kalyan,OU=ADAM users,O=Microsoft,C=US"; String

  • Adding new variables to bex analyzer

    hi experts, i have a requirement to add 2 more variables to my report in bex analyzer. can any body explain me how to add two more variables to my report because i am new to bi thanks and regards pedamarla