Problems persisting the collection object in Web dynpro context

Hello,
I am trying to bind a Instance of hashtable (java.util.Hashtable) in the context.
I instantiate a hashtable and bind it to the context for the first time, when i fetch it, it returns null. Is it possible to store a collection object in the context ??
I am a newbie with Web dynpro - java. Sorry if it is a repeated question.
Awaiting the suggestions.
Thanks in advance,
Harish
Edited by: Harish Medehal on Dec 19, 2007 1:58 PM

Hi Harish,
              Welcome to SDN.  Yes, it is  possible to bind a collection object in the context.
wdContext.node<DataNode>().bind(COLLECTION);
regards,
Siva

Similar Messages

  • Problem getting the collection objects in Toplinks using JDeveloper11g

    Hi All
    I am working the Toplinks in JDeveloper11g. I am using the Java Objects From Tables to create the Toplink map .
    The problem is I am unable to work with the collection objects. I am getting the collection objects like addtocollection and removefromcollection. when I am dragging the collection object into the form and running the application it is giving errors.
    Can any one help me out how to work with this collection objects.
    Thanks in advance
    Madhavi.

    look at the java.util.SortedMap interface, and the classes that implement it. or, re-think your design. why do you want the entries sorted? do you really want that, or do you assume you do? is a Map the right collection here? I'm not saying it isn't, I'm just saying that the sorting requirement sounds like an assumption you need to challenge. generally, we get data out of a Map by explicitly asking for it by key

  • When i am tring to insert the option Utilities- Insert Web Dynpro Script

    When i am tring to insert the option Utilities->Insert Web Dynpro Script
    I am getting the error like Error when inserting webdynpro script thats it.
    Can you please help me in this.

    If you are getting an error when inserting the script, make sure that you have set the Layout Type on the properties tab of the form to ZCI Layout.  If the problem persists you should enter a support ticket, as such an error is not a normal occurance.

  • Possible to change the charset of a Web Dynpro Application ?

    Hello All,
      Does anyone knows if this is possible ? To be able to change the charset of a Web Dynpro application or even changing it dynamically ? Thank you.
    from
    Kwok Wei

    Hello Anilkumar,
      Sorry for not elaborating further again (This is getting to be a habit ;p).
      I have the document on "international of wed dynpro application" but it appears to be more on customising the label fields to reflect the corresponding text in different languages. This is indeed a very cool idea. However, the reason why I am asking if it is possible to change the charset is because (do correct me if I am wrong)I need to display japanese and english characters and to do that I need to change the charset so that Web Dynpro can have them displayed properly. Is this assumption correct ?
      I have actually log a CSN ticket on this query as well and this is the reply "...... My understanding is that with Web Dynpro Java being based on Unicode, we don't need to charset settings. One should be able to display both Japanese and other characters in parallel, automatically, without problem."
      Your comments please. Thank you.
    from
    kw

  • How to bind data (from database) to the Dictionary structure in Web Dynpro

    Hi,
    I am getting Hashtable object from the database related classes and I want to bind this data to the Dictionary field in Web Dynpro. So, I can bind this Dictionary field type to the Context variable.
    Please let me know the detailed procedure.
    Thanks
    Tatayya M

    Tatayya,
    Look at this sample tutorial , It will defintely help you with the Data Dictionary .
    https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/bad3e990-0201-0010-3985-fa0936d901b4
    https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/38650ecd-0401-0010-10a0-f9d8fd37edee

  • Generate URL to Portal Objects in Web Dynpro

    Hi All,
    I have a requirement where in I have to generate a URL to portal objects such as iviews/pages from the PCD. I am able to retrieve the PCD contents but I am not able to generate the URL dynamically.
    I cannot use WDPortalNavigation.absoluteNavigate method, since I need the URL of the object.
    IUrlGenerator can be used, but it is asking for the IPortalComponentRequest object. Now where can I get this object in web dynpro.
    Or is there a way to generate the URL of the iview/page dynamically in Web Dynpro. I have to use standard API only.
    Please provide inputs on this.
    Thanks in advance.

    Use the below url
    /irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2f<yourfolder ID>!2f<if any subfolder id>
    !2fcom.abc.xyz
    where com.abc.xyz is the ID of the xyz iview/page
    Use that url in your webdynrpo
    Raghu

  • ALV object in Web dynpro ABAP

    Hi All,
    I want to include ALV object in web dynpro ABAP, instead of a table in a window. I have SAP Version 4.6 as backend.
    Pl help.

    Hi Nirmal,
    the information on ALV and WDA is here: http://help.sap.com/saphelp_nw2004s/helpdata/en/74/fd4142646ab46be10000000a155106/frameset.htm
    As you know, Web Dynpro ABAP is availiable with NW2004s, not before.
    Regards, Heidi

  • Error «The entered value is not on the list of valid values» in the hierarchy of mss web dynpro abap

    Hello Experts
    The error «The entered value is not on the list of valid values» in the hierarchy of mss web dynpro abap occurs after manager’s following actions:
    selected detailed Team View ;
    selected hierarchy;
    changed style of the hierarchy to any other (for example, the vertical);
    the error occurs after attempting to do any action.
    Our system is EHP7.
    If someone faced with this error, please give me advice how can i resolve this problem.

    Hi John,
    Sorry for the delay in replying. No, we do not have the same problem if we understand you correctly.
    "We have bypassed the MSS Home Page and just embedded the Detailed Team View as a standalone application in our MSS portal role" - we also made for the our customer. BUT we have error «The entered value is not on the list of valid values» in our standard system.
    Regards,
    Andrey

  • Problem of refreshing a tree in web dynpro java

    hi all,
    I'm facing a problem for refreshing a tree in web dynpro java for SAP HR.
    I created a viewset with 2 cells( 1 view for each).
    In the 1st view I created a droplistbyindex to select the unit ID and in the 2nd view ( defaut=false)  I called a method to populate my tree according to my selection in the 1st view ( method called in wdInit).
    When I make the first selection everything is ok.
    But when I select another unit ID, the tree is not changed and I know the context is well changed according to my selection.
    So I think the method is executed only the first the view is called.
    In this case, how can I refresh my tree on real-time?
    Thanks for your help
    Yimin

    May be u can write the code wdDoModify instead.
    -Ashutosh

  • Modifying / Moving objects in Web Dynpro Layout

    Hi.
    Can someone tell me if it is possible to edit buttons or other objects from Web Dynpro layout? If it is possible, how can I do this?
    When I say edit, I mean move button/object to certain location or make size bigger.
    I know I can do this in Adobe form layout, but I am hoping I can keep adobe form separately from buttons, so off-line Adobe form will not have buttons.
    Thanks in advance for your help.
    John

    Hi John,
    There is no property by which the size of a button can be changed. Although the text can be varied by using property "Design" of the text elements.
    As far as position is concerned, The button can be placed anywhere according to user requirement. The simplest way of doing that is creating a toolbar and creating right aligned or left aligned buttons. or by just using the properties of the layout you are using.
    Check the [Layout documentation|http://help.sap.com/saphelp_erp2005/helpdata/en/47/af8841349e1909e10000000a155106/frameset.htm] for more details
    Regards,
    Kinshuk

  • Create Callable object of Web Dynpro Component (GP interface) giving error

    Hi All,
    We are facing a strange error in Guided Procedure.
    While trying to create a new callable object of Web Dynpro Component (GP interface) after selecting the type and click on Next it is throwing below error.
    *javax.xml.stream.FactoryConfigurationError: Requested factory com.ctc.wstx.stax.WstxInputFactory cannot be located. Classloader =com.sap.engine.services.deploy.server.ApplicationLoader 3995fdb9 sap.com/cafeugpuidt
        at javax.xml.stream.FactoryLocator.loadFactory(FactoryLocator.java:120)
        at javax.xml.stream.FactoryLocator.locate(FactoryLocator.java:109)
        at javax.xml.stream.FactoryLocator.locate(FactoryLocator.java:54)
        at javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:41)
        at org.apache.axiom.om.util.StAXUtils$7.run(StAXUtils.java:311)*
    Also while running the GP processses which are created in the past and working fine till few days back are also giving the same above error.
    Please help us in resolving the issue.
    Regards,
    Satish

    Hi Peter,
    Check this link.It may be helpful.
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/java/netweaver%252bdeveloper%252bstudio%252b(NWDS)
    Regards,
    Sumangala

  • Delete a file from the KM in a Web Dynpro application

    Hello,
    We need to delete a file from the KM in a Web Dynpro application.
    We have a file name (filename.txt) and its path (/documents/Test/), how can we completely delete the file from the KM?
    Thanks,
    Gil

    Hi venkata reddy,
    You wrongly mentioned  system admin instead of content admin
    Go to Content administration not in the system administration
    if u delete the file manually in the portal  you can go with
    go to Content administration  -> KM Content -> go to Particular document -> just tick the check box which doc u want delete -> go to selection -> u will find delete .
    Regards,
    P.Manivannan

  • How can I set the data binding between Web Dynpro & Database table

    Dear friend,
    I am a beginner of Web Dynpro. I want to develop my simple project like these:
    1. Create my own database table via Dictionary Project such as TAB_USER and have 3 fields: USER_ID, USER_NAME, USER_POSITION and I have already deployed & archived it.
    2. Create my own Web Dynpro Project, and create the input fields as User ID, User name, User position and icon 'Save' on the selection screen and I have deployed it already.
    For the process, I want to input data at the screen and save the data in the table, please give me the guide line like these:
    1. How can I set the data binding between Web Dynpro and Database table ?
    2.  Are there any nescessary steps that I will concern for this case?
    Sorry if my question is simple, I had try  to find solution myself, but it not found
    Thanks in advances,
    SeMs

    Hi,
    You can write your own connection class for establishing the connection with DB.
    Ex:
    public class  ConnectionClass {
    static Connection con = null;
    public static Connection getConnection() {
    try{
    Context ctx = new InitialContext();
    DataSource ds = (DataSource) ctx.lookup("jdbc/TSPAGE");
    con = ds.getConnection();
    return con;
    }catch(Exception e){
    return null;
    You can place the above class file in src folder and you can use this class in webdynpro.
    You can have another UserInfo class for reading and writing the data into the DB .
    Regards, Anilkumar
    PS : Refer
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/java/simple java bean generator for database.pdf
    Message was edited by: Anilkumar Vippagunta

  • Web Dynpro context field limitation for the form

    Hello,
       I have created a Web Dynpro with the context fields for Adobe form data from a structure (about 51 fields). When the form is created with reference to the context, the context is not transferred to the Adobe form.
    Similarly created another Web Dynpro context with only 2 fields from the structure for Adobe data, in such case the context fields are transferred to the Adobe form.
    Any limitation on the number of fields to be transferred from Web Dynpro Context to the Adobe form?
    NOTE: Using ABAP Web Dynpro.
    Thanks,
    Anjali
    Message was edited by: Anjali Joglekar

    Hello,
      I think I found the issue. The structure I was using had many fields with data type declared has STRING (with no definite length), in such cases the context is not copied over to the form.
    After modifying the structure fields, with appropriate length data elements, the same structure fields are carried over from Web Dynpro Context to the form.
    Any idea why such limitation is there for the structure field length?
    Thanks,
    Anjali

  • Facing lot of problems with the DATA object  -- Urgent

    Hi,
    I am facing lot of problems with the data object in VC.
    1. I created the RFC initially and then imported the data object in to VC. Later i did some modifications to RFC Function module,and when i reload the data object, I am not able to see the new changes done to RFC in VC.
    2. Even if i delete the function module, after redeploying the IVIew, results are getting displayed.
    3. How stable is the VC?
      I restarted the sql server and portal connection to R3 is also made afresh.... still i am viewing such surprise results..
    please let me know what might be the problem.

    Hi Lior,
    Are u aware of this problem.
    If yes, please let me know...
    Thanks,
    Manjunatha.T.S

Maybe you are looking for