CFSELECT and BIND

Hi
I'm trying out cfselect with bind for the 1st time and I'm
having 1 issue...
I am trying to populate the 2nd cfselect with the zone_names
AFTER i have selected the country_name in the 1st cfselect.
the 2nd cfselect isnt populating!
My database looks like this...
All the data is in 1 table.
table name = zones
columns = zone_id, country_name, zone_name
My cfm page is fairly simple...
<cfform name="myform">
<table>
<tr>
<td>Select Media Type:</td>
<td><cfselect name="country_name"
bind="cfc:art.getCountries()"
bindonload="true" /></td>
</tr>
<tr>
<td>Select Art:</td>
<td><cfselect name="zone_name"
bind="cfc:art.getzones({zone_name})" /></td>
</tr>
</table>
</cfform>
I have also attached my CFC code.
My code probably isnt too neat right now, due to me spending
hours trying to get this right...
However, I would really appreciate someones help so that my
2nd cfselect populates correctly!
Thanks in advance
Delon

Hi
I'm trying out cfselect with bind for the 1st time and I'm
having 1 issue...
I am trying to populate the 2nd cfselect with the zone_names
AFTER i have selected the country_name in the 1st cfselect.
the 2nd cfselect isnt populating!
My database looks like this...
All the data is in 1 table.
table name = zones
columns = zone_id, country_name, zone_name
My cfm page is fairly simple...
<cfform name="myform">
<table>
<tr>
<td>Select Media Type:</td>
<td><cfselect name="country_name"
bind="cfc:art.getCountries()"
bindonload="true" /></td>
</tr>
<tr>
<td>Select Art:</td>
<td><cfselect name="zone_name"
bind="cfc:art.getzones({zone_name})" /></td>
</tr>
</table>
</cfform>
I have also attached my CFC code.
My code probably isnt too neat right now, due to me spending
hours trying to get this right...
However, I would really appreciate someones help so that my
2nd cfselect populates correctly!
Thanks in advance
Delon

Similar Messages

  • cfselect with bind to cfc works but is followed by 500 Jrun javax.servlet.ServletException

    All;
    This is driving me crazy. 
    I have a CFC with a function that returns countries via remote as JSON with the // prefix as Cold Fusion is configured.
    I call it with the following url
    www.mydomain.com/getCountriesAndStates.cfc?method=getCountries&returnFormat=json&argumentC ollection={}&_cf_nodebug=true&_cf_nocache=true
    It returns countries according to the Cold Fusion specs (just imagine it returning all countries, didn't want to paste it all the countries here).
    //[[0.0,"Please select a country..."],["US","UNITED STATES"],["CA","CANADA"]] 
    I bind a <cfselect for countrycode to this CFC and it works about 30% of the time.
    Here is the <cfselect
    <cfselect name="CountryCode" id="spanCountryCode" bind="cfc:getCountriesAndStates.getCountries()" bindonload="true"  onChange="DEdetermineTohide(this.id, '1')" onKeyUp="DEdetermineTohide(this.id, '1')">   
            </cfselect>
    It has a second function that returns the States with a CountryCode as the argument. 
    I call it with the follow url
    /getCountriesAndStates.cfc?method=getStateProvince&returnFormat=json&argumentCollection={" countrycode":"US"}&_cf_nodebug=true&_cf_nocache=true
    It returns states according to the old Fusion specs (just imagine it returning all the states, didn't want to paste all the states here.)
    //[[0.0,"Please select a state..."],["AL","ALABAMA"],["AK","ALASKA"]]
    I bind a <cfselect to this CFC with the countrycode as an argument and it populates the states for the countrycoe about 30% of the time.  It fails when the getCountries call fails.
    Here is the State <cfselect
    <cfselect name="StateCode" bind="cfc:getCountriesAndStates.getStateProvince({CountryCode})">
            </cfselect>
    I have a third funtion that returns whether or not the country selected has States and Zip Codes.  I call this function from a seperate javascript script included in the header and fired from the <cfselect name="CountryCode for onChange or onKeyUp.  It basically determines whether or not to show or hide both the State or Zip span but calls the CFC so that I can encapsulate everything in one place.  So the state and zip span with <cfselect and <cfinput appear and disappear based on the information about the country and state and the labels can change too from State to Province and from Zip to Postal Code etc...
    /getCountriesAndStates.cfc?method=getStateZipMetaData&returnFormat=json&argumentCollection ={"countrycode":"US"}&_cf_nodebug=true&_cf_nocache=true
    Ok, so I hope I have described enough about what I am doing.  This works about 30% of the time and fails about 70% of the time.  Flawlessly.  Sometimes it works for hours.  But eventually for some reason AFTER a perfectly good JSON response is returned from Cold Fusion, the Cold Fusion server starts following the JSON response with a 500 Serverlet Exception error.  This happesn on all function calls until I reboot my machine.
    It is driving me mad and making me start to reconsider whether or not I want to use CFForm binding.  It seems like a nice elegant solution that really simplifies and reduces the amount of javascript I have to write, but I can't go to production with forms that produce 500 server errors.
    Anyone have any ideas on what is going on?  If this is a bug?
    Should I just stay away from <cfform binding?
    Please help because it is driving me really crazy.
    My platform information is below.
    About 70% of the time it returns all the countries followed by a 500 Servlet Exception error.
    500
    javax.servlet.ServletException
         at coldfusion.xml.rpc.CFCServlet.invoke(CFCServlet.java:154)
         at coldfusion.xml.rpc.CFCServlet.doGet(CFCServlet.java:264)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)
         at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
         at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42)
         at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
         at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
         at jrun.servlet.FilterChain.service(FilterChain.java:101)
         at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
         at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
         at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286)
         at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)
         at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203)
         at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320)
         at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
         at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266)
         at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
    Platform details
    Server Product
    ColdFusion
    Version
    9,0,0,251028 
    Edition
    Developer 
    Operating System
    Windows XP 
    OS Version
    5.1 
    Adobe Driver Version
    4.0 (Build 0005) 
    JVM Details
    Java Version
    1.6.0_14 
    Java Vendor
    Sun Microsystems Inc. 
    Java Vendor URL
    http://java.sun.com/ 
    Java Home
    C:\ColdFusion9\runtime\jre 
    CF9 Update 1
    Apache 2.2
    Database MS-SQL Express

    Ok, so I think I answered this for myself.  This may be ignorant.  Whatever.  I haven't programmed CF in over 10 years and just started again a month ago, so I think advanced CFC and javascript is a lot.
    I seperated my CFC into a directory with a Alias mapping under Apache and a CF Mapping from CFIDE
    I trimmed down the application.cfc
    It was
    <cfset This.clientstorage="Cookie">
    That was causing the remoting CFC's to return a 500 Jrun Servlet Error
    I am just going to keep my remote CFC's seperate from the rest of my application anyway because they need a different type of security schema.
    So, if anyone struggles with this.  I recommend just put your remotely accessd CFC's in a seperate virtual directory mapped from your webserver and CF and lock them down both with a trimmed down application.cfc and some kind of security.
    They also seem to run much faster now combined with my other Ajax and Javascript.

  • Dynamic sql and bind variables

    Hi,
    I have a stored procedure which filters a table on 5 five columns. The filters come from the input parameters,
    and these 5 parameters can come in any combination, I mean some of them may be null and some of them may not be null.
    So I constructed the where filter of the query with IF blocks like the following:
    dynamic_query := 'select * from TESTTABLE where 1= 1';
    IF (P1 is not null) THEN
    dynamic_query := dynamic_query || ' AND column1 = :1';
    END IF;
    IF (P2 is not null) THEN
    dynamic_query := dynamic_query || ' AND column2 = :2';
    END IF;
    IF (P3 is not null) THEN
    dynamic_query := dynamic_query || ' AND column3 = :3';
    END IF;
    IF (P4 is not null) THEN
    dynamic_query := dynamic_query || ' AND column4 = :4';
    END IF;
    IF (P5 is not null) THEN
    dynamic_query := dynamic_query || ' AND column5 = :5';
    END IF;
    OPEN CUR_OUT FOR dynamic_query USING P1, P2, P3, P4, P5;
    The problem is how can I construct the USING and bind parameters, I cannot use "USING P1, P2, P3, P4, P5" because some of bind variables
    may not be in dynamic query if the input parameters are null. Is there a way to overcome this problem without writing all the 2 ^ 5 combinations?
    Any help is greatly appreciated.

    here it is in the Tomer Cohen way:
    IF (P1 is not null) THEN
    dynamic_query := dynamic_query || ' AND column1 = :1';
    ELSE
    dynamic_query := dynamic_query || ' AND  :1 IS NULL';
    END IF;
    IF (P2 is not null) THEN
    dynamic_query := dynamic_query || ' AND column2 = :2';
    ELSE
    dynamic_query := dynamic_query || ' AND  :2 IS NULL';
    END IF;
    IF (P3 is not null) THEN
    dynamic_query := dynamic_query || ' AND column3 = :3';
    ELSE
    dynamic_query := dynamic_query || ' AND  :3 IS NULL';
    END IF;
    IF (P4 is not null) THEN
    dynamic_query := dynamic_query || ' AND column4 = :4';
    ELSE
    dynamic_query := dynamic_query || ' AND  :4 IS NULL';
    END IF;
    IF (P5 is not null) THEN
    dynamic_query := dynamic_query || ' AND column5 = :5';
    ELSE
    dynamic_query := dynamic_query || ' AND -1 = :5';
    END IF;
    OPEN CUR_OUT FOR dynamic_query USING P1, P2, P3, P4, P5;Amiel Davis

  • Creating and Binding View Objects dynamically : Oracle Jdeveloper 11g

    Hello,
    We are trying to create and bind view objects dynamically to adf data visualization components.
    The view object is a result of multiple tables.
    We are using Oracle JDeveloper 11g Technical Preview. ( can't upgrade to TP2 or TP3 now).
    We have found this : http://radio.weblogs.com/0118231/stories/2003/07/15/creatingUpdateableMultientityViewObjectDefinitionsDynamically.html on our search for the same.
    The sample application however, is in 10g , hence required migration.
    Also, it was a standalone application with the TestClient.java having a main() method.
    Our requirement is for Web Application; we use Adf+jsf .
    Guidance of any sort is very much appreciated.
    Thanks in advance.
    -Anil Golla

    Hi,
    there also exist a forum for JDeveloper 11: JDeveloper and OC4J 11g Technology Preview
    What you are trying todo is not trivial because you need to not only dynamically create the VO, you would also dynamically need to create the binding meta data for it (assuming you use ADF). Not sure if the API to modify the binding is public, so posting it on the JDeveloper 11 forum bears a glimpse of hope for an answer
    In JDeveloper 10.1.3 you can't do this
    Frank

  • Getting an error while fetching the data and bind it in the Tree table

    Hi All,
    I am getting an error "A navigation paths parameter object has to be defined - " while fetching the data and bind it in the Tree table.
    Please find the code and screenshot below
    var oModel = new sap.ui.model.odata.ODataModel("../../../XXXX.xsodata/", true);
    var oTable = sap.ui.getCore().byId("table");
    oTable.setModel(oModel);
    oTable.bindRows({
        path: "/Parent",
        parameters: {expand: "Children"}
    Can anyone please give me a suggestion to rectify this?
    Thanks in Advance,
    Aravindh

    Hi All,
    Please see the below code. It works fine for me.
    var oController = sap.ui.controller("member_assignment");
    var oModel = new sap.ui.model.odata.ODataModel("../../../services/XXXX.xsodata/", true);
    var Context = "/PARENT?$expand=ASSIGNEDCHILD&$select=NAME,ID,ASSIGNEDCHILD/NAME,ASSIGNEDCHILD/ID,ASSIGNEDCHILD/PARENT_ID";
    var oTable = sap.ui.getCore().byId("tblProviders");
    oModel.read(Context, null, null, true, onSuccess, onError);
    function onSuccess(oEventdata){
        var outputJson = {};
        var p = 0;
        var r = {};
        try {
            if (oEventdata.results){
                r = oEventdata.results;
        } catch(e){
            //alert('oEventdata.results failed');
        $.each(r, function(i, j) {
            outputJson[p] = {};
            outputJson[p]["NAME"] = j.NAME;
            outputJson[p]["ID"] = j.ID;
            outputJson[p]["PARENT_ID"] = j.ID;
            outputJson[p]["DELETE"] = 0;
            var m = 0;
            if (j.ASSIGNEDCHILD.results.length > 0) {
                $.each(j.ASSIGNEDCHILD.results, function(a,b) {
                outputJson[p][m] = { NAME: b.NAME,
                                     ID : b.ID,
                                     PARENT_ID: b.PARENT_ID,
                                     DELETE: 1};
                m++;
            p++;
        var oPM = new sap.ui.model.json.JSONModel();
        oPM.setData(outputJson);
        oTable.setModel(oPM);
    function onError(oEvent){
        console.log("Error on Provider Members");
    oTable.bindRows({
        path:"/"
    Regards
    Aravindh

  • Regarding Value and Binding properties of af:inputTextBox

    Hi All,
    I am using JDeveloper 11.1.1.6.0. I want to set the value for af:inputTextBox from the backing bean.
    I observed there are two properties for this component, 'Value' and 'binding'.
    So, I thought of using 'Value' property. For this I created a property in my backing bean.
    Number textBoxValue; //Setter and getter methods for this ( I want to display numbers ans persist the same thats whay i have given as Number)
    and in one of my methods I had given,
    textBoxValue = new Number(12);
    I am able to display the value in the UI
    Here goes my queries, please clarify these.
    1) What is the need of these two properties?
    2) How can set value using the 'Binding' Property.
    3) Can I set value to the input using both properties?
    4) If 2nd point is correct then what will happen, if I set two different values to the textbox using these two components.
    Thanks & Regards,
    Ravi.

    1) Binding is uses as an EL reference that will store the component instance on a bean. This can be used to give programmatic access to a component from a backing bean, or to move creation of the component to a backing bean.
    Value represents the value of the component. If the EL binding for the "value" points to a bean property with a getter but no setter, and this is an editable component, the component will be rendered in read-only mode.
    So they are different.
    2) You don't
    3) You don't
    4) as 2) in not correct this is not relevant
    If you want to set the value of a ui component from inside a bean you have different possible solutions. Lets assume you have a binding for The component to bean. In case of a input text the bean property would be of type RichInputText. Lets the property name be myIPT. Then you set the value as myIPT.setValue("YOUR VALUE"); (if the component shows text).
    If you have bound the value property of the component to a bean attribute (using EL) you only need the change the bean attribute.
    If the value is bound to a value binding (e.g. one that was generated by dragging a VO onto the page and dropping it as form), you get the the value binding by
    // GET A METHOD FROM PAGEDEF AND EXECUTE IT
    // get the binding container
    BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();
    // get an ADF attributevalue from the ADF page definitions
    AttributeBinding attr = (AttributeBinding)bindings.getControlBinding("NAME_OF_THE_ATTRIBUT");
    attr.setInputValue("test");Timo

  • Difference between value and binding ?

    hello
    I am afraid I am not clear on difference between value and binding of a component?
    I will appreciate if you supply an explanation.
    kind regards

    Binding? Aren't you talking about JSF? That term doesn't occur in JSP world.

  • Nested Repeater and Binding Problem - Please Help

    I have nested repeaters and binding seems to work with the
    outer repeater, but not with the inner repeater. I have boiled it
    down to a pretty concise case. If someone could offer hints I would
    be most appreciative!
    I understand the objects I am using to store data could be
    different, but it only looks strange because I had to boil down a
    complex case to a simple case.
    Type a user and then an email address then click to add them,
    the user TextInput and label gets created, but not the email
    address label and text input.
    Basically I want users in an ArrayCollection, and their
    multiple email addresses in an ArrayCollection stored in an Object,
    where I get that email ArrayCollection using the user as the key to
    the object acting as an associative array.
    The attached code should compile fine, so please have a go at
    this. Thanks!

    "Greg Lafrance" <[email protected]> wrote in
    message
    news:gn5p1k$cv9$[email protected]..
    >I have nested repeaters and binding seems to work with
    the outer repeater,
    >but
    > not with the inner repeater. I have boiled it down to a
    pretty concise
    > case. If
    > someone could offer hints I would be most appreciative!
    >
    > I understand the objects I am using to store data could
    be different, but
    > it
    > only looks strange because I had to boil down a complex
    case to a simple
    > case.
    >
    > Type a user and then an email address then click to add
    them, the user
    > TextInput and label gets created, but not the email
    address label and text
    > input.
    >
    > Basically I want users in an ArrayCollection, and their
    multiple email
    > addresses in an ArrayCollection stored in an Object,
    where I get that
    > email
    > ArrayCollection using the user as the key to the object
    acting as an
    > associative array.
    I wouldn't bind to methods like that...I'd make properties
    and bind to
    those.

  • PreparedStatement and bind variable

    We are experiencing some werid performance break downs where database server looks healthy and our java applications are down to their knees.
    I was wondering if someone could help me clarify the comparison between PreparedStatement and bind variable. When I execute a PreparedStatement in java through the JDBC thin driver, would the database consider it a dynamic SQL or is it a SQL using bind variable? If this same statement is executed 100000 times, is it parsed 100000 times? We are using JDK131. How does it work?
    Is there any memory leak in PreparedStatement implementation in JDBC thin driver? Is there any known symptom to this problem? What is the recommended solution?
    Thank you very much!

    If PreparedStatement is parsed and cached, why is there setting to set implicit statement caching and explicit statement caching? Our DBA insists that it is parsed every single time. How would I find out for sure?
    The SQLs have not been changed. This sudden performance degradation started when a new client went live and we experienced higher than usual volumn. We are connecting using JDBC thin client from weblogic server to Oracle 8.1.7. It's been happening everyday since the client went live and the only way to get the performance back is to shutdown and restart the database server.
    I tried to search JDBC related issues. The only complain that I've found so far is that there may be some potential memory leak for a PreparedStatement. However, I have not found anything from Oracle's website that concurs to that.
    What is my best bet?

  • Convert row to columns and bind with same ID

    Hi All,
    I have a table with 2 columns - ID as Int and ClientID as Varchar(max)
    ID        ClientID
    1         123,784
    2         342,891,322
    3         111
    4         982,543,212,453
    I want t-sql to get output like this..Whenever there is a comma, split them and bind it to same ID.
    ID        ClientID
    1         123
    1         784
    2         342
    2         891
    2         322
    3         111
    4         982
    4         543
    4         212
    4         453
    Create statement:
    Create Table Sample
    ( ID Int null , ClientID varchar(max) null)
    Insert statement:
    Insert into sample (ID,ClientID) Values (1,'123,784')
    Insert into sample (ID,ClientID) Values (2,'342,891,322')
    Insert into sample (ID,ClientID) Values (3,'111')
    Insert into sample (ID,ClientID) Values (4,'982,543,212,453')
    Thanks,
    RH
    sql

    You can also do this using a user defined table valued function like this:
    create FUNCTION [dbo].[ufn_SplitString_Separator](@InputStr VARCHAR(max), @Separator VARCHAR(1))
    RETURNS @tmpTable TABLE (OutputStr VARCHAR(max))
    AS BEGIN
    DECLARE @TmpPOS integer
    SET @TmpPOS = CHARINDEX(@Separator,@InputStr)
    WHILE @TmpPos > 0 BEGIN
    IF @TmpPos > 0 BEGIN
    INSERT INTO @tmpTable VALUES (LTRIM(RTRIM(SUBSTRING(@InputStr,1,@TmpPos-1))))
    SET @InputStr = SUBSTRING(@InputStr, @TmpPOS + 1, LEN(@InputStr) - @TmpPos)
    SET @TmpPOS = CHARINDEX(@Separator,@InputStr)
    END ELSE BEGIN
    INSERT INTO @tmpTable VALUES (LTRIM(RTRIM(@InputStr)))
    SET @TmpPos = 0
    END
    END
    IF LEN(@InputStr) > 0 BEGIN
    INSERT INTO @tmpTable VALUES (LTRIM(RTRIM(@InputStr)))
    END
    RETURN
    END
    And get the results:
    DECLARE @Sample TABLE ( ID Int null , ClientID varchar(max) null)
    Insert into @sample (ID,ClientID)
    VALUES
    (1,'123,784'),(2,'342,891,322'),(3,'111'),(4,'982,543,212,453')
    select id, outputstr as clientid from @sample cross apply dbo.[ufn_SplitString_Separator](clientid,',')
    "If there's nothing wrong with me, maybe there's something wrong with the universe!"

  • What are the proper print settings to print two sides, landscape and bind on the short side?

    what are the proper print settings to print two sides, landscape and bind on the short side?

    This is a question best asked in the appropriate product forum.

  • Dynamic creation of ItemListBox and binding a child node

    Hello @all,
    I have the following context structure
    root
    --category
    -- --report
    -- -- --id
    -- -- --name
    -- --id
    -- --name
    the parent node is "category" with attributes "id" and "name" and the child node is "report" with "id" and "name".
    Now I want on an onAction-Event of a Button, that for every category an itemListBox will be created with the according report names. the creation of the itemList is not the problem, but the binding of the datasource and/or the descriptivetext.
    my code:
    public void initItemListBox( )
        //@@begin initItemListBox()
        IWDView view = wdContext.currentContextElement().getSelectView();
        IWDGroup group = (IWDGroup) view.getElement("ItemListGroup");
        if (group.hasChildren())
          group.removeAllChildren();
        for (int i = 0; i < wdContext.nodeCategory().size(); i++)
          ICategoryElement catEl = wdContext.nodeCategory().getCategoryElementAt(i);
          wdContext.nodeCategory().setLeadSelection(i);
          generateItemLists(wdContext.currentContextElement().getSelectView(), wdContext, catEl);
        //@@end
    public void generateItemLists( com.sap.tc.webdynpro.progmodel.api.IWDView view, de.mgi.portaldev.bc.mdw.msi.wdp.IPrivateCRSReportView.IContextNode wdContext, de.mgi.portaldev.bc.mdw.msi.wdp.IPrivateCRSReportView.ICategoryElement category )
        //@@begin generateItemLists()
        //    ItemListBox
        IWDGroup group;
        IWDGroup catGroup;
        IWDLabel label;
        String groupId = "group_" + category.getName();
        catGroup = (IWDGroup) view.createElement(IWDGroup.class, groupId);
        IWDMatrixLayout matrLayout = (IWDMatrixLayout) catGroup.createLayout(IWDMatrixLayout.class);
        String labelId = "label_" + category.getName();
        label = (IWDLabel) view.createElement(IWDLabel.class, labelId);
        label.setText(category.getName());
        IWDMatrixData layout = (IWDMatrixData) label.createLayoutData(IWDMatrixData.class);
        layout.setVAlign(WDCellVAlign.TOP);
        String itemListId = "itemList_" + category.getName();
        IWDItemListBox itemListBox = (IWDItemListBox) view.createElement(IWDItemListBox.class, itemListId);
        label.setLabelFor(itemListId);
        IWDMatrixData itemlayout = (IWDMatrixData) itemListBox.createLayoutData(IWDMatrixData.class);
        itemListBox.bindDescriptiveText("crsReporting.category.report.name");
        IWDNodeInfo reportNodeInfo = category.nodeReport().getNodeInfo();
    //    itemListBox.bindText(reportNodeInfo.getAttribute("name"));
        itemListBox.setVisibleItems(5);
        IWDMatrixHeadData matrixHead = (IWDMatrixHeadData) itemListBox.createLayoutData(IWDMatrixHeadData.class);
        IWDAction itemListAct = (IWDAction) wdThis.wdGetItemSelectAction();
        itemListBox.setOnLeadSelect(itemListAct);
    //    itemListBox.bindDataSource(reportNodeInfo);
        itemListBox.bindDataSource("crsReporting.category.report");
        catGroup.addChild(label);
        catGroup.addChild(itemListBox);
        group = (IWDGroup) view.getElement("ItemListGroup");
        group.addChild(catGroup);
        //    END ITEMLIST
        //@@end
    What am I doing wrong? in every ItemListbox there are only the report names of the last category.
    thanks.

    RowRepeater is available in WD Java since NW CE (7.1). With RowRepeater, the solution is trivial and can be done completely by declaration in view designer.
    In earlier releases, you can solve it as follows (non-trivial)
    - For each category, create a separate context node "Category_i" with an attribute "name"
    - Inside each category node, create a non-singleton node "Reports" with an attribute "name"
    - Foreach report, add a node element to the reports subnode of its category node <b>element</b>
    All this has to be done using the generic context API.
    On each change of the data, reset the context and re-create these nodes.
    In wdDoModifyView(), check if data have changes and create UI elements programmatically.
    - For each category, create a group, bind header text to category name.
    - Inside each group, create a ItemListBox, bind "dataSource" to reports sub-node of category (non-singleton!) and bind "text" to text attribute of report node.
    Sample code:
    To build context structure:
    private void createCategories()
        for (int i = 0; i < 3; ++i)
          IWDNodeInfo categoryNodeInfo = wdContext.getNodeInfo().addChild("Category" + i, null, true, CMICardinality.ONE, CMICardinality.ONE, true, null);
          IWDAttributeInfo att = categoryNodeInfo.addAttribute("name", "ddic:com.sap.dictionary.string");
          IWDNode categoryNode = wdContext.getChildNode(categoryNodeInfo.getName(), 0);
          categoryNode.getElementAt(0).setAttributeValue(att.getName(), "Category #" + i);
          IWDNodeInfo reportNodeInfo = categoryNodeInfo.addChild("Reports", null, false, CMICardinality.MANY, CMICardinality.ZERO_TO_ONE, true, null);
          IWDAttributeInfo attReportName = reportNodeInfo.addAttribute("name", "ddic:com.sap.dictionary.string");
          IWDNode reportNode = categoryNode.getChildNode("Reports", 0);
          for (int j = 0; j < 5; ++j)
            IWDNodeElement report = reportNode.createAndAddElement();
            report.setAttributeValue("name", "Report #" + j);
    To recreate UI:
    if (<data_have_changed>)
          IWDTransparentContainer root = (IWDTransparentContainer) view.getRootElement();
          for (int i = 0; i < 3; ++i)
            IWDNode categoryNode = wdContext.getChildNode("Category" + i, 0);
            IWDAttributeInfo attName = categoryNode.getNodeInfo().getAttribute("name");
            IWDGroup group = view.createElement(IWDGroup.class);
            root.addChild(group);
            IWDCaption header = view.createElement(IWDCaption.class);
            group.setHeader(header);
            header.bindText(attName);
            IWDNode reportsNode = categoryNode.getChildNode("Reports", 0);
            IWDAttributeInfo attReportName = reportsNode.getNodeInfo().getAttribute("name");
            IWDItemListBox list = view.createElement(IWDItemListBox.class);
            group.addChild(list);
            list.bindDataSource(reportsNode.getNodeInfo());
            list.bindText(attReportName);
    Armin
    Fixed code tags

  • Deploy and Bind ant tasks

    Re,
    I am using the 10.1.3 beta of oc4j and we are starting to run into some problems with using the oracle deploy and bind ant tasks provided. As our application is growing, the deploy task is taking longer and longer (which by itself is not really a problem since that is to be expected, and when I say long it is only a few seconds so it is tolerable). The problem (I think) lies in the ant tasks. Our "bind" tasks depends on the "deploy" task. But, it seems that sometimes the bind task actually starts before the deploy task is finished. So, we are wondering if there is something wrong with the deploy task. Either oc4j is sending a signal that the deploy is complete before it actually is or the deploy ant task is just waiting a few seconds and then assuming it is complete.
    The only way for us to make this problem go away is to run the deploy ant task, look at the console to see that the deploy is finished and then run the bind task separately. Needless to say, that is a bit annoying and hard to automate.
    Any ideas?

    Chris,
    Thanks. I dont think that is it. The process waits a while (so maybe they are the ones doing a sleep).
    I am hoping to find out what is actually happening under the hood and if there is in fact a 'wait' giong on, implore to the development staff that they fix that issue before things are GA. Or, if something else is going on ... maybe I can fix it on my end.
    Thanks,
    Greg

  • Move elements in layout and bind the elements?

    Hi experts, I have sereval questions.
    1. In a view, I drag & drop a group to the layout and drap sereval elements on the group. But I can't move the elements to the next line. They were just arranged one after one and line after line. How can I move them as I want?
    2. Does it exist a "table" element for the layout? Where is it?
    3. Does it exist a "date select" button for the layout which allows me to see a calendar and select a date on clicking it? Where is it.
    4. I've  mapped and binded the context of Component Controller to my Window context. But when I want to map & bind Window Context to View Context, all of the elements of context are gray that I can't bind them to the UI elements on the layout. That's why? How can I bind them?
    Thank you a lot in advance!!!!!

    Hi
    1. In a view, I drag & drop a group to the layout and drap sereval elements on the group. But I can't move the elements to the next line. They were just arranged one after one and line after line. How can I move them as I want?
    You have to use Layouts, you have GridLayout, FlowLayout, MatrixLayout and RowLayout
    Layout property is there for Groups, Transparent Containers
    2. Does it exist a "table" element for the layout? Where is it?
    Table UI element is not for Layouts, you have to use the Layouts mentioned above
    3. Does it exist a "date select" button for the layout which allows me to see a calendar and select a date on clicking it? Where is it.
    Take an Input Field and bind it with a Cotnext Attribute which of type DATS or dataelement which is a date type, then you can see calender automatically
    4. I've mapped and binded the context of Component Controller to my Window context. But when I want to map & bind Window Context to View Context, all of the elements of context are gray that I can't bind them to the UI elements on the layout. That's why? How can I bind them?
    This should not happen, check this again
    Abhi

  • Can WS name and Binding name be changed?

    Hi,
    When we generating the wsdl file from a sender agreement, A webservice name and Binding name have been created in the wsdl file.
    web service name AS "XI_20ec1074cc28367c964b34f226098f29_Service"
    and binding name as "ServiceInterfacenameBinding"
    But the legacy people who are going to access this webservice need this names to be changed. is it possible from PI??
    i mean like instead of "XI_20ec1074cc28367c964b34f226098f29_Service" they want some name like "getProductinformation"
    and binding name like as "ProductinformationBinding"
    Regards,
    Balaji
    Edited by: Balaji Pichaimuthu on Sep 1, 2010 8:32 AM

    Hi Balaji,
    It s not possible within PI, as this Information is generated when you retrieve the WSDL from the Directory.
    However if you want to change that you can do it manally before forwarding the WSDL to other people.
    The name of Binding/Service has no impact on the call at runtime.
    Best regards
                 Sebastian

Maybe you are looking for

  • Security settings in Microsoft Excel

    Hi all, Iam using presently SAP 2007B PL08 and MSExcel2003.When i was trying to generate aa report (XL report) getting an error.Error as follows "a required COM add-in program for XL reporter has not been loaded & prohibits MS Excel from running".Hel

  • [SOLVED] can't build an AUR package while installing Arch

    So I am nearly there installing Arch for the first time. And I will start with saying that I am really sorry if I missed the answer to my problem but I have had a look around the documentation and the general webz for something regarding this problem

  • Statistical only posting even between company codes with no FI postings?

    OK experts - I am trying to accommodate what the customer is asking for here and having a really hard time trying to come up with a solution.  Is it possible to give statistical cost to a project in company A and statistical revenue to a cost center

  • High cpu - Rate-limit cisco 6500

    Hello, my device is cisco 6509. Explanation of the case: Received to interface vlan (L3) 600M traffic (configured with Rate limit - 50 M). Result :  1. 100 % cpu 2. the traffic was limited to 50M How can I prevent High Cpu in this situation ? Thanks.

  • AEBS 802.11n as of today is wonky

    My 24" 2.8 GHz Extreme iMac is connected fine to the AEBS, but my Mac Book Pro and my fella's Windblows PC can't connect. I have gone to my network, enetered the password and all, no joy. "Connection Failed", Tried again: "Connection Timeout", Again: