Binding Checkbox Group to Context with Dictionary Enum (WD for Java)

Hello,
I see no examples in the documentation of binding a Checkbox Group to a context attribute that references a dictionary type with an enumeration. When I do so in NDS, it shows the checkboxes in the layout together with the values defined in the type's enumeration. However, when running the application, nothing comes up.
Any ideas or examples would be most welcome.
Thanks,
Martin

Hi Armin,
Thanks for the reply. I see now that I based my question on an incorrect assumption: I thought at runtime that the WebDynpro runtime populates the node with attribute nodes representing the values in an enumeration, if the attribute references a dictionary enumeration I see now that this is not the case.
(My theory was that if these elements are there, a selection of checkboxes should be obtainable by querying the relevant node in the context).
However, I still think there is a need for a checkbox group UI element that you can map to an attribute which in turn references a dictionary element with an enumeration, on the one hand to be consistent with the design of the other UI elements in WebDynpro, and also to make it easier for developers to produce such components, so that checkbox options don't have to be coded in a checkbox group.
What I'm proposing is that a UI element is needed representing a checkbox group, in which you can reference a dictionary type with enumeration, such that either:
1. The runtime populates attribute nodes in a node in the context with all the available values in the enumeration, and the selected values can be queried at runtime.
OR
2. Depending on the selection, attribute nodes are created inside the node in the context, one for each selected value.
Just to clear up any confusion: I'm not trying to make the existing CheckBoxGroup element do this. I understand this is not possible. That is why I'm saying a new element is needed that can provide this functionality.
Does this make sense?
Thanks and Regards,
Martin<b></b>

Similar Messages

  • Can I Design a Forum with using web dynpro for java?

    Hi All:
        Can i design a forum with using web dynpro for java?
        I want to design an application like a simple forum which maybe has many replies.So if i use
    the UI technology "web dynpro for java", i will to create UI elements dynamically.How can i control this
    dynamical UI elements to keep layout ?

    Hi,
    yes you can do that....
    for exaple if you observe SDN...
    you can imagine like....
    A big Transparent Container(TC)....
    Inside that number of other TCs(depending upon the question nd its replies...)....
    In side each TC, again around 9 UIElements....
    one for menioning what is the question/reply?
    other for your description of question/reply...
    other for your name,
    displaing your fourm point... etc...
    So it will be
    for(loop till your (Question+No of replies))
    Create Transparent Container....
    Add Childs to the Container...
    Decide your layout....
    In case if you want to know how to create UIElements dynamically....
    http://help.sap.com/saphelp_nw04/helpdata/en/4f/07cf3dd28b5610e10000000a114084/frameset.htm
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/wdjava/dynamic%2bui%2bgeneration
    Regards,
    Srinivas.
    Regards,
    Srinivas.

  • Bind radio group to table with ADF

    Hi,
    I've managed to bind a drop down list to a table as follows :
    <label for="cardtype">Card Type:*</label>
    <select name="cardtype" class="input-box">
    <c:forEach var="Row" items="${bindings.cardtype1.rangeSet}" >
    <option value="<c:out value='${Row.RvMeaning}'/>">
    <c:out value="${Row.RvMeaning}"/>
    </option>
    </c:forEach>
    </select>
    The binding is solely for display purposes as the user selection is not stored in the database.
    I am unable to do a similar bind for a radio group(display purposes only)
    Can anyone help ?

    No idea if anyone ever will read this reply, but I'm a dummy and I did spend a day to implement a radio group (radiogroup) with ADF and a common JSP. UIX of course offer more flexibility and possibilities!
    I did create a View Object secting values that could be displayed in a LOV. Test this first in order to test the data binding beteen the View Object and the attribuut (here gender) Then remove the LOV and drop the attribuut in your Form as radio group. The iterator created a radio 'box' for each record in the list, here M(ale)/F(emale)/B(oth). The radio group will be used to select the gender that should be searched on a dating site, displaying the gender in multiple languages! That's why fmt:message instead of bean:message was used. Value 'label.gender.${rv.prompt}' will be transformed into:
    label.gender.M OR label.gender.F OR label.gender.B
    The properties contain the labels in English, Dutch etc.... It should be possible to use a Static list as wel to store the domain values related to your radio group.
    <td>
    <c:out value="${bindings['Gender2'].label}"/>
    </td>
    <td>
    <c:forEach var="rv" items="${bindings.DCLOVList.displayData}">
    <html:radio idName="rv" property="DCLOVList" value="index"/>
    <fmt:setBundle basename="view.ApplicationResources"/>
    <fmt:message key="label.gender.${rv.prompt}"/>
    </c:forEach>
    </td>

  • Issue in binding person/group picker control with splist columns

    hi,
    i have a infopath form with fields, we have Primary approver and Secondary approver fields as person/group picker control, user will enter the person name and on clicking save button data getting saved in lists.
    When user come back to this page data not getting populated in person/group picker control like other textboxes. So we need binding of list data to person/group picker control.
    Same issue exists with the dropdown list. 
    can anyone pls  help how to do this.

    You have to do this: 
    http://spandps.com/2012/02/16/infopath-2010-people-picker-control/
    to promote people picker fields from InfoPath to SharePoint LIbrary.
    Hope it helps.
    Best regards.

  • Problem with bind method of Visibroker 4.5 and 6.5 for java

    I am facing following problem when I am trying to compile my CORBA application using javac.
    bind (java.lang.String,java.lang.String,java.lang.String,org.omg.CORBA.BindOptions) in com.inprise.vbroker.CORBA.ORB cannot be applied to (java.lang.String,java.lang.String,java.lang.String,com.inprise.vbroker.CORBA.BindOptions)
    [javac] return narrow(((com.inprise.vbroker.CORBA.ORB)orb).bind(id(), name, host, _options), true);
    Please let me know what needs to be done to to solve the compilation problem

    Hi,
    Have you applied patches to DB 4.5.20? There's one in particular that you might need. Please visit the following web page:
    http://www.oracle.com/technology/products/berkeley-db/db/update/4.5.20/patch.4.5.20.html
    Patch #2 on that page is the one I'm thinking of (although as long as you're there, I suppose you might as well take both of them).
    If that doesn't help, can you build DB in debug mode (configure with enable-debug)? The stack trace shows a SEGV at __rep_process_message+0x1d2 it would be nice to be able to see the Berkeley DB source code line number.
    Finally, to answer your question, the Berkeley DB Base replication API doesn't care whether you use TCP/IP or any other transport mechanism, as long as it meets the documented requirements. (It looks as if you're using the Base API, rather than the Replication Manager API.) Please see "Building the communications infrastructure" in the Reference Guide.
    Alan Bram
    Oracle

  • Using dictionary in Webdynpro for Java

    Hello, I'm very newbie in Webdynpro in Java and I have an issue,
    I need that a function returns me 2 fields in 2 variables, but this is not possible in Java, for that reason I have thought to create a structure in the dictionary with 2 fields in order to return one only parameter.
    My problem is that I don't know to declare a strucutre in the implementantion, something like :
    structure TypeData Name{}
    or
    struc{}
    or something like that.
    Do anyone know how to declare structure from the Dictionary in my implementantion's method or any good idea to solve this?
    Thanks in advance

    Hi Jorge,
    What you want to do with the two attributes? If these attributes attached to any UI fields then create two context attributes and assign the values to these attributes in the function. Otherwise, if you want to simply use the values then
    - You can concatinate two values into one string with some special character
    ( ContactID"#"ContacName) and return the string
    - You can return a String array with size 2.
    - Add two values to a ArrayList and return the ArrayList.
    Regards
    Abhilash

  • Context Design in web dynpro for java

    hello friends
    i want to design context for the vehicle application.
    search by vehicle type,model,color.
    how to design node and attributes

    Hi
    Please go to following link, this is similar to what you are looking for. You can create as per your requirement. Below is the link -
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c09fd8a0-96ac-2910-a0ba-f00d2ab70949
    Regards
    Sandeep

  • Problems with the ActiveX bridge for Java beans when using third-party .jar

    I encountered the following problem when using the ActiveX bridge for a java bean:
    I am using JDK 1.4.2_09 and MS Visual Basic 6.0 (SP6). I wrote a java bean called ProcessViewer (my class ProcessViewer inherits from JComponent and implements the interfaces Serializable and AdjustmentListener) which I would like to use within a VB 6.0 application. I used the ActiveX bridge (packager.exe) to generate a DLL (ProcessViewer.dll) and registered it successfully. The java bean GUI-control works fine within my VB 6.0 application unless my java bean (ProcessViewer.jar) uses any third-party .jar files.
    But when I tried to add a reference to some third-party class (com.sap.xxx.xxx....) I got some problems. I could solve the problem with packager.exe by setting the correct CLASSPATH. But at runtime my VB 6.0 application does not work. It crashes or it reports an error like this: "The control ... could not be loaded from axbridge.dll" (although I deployed my .jar file correctly to the directory C:\Programme\Java\j2re1.4.2_09\axbridge\bin and lib). Setting the CLASSPATH environment variable before calling my VB 6.0 application (exe) did not solve the problem.
    How can I teach my VB 6.0 application (containing the Java bean ActiveX control) where to find the third-party .jar file? Copying the third-party .jar file to the JRE lib-folder or to the axbridge\lib folder did not solve the problem either.
    I studied the documentation about the ActiveX bridge given at:
    http://java.sun.com/j2se/1.4.2/docs/guide/beans/axbridge/developerguide/index.html
    but I am missing informations on how the third-party .jar files can be found during runtime of the ActiveX container (e. g. a VB 6.0 application).

    See how to solve your problem with JNI:
    http://codeproject.com/cpp/OOJNIUse.asp
    More examples (for SWING) in tools setup:
    http://www.simtel.net/product.php[id]95126[SiteID]simtel.net
    http://www.simtel.net/product.php[id]94368[SiteID]simtel.net
    http://www.simtel.net/product.php[id]93174[SiteID]simtel.net

  • Checkbox Group Labels

    Hi
    I am Created checkbox group called "Gender".Automatically there are 3 checkboxes created with this with labels as "Lebel1","Label2","Label3".Now i want to change "Label1","Label2","Label3" as "Male","Femele","NotSpecified".At design time how to change these labels.I tried to change the "texts" property.can anybody help me?
    Thanks
    Prasad

    Hi Armin,
    I am trying to create a Checkbox group. I created a value attribute and binded it to simple datatype containg list of items in enumeration. Then I binded the Checkbox group "texts" property with the value attribute.
    In the layout wizard all items are visible but at runtime none of them is visible.
    Cardinality of node containing the value arrtibute is 0..n. I have checked it for 1..n also.
    Please tell me what could be the possible reason behind it.
    thanks in advance!

  • Problems with CR used by a Java app when converting from WebSphere v5 to v6

    Background:  I have been assigned support of an old Java app, currently running just fine in a WebSphere v5 environment.  It uses CR to produce 4 reports.  Running the app in the WebSphere 6 environment, 2 work and 2 don't.  (!?!?)
    I don't know what version of CR the reports were originally designed in - nor do the people who produced them 6 years ago.  I have tried installing (and uninstalling) various versions of CR on my PC (v7, v8, v8.5, v9, v10, v11) to see if I can find one that would work with the .RPT files.  None do.  Either I get a warning that the report file is in an old format and saving it will prevent its use by the older version - whatever that may be...; or it opens the report, but when I click on the Database tab on the menu bar, CR locks up my machine.
    It has been decided by my management that it would be best to just upgrade to CR vXI and continue from there.  The XI 'developers edition' is what I am currently running.  However, when I open the .RPT file (one of the ones that work), it takes about 5 minutes; then when I click on the Database menu item, it locks-up my pc.
    I have other experience using (back-versions of) CR, but have never run into anything like this.  Has anyone had any experience with upgrading reports designed for Java to the vXI?  Can you provide me with any information, hints, suggestions about how I might proceed?
    Thank you, in advance, for any assistance you might be able to render.  Regards,
    Jeff Emslie.

    Hi, Jadie.
    Thanks for the quick response.  It may be the original report definition was designed pointing to SQL/Server v7, then was being overriden by the Java code to SQL v2k - which we are about to convert away from...  I have no experience integrating CR into a Java app.  I don't know how the data source specification works with Java.  That is why the first thing I'm trying to do is to look at the Database connection: to see how its done.
    As for the version it was originally written in; I don't know what it is.  No one here knows.  I have tried every (old) version of CR we have in the shop (list above).  None seem to work correctly with these .RPT files.  Do you know of a way to determine the CR version of an unknown .RPT file?
    Thanks,
    Jeff.

  • Integrating crystal reports9 for java with weblogic8.1

    hi,
    i working with crystal reports 9 for java,i have a application done in weblogic
    which need to generate reports using crystal reports on the user's requirement,so
    reports data will be dynamic.kindly help me to proceed further,iam new to weblogic.

    hi
    i have worked on integrating crystal reports with weblogic
    first create the crystal RPT file under the portlet folder create a folder as reports then import the rpt file into ur reports folder u need some .jar files for integrating reports with weblogic or sent ur mail id i
    will sent it to u those jar files import those jar files into ur web inf folde of weblogic.
    regards
    sudhakar

  • Problem with checkbox group in row popin of table.

    In table row popin I have kept Check Box Group.I have mapped  the texts property of checkbox group to the attribute which is under the subnode of the table.the subnode properties singleton=false,selectioncardinality=0-n,and cardinality=0-n.
    if there are 'n' number of records in the table.each record will have its own row popin and in the row popin there is check box group.
    the check box group in the row popin  belongs to that perticular row.
    but the checkboxegroup values in row popins of all the  rows are getting changed to the row which is lead selected.
    The same scenario  (table in the row popin is showing the values corresponding to its perticular row and all the table values in popin are not getting changed to the one lead selected in the main table)is working fine with the table in place of  checkbox group in row popin with datasource property of table  binded to the subnode
    I cant trace out the problem with checkbox group in place of table.
    Please help me in this regard.I have to place check box group in place of table in row popin.
    Thanks and Regards
        Kiran Kumar K

    I have done the same thing successfully with normal check box ui element. Try using check box in your tabel cell editor instead of check box group.

  • Checkbox group selected property binding not working

    Hi,
    I've been through all the threads and tutorials relating to this problem and none of them help.
    The Situation
    I have a checkbox group which I have bound the items items property to a MySQL database (value field = int, display field = String). I have bound the Selected property to a sessionbean field which is an int[] array.
    I have a processValueChange event for my checkbox group which grabs the selected boxes values (ie the int value of the checkbox id). Based on these values it does some other processing.
    The Problem
    When the page loads everything is displayed ok. When I select a checkbox within the checkbox group the getSelected() method returns the int value of the selected checkbox and perform other processing as necessary... so far so good.
    However, when the page finishes processing and reloads the selected checkboxes are not ticked. I'm sure it has something to do with the Selected property of the checkboxgroup but I can't for the life of me work out why. For multiselect objects the Selected property must be bound to an array which I have done with my int[] array. I've tried preloading the array with default values (1, 2, etc) to mimic the int values from the database. I've tried changing the array to a boolean array but this throws exceptions. So basically i'm stuck.
    The Source
    Session Bean
        private int[] extras;
        public int[] getExtras() {
            return this.extras;
        public void setExtras(int[] extras) {
            this.extras = extras;
    Page JSP
    <ui:checkboxGroup binding="#{book_package.extras}"
                                                                                    converter="#{book_package.extrasConverter}" id="extras"
                                                                                    items="#{book_package.extrasDataProvider.options['extras.ExtrasID,extras.Name']}"
                                                                                    onClick="common_timeoutSubmitForm(this.form, 'table:tr:td:table:tr:td:table:tr:td:div:div:table:tr:td:extras');"
                                                                                    selected="#{SessionBean1.extras}" valueChangeListener="#{book_package.extras_processValueChange}"/>
    Page Java
        public void extras_processValueChange(ValueChangeEvent event) {
            // TODO: Replace with your code
            getSessionBean1().setExtrasTotal(0);
            try {
                int[] extra = (int[])extras.getSelected();
                int extrasId = 0;
                int extraPrice = 0;
                if (extra.length != 0) {
                    for (int i=0; i < extra.length; i++) {
                        extrasDataProvider.cursorFirst();
                        do {
                            extrasId = new Integer(extrasDataProvider.getValue("ExtrasId").toString()).intValue();
                            if (extrasId == extra) {
    extraPrice = getSessionBean1().getExtrasTotal() + new Integer(extrasDataProvider.getValue("Price").toString()).intValue();
    getSessionBean1().setExtrasTotal(extraPrice);
    break;
    } while (extrasDataProvider.cursorNext());
    } catch (Exception e) {
    log("Exception occurred!!", e);
    error("Error: "+e.getMessage());
    getSessionBean1().setTotalPrice(getSessionBean1().getPackagePrice() + getSessionBean1().getExtrasTotal());
    Any help appreciated.
    Thanks.

    ok, i found the problem. MySQL int value is treated as an Integer in Creator. I changed my SessionBean array from int[] to Integer[] and now it works properly... phew!!!

  • Visual Web JSF: Rendering a checkbox group with some checkboxes preselected

    Dear Sirs and Madams,
    I am a Visual Web JSF newbie and have been humbled by this one issue: I have User value objects which hold a List attribute of what user privileges they have. Am trying to render a checkbox group of user privileges for a chosen user with some user privileges already checked (the ones the user already has), and some not checked (potential privileges to give to the user) for the EditAUsersPrivileges page. Is this even possible? If so, how?
    Profusely thanking you in advance,
    Phoenix

    Of course, use the value attribute of the component and set it to EL representing the desired property.

  • Data  into a checkbox group

    Hi all,
    My conttext is MonthsOfYear--Node
                         MonthName--attribute
    here i have to populate checkbox group with values as "Jan","Feb"....."Dec"and display the selected months in to a table....
    Wat the problem here is By default Jan is getting selected and getting displayed in table eventhought we select something else than jan it is not getting considered...
    the code i used for  this is
    String[] monthNames = new String []
                 "January", "February", "March", "April",
                 "May", "June", "July", "August",
                 "September", "October", "November", "December",
         List monthsOfYear = new ArrayList();
         for (int i =  0; i < monthNames.length; ++i)
              IPrivateChkView.IMonthsOfYearElement  Myear=wdContext.createMonthsOfYearElement();
              Myear.setMonthName(monthNames<i>);
              monthsOfYear.add(Myear);
         wdContext.nodeMonthsOfYear().bind(monthsOfYear);

    My guess is that the "initializeLeadSelection" property is set to true for context node "MonthsOfYear". Therefore, the first element in the checkbox group is selected by default. Either unset this property at designtime or clear the lead selection in the controller (e.g. in the wdDoInit method or the supply function of the node).
    To keep the table in synch with the selected checkboxes, assign an action to the CheckBoxGroup.onSelect event. In the action handler, update the table data source node according to the selected entries (or invalidate the node and update its elements in a supply function).
    Armin

Maybe you are looking for

  • How to show start time in week mode on ical?

    I'm looking for a way to show the start time of an event in week mode in iCal. I know you can just click on the event but I want to be able to print and glance at it instantly. Any help would be great! Thks!

  • Cannot edit MPEG-2 in Windows Photoshop CS6

    Just upgraded to Photoshop CS6 and am attempting (unsuccessfully) to edit some MGEG2 content. The video content has been extracted from Windows DVRMS files using DVRMStoMPEGGUI. I can work with H264 content in Photoshop without a problem. All MGEP2 v

  • Is there a possible???

    Is there a possible that add some code at "update" portion and make "cancel" run also?? public void actionPerformed(ActionEvent e){         if (e.getActionCommand().equals("update"))                 temp.commit();                      temp.close();  

  • Security Settings prevent the usage of this method :-(

    hi, since i began using adobe LiveCycle products (well one month by now), mainly the LC Designer, i'm getting the same error by using certain methods (here i have to free translate out of the german): "NotAllowedError: security settings prevent the u

  • How do i get rows for last one hour

    Guys, How do it retrieve rows as of last hour from the database ? I wrote this but doesn't seem to return the rows select timestamp from Plan where to_date(timestamp,'DD-MON-RRRR HH24:MI') > to_date(sysdate - 120/1440,'DD-MON-RRRR HH24:MI') Thanks G