Help: Data binding using uix:choice

I have a uix jsp page with the following code snippets (trying to make a simple drop down list):
<jbo:DataSource id="ds2" appid="PubModuleDef" viewobject="PubModule.FOAOIDGroupsVO" />
and further down:
<uix:choice>
<uix:contents>
<jbo:RowsetIterate datasource="ds2">
<uix:option text="<%= ds2.getRowSet().getCurrentRow().getAttribute(\"Name\") %>" />
</jbo:RowsetIterate>
</uix:contents>
</uix:choice>
I am looking for a more elegant way to do this. Particularly I would like to eliminate the <%= ... %> code but I simply have not been able to figure out how to use Data Binding...
Any advice?
Claus

Hi Matthias,
I hope this is what you are looking for:
http://help.sap.com/saphelp_erp2004/helpdata/en/fb/fbb84c20df274aa52a0b0833769057/frameset.htm
Regards,
Rainer

Similar Messages

  • Data Binding using DataSet and ComboBox

    Hi guys, hope someone can help me with this. Seems it should
    be simple, but it's not, that's why I'm here. I have data loading
    into a DataSet component. I have a ComboBox on the stage with
    predefined values and lables, so it's not dynamic at all. After
    loads into the DataSet I have the value Bound to the the Combobox,
    but nothing is being selected. I know the ComboBox is a little bit
    trickier, unlike the Textfield or TextInput wich work right away.
    Again, hope someone can help.

    Hi,
    I think the data binding concept you asked for Dropdown listboxes and RadioButtonGroups .If My Guess Correct follow the links provided here you may get useful information,
    [http://help.sap.com/SAPHELP_NW70EHP1/helpdata/EN/bb/69b441b0133531e10000000a155106/content.htm]
    for Example refer this link,
    [http://help.sap.com/saphelp_nw04/helpdata/en/74/450e8af57065468e88e4b86de47e4b/frameset.htm]
    Hope This information Useful for you.
    Regards,
    Raghava Channooru.

  • Data Binding using XML as data connection

    I'm using an XML as my data connection. It has several order fields in various sections that have unique field identifiers. I have created a random order # script that runs fine inside of the form that occurs on the first order number field but I need that same number to populate into each of the additional order fields, again that have unique identifiers. Is there a way to combine data fields?
    Thanks!

    usually you can make the binding global and all same named fields will end up with the same value. You may not be able to do that if you have bound your field to a data node in your XML. If that is the case then you will have to do it programatically. Lets assume you have Order_Number on Page 1 and Order_Number2 on Page 2. You would code on the calculate event of the 1st Order_Number field (the one where the number is calculated) - form1.Page2.Order_Number2.rawValue = form1.Page1.Order_Number.rawValue;
    You can add multiple statements to equate that value to other instances of the field as you see fit. Now when any one of those values changes all of the others will be updated auto-magically!

  • Data Binding: Use name

    As per Adobe Help::
    Use name
    Enables data merging and saving options. Data values are merged and stored implicitly according to Adobe data-merging rules.
    Can anybody Explain with Example?

    Hi,
    We now use a webservice to submit the xml of the form (and any attachments).  At one point we did submit the PDF byte stream to the webservice but now we just render it again with the XML form data.
    This has the added advantage of allowing us to do some server side checks, things like is the application round still open, does the user have the correct roles, etc.
    It also allows us to return a reference number to the form, so the user gets confirmation that the form was received.
    Regards
    Bruce

  • Data binding with Multiple Filter

    Hi Experts,
    I am trying to do the data binding using filters with multiple values.
    ex: I am selecting the multiple values from list dialog and those i want to pass to odata service as a filters.
    name : abc
                   pqr
    I am looping on above and pushing it to array of filters.
         jQuery.sap.require("sap.ui.model.FilterOperator");
         var FilterOperator = sap.ui.model.FilterOperator;
         var filtersTerr =  new Array();
       for(i=0;i<name.length;i++){
      filterName = new sap.ui.model.Filter("FirstName", sap.ui.model.FilterOperator.EQ, name[i]);
      filter.push(filterName );
    this..getBinding("items").filter([filter],false);
    Final filter should be something $filter=FirstName='abc' or FirstName='pqr'.
    I have already looked into below discussions but somehow came to conclusion that array cannot be use with OR/AND.
    Odata Filter with OR
    http://scn.sap.com/thread/3462246
    http://scn.sap.com/thread/3560814
    Please let me know how this needs to be written.
    Thanks,
    Rahul

    Hi Rahul
    There are many ways.
    Filter for table
    var sRlUrl = "http://<host Name>/sap/opu/odata/sap/ZTWMP" ;
    var list = new sap.ui.model.odata.ODataModel( sRlUrl, false, "username", "pswd"); 
    list.setDefaultBindingMode(sap.ui.model.BindingMode.TwoWay);
    var iv_proID  = sap.ui.getCore().getElementById('input1').getValue();
    var iv_listNo = sap.ui.getCore().getElementById('input2').getValue();
    var iv_Matnr  = sap.ui.getCore().getElementById('input3').getValue();
    var iv_Po     = sap.ui.getCore().getElementById('input4').getValue(); 
    //... Set any Filters .. if reqd'
    var oFilter = new Array();
    var iCount = 0;
    if (iv_proID) {
    oFilter[iCount] = new sap.ui.model.Filter("abc", sap.ui.model.FilterOperator.EQ, sap.ui.getCore().getElementById('input1').getValue());
    iCount++;
    if (iv_listNo){
    oFilter[iCount] = new sap.ui.model.Filter("def", sap.ui.model.FilterOperator.EQ, sap.ui.getCore().getElementById('input2').getValue());
    iCount++;
    oFilter[iCount] = new sap.ui.model.Filter("PcTotal", sap.ui.model.FilterOperator.EQ,"HEADER" );
    iCount++;
    sap.ui.getCore().getElementById('T-POhdr-DR').setModel(list);
    //... Bind Rows with oData, with filters if any
    sap.ui.getCore().getElementById('T-POhdr-DR').bindRows({
    path: '/t_entity set/',
    filters: oFilter
    2 General filter
      OData.read({ requestUri: "http://<URL>:8001/sap/opu/odata/sap/ZTMP_ABC/Item?$filter=ID eq '"+ID+"' and DESC eq '"+Desc+"'", headers: { Accept: "application/json" } }, function (data, response) {
    if (data.results[0]) {
                     sap.ui.getCore().byId("oInput2").setText(data.results[0].<odata field to assign>;

  • New to UIX : Need help in data binding

    I am new to UIX. I am using jDeveloper 9.0.5.2 (ADF UIX version is 2.2.8). I need to create a simple table with one column with checkbox, one column with input field and 2 columns from database query. How should I go about it ?
    I went through some tutorial but it's not helping me much. Can you point me to some examples / Tutorials which can help me to move further.
    Thanks in Advance.
    Sid.

    Hi Sid,
    you can do all that you are wanting to do using UIX and ADF but it's not as straight forward as dragging components from the data control palette. You have to write a bit of code in the source viewer in the UIX page.
    Refer to this document to create an editable table:
    http://www.oracle.com/technology/products/jdev/tips/jacobi/edittable/tip_adfuixtable_edit.html
    also read forum post: question regarding ADF UIX editable tables
    this document shows you how to do LOV's:
    http://www.oracle.com/technology/products/jdev/howtos/10g/adf_uix_lov_ht/index.html
    once you have the editable table working properly, you can add LOV code and other components to the selected column of the table. I suggest that you get the editable table working properly before trying to add lovs and checkboxes etc..
    another simpler option would be a read-only table with a link to an edit page containing an input form (for the same data control) without navigation. the input form could be on the same page as the read-only table, or a different page.
    regards,
    Brenden

  • ADF UIX programatic data binding

    Oracle ADF UIX Developer's Guide mentions the possibility to use the UIX framework in Java, to create new objects or alter the existing ones.
    E.g. we can create a table using a construct like:
    TableLayoutBean tlb = new TableLayoutBean();
    The same document demonstrates the data binding:
    BoundValue rows = new DataBoundValue(_YOUR_NAMESPACE, YOURNAME, "rows");
    tlb.setIndexedNodeList(new DataObjectListNodeList(rows));
    For "simple" attributes using DataObject DataObjectList, etc. the procedure is clear. But what about creating a data bound table or input text:
    <table model="${bindings.EmpView1}" ... >
    <messageTextInput model="${bindings.DeptCode}"/>
    It’s easy to understand that model="${bindings.EmpView1}" or model="${bindings.DeptCode}" are equivalent to multiple attribute bindings (data, validation, read-only, etc.), but it looks that the classes/methods resolving these equivalences and linking the bean to the corresponding DCControlBinding, are not public (or maybe I was not able to find them).
    How can we obtain programmatically, in Java, the same structure as described above (in XML)? The best would be to use the same classes used when the UIX XML document is parsed to create the page description.
    It would be very nice to be able to use a structure like
    tbl.setModel( new JUCtrlRangeBinding(...) );
    txt.setModel( new JUCtrlValueBinding(...) );
    or maybe
    txt.setAttribute( "model", new TextInputModelBoundValue(...) ) etc.
    In JSF we can do something like:
    ValueBinding vb = application.createValueBinding(value);
    component.setValueBinding(attributeName, vb);
    Can we do something similar in UIX?
    Any help will be appreciated,
    thanks,
    Mircea Ionita

    Since the code is already written, it's a pity that we can't use/extend it. I don't like to say it (sorry) but I find this design choice (implement the "model" only into the XML parsing layer) a little bit strange (or maybe I don't understand... ;-) ). We should (or we are supposed to) be able to do in java everything that we can do in XML.
    I would like to find more support/help for the programmatic approach. I have the feeling that you are too focalised on "use-our-state-of-the-art-tools/wizards-to-write-the-code-for-you" and you forgot that this is not suitable for all projects. E.g. our application creates the user interface according to a layout defined by each user. To generate it, we need to use at maximum the extension mechanism and we can't simply relay on "rendered" attribute etc.
    -When should we expect this new UIX release?
    -What about the UIX controller? The Struts controller will replace it?
    -What about the source code of uixexp2-demo.jar (distributed with ADF_UIX_component_guide)?
    -Why while debugging we can't set a method/class breakpoint on UIX classes (to understand the data flow) - the stack is secret?
    Thanks

  • Using selectedIndex of UIX choice element?

    I'm a bit embarrased that I can't figure this out - it's probably very simple.
    I have a messageChoice element on a UIX page, and I'd like to render the page differently based on which option is currently selected. To do this, I figure I can just use an event handler to maintain a value in the page state, tie the event handler to the messageChoice element, and use a switcher referencing that value on the page state to choose between the different sets of elements I want to render.
    I added a <primaryClientAction> element to the messageChoice element, a <fireAction> element to that, and tied the event to an event handler. All of this is correct, and I can verify that the event handler runs via a breakpoint and the debugger.
    I just can't figure out how to pass the selected index to the event handler! I assume you just add a parameter to the event, but I haven't the slightest clue how to reference the selectedIndex attribute of the messageChoice element from within the UIX page.
    I've been searching for hours! Not sure what's wrong with me, but I can't find the solution.
    A little help would be hugely appreciated =]
    -Matt

    Here are some examples that should help you. I have to go fix a high priority bug right now, so I can't mock up a choice example:
    <lovChoice name="lovChoiceName" prompt="hello" tip="this is a tip"
                                            destination="lovChoice_DemoDlg.uix" selectedValue="${sessionScope.userDataForLovChoice.favoriteVacation.location}">
      <contents   childData="${sessionScope.userDataForLovChoice.vacationSpots}">
      <option text="${uix.current.location}" value="${uix.current.location}"/>
      </contents>
    <primaryClientAction>
    <firePartialAction targets="selectedValueTextID selectedValueTextID2 selectedValueTextID3 lovChoiceID"
                                                             event="lovChoiceUpdate"/>
    </primaryClientAction>
    </lovChoice>and the event handler calls a java method:
        <event name="lovChoiceUpdate">
          <method class="oracle.cabo.servlet.demo.lovchoice.LovChoiceEvents"
                  method="handleLovChoiceUpdateEvent"/>
        </event>and this method gets the parameter:
       * handleLovChoiceUpdateEvent
       * @param context the current baja context
       * @param Page the current page
       * @param event the event that got us here
       * @return The event result containing all the parameters
      public static EventResult handleLovChoiceUpdateEvent(
        BajaContext bc,
        Page page,
        PageEvent event)
        HttpSession sess = bc.getServletRequest().getSession();
        UserData uData = _getUserData(sess);
        String selectedLocation = (String)event.getParameter("lovChoiceName");
        if (uData != null && selectedLocation != null)
          VacationSpot favVacation =  uData.findVacationSpot(selectedLocation);
          uData.setFavoriteVacation(favVacation);
        return null;
      }  To do it simpler, you can do something like this:
    In the following example the page property named "disclosed" is updated to the event source. Notice that data binding is supported.
    <set target="${uix.pageProp}"
    property="disclosed"
    value="${param.source}" />
    In the following example the session attribute identified by the event source is updated to the event name.
    <set target="${sessionScope}"
    property="${param.source}"
    value="${param.event}" />
    (I got this information from the UIX Element Reference).
    Here's an example I found for hide/show:
                 <hideShow id="hideShow-2" >
                  <boundAttribute name="disclosed" >
                   <comparison type="equals" >
                    <defaulting>
                     <dataObject select="hideShow-2"
                                 source="${uix.pageState}" />
                     <fixed text="hide" />
                    </defaulting>
                    <fixed text="show" />
                   </comparison>
                  </boundAttribute>
                  <contents>
                   <header text="Other Header">
                    <contents>
                     <header text="Other SubHeader"/>
                    </contents>
                   </header>
                  </contents>
                 </hideShow>
        <event name="hide show">
          <set
                 property="${param.source}" target="${uix.pageState}" value="${param.event}"/>
        </event>Jeanne

  • Data Binding in ADF UIX example trouble

    Two related questions:
    From the help example 3. Data Binding in ADF UIX example trouble in JDeveloper on UIX. If this worked I was going to run a small java class that captures the login and passes it as a messagebox with a Welcome login name on the first page, but I can't get past the example and path problems.
    From the example..."
    package yourpackage;
    import java.util.Date;
    public class CurrentDateBean
    public CurrentDateBean() { }
    public String getTime()
    return (new Date()).toString();
    Now, we want to change the page so it uses getTime(). We need to do three things: Tell UIX to data bind the text attribute. Add a <dataScope> to the page to provide data to the content. Write a small "data provider" in Java that can access the bean. First, we'll data bind "text": <text xmlns="http://xmlns.oracle.com/uix/ui"
    text="${uix.data.currentDate.time}"/>The example has one small change. The value is changed to ${uix.data.currentDate.time}, which is an expression that defines the data. This is shorthand for "get the time property from currentDate." If you tried running this example, you'd see nothing. That iss because we haven't given currentDate to the page, so the databinding failed, and the "text" is left to null. We do this by adding <dataScope> to the page: <dataScope xmlns="http://xmlns.oracle.com/uix/ui">
    <provider>
    Q#1?? Trying to follow the demo. The method class and method name do not seem to match the names in the above class from the demo. Am I missing a point here, please help.
    <data name="currentDate">
    <method class="yourpackage.DataDemo" method="getCurrentDate"/>
    </data>
    </provider>
    <contents>
    <text text="${uix.data.currentDate.time}"/>
    </contents>
    </dataScope>
    Q#2?? When I try and apply the demo class to my home.uix XML file with
    "<?xml version = '1.0' encoding = 'windows-1252'?>
    <page xmlns="http://xmlns.oracle.com/uix/controller"
    xmlns:ui="http://xmlns.oracle.com/uix/ui"
    xmlns:data="http://xmlns.oracle.com/uix/ui"
    xmlns:ctrl="http://xmlns.oracle.com/uix/controller"
    xmlns:html="http://www.w3.org/TR/REC-html40" expressionLanguage="el">
    <content>
    <dataScope xmlns="http://xmlns.oracle.com/uix/ui">
    <provider>
    <!-- start Add DataProviders (<data> elements) here -->
    <data name="currentDate">
    <method class="us.mn.state.dot.apptrack.security.CurrentDateBean" method="getTime()"/>
    </data>
    <!-- end Add DataProviders (<data> elements) here -->
    </provider>
    <contents>
    <text text="${uix.data.currentDate.time}"/>
    <document>
    <metaContainer>"
    I get the following, and I don't know how to make the UIX XML accept the correct path, please help:
    �file:/C:/JDeveloper905p/jdev/mywork/ProjTrack/AppTrack/ViewController/public_html/home.uix: Parsing error, line 12, column 97: Could not find class us.mn.state.dot.apptrack.security.CurrentDateBean

    for question 1 the name of the class CurrentDateBean
    actually has nothing to do with the el expression
    uix.data.currentDate.time. The currentDate part of the
    el expression is coming from the method data provider part
    of your page:
    <data name="currentDate">
    <method class="yourpackage.DataDemo"
    method="getCurrentDate"/>
    </data>
    so if you changed the name of the data provider to "foo":
    <data name="foo">
    <method class="yourpackage.DataDemo"
    method="getCurrentDate"/>
    </data>
    your el would look like this:
    uix.data.foo.time
    by the way the uix.data part tells UIX to look for
    a <data> element define in the <provider> section of
    your dataScope.
    For question #2, do you have the java file
    us.mn.state.dot.apptrack.security.CurrentDateBean on
    your classpath and is it compiled? You will get that
    warning if it is not on your classpath.
    Also you are incorrectly interpreting the example. What
    you are doing is trying to reference the actual bean
    object and its getTime() method. What you want to do
    is write a method data provider that returns your
    CurrentDataBean. so uix.data.currentDate would return
    a CurrentDateBean instance object. the .time part of the
    el expression would tell UIX to look for a method named
    getTime() and use that value.
    let me know if you have any more questions.

  • Binding data when using xml data files

    Hello,
    I am pretty new to Flex4 and hope you hang on with my question. MAny thanks:
    I built an application first with PHP connection into a database which essentially listed IP of my company in a grid.
    One could filter the IP depending of technology, type of Ip and so on.
    When clicking in the grid, the details with many more fileds would apprear. This was working niceley as I had my services defined and needed only to drag services in the right place and add here and there some changes in the code
    Now, I wanted to do the same with an xml file instead of a mySQL database so to deploy it a little easier.
    I have the grid and the filtering working nicely.
    But I cannot create the data binding for the details.
    Below is the code. See the line before last where I tested if I could access to the  descriptipn fuield in my arrayCollection (coming from my xml)
    CAn anyone help me, please
    many thanks in advance and best regards
    Peter
    <?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/flex/mx"
       applicationComplete="myServ.send()" width="900" height="500">
    <fx:Script>
    <![CDATA[
    import mx.collections.ArrayCollection;
    import mx.controls.Alert;
    import mx.events.ListEvent;
    import mx.rpc.events.FaultEvent;
    import mx.rpc.events.ResultEvent;
    import spark.events.TextOperationEvent;
    [Bindable]
    private var myIPList:ArrayCollection;
    protected function myServ_faultHandler(event:FaultEvent):void
    Alert.show("Something went wrong", "Cannot load data");
    protected function myServ_resultHandler(event:ResultEvent):void
    if(event.result.test.IP is ArrayCollection){
    this.myIPList = event.result.test.IP as ArrayCollection;
    }else{
    var buffer:ArrayCollection = new ArrayCollection([event.result.test.IP]);
    this.myIPList = buffer;
    this.searchInput.enabled = false;
    this.searchInputTechnology.enabled = false;
    this.searchInputProvider.enabled = false;
    // serach for IP
    protected function searchInput_changeHandler(event:TextOperationEvent):void
    this.myIPList.filterFunction = filterFunc;
    this.myIPList.refresh();
    private function filterFunc(item:Object):Boolean
    if(String(item.IP).toLowerCase().indexOf(this.searchInput.text.toLowerCase()) > -1){
    return true;
    }else{
    return false;
    //  Search for Technology
    protected function searchInputTechnology_changeHandler(event:TextOperationEvent):void
    this.myIPList.filterFunction = filterFuncTechnology;
    this.myIPList.refresh();
    private function filterFuncTechnology(item:Object):Boolean
    if(String(item.Technology).toLowerCase().indexOf(this.searchInputTechnology.text.toLowerCa se()) > -1){
    return true;
    }else{
    return false;
    //  Search for Provider
    protected function searchInputProvider_changeHandler(event:TextOperationEvent):void
    this.myIPList.filterFunction = filterFuncProvider;
    this.myIPList.refresh();
    private function filterFuncProvider(item:Object):Boolean
    if(String(item.Provider).toLowerCase().indexOf(this.searchInputProvider.text.toLowerCase() ) > -1){
    return true;
    }else{
    return false;
    protected function myDG_changeHandler(event:ListEvent):void
    Alert.show("I Clicked. It should now be possible to see details, damned");
    ]]>
    </fx:Script>
    <fx:Declarations>
    <s:HTTPService id="myServ" url="IP.xml" fault="myServ_faultHandler(event)" result="myServ_resultHandler(event)"/>
    </fx:Declarations>
    <mx:DataGrid id="myDG" change="myDG_changeHandler(event)" x="37" y="134" width="814" height="159" dataProvider="{this.myIPList}">
    <mx:columns>
    <mx:DataGridColumn headerText="IP" dataField="IP"/>
    <mx:DataGridColumn headerText="short description" dataField="detail"/>
    <mx:DataGridColumn headerText="type" dataField="type"/>
    <mx:DataGridColumn headerText="Provider" dataField="Provider"/>
    <mx:DataGridColumn headerText="Technology" dataField="Technology"/>
    </mx:columns>
    </mx:DataGrid>
    <s:HGroup x="33" y="74" width="152" height="41" verticalAlign="middle">
    <mx:Spacer width="100%">
    </mx:Spacer>
    <s:Label text="IP"/>
    <s:TextInput id="searchInput" change="searchInput_changeHandler(event)" width="103"/>
    </s:HGroup>
    <s:HGroup x="686" y="74" width="153" height="41" verticalAlign="middle">
    <mx:Spacer width="100%">
    </mx:Spacer>
    <s:Label text="Technology"/>
    <s:TextInput id="searchInputTechnology" change="searchInputTechnology_changeHandler(event)" width="94"/>
    </s:HGroup>
    <s:HGroup x="519" y="74" width="153" height="41" verticalAlign="middle">
    <mx:Spacer width="100%">
    </mx:Spacer>
    <s:Label text="Provider"/>
    <s:TextInput id="searchInputProvider" change="searchInputProvider_changeHandler(event)" width="94"/>
    </s:HGroup>
    <s:Label x="135" y="38" text="IP Road Map" fontSize="29" color="#524E4E"/>
    <s:TextArea id="myText" x="37" y="315" width="204" text="{this.myIPList}" height="164"/>
    <mx:Image x="33" y="18" width="74" height="57" id="STLogo" source="file:/Users/peterhirt/Pictures/stlogo.png"/>
    </s:Application>
    Here at tzhe end I append one record out of the xml files I used
    <?xml version="1.0" encoding="utf-8" ?>
    <test>
        <IP>
            <IP>USB2 PHY</IP>
            <detail>single port </detail>
            <type>USB</type>
            <Provider>TR&amp;D</Provider>
            <Technology>65lp</Technology>
            <maturity_status>MAT20</maturity_status>
            <status_date>Q4/09</status_date>
            <next_Maturity>MAT30</next_Maturity>
            <next_Date></next_Date>
            <HED>y</HED>
            <HED_criticality>2</HED_criticality>
            <HED_MAT20_request>Q4/09</HED_MAT20_request>
            <CCI></CCI>
            <CCI_criticality></CCI_criticality>
            <_CCI_MAT20_request></_CCI_MAT20_request>
            <APG></APG>
            <APG_criticality></APG_criticality>
            <APG_MAT20_request></APG_MAT20_request>
            <STE></STE>
            <STE_criticality></STE_criticality>
            <STE_MAT20_request></STE_MAT20_request>
            <IMS></IMS>
            <IMS_criticality></IMS_criticality>
            <IMS_MAT20_request></IMS_MAT20_request>
        </IP>

    Hi Kevin,
    the current XML export version is admittedly not suitable for handling HTML data, as it doesn´t put any data inside CDATA sections.
    How can I strip out this HTML using the XML export?
    I´m not aware of this functionality, but I´m sure it would have to be integrated into the respective "includes" files in order to become effective.
    However, you might consider using the manual "converting database queries to XML" approach explained on this page: http://labs.adobe.com/technologies/spry/samples/utils/query2xml.html -- this will give you notably more freedom to e.g. preprocess some data before it´s getting stuffed inside an XML node.
    I am pulling RSS feeds from news sites and storing the rss items in a database
    Would it be possible to rather sanitize the data before it´s getting stored in the database ?
    Cheers,
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • Performance issue during SharePoint list data bind to html table using Ajax call(Rest API)

    Hello,
    I am having multiple lists in my SharePoint Site. I am using SharePoint REST APIs to get data from these lists and bind a HTML Table. Suppose, I have 5 lists with 1000 records each, I am looping 5000 times to bind each row(record) to this html table. This
    is causing performance issue which is taking a very long time to bind. 
    Is there any way So that I can reduce this looping OR is there any better approach to improve the performance. Please kindly Suggest.  Thank you for your help :)
    Warm Regards,
    Ratan Kumar Racha

    Hi Racha,
    For handling large data binding in a page,
    AngularJS would be a great option if you might would worry about the performance.
    You can get more information about using AngularJS from the two links below:
    https://www.airpair.com/angularjs/posts/angularjs-performance-large-applications
    http://www.sitepoint.com/10-reasons-use-angularjs/
    Best regards
    Patrick Liang
    TechNet Community Support

  • UIX Data Binding sorting

    I set up a UIX drop down data binding field on my application which works great, now I need to make the list sorted but i do not know where and how to do this. Does anyone know?

    You've got to use the BC4J bindings; or build a bean, or a
    DataObjectList which present your data. Take a look at the BC4J chapter
    of the Developer's Guide.

  • Choice Subform Set Data Binding

    We would like to use the choice subform set to display different subforms based on whether a hasScore value is set to YES or NO.  This will be done repeatedly in the form so we want to try and map all the choice subform sets that use the hasScore value to the same data instance in our XML.  When I attempt do this only the first choice subform set works.  The rest default to the first subform in the choice subform set.  The only way I get the rest of the choice subform sets to work is to duplicate the data instance in our XML to match the number of choice subform sets in the form.
    Any way to get all the choice subform sets to use the same data instance in the XML?  Or is there a better way to do this without resorting to javascript to show/hide the subforms?  The choice subform set looks nice but we don't want to duplicate the XML data to get it to work.
    What I have to do when I have 3 choice subform sets that use the hasScore value:
    <?xml version="1.0" encoding="UTF-8"?>
    <
    loan_info>
      <score>
        <hasScore>YES</hasScore>
      </score>
      <score>
        <hasScore>YES</hasScore>
      </score>
      <score>
        <hasScore>YES</hasScore>
      </score>
      <scoreValue>742</scoreValue></
    loan_info>
    What I would like to when I have 3 choice subform sets that use the hasScore value:
    <?xml version="1.0" encoding="UTF-8"?>
    <
    loan_info> 
      <score>
        <hasScore>YES</hasScore>
      </score>
      <scoreValue>742</scoreValue></
    loan_info>

    Paul,
    I couldn't figure out how to reference the dataset value using the subform set.  Not real easy to figure out with the UI for the subform set.  Would prefer to just be able to put the JavaScript in the subform set selection code without having to do the dataset selection first.  Makes some pretty strange looking data bindings for the subforms that are part of the subform set.  Probably could use some more documentation on how to set these bindings up in the Designer help.
    We ended up going with a top level ready:form script that could check the credit score Y/N value:
    loan_info::ready:form - (JavaScript, both)
    if (xfa.datasets.data.loan_info.form_extensions.forminator.hasCreditScore.value == "Y")
         loan_info.Page1.Score.presence = "visible";
         loan_info.Page1.NoScore.presence = "hidden";
         xfa.resolveNode("loan_info.Page1.#subform[3].Score[1]").presence = "visible";
         xfa.resolveNode("loan_info.Page1.#subform[3].NoScore[1]").presence = "hidden";
         xfa.resolveNode("loan_info.Page1.Score[2]").presence = "visible";
         xfa.resolveNode("loan_info.Page1.NoScore[2]").presence = "hidden";
    else
         loan_info.Page1.Score.presence = "hidden";
         loan_info.Page1.NoScore.presence = "visible";
         xfa.resolveNode("loan_info.Page1.#subform[3].Score[1]").presence = "hidden";
         xfa.resolveNode("loan_info.Page1.#subform[3].NoScore[1]").presence = "visible";
         xfa.resolveNode("loan_info.Page1.Score[2]").presence = "hidden";
         xfa.resolveNode("loan_info.Page1.NoScore[2]").presence = "visible";
    Too bad we couldn't use the subform set.  I liked seeing them in the hierarchy - makes ir pretty easy to see what's going on vs. JavaScript buried in the top level ready:form event.
    We also had a case where we would have needed to turn on two of the three subforms in the subform set.  Might want to consider multiple selection for the subform set in future versions.
    Thanks,
    Steve

  • HT4436 I am using IOS 4.1 in Ipod touch. I would like to take my data back using icloud. I am not able to enable icloud in to my ipod touch. please help me for the same.

    I am using IOS 4.1 in Ipod touch. I would like to take my data back using icloud. I am not able to enable icloud in to my ipod touch. please help me for the same. Basically I am trying to take back to upgrade my ios to 5 or 6 version.

    You can't back up to iCloud until you update to iOS 5 or higher.  You will have to back up your iPod on your computer using iTunes.  Update iTunes on your computer to the latest version, then connect your iPod to your computer, open iTunes, if iTunes give you a pop-up asking if you want to update your iPod, decline.  Then click on the name of your iPod in iTunes, go to File>Devices>Transfer Purchases to transfer any purchased media to your iTunes library.  Next, go to the Summary tab of your iTunes sync settings and click on Back Up Now to back up your iPod on your computer.
    When it's done backing up, click on Check for Update (or Update) on the Summary tab of your iTunes sync settings.  Allow your iPod to update, and leave it connected to your computer.  At the end, it will restart and give you the option to restore to the iTunes backup you made earlier.  Choose this option to restore your backup and sync your apps and other iTuens media to your phone.
    This process is outlined in this article: http://support.apple.com/kb/HT4972, under "If you are attempting to update using a Mac or PC with which you normally sync".

  • I want to use data binding in jsp,just like microsoft ASP's RDS,how can I d

    I want to use data binding in jsp,just like microsoft ASP's RDS,how can I do?

    I can't claim to know exactly what RDS binding involves, but if my hunch is correct, you can get very similar behavior by using JSTL and define your data source using JNDI. See the JSTL spec, my article series about JSTL, or a JSP/JSTL book (such as mine ;-) for details:
    http://java.sun.com/products/jsp/jstl
    http://www.onjava.com/pub/a/onjava/2002/08/14/jstl1.html
    http://www.onjava.com/pub/a/onjava/2002/09/11/jstl2.html
    http://www.onjava.com/pub/a/onjava/2002/10/30/jstl3.html
    http://www.thejspbook.com/

Maybe you are looking for