IFrame in WDJ application to call another WDJ iview based on users country

Hi All,
I have a requirement wherein I have to display an iview based on the logged in user's country. This iview will be displayed within a WPC ivew. So the idea is to create just one WPC iview and put this WDJ iview in it, hence if a user from US logs in and sees this WPC ivew ..he will see US specific WDJ iview & if a user from UK logs in and sees this same WPC iview.. he will see UK specific....same should be the case for all other countries.
I was exploring option and using IFrames can help me acheving the same, but on further research I found it deprecated and also when I write IWDIFrame. in nwds i get "The type IWDIFrame is deprecated"
My SAP Portal is 7.01 & NWDS version is 7.0.11
Any pointers to achieve my requirement would be of great help.
Regards,
JJ

Thanks Narayan.
I went ahead with your advice, and I got the navigation working BUT the iview opens in a new window.
I need:
MAIN iview is within a WPC webpage --> when we open wpc --> need to get eg. US iview exactly in place of MAIN
What is happing:
MAIN iview is within a WPC webpage --> when we open wpc --> US iview is open in another portal window & the wpc area were I have placed MAIN is blank.
I am using following code:
     if (wdContext.currentContextElement().getVa_usercountry() != "" && wdContext.currentContextElement().getVa_usercountry() != null) {
                    if (wdContext.currentContextElement().getVa_usercountry().equals("US")) {
                         WDPortalNavigation.navigateAbsolute("ROLES://portal_content/hr/emea/iviews/ess/personal_information/com.emea.ess.ivu.addr_ir",
                         WDPortalNavigationMode.SHOW_INPLACE,
                         WDPortalNavigationHistoryMode.NO_HISTORY,
Any advice to resolve this....I think I am almost there but need some more push !!
Thanks.
JJ

Similar Messages

  • Launch webhelp Topic from a web application; problem calling another topic

    My client has a web application for which I have created a WebHelp Help Guide.
    I have RH8 v8.0.2.208 running on Windows XP SP3.
    When the user clicks a Help icon on the web app screen, it launches a corresponding Help topic. The developer has managed to launch the full Help Guide, at the required topic, by using something like "help/imrd_help.htm#edit_subject_details.htm". So far, so good: this works fine for the first topic.
    But if the user leaves the Help Guide open, switches back to the web app, works through to another page in the web app, and clicks for a new Help Topic (say, "help/imrd_help.htm#add_new_user.htm"), the old topic stays on screen: the Help Guide does not update to the required Help topic.
    Any ideas how to fix this please, so that it calls the new topic?
    Thanks.

    See Calling WebHelp on my site. This problem is described there.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Need help writing application to call another class

    Hello All, this is only the second program I have ever written and I am lost. I am supposed to write one application that will encrypt a four digit number by 1st replacing each diigt with the result of adding 7, then getting the remainder after dividing by 10. Then swap the 1st and 3rd digits and the 2nd and 4th digits. Then print that number. I have that as follows:
    import java.util.Scanner;
    public class CH4_37_Encrypt
         public static void main( String[] args )
              // read in the 4 digit integer
              Scanner input = new Scanner(System.in);
              int number = input.nextInt();
              // parse the integer to the individual digits
              int thousands = number / 1000;
              number -= thousands * 1000;
              int hundreds = number / 100;
              number -= hundreds * 100;
              int tens = number / 10;
              number -= tens * 10;
              int ones = number;
              number -= ones;
              // output the original digits
              System.out.print("" + thousands + hundreds + tens + ones + "");
              // do the encryption
              // add 7 to each digit
              thousands += 7;
              hundreds += 7;
              tens += 7;
              ones += 7;
              // mod each digit by ten
              thousands %=10;
              hundreds %=10;
              tens %=10;
              ones %=10;
              // swap the 1st (thousands) and 3rd (tens) digits
              int temp = thousands;
              thousands = tens;
              tens = temp;
              // swap the 2nd and the 4th digit
              int temp1 = hundreds;
              hundreds = ones;
              ones = temp1;
              // output the encrypted integer
              System.out.printf("%d", number);
    Next, I am to write a seperate application that inputs an encrypted four digit number and decrypts it to form the original number. I am a little confused how to go about this. Thanks in advance!!!

    Hello All, this is only the second program I have
    ever written and I am lost. I am supposed to write
    one application that will encrypt a four digit number
    by 1st replacing each diigt with the result of adding
    7, then getting the remainder after dividing by 10.
    Then swap the 1st and 3rd digits and the 2nd and 4th
    digits. Then print that number. I have that as
    follows:
    import java.util.Scanner;
    public class CH4_37_Encrypt
         public static void main( String[] args )
              // read in the 4 digit integer
              Scanner input = new Scanner(System.in);
              int number = input.nextInt();
              // parse the integer to the individual digits
              int thousands = number / 1000;
              number -= thousands * 1000;
              int hundreds = number / 100;
              number -= hundreds * 100;
              int tens = number / 10;
              number -= tens * 10;
              int ones = number;
              number -= ones;
              // output the original digits
    System.out.print("" + thousands + hundreds + tens +
    + ones + "");
              // do the encryption
              // add 7 to each digit
              thousands += 7;
              hundreds += 7;
              tens += 7;
              ones += 7;
              // mod each digit by ten
              thousands %=10;
              hundreds %=10;
              tens %=10;
              ones %=10;
              // swap the 1st (thousands) and 3rd (tens) digits
              int temp = thousands;
              thousands = tens;
              tens = temp;
              // swap the 2nd and the 4th digit
              int temp1 = hundreds;
              hundreds = ones;
              ones = temp1;
              // output the encrypted integer
              System.out.printf("%d", number);
    Next, I am to write a seperate application that
    inputs an encrypted four digit number and decrypts it
    to form the original number. I am a little confused
    how to go about this. Thanks in advance!!!
    Right, and you made two rookie mistakes:
    (1) You put all that code into the main method, where nothing else can get at it.
    (2) You just print the number to System.out.
    Move all that code into a method called encrypt that takes an input number and returns the output encrypted value. Now any other class can just call that method and let your first class do all the work.
    Write a second method in that same class that reverses the encryption - call it decrypt. It'll take encrypted input and return the decrypted output.
    %

  • My application conflicts with another Measurement Studio based application.

    Hi,
    Our instrument is made by a third party, and they appear to use Measurement Studio in the development of their control software.
    We use Measurement Studio when developing our test software. When we install our test application on a production machine (no programming environment installed), we sometimes get a message about only being able to use controls for 5 minutes in an "evaluation-only" mode.
    It is clear that there are some library file revision conflicts, e.g.: in cwui.ocx and presumably others. The third party is using a slightly different revision of these files to ourselves. What is the the best way to consistently resolve these conflicts?
    Thanks,
    Richard Brockie

    Hi Richard Brockie,
    You are correct in assuming there is a conflict with cwui.ocx.
    If the target computer does not have Measurement Studio, it will not contain the .ocx and .dll files required for the executable to run. Microsoft Visual Studio .NET has a Setup and Deployment Projects type that allows you to create a MSI installer that finds all of the dependencies for the project and then installs them on the target machine when the setup is executed.
    I've included the following link that demonstrates the process of creating an installer for a Windows application, using .NET or Active X controls.
    http://digital.ni.com/public.nsf/websearch/ED87C183E056CAC386256DF1004E54C6?OpenDocument
    Please respond if you have further questions or if this does not resolve your issue,
    Chad AE
    NI

  • WDJ application perfomance

    Hi,
    I have a problem with custom WDJ application loading.
    Issue is, while user click on a button1 in 'DC1', 'DC2' will be called with RFC data.
    DC2 tooks more than 1 min to load the application where as If I directly execute DC2, it took 5 to 6 sec to load the application.
    After made changes in JCo connection parameters, in DEV application is loading with in 5 seconds but the same changes in Q portal not working.
    The only difference I found here is, DEV WAS portal having single server node where as 'Q' having two server nodes. No changes are identical other than this.
    No log file updated to check.
    Much appreciate your quick reply.
    Thanks,
    dev

    hi dev ,
    you need not enable anything , you have to append sap-wd-showinfo at the end of your application url , i.e after the question mark.
    and in the status bar you will get
    Browser :7 (Parsing 3,HTML:4, JSBefore :0, JSAfter 0)J2EE :5 Back-end:0 Estimated Response size:6kb
    can u paste the URL that ur using and , another one what you can do is instead of calling rfc as the page loads , try to put a button and onclick of that button call the rfc , and see the status bar.
    Regards
    Govardan Raj S

  • Stateful WDJ application

    Hello Experts,
    I would appreciate any help or suggestions for the following scenario:
    I am developing two WDJ application using NWDS 7.0 SP7.  Both of these applications will be consumed by the Portal and accessed by two different Workset-->Pages. 
    The first application will allow the user to populate a "Shopping Cart" with products.  The Second application will allow the user to create a Customer Account.
    I would like the Portal user to be able to:
    - Populate a shopping cart
    - Access the "Customer Application" via the Portal CustomerWorkset-->Page
    - Return back to the "Shopping Application" through the ShoppingWorkset-->Page
    - See original Shopping Cart items.
    Can anyone please help me achieve this?  By default, it appears that when I return to the "Shopping Application", the app is reset.  If possible, I would like to avoid a creating Dictionary or EBJ components.
    Thank you for your time.
    Kind Regards,
    Matt

    hi dev ,
    you need not enable anything , you have to append sap-wd-showinfo at the end of your application url , i.e after the question mark.
    and in the status bar you will get
    Browser :7 (Parsing 3,HTML:4, JSBefore :0, JSAfter 0)J2EE :5 Back-end:0 Estimated Response size:6kb
    can u paste the URL that ur using and , another one what you can do is instead of calling rfc as the page loads , try to put a button and onclick of that button call the rfc , and see the status bar.
    Regards
    Govardan Raj S

  • Pass parameters from JSP Dyn Page to WDJ Application

    Hi,
    I am trying to pass parameters from my JSPDyn Page to WDJ Application.
    I am using NWDS 7.1 EHP1
    My code is :
    function to_WEBDYNHK()
          EPCM.relaxDocumentDomain();
          EPCM.doNavigate
        ('ROLES://pcd:portal_content/Himanshu.Himanshu/TestDynUIApp?DynamicParameter="hkparam%3Dqwertyuio"');
    This method is being called on click of a button.
    hkparam is the parameter in question.
    The JSPDyn page is an iView and the WDJ application is a page and both have been assigned to a role.
    In the properties of the WDJ Page, I have removed DymanicParameter from "Do not Forward These Parameters To Web Dynpro" property.
    However I am getting null as the value of hkparam in my WDJ application.
    The code used is :
    IWDRequest request = WDProtocolAdapter.getProtocolAdapter().getRequestObject();
           String param1= request.getParameter("hkparam");
    What seems to be missing here.
    Please help.
    I went through the documentation on SDN but it does not seem to help.
    TIA,
    Himanshu

    Hi Himanshu,
    Try this code.
    EPCM.doNavigate("ROLES:portal_content/Himanshu.Himanshu/TestDynUIApp?hkparam=Dmypass1123")
    if the parameter is hkparam and the value to be passed is Dmypass1123. You need not change any design time property of the WD page, and WDProtocolAdapter should retrive the parameter.
    Regards,
    Vishweshwara P.K.M.

  • IFrame fatal script error when calling application

    Dear All ,
    I'm facing a problem on a web dynpro abap on a PI 7.11 application server.
    I have a view wich contain a iFrame with the property field "source" binded with a context element that contain a url.
    In the url I'm trying to call an application that show the audit log (is the standard PI audit log).
    The aplication dump and give me this error:
    "The following error text was processed in system : WebDynpro Exception: URL may contain fatal script
    The error occurred on the application server and in the work process .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: RAISE of program CX_WD_GENERAL=================CP
    Method: IF_NW7_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/C0STANDARD==============CP
    Method: IF_NW7_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/C8STANDARD==============CP
    Method: IF_NW7_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/C8STANDARD==============CP
    Method: IF_NW7_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/C8STANDARD==============CP
    Method: IF_NW7_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/C7STANDARD==============CP
    Method: IF_NW7_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/C8STANDARD==============CP
    Method: IF_NW7_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/C8STANDARD==============CP
    Method: IF_NW7_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/C8STANDARD==============CP
    Method: IF_NW7_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/C7STANDARD==============CP"
    I know that the iFrame is deprecated, but I have another server with the PI 7.0 with the same web dynpro and it is working fine.
    Do you have any suggestion??
    Thanks in advance!
    Dario Fracassetti.

    I Have tried to debug into the method is_valid_url but it calls a System command:
    SYSTEM-CALL ict    "#EC CI_SYSTEMCALL
            did
              ihttp_scid_check_uri
            PARAMETERS
              url                                " >
              l_url                              " <
              c_last_error                       " < return code
              OPTIONS.                           " >
    I don't know if that call is debuggable. In version 7.00 the call was this:
        SYSTEM-CALL ICT
          DID
            ihttp_scid_check_uri
          PARAMETERS
            url                                " >
            l_url                              " <
            c_last_error.                      " < return code
    and was working fine.
    I tried to debug the method cl_http_utility->CHECK_HTTP_WHITELIST, but unfortunately in my case this method is not called.
    Regards,
    Dario

  • Editing Tree UI for MDM Hierarchy tables ina WDJ application

    Hi ,
    We have a requirement where MDM hierarchy tables are displayed using a tree UI in WDJ application.
    However, tree UI is used only for the display purpose. Is there anyway or any other UI available
    using which we can achive edit option in the tree as well?
    Not only this, we are supposed to provide functionality to support moves across the nodes of hierarchy.
    Like PC move or SBU move from one hierarchy to another.
    First of all, can we achive this in WDJ or MDM WebDynpro COnfigurator? If we can, then how? Any links or pointers for this?
    Thank You,
    Apoorva Dave

    You could use a Tree UI element together with a detail view for editing the selected tree node. Or you could use a "TreeTable" which is a Web Dynpro Table with a TreeByNestingTableColumn.

  • WDJ application deployed but not listed

    Hi experts,
    we've upgraded our AS Java running the Portal and a custom WDJ application from NW7.02 to NW7.40
    I expected some problems with the custom application but not the kind we've ran into. We did not do any recompilation of any kind just to see what would happen. The application actually deploys fine according to the logs (both from telnet as well as from NWDS) but it's nowhere to be found. I've deployed both the .ear as well as the generated .SDA file. In both cases the deployement log show "Success".
    I can see the application in the telnet LIST_APP command (status: started) but it doesn't show in the list of the WDJ applications in the WD Content Administration, nor in the Portal Content section for WDJ applications.
    Any ideas what could have happened?
    Much obliged
    Marcel Rabe

    i think you are wasting time.
    if the app is not migrated how you can expect it to be working....

  • XI web service WDJ Application

    Hello everyone,
    I am trying out the tutorial -
    How To Develop a Simple Web Service Application Using SAP
    NetWeaver Developer Studio & SAP XI 3.0
    I have done all the steps as mentioned to consume the XI Web service using WDJ. However I am unable to find a way of providing the XI server authentication (username/ pw) to execute the Web service.
    If I try to execute the WebService using tools like Altova XML spy it asks for XI server authentication. I know I must try to provide the same using my WDJ application. Can you please tell me the way of doing this.
    Thanks and Regards,
    Ashwin Bhat

    I found a possible solution:
    Following is mentioned in Riyaz Sayyads Blog.
    /people/riyaz.sayyad/blog/2006/05/08/consuming-xi-web-services-using-web-dynpro-150-part-ii
    XI does not accept unauthenticated requests. Hence, you have to pass the logon credentials along with the request. For this add following lines of code in the executeRequest_CDWS_MI_CDWS_MI( ) method implementation of the Component Controller:
    <!code>  wdContext.currentRequest_CDWS_MI_CDWS_MIElement().modelObject()._setUser(“username");
    <!code>  wdContext.currentRequest_CDWS_MI_CDWS_MIElement().modelObject()._setPassword(“password");
    I will try this out tomorrow at work (at home now). Will keep everyone updated of the results. Thanks.

  • SRM's WDJ application is not taking custom theme

    Hi All,
    I'm working on the Portal branding. We have SRM BP deployed in our portal. I've created custom theme and desktop for the user.
    I'm able to see the portal's different section as per custom theme. WDA/WDJ application's UI which is opening in the content area of portal is also showing as per theme.
    When I'm trying to access the SRM BP portal content which is the collection WDA/WDJ application, inside portal content area showing as per theme. But one WDJ Iview related to MDM catlog data is opening in new window, in that WDJ UI is not taking custom theme color. UI is showing default theme "tradeshow".
    I tried few SAP note(Note 1446099 - Web Dynpro application not displayed in customer theme) to synch the patch of portal and WDJ stylsheet but no luck.
    Pl share your input to solve the issue.
    Thanks!!!
    Deepak

    Hi Shishil,
    Thanks for reply. Yes MDM component is in the same server.
    I've tried below option to fix the issue but no luck:-
    >Note 1446099 - Web Dynpro application not displayed in customer theme
    >Note 1012065 - Technical Web Dynpro configuration in SAP NetWeaver 7.1
    >Note 1000889 - CSS Style Sheet Integration of Web Dynpro and the Portal
    >http://help.sap.com/saphelp_nw70/helpdata/en/1e/535d420447e054e10000000a155106/frameset.htm
    When i tried to set the default Web Dynpro theme by modifying the sap.theme.default property, which is also located in the Propertysheet default folder with the below URL, no success:-
    http://<host>:<port>//irj/portalapps/com.sap.portal.themes.lafservice /themes/portal/sap_chrome.
    Deepak!!!

  • Failing to initialize an RFC in WDJ application

    Dear All,
    I have created an RFC enabled function module in $TMP.
    I am trying to invoke this RFC passing a paramter value in my WDJ application.
    The RFC is not even getting initialized and the entire thing ends with a null pointer exception.
    Please help me out.
    Regards,
    Prosenjit.

    Hi,
    Can you print the following messages in catch block and let us know what is the exact exception it is throwing after model execution.
    try
    Zcno_Rfc_Test_Input setNode = new Zcno_Rfc_Test_Input();
    wdContext.nodeZcno_Rfc_Test_Input().bind(setNode);
    wdContext.currentRequestZcno_Rfc_Test_InputElement().modelObject().execute();
    catch(Exception e)
    wdComponentAPI.getMessageManager().reportException("Error Message "+e.getMessage,true);
    wdComponentAPI.getMessageManager().reportException("Error Cause "+e.getCause,true);
    Regards,
    Saleem

  • Implementation Business Objects in CAF and developing WDJ application

    Hi Experts,
    I've read some articles about SAP CE CAF from SDN and I'm making some exercises according those guidence. Right now I have a problem and want to get suggestion from you. 
    As you know, from CE 7.1.1, the CAF support importing the Business Object through EJB model. So when develop a WDJ application using caf, we can using these procedures:
    (Implementing business objects in CAF and developing WebDynpro application)
    1) Create business objects or application service.
    2) Generate EJB Implementation class for business objects or app service.
    3) Create a WebDynpro application
    4) Importing the EJB model using the template.
    5) Create the UI for the app.
    My problem is: In the business object or application serivice, if the operation parameter type is integer, after we generate the EJB class, the type will changed to String. After the WDJ UI is created, the application test failed. The integer field could not passed to the BO successfully.
    If all the parameters type are string in the operation, there's no problem.  But when I use Integer or Date, the EJB class will change the type and the WDJ app will failed.
    I've also test the scenario in CE enviroment including 7.3 also failed. So I'm a little confused which step was wrong. I don't know whether you've seen such problem before, if you could give any suggestion, it'll be very appreciated!

    Hi, Winters.
       I got the same program, try to parse into the type which you want in AS operation.
    BR.
    Louis Huang.

  • Calling another application from a java program

    Hi, Java ppl.
    I wanted to know how can I call another program say a help application or an exe from a java program. anyone with any advice or a piece of code would help.
    Thanks
    Pradeep

    I had the same situation and I tried the code that you sugested and it works. I was wondering, what am I expecting in the while loop that appears after the int inp; statement? Is some data going to be displayed on the screen? How essential is to have that while loop after the calling the exec() method?
    Sorry for the amount of questions, I never tried this before.
    Best regards,
    Luis E.

Maybe you are looking for

  • Dispatche problem

    Hi I have ECC6 IDES version was working fine last 3 months . i have just added two profiles in RZ10 login/accept_sso2_ticket = 1 login/create_sso2_ticket = 2 it was not reflecting on so i thought i will restart server so i did it. since then my serve

  • Why is my .psd file not rendering correctly in ae

    Some layers of the .psd document are not rendered correctly. However they are imported. The strange thing is that when I first move from Photoshop to Illustrator, save it as an .ai file it is rendered properly (in Ae). I am kind of clueless as to wha

  • Can you pls correct this query :: ( In Oracle Core HRMS )

    Dear all, i have created query get result :: ( In Oracle Core HRMS ) •     EE Number •     Forename •     Surname •     Dept •     Start Date •     Leave Date •     Date of Birth •     Address •     Salary (New & Existing Employee) •     Car Allowanc

  • Information on SRM Workflows

    Hi Forum, How does a workflow finds who are the approvers for a particular shopping cart and if they have approved or rejected it? Any pointers will be of great help. Regards, Anubhav

  • TimeMachine stuck at 140kb of 80GB?

    Hey, my TimeMachine does not work anymore. This problem occurs on a late 2013 iMac, "fullyequipped", and my TimeMachine with 2TB of storage. I've already verified the disk as mentioned in a couple of other threads around the internet, but this did no