Unable to expand the dropdown in the Webdynpro Java iview in Portal

Dear Experts,
We have a lot of Webdynpro java application iview in portal in production system.All the dropdowns present in those iviews are not expanding in production system.
But we are able to expand & select the same webdynpro java iview applications in Quality system.
We are using Internet Explorer for viewing the iviews.
Can anyone help me to provide a solution to the issue.
Regards,
Krishna Balaji T

Hi Micheal,
The issue had been solved by myself.
Regards,
Krishna Balaji T

Similar Messages

  • Is it possible to use the JS coding in webdynpro java application!!!

    Hi Experts,
    Is it possible to use the JS coding in webdynpro java application by any means?
    If yes, kindly suggest the procedure or any pointers for the same.
    Thanks in advance.
    Regards,
    Anurag

    Hi,
    I'm not an expert in this matter, but I will post here what I know:
    In NW7 releases (at least 7.01.05) it is possible to run JS, also to capture any WD Event and run your own JS code after that, using IFRAME. I have jQuery running here, it would take some time till you create a "framework" to enable some easy usage. I just want to highlight that is possible, thou I think it's a lot of effort.
    Not sure about CE7.1 it seems iFrame is deprecated. Still, being deprecated should not "block" the usage, thou it's not recommended since this functionality can be removed in next releases.
    I've read that CE7.2 has JS support, and I think you should try having a word with Armin maybe..
    Hope it helps,
    Daniel

  • How to design search field in webdynpro java iView

    Hi,
          I created one webdynpro (java) iView.I want to design one search fields like Google on webdynpro iView.How to achieve this requirement?Can someone explain me in steps?
    Thanks,
    Kundan
    Edited by: Kundan 2009 on Feb 26, 2010 10:06 AM

    Hi ,
    If you want to employ google search functionality in webdynpro , follow below steps.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/fd68e590-0201-0010-da89-ba631f41b3d7?QuickLink=index&overridelayout=true
    webdynpro framework dont have  standard search functionality directly.
    Regards,
    Koti Reddy

  • How to Populate the Dropdown from the xml file ?

    Hi,
    According to my requirement, Drop down has to be populated in a form, on selecting an element in the first drop down list, corresponding second drop down values has to be loaded dynamically.
    I am using the ReferenceData file, which consists of the Dropdown list values in the form of Key,Value pair. I can able to populate one drop down,but I don't know how to populate the second dropdown dynamically.
    can any one please help me to finish this task.

    Thanxs john.
    My requirement is onChange of a value from the first drop down, particular values needs to load in the second drop down. Values that needs to pull are designed in XML Object as Map entries Key,Pair Values.
    I already did all the things, what you have told.But,I don't know How to populate the second drop down, and where to write the condition.
    If u don't mind can u send me the sample code to check the condition.

  • How to fetch the xml data in webdynpro java

    Hi all,
    i have an xml data which contains the fields as 1.user type, 2. client, 3.vendor number
    in webdynpro java how i validate or fetch the details of  the user type, when ever user login's in portal i can show some data to user 'A' and invisible to user 'B', based on the xml data.
    help me in doing step by step'
    Thanks&Regards
    charan

    Hi
    Follow the steps .
    This is the XML file .
    <?xml version="1.0"?>
    <company>
         <employee>
              <firstname>Tom</firstname>
              <lastname>Cruise</lastname>
         </employee>
         <employee>
              <firstname>Paul</firstname>
              <lastname>Enderson</lastname>
         </employee>
         <employee>
              <firstname>George</firstname>
              <lastname>Bush</lastname>
         </employee>
    </company>
    Java Code of this to fetch the details.
    public class XMLReader {
    public static void main(String argv[]) {
      try {
      File file = new File("c:\\MyXMLFile.xml");
      DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
      DocumentBuilder db = dbf.newDocumentBuilder();
      Document doc = db.parse(file);
      doc.getDocumentElement().normalize();
      System.out.println("Root element " + doc.getDocumentElement().getNodeName());
      NodeList nodeLst = doc.getElementsByTagName("employee");
      System.out.println("Information of all employees");
      for (int s = 0; s < nodeLst.getLength(); s++) {
        Node fstNode = nodeLst.item(s);
        if (fstNode.getNodeType() == Node.ELEMENT_NODE) {
               Element fstElmnt = (Element) fstNode;
          NodeList fstNmElmntLst = fstElmnt.getElementsByTagName("firstname");
          Element fstNmElmnt = (Element) fstNmElmntLst.item(0);
          NodeList fstNm = fstNmElmnt.getChildNodes();
          System.out.println("First Name : "  + ((Node) fstNm.item(0)).getNodeValue());
          NodeList lstNmElmntLst = fstElmnt.getElementsByTagName("lastname");
          Element lstNmElmnt = (Element) lstNmElmntLst.item(0);
          NodeList lstNm = lstNmElmnt.getChildNodes();
          System.out.println("Last Name : " + ((Node) lstNm.item(0)).getNodeValue());
      } catch (Exception e) {
        e.printStackTrace();
    BR
    Satish Kumar

  • How to fine tune the performnce of Adobe - WebDynpro Java

    Hi Experts,
    Upon deploying an Adobe - WebDynpr Java application on my local NWDW machine having 2 GB RAM, it takes around 10 minutes by watch before the PDF form appears on the screen with the populated data.
    This is really depressing as the client will surely not accept this.
    Any tips on fine tuning the performance of Adobe online applications?
    Regards,
    Shobhit

    hi,
    when the J2EE engine is running...
    goto task manager....
    see performance.
    if the memory usage is more than the memory you have installed,
    that means you are using virtual memory...(ie. hard disk as RAM)
    try shutting down any excess processes which you are not using.
    (CAUTION: shut down only those processes which you know)
    Summary is:-
    check if you are on virtual memory.
    because if you are using virtual memory....
    you are falling short of RAM.
    our server also has 2 GB RAM, but it works fine(including Interactive forms)
    regards,
    -ag

  • Dropdown data from WebDynpro Java

    Hi Experts,
    Is it possible to dynamically populate dropdown items from the Java WebDynpro context which are in turn populated using an aRFC from SAP R/3? If so, how do i go about in doing this?
    Cheers,
    Alfonso

    Hello,
    To dynamically populate Drop downs inside adobe form you can have two approaches:
    1. Dynamically populate the simple type using Modifyable Simple Type. Associate  this simple type with a context attribute. Map this context attribute with the dopdown in form desinger.
    2. Second approach is to loop at the possible set of values inside the form designer by using java script. Then populate the dropdown enumaration in this for loop
    Regards,
    Virag

  • How to move files from one folder to another folder in webdynpro java for sap portal

    Dear Experts,
    I wan to move files from one folder to another folder in SAP portal 7.3 programmatically in webdynpro java.
    My requirement is in my portal 1000 transport packages is their. Now i want to move 1 to 200 TP's into Archive folder.
    Can you please help me how to do in through portal or wd java ...
    Regards
    Chakri

    Hello,
    Do you know what the difference between copying a file this way :
    ** Fast & simple file copy. */
    public static void copy(File source, File dest) throws IOException {
    FileChannel in = null, out = null;
    try {         
    in = new FileInputStream(source).getChannel();
    out = new FileOutputStream(dest).getChannel();
    long size = in.size();
    MappedByteBuffer buf = in.map(FileChannel.MapMode.READ_ONLY, 0, size);
    out.write(buf);
    } finally {
    if (in != null) in.close();
    if (out != null) out.close();
    ================SECOND WAY============
    AND THIS WAY:
    // Move file (src) to File/directory dest.
    public static synchronized void move(File src, File dest) throws FileNotFoundException, IOException {
    copy(src, dest);
    src.delete();
    // Copy file (src) to File/directory dest.
    public static synchronized void copy(File src, File dest) throws IOException {
    InputStream in = new FileInputStream(src);
    OutputStream out = new FileOutputStream(dest);
    // Transfer bytes from in to out
    byte[] buf = new byte[1024];
    int len;
    while ((len = in.read(buf)) > 0) {
    out.write(buf, 0, len);
    in.close();
    out.close();
    And which is better? I read up on what each kind of does but still a bit unclear as to when it is good to use which.
    Thanks in advance,
    JavaGirl

  • Ess webdynpro java iview personalization problem

    Hi,
    we have a problem with the personalization dialog of the ESS-WebDynpro JAVA Applications (f.e. CATS, WhoISWho, Adress...) which the end user gets with Ctrl-Right mouseclick.
    Our portal and HCM Backend use language "DE" (Germany). The personalization dialog ist shown always in english. Is ist possible to change the language of the personalization dialog ?
    Regards

    HI,
    If you set the language as DE for the User performing the Personalisation and if you get all the portal standard menu in DE,  then it should show the personalisation  Dialog in DE.
    I had the same issue for Korean Language and i Did the personalisation successfully (text chage for Korean)
    so i think it should work for you case also.
    Regards
    Rajendra

  • API - method for Webdynpro Java iview functionality of Print

    I know.. you would love to post me with n different blogs and forums discussion about how to print from webdynpro java application.
    But lets read before what i am looking for..
    There is standard "Print" function available on webdynpro for java iview.. and layout and all its just fine for us. though we want to trigger this event from a screen button. as going to iview properties is very user friendly.
    I was looking for some iview api which can help me.. We are on NW 7.01 SP6 at the moment. And this is for standard ESS applications.
    Thanks a lot for your inputs.
    Regards,
    Sudhir

    Hi
    You can write Java program for printing. Call the java class from screen (button or Url). Also you can write the content to XMl file.open the xml file in action. so that u will get print preview and print option.

  • Accessing Webdynpro Java iview functionality for print from webdynpro code

    I know.. you would love to post me with n different blogs and forums discussion about how to print from webdynpro java application.
    But lets read before what i am looking for..
    There is standard "Print" function available on webdynpro for java iview.. and layout and all its just fine for us. though we want to trigger this event from a screen button. as going to iview properties is very user friendly.
    I was looking for some iview api which can help me.. We are on NW 7.01 SP6 at the moment. And this is for standard ESS applications.
    Thanks a lot for your inputs.
    Regards,
    Sudhir

    Hi
    You can write Java program for printing. Call the java class from screen (button or Url). Also you can write the content to XMl file.open the xml file in action. so that u will get print preview and print option.

  • How to get the Current Date in webdynpro java

    Hi Experts,
                 In my project i have two date input fields called
                        1)Start Date
                      2)End Date   
    and one Absence type input field is there. The user wants to set the start Date ,End date and absence type.
    How to get the user set values in my project.i.e how to get the user inputs and the started date must be current date of the system and end date must be after the 3 months.
    Can any body send code regarding this.
    Thanks in advance.
    Regards,
    Venkat.
    Edited by: Venkat5939 on Jan 11, 2011 4:46 PM

    Hello Venkat,
    Current Date:
    Date date = new Date(System.currentTimeMillis());
    For getting the date after three months refer the following threads:
    Set date in a date field
    Date Function
    date format
    Hope it helps.
    Regards
    Nizamudeen SM

  • What am I missing? I do not see the dropdown on the JSF

    Hi Guys,
    For some reason, JSF is not rendering "list1" in the following JSF:
    ***********JSF***************
    <HTML>
    <HEAD> <title>Hello</title> </HEAD>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <body bgcolor="white">
    <h2>Hi. My name is Krishna. I'm thinking of a number from 0 to 10.
    Can you guess it?</h2>
    <jsp:useBean id="UserNumberBean" class="guessNumber.UserNumberBean" scope="session" />
    <f:use_faces>
    <h:form id="helloForm" formName="helloForm" >
    <h:graphic_image id="wave_img" url="/wave.med.gif" />
         <h:input_number id="userNo" numberStyle="NUMBER"
                        valueRef="UserNumberBean.userNumber">
         <f:validate_longrange minimum="0" maximum="10" />
    </h:input_number>
         <h:command_button id="submit" action="success" label="Press Me"
    commandName="submit" />
    <p>
    <h:command_button id="back" action="back" label="Back"
    commandName="back" />
    <p>
         <h:output_errors id="errors1" for="userNo"/>
    <p>     
         <h:selectone_menu id="list1"
    valueRef="UserNumberBean.list1">
         <f:valuechanged_listener type="guessNumber.ListValueChangedListener" />
    <h:selectitems
    valueRef="UserNumberBean.currentListOption"/>
    </h:selectone_menu>
    </h:form>
    </f:use_faces>
    </HTML>
    *********Faces Config***********
    <faces-config>
    <navigation-rule>
    <from-tree-id>/greeting.jsp</from-tree-id>
    <navigation-case>
    <from-outcome>success</from-outcome>
    <to-tree-id>/response.jsp</to-tree-id>
    </navigation-case>
    </navigation-rule>
    <navigation-rule>
    <from-tree-id>/greeting.jsp</from-tree-id>
    <navigation-case>
    <from-outcome>back</from-outcome>
    <to-tree-id>/response.jsp</to-tree-id>
    </navigation-case>
    </navigation-rule>
    <navigation-rule>
    <from-tree-id>/response.jsp</from-tree-id>
    <navigation-case>
    <from-outcome>success</from-outcome>
    <to-tree-id>/greeting.jsp</to-tree-id>
    </navigation-case>
    </navigation-rule>
    </faces-config>
    **************ListValueChangedListener class**************
    * Created on Nov 2, 2003
    * To change the template for this generated file go to
    * Window>Preferences>Java>Code Generation>Code and Comments
    package guessNumber;
    import javax.faces.context.FacesContext;
    import javax.faces.event.AbortProcessingException;
    import javax.faces.event.PhaseId;
    import javax.faces.event.ValueChangedEvent;
    import javax.faces.event.ValueChangedListener;
    * @author krishna
    * To change the template for this generated type comment go to
    * Window>Preferences>Java>Code Generation>Code and Comments
    public class ListValueChangedListener implements ValueChangedListener {
         /* (non-Javadoc)
         * @see javax.faces.event.ValueChangedListener#processValueChanged(javax.faces.event.ValueChangedEvent)
         public void processValueChanged(ValueChangedEvent vEvent) throws AbortProcessingException {
              System.out.println("ValueChangedEvent processEvent");
              String componentId = vEvent.getComponent().getComponentId();
              // handle each valuechangedevent here
              FacesContext context = FacesContext.getCurrentInstance();
              System.out.println("Component Id: "+componentId);
              System.out.println("vEvent.getOldValue: "+vEvent.getOldValue());
              System.out.println("vEvent.getNewValue: "+vEvent.getNewValue());
         /* (non-Javadoc)
         * @see javax.faces.event.FacesListener#getPhaseId()
         public PhaseId getPhaseId() {
              return PhaseId.PROCESS_VALIDATIONS;
    ***************UserNumberBean**********************
    package guessNumber;
    import java.util.ArrayList;
    import java.util.Collection;
    import java.util.Random;
    public class UserNumberBean {
    protected Integer userNumber = null;
    protected Integer randomInt = null;
    protected String response = null;
    protected Collection list1;
    protected Collection list2;
         protected ArrayList currentListOption;
    public UserNumberBean () {
              Random randomGR = new Random();
              randomInt = new Integer(randomGR.nextInt(10));
         System.out.println("Duke's number: "+randomInt);
         list1 = new ArrayList();
         list1.add("List1 - Item1");
              list1.add("List1 - Item2");
              list1.add("List1 - Item3");
              list1.add("List1 - Item4");
              list2 = new ArrayList();
              list2.add("List2 - Item1");
              list2.add("List2 - Item2");
              list2.add("List2 - Item3");
              list2.add("List2 - Item4");     
    public void setUserNumber(Integer user_number) {
    userNumber = user_number;
    System.out.println("Set userNumber " + userNumber);
    public Integer getUserNumber() {
    System.out.println("get userNumber " + userNumber);
    return userNumber;
    public String getResponse() {
         if(userNumber.compareTo(randomInt) == 0)
              return "Yay! You got it!";
         else
              return "Sorry, "+userNumber+" is incorrect.";
         * @return
         public Collection getList1() {
              return list1;
         * @return
         public Collection getList2() {
              return list2;
         * @param collection
         public void setList1(Collection collection) {
              list1 = collection;
         * @param collection
         public void setList2(Collection collection) {
              list2 = collection;
         * @return
         public ArrayList getCurrentListOption() {
              return currentListOption;
         * @param list
         public void setCurrentListOption(ArrayList list) {
              currentListOption = list;
    Cheers!
    Krish

    I see some problems in your JSP page.
         <h:selectone_menu id="list1"
    valueRef="UserNumberBean.list1">This points to item that you want to appear selected when the list is rendered, so it should point to a string. So for ex, in your code below, currenListOption can be a string. Also I see that currentOption is null.
    <h:selectitems
    valueRef="UserNumberBean.currentListOption"/>
    </h:selectone_menu>
    </h:form>
    </f:use_faces>
    </html> This should point to list to be displayed. Say for example list1 in your code.
    Hope this fixes your problem.
    -Jayashri

  • Unable to expand drop down by index UI element

    Hi,
    I have got one Drop down by index in my webdynpro form and I want to bind this to backend data. For this purpose, I created one adaptive rfc model  and also did all this model binding, context mapping etc.
    Now my context in view  looks like this :- GetDropDown_Mn (parent node) , this has got child Output_DropDown which again has two value attributes Name and Text.
    This is component controller code where you bind and invalidate
    __Shell__Ca_Read_Cr_Drbox_Val_Input dropdown = new __Shell__Ca_Read_Cr_Drbox_Val_Input();
            wdContext.nodeGetDropDown_Mn().bind(dropdown);
            wdContext.currentGetDropDown_MnElement().modelObject().execute();
            wdContext.nodeOutput_DropDown().invalidate();
    I then tried to bind my UI element in view with Name attribute , but when I try to run my application , the field appears as read only, kind of non editable (blocked) and I am unable to expand my dropdown.
    The readonly property of UI element is false. I have hard coded one value like " Please select from drop down list " and I want the backend values to come below this. For this, I have written code to append the backend values with the hardcoded value. Now the problem is my dropdown is blocked  and not able to expand ( unable to click the arrow button), and I cannot see the other values in dropdown except the hard coded value.
    Can someone please help me on this. 
    The cardinality of context node is 1..n, selection = 0..1 and I have set Leadselection = -1.
    Thanks and regards,
    Sai

    Hi Sai,
    You can use the below code to add the please select in ur drop down in wdInit() method
    wdContext.nodeVn_Node().currentVn_NodeElement().setVa_Attribute("-Please Select-");
    please use the name of node as u have created in the context.
    and after that please check if yoy are getting values from RFC call or not.
    if you are getting the values then try to change the selection property of that node to 1..n and comment the lead selection line that you have written.
    hope this will help.
    Regards
    Narendra

  • Fetching more than one row from a table after selecting one value from the dropdown

    Hi Experts,
    How can we fetch more than one row from a table after selecting one value from the dropdown.
    The scenario is that I have some entries in the dropdown like below
      A               B               C        
    11256          VID          911256  
    11256          VID          811256
    11256          SONY      11256
    The 'B' values are there in the dropdown. I have removed the duplicate entries from the dropdown so now the dropdownlist has only two values.for eg- 'VID' and'SONY'. So now, after selecting 'VID' from the dropdown I should get all the 'C' values. After this the "C' values are to be passed to other methods to fetch some data from other tables.
    Request your help on this.
    Thanks,
    Preeetam Narkhede.

    Hi Preetam!
    I hope I understand your request proberly, since this is more about Java and less about WebDynpro, but if I'm wrong, just follow up on this.
    Supposed you have some collection of your original table data stored in variable "origin". Populate a Hashtable using the values from column "B" (let's assume it's Strings) as keys and an ArrayList of whatever "C" is (let's assume String instances, too) as value (there's a lot of ways to iterate over whatever your datasource is, and since we do not know what your datasource is, maybe you'll have to follow another approach to get b and c vaues,but the principle should remain the same):
    // Declare a private variable for your Data at the appropriate place in your code
    private Hashtable temp = new Hashtable<String, ArrayList<String>>();
    // Then, in the method you use to retrieve backend data and populate the dropdown,
    // populate the Hashtable, too
    Iterator<TableData> a = origin.iterator();
    while (a.hasNext()) {
         TableData current = a.next();
         String b = current.getB();
         String c = current.getC();
         ArrayList<String> values = this.temp.get(b);
         if (values == null) {
              values = new ArrayList<String>();
         values.add(c);
         this.temp.put(b, values);
    So after this, you'll have a Hashtable with the B values als keys and collections of C values of this particular B as value:
    VID --> (911256, 811256)
    SONY --> (11256)
    Use
    temp.keySet()
    to populate your dropdown.
    After the user selects an entry from the dropdown (let's say stored in variable selectedB), you will be able to retrieve the collection of c's from your Hashtable
    // In the metod you handle the selection event with, get the c value collection
    //and use it to select from your other table
    ArrayList<String> selectedCs = this.temp.get(selectedB);
    // now iterate over the selectedCs items and use each of these
    //to continue retrieving whatever data you need...
    for (String oneC : selectedCs) {
         // Select Data from backend using oneC in the where-Clause or whatever...
    Hope that helps
    Michael

Maybe you are looking for

  • Different button press behavior in Java 5 and 6

    Hi, I upgraded the Java version from 5 to 6 and recompile my GUI application. All things look good except when I press a button that I set the ContentAreaFilled as false, the behavior is different. I have pasted my code of creating the button below.

  • Class variables don't exist at initialize() time?

    Excerpt of Slam.mxml (default package): <?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"                   xmlns:s="library://ns.adobe.com/flex/spark"                   xmlns:mx="library://ns.adobe.com/fl

  • Discount are reflecting with wrong sign in COPA Reports..

    HI,     We have checked the +/- sign in one of the conditon type which is assigned to Value fields VV210(Discount and markdowns). Now due to this check mark values of discount from Billing document are reflecting as negarive in COPA reports which is

  • Discoverer Desktop v 4.1

    Anyone know where I can download Discoverer Desktop v4.1.48. Thanks..

  • Broadcast Question

    Hello All: I believe this is a very basic question so this is why I chose to post it in this forum. Have a DMZ configured 209.178.228.128/25. I just noticed while looking through firewall logs that each machine in the DMZ is ocassionally sending a bo