How to create a list with auto-updating rows?

Hi
I'm working on a project in flex (first time) and I was wondering if it's possible to create a datalist that's updating itself when the cursor clicks away from the row? and if the row is empty to delete the row from the database?
Haven't found any usefull information on this, hope someone can help or push me in de right direction.
Where's the best way to find help on flex btw?
Damian

You can find flex help at this link
http://livedocs.adobe.com/flex/3/html/help.html?content=data_access_4.html
If this post answers your question or helps, please kindly mark it as such.

Similar Messages

  • How can i install shockwave with auto updates disabled?

    how can i install shockwave with auto updates disabled?
    i need to push out shockwave to all our machines and i need to have autoupdates disabled? whats the trick?

    I ran with native io enabled and now i need to see how things happen with native io disabled.I am trying to understand the various aspects of the server.
    Can you help me? How to set the default queue and application specific queues , and oofcourse socket readers in the case native performance packs are not used?
    Please, I will be very grateful.

  • How to create editable table with one empty row ?

    I'm looking for solution how to create editable table with one empty row using ADF BC. I have seen this solution in application that was created in JHeadstart and it's very well idea to use it insead of creation form.

    hammm, i do it this:
    drop the VO on the page, select Table->ADF Table....
    so, drop the botton create, from de VO->operations->create (the firts), and right botton (mouse) Edit binding....
    in Data collection select the VO, in Select an action select CreateInsert
    luck

  • How to create a list with customised listItem

    I want to create a list with 2 icons and text. I want to display one icon at the left, one icon to the right and text at center. Everytime my icon images might change. I want to know how create this type of list.

    Ok, I managed to create a Text Bullet "Chapter" in level 1 but how can I join the numbering at level 2 on the same line ?
    Pierre

  • How to create a table with auto number?

    I want to create a table with a column default to increasing integer. The first thought came up to me is to use sequence. I find in google the following create statement create table etl_stats1 (run_time date,arr_rows int,lid int default nextval('etl_req'));get ORA-04044: procedure, function, package, or type is not allowed here.
    There are threads metioned using trigger to do the job. But does what not support default to a sequence, it appears such a nature way.

    You need to create a sequence and a trigger:
    SQL> create table etl_stats1 (run_time date,arr_rows int,lid int)
      2  /
    Table created.
    SQL> create sequence etl_seq;
    Sequence created.
    SQL> create or replace
      2    trigger etl_stats1_bir
      3    before insert
      4    on etl_stats1
      5    for each row
      6    begin
      7        select etl_seq.nextval into :new.lid from dual;
      8  end;
      9  /
    Trigger created.
    SQL> insert into etl_stats1 (run_time,arr_rows) values(sysdate,99)
      2  /
    1 row created.
    SQL> select * from etl_stats1
      2  /
    RUN_TIME   ARR_ROWS        LID
    15:38:41         99          1
    SQL> SY.

  • How to create a list with my need?

    Hi,all
    I want create a list for my several reports,
    The list have all report's name
    when i click one of reports,page submited,
    And list always displayed in the page,no change,
    So if I want submit another report,i neednot return main tab,
    My english is poor ,Wish my expression is clear
    Anyone help me ,very thanks.
    saven

    Hi Saven,
    You can create a list in page 0 as suggested by Jari and choose the display point as you like. Items, regions and other attributes in page 0 works like a master page that can be accessed from any other page.
    Hope this make sense.
    Regards,
    Tajuddin
    web: http://aspblog.whitepagesbd.com

  • How to create a subform with several initialized rows?

    I have a repeating subform in my form that should start with several initialized rows.
    I can create several empty rows by setting the binding to "repeat subform for each data item" and setting the "min count", but I'd like to have values in one of the columns so this doesn't get me there.
    I can create multiple instances of my named subform and initialize the value for the column in question, but then if I have the "repeat subform for each data item" checked I get additional dups of all but the first row and the delete button (with click action "this.parent.instanceManager.removeInstance(this.parent.index);") and add button (click action "_rates.addInstance(1)") behave erratically.  By this I mean the add button sometimes adds rows with values that have been deleted previously, and the delete button sometimes pops up an alert saying something like "topmostSubform[0]:Page1[0]:rates[10]:delete_button[0].click Index value is out of bounds".
    There is no binding to a data source where I could pull the values for the column I wish to initialize.  I feel I'm close, if only I could find the correct settings for the binding palette.
    Thanks for any suggestions!

    Thank you for the suggesting Srini.  I'm trying to implement but struggling with the scripting for the buttons and the binding settings.
    I've tried the following for the click action for the delete buttons in each row:
         this.parent.instanceManager.removeInstance(this.parent.index);
    and this for the click action for the add button under the table:
         rate_table._Row1.addInstance(true);
    When I click on delete the javascript debugger pops up and tells me:
         GeneralError: Operation failed.
         XFAObject.removeInstance:1:XFA:topmostSubform[0]:Page1[0]:rate_table[0]:Row2[0]:delete_bu tton[0]:click
         The element [min] has violated its allowable number of occurrences.
    and when I click the add button the debugger tells me:
         General Error: Operation failed.
         XFAObject:addInstance:1:XFA:topmostSubform[0]:Page1[0]:#subform[16]:add_rates_button[0]:c lick
         The element [max] has violated its allowable number of occurences.
    Sounds like my binding settings are wrong, but I haven't been able to determine a correct combination.  Can you assist?
    Thanks in advance!

  • How to create a list with "Chapter" before the numbering ?

    Hello Apple Support Communities.
    I would like to create a automatic list in Pages with "Chapter" or "Part" set before the numbering.
    Exemple:
              Chapter 1. Blabla
                   Part A. Blabla
              Chapter 2. Blabla
    Thanks

    Ok, I managed to create a Text Bullet "Chapter" in level 1 but how can I join the numbering at level 2 on the same line ?
    Pierre

  • How to create editable form with non-updatable vo

    Hi,
    i need to create a new form on non-updatable VO.
    My requirement is: i have Data base View, based on that view i have created VO, based on this VO i need to create new form, when ever i submit a request, web service will invoke and that validate the data and sends to the data base.
    when ever i drag drop the vo i couldn't able to enter any data bcoz all the data are coming in the form of output boxes.
    can any one help how can i create this.

    Check the setting of your viewobject attributes settings, most probably they are 'updatable never', set them to "updatable always".
    This way you can drag the view as an editable form.
    About sendind data to the database, i guess you have an idea how to do it afterwards :)

  • How to create View Object with Multiple Updatable Entity Objects

    I want both the entities in the view object to support creating new rows but when i give create insert it allows to insert only on the parent and not the child. I found this link
    http://docs.oracle.com/cd/E21043_01/web.1111/b31974/bcadvvo.htm#CEGCAJCI which overrides the exiting classes. but i would like to do it declarative . Is there any other way to do it?
    I am using Jdeveloper 11g version 2.
    Thanks in advance,
    Rakesh

    But when i tried to add a new row it showed this error
    oracle.jbo.AttrValException: JBO-27014: Attribute LookupTypeId1 in FoundationModuleAM.VikLookupTypeBaseVO is required.
         at oracle.jbo.server.JboMandatoryAttributesValidator.validate(JboMandatoryAttributesValidator.java:224)
         at oracle.jbo.server.EntityDefImpl.validate(EntityDefImpl.java:3095)
         at oracle.jbo.server.EntityCache.validate(EntityCache.java:3599)
         at oracle.jbo.server.EntityImpl.validateEntity(EntityImpl.java:2285)
         at oracle.jbo.server.EntityImpl.validate(EntityImpl.java:2464)
         at oracle.jbo.server.DBTransactionImpl.validate(DBTransactionImpl.java:4515)
         at oracle.insurance.viking.foundation.model.common.VikingDBTransactionImpl.validate(VikingDBTransactionImpl.java:46)
         at oracle.jbo.server.DBTransactionImpl.commitInternal(DBTransactionImpl.java:2008)
         at oracle.jbo.server.DBTransactionImpl.commit(DBTransactionImpl.java:2352)
         at oracle.insurance.viking.foundation.model.common.VikingDBTransactionImpl.commit(VikingDBTransactionImpl.java:37)
         at oracle.adf.model.bc4j.DCJboDataControl.commitTransaction(DCJboDataControl.java:1590)
         at oracle.adf.model.binding.DCDataControl.callCommitTransaction(DCDataControl.java:1415)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1428)
         at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2169)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:731)
         at oracle.jbo.uicli.jui.JUActionBinding.actionPerformed(JUActionBinding.java:193)
         at oracle.jbo.uicli.controls.JUNavigationBar.doAction(JUNavigationBar.java:412)
         at oracle.jbo.jbotester.NavigationBar.doAction(NavigationBar.java:112)
         at oracle.jbo.uicli.controls.JUNavigationBar$NavButton.actionPerformed(JUNavigationBar.java:118)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
         at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
         at java.awt.Component.processMouseEvent(Component.java:6289)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
         at java.awt.Component.processEvent(Component.java:6054)
         at java.awt.Container.processEvent(Container.java:2041)
         at java.awt.Component.dispatchEventImpl(Component.java:4652)
         at java.awt.Container.dispatchEventImpl(Container.java:2099)
         at java.awt.Component.dispatchEvent(Component.java:4482)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
         at java.awt.Container.dispatchEventImpl(Container.java:2085)
         at java.awt.Window.dispatchEventImpl(Window.java:2478)
         at java.awt.Component.dispatchEvent(Component.java:4482)
         at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:644)
         at java.awt.EventQueue.access$000(EventQueue.java:85)
         at java.awt.EventQueue$1.run(EventQueue.java:603)
         at java.awt.EventQueue$1.run(EventQueue.java:601)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
         at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
         at java.awt.EventQueue$2.run(EventQueue.java:617)
         at java.awt.EventQueue$2.run(EventQueue.java:615)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:614)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

  • How to create a node with attributes at runtime in webdynpro for ABAP?

    Hi Experts,
             How to create a node with attributes at runtime in webdynpro for ABAP? What classes or interfaces I should use? Please provide some sample code.
    I have checked IF_WD_CONTEXT_NODE_INFO and there is ADD_NEW_CHILD_NODE method. But this is not creating any node. I this this creates only a "node info" object.
    I even check IF_WD_CONTEXT_NODE but i could not find any method that creates a node with attribute.
    Please help!
    Thanks
    Gopal

    Hi
       I am getting the following error while creating a dynamic context node with 2 attributes. Please help me resolve this problem.
    Note
    The following error text was processed in the system PET : Line types of an internal table and a work area not compatible.
    The error occurred on the application server FMSAP995_PET_02 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: IF_WD_CONTEXT_NODE~GET_STATIC_ATTRIBUTES_TABLE of program CL_WDR_CONTEXT_NODE_VAL=======CP
    Method: GET_REF_TO_TABLE of program CL_SALV_WD_DATA_TABLE=========CP
    Method: EXECUTE of program CL_SALV_WD_SERVICE_MANAGER====CP
    Method: APPLY_SERVICES of program CL_SALV_BS_RESULT_DATA_TABLE==CP
    Method: REFRESH of program CL_SALV_BS_RESULT_DATA_TABLE==CP
    Method: IF_SALV_WD_COMP_TABLE_DATA~MAP_FROM_SOURCE_DATA of program CL_SALV_WD_C_TABLE_V_TABLE====CP
    Method: IF_SALV_WD_COMP_TABLE_DATA~MAP_FROM_SOURCE of program CL_SALV_WD_C_TABLE_V_TABLE====CP
    Method: IF_SALV_WD_COMP_TABLE_DATA~UPDATE of program CL_SALV_WD_C_TABLE_V_TABLE====CP
    Method: IF_SALV_WD_VIEW~MODIFY of program CL_SALV_WD_C_TABLE_V_TABLE====CP
    Method: IF_SALV_WD_COMPONENT~VIEW_MODIFY of program CL_SALV_WD_A_COMPONENT========CP
    My code is like the following:
    TYPES: BEGIN OF t_type,
                CARRID TYPE sflight-carrid,
                CONNID TYPE sflight-connid,
             END OF t_type.
      Data:  i_struc type table of t_type,
      dyn_node   type ref to if_wd_context_node,
      rootnode_info   type ref to if_wd_context_node_info,
      i_node_att type wdr_context_attr_info_map,
      wa_node_att type line of wdr_context_attr_info_map.
          wa_node_att-name = 'CARRID'.
          wa_node_att-TYPE_NAME = 'SFLIGHT-CARRID'.
          insert wa_node_att into table i_node_att.
          wa_node_att-name = 'CONNID'.
          wa_node_att-TYPE_NAME = 'SFLIGHT-CONNID'.
          insert wa_node_att into table i_node_att.
    clear i_struc. refresh i_struc.
      select carrid connid into corresponding fields of table i_struc from sflight where carrid = 'AA'.
    rootnode_info = wd_context->get_node_info( ).
    rootnode_info->add_new_child_node( name = 'DYNFLIGHT'
                                       attributes = i_node_att
                                       is_multiple = abap_true ).
    dyn_node = wd_context->get_child_node( 'DYNFLIGHT' ).
    dyn_node->bind_table( i_struc ).
    l_ref_interfacecontroller->set_data( dyn_node ).
    I am trying to create a new node. That is
    CONTEXT
    - DYNFLIGHT
    CARRID
    CONNID
    As you see above I am trying to create 'DYNFLIGHT' along with the 2 attributes which are inside this node. The structure of the node that is, no.of attributes may vary based on some condition. Thats why I am trying to create a node dynamically.
    Also I cannot define the structure in the ABAP dictionary because it changes based on condition
    Message was edited by: gopalkrishna baliga

  • How to create a table with a dynamic amount of columns

    Hi, all!
    Thare is a tutorial at javaFX documentation page. This example describes how to make tableView, if you have some certain java class, which can tell you which columns you are going to have. (That is a Person class in this example).
    But what if i do not have any specific class, and number of columns can vary from time to time? In my case i have such data structure:
    class TableData{
        List<Row> rows; //A list with all my rows i need to have in my table
    class Row{
        List<Column> columns; //Cells\Columns for every row.
    class Column{
        Attribute attr; //Each column - is somethig like a wrapper for the real data i need to show in a cell;
    class Attribute{ //My precues data
        String name;
        SupportingInfo info;
    class SupportingInfo{//Some supporting fields...
        String name;
        String value;
        //...etc....
    }So, my case is very similar to [this one|http://blog.ngopal.com.np/2011/10/19/dyanmic-tableview-data-from-database/] . The only differents is that data from the case above is not binded with its representation in javaFX table (so, even if some one will make extra controls to edit this data in a tableView, the actual object with that data will never know about it.), because it(data) goes to the table like some strings, not like some objects;
    So, what do i need - is to push data to the table (like that: table.setItems(tableData)), set some set Factories, to give user ability to edit data, and to have this edited data in my tableData object;
    Here are some code i've tried to make for this purpose:
    //prepare my table
    private void createTableHeader(TableView table, List<Attribute> ias) {
        int i = 0;
        for (final Attribute ia : ias) {
            final int j = i;
            i++;
            TableColumn tc = new TableColumn(ia.getName());
            tc.setSortable(true);
            tc.setCellValueFactory(new Callback<CellDataFeatures<List<Attribute>, String>, ObservableValue<String>>() {
                @Override
                public ObservableValue<String> call(CellDataFeatures<List<Attribute>, String> arg0) {
                    if(arg0.getValue().get(j).getSupportingInfo() == null){
                        arg0.getValue().get(j).setSupportingInfo(new SupportingInfo());
                    return new SimpleObjectProperty(arg0.getValue().get(j),"value");
            table.getColumns().add(tc);
    //loading some data to my tableView
    private void createTableBody(TableView curTable, List<Row> rows) { 
        ObservableList<List<Attribute>> data = FXCollections.observableArrayList();
        for (Row row : rows) {
            data.add(row.getColumns());
        curTable.setItems(data);
    //this one is to define some extra controls for editing data in a table by users
    private void makeCellFactory(TableColumn curTableCol, final Attribute templateIa, final Document doc) {
        curTableCol.setCellFactory(new Callback<TableColumn, TableCell>() {
            public TableCell call(TableColumn p) {
                final EditingCell cell = new EditingCell(templateIa, doc);
                return cell;
    }But, as a result, i have just empty rows in my table, with an ability to click some cell and recieve table editing controls. But there is not defult values in by table; What am i doing wrong in my code?
    Edited by: 929064 on 21.09.2012 2:24
    Edited by: 929064 on 24.09.2012 8:26
    Edited by: 929064 on 24.09.2012 8:27

    I put an example up on this thread No DataGrid component? with a TableView displaying values from a non-JavaFX aware data model. It might help get you started. This example is not editable, to make your table editable you would need to update the data model directly when editing is complete.
    Note that if you're building the data model from scratch, there's no need for the listener-notification to be built by hand, as I did in the example. Your data model can directly use the same JavaFX collections instances the table is using.

  • SUN .... When....  JRE 1.4.0 international with auto update

    SUN .... When.... JRE 1.4.0 international with auto update
    When will you deliver .........
    We have a dead line and our product needs the international version 1.4 to be updated on our exsiting user base, one of our customers has over 700 workstations.
    If the solution is to manually dowload and install this version then Web Start totally fails as a web centric solution.
    I see that creating our own servlet breaches SUN's license agreement, so give us a developer servlet we can use.

    The auto download servlet supports both international and us-only versions of Java 1.4.0.
    Java Web Start includes the current locale in the request to the servlet, and it returns the
    US only version if the locale is en_US , or the international version otherwise.
    Curently there is no way to get the servlet to download the international version when the
    clients locale is en_US.Sorry but havent you just anwsered the question I put, either the servlet supports international clients or it dosent and your anwser just puts more wood on the fire, it dosent, but it could.
    Also we recognize that there is a problem when an application needs the international version, and >>the client already has the US version installed. In this case Java Web Start will not attempt
    to contact the servlet since it thinks it has an appropriate version allready.Also if you client requires an international version of the JRE it is because it requires that version period, hence if the version tag within the JNLP file specifies JRE1.4 international, then it dosent matter what Web Start may or may not think, the JNLP file written for the application by the author should determine its fate.
    The only reason Web Start should determine locale on a target machine would be the text displayed for the dialog interface between the end user.
    Its a simple case of checking do I have 1.4 international, "Yes or No", at this point I dont care if 1.4 English is installed, or locale is English, JNLP file asked Web Start, if 1.4 international was installed, "No", Ok then call servlet and request 1.4 international. Simple....
    The JRE license agreement allows customers to repackage and redistribute the JRE.
    Many customers are redistributing a JRE with their app. Im sure many are, please read my previous post , if you can get sun to offically confirm this, then I stand corrected.

  • I need your expert opinion on how to create a map with multiple conditions.

    Hello.
    I need your expert opinion on how to create a map with multiple conditions.
    I have a procedure (which i cannot import or re-create in OWB due to the bug), so i am trying to create a map instead :-(
    How can i create a cursors within the map?
    My function creates table and cursor.
    Then it will have to check for duplicates in the tables (the one created and another table) - the criteria for finding duplicates is a number of fields.I then need to place few different conditions (if some attributes are not available) and it has to load cursor based on this conditions. The next step is to fetch the data into the cursor based on what attributes are missing.
    The next thing it will do is insert the data into table (if record doesn't exist), output the error in separate table is record is corrupted, or update the record with changed information.
    In short i need to re-create match / merge but with conditions, iterations etc 'built into' it.
    I can read up on available functions - it's just what would be the best options? and what would be the best approach to do so?
    In my function i use %rowtype - but cannot use it in owb - so what would be the alternative? i don't really want to create a lot of variables and then have a nightmare of maintaing it. are there any tips regarding this?
    having looked through Oracle dedupe - it's not really what i need because it is just DISTINCT.
    I would appreciate any help / advise on this.
    Thank you very much

    thanks a lot for your reply - i will look into this option :-)
    it is a bit more complicated now as i have to re-create the match / merge and then somehow 'tweak' it to achieve the result i need.
    At the moment i am looking to breakdown the package into smaller chunks 'functions' and try creating the map that way.
    Anyway, thank you very much for your suggestion.

  • How to Create Business Partner with  fix number in t-code :BP

    Dear SIr,
    Normally I will set number range for auto  to create Business Partner. In case , If we would like to crea How to Create Business Partner with  fix number in t-code :BP , howe to do?
    Please kindly advise.
    THnak you and best regards,
    Vimol

    Dear Shobhit,
    How to put the thread as you mentioned.
    Best regards,

Maybe you are looking for

  • Fixed Purchase Order quantity with manual PO creation??

    Hi, Is there any way to define a fixed PO quantity on the inforecord or the material master and have SAP automatically insert this quantity on the PO. I know it is possible to have SAP determine the vendor from e.g. a quota arrangement set-up and hav

  • Bonded Warehouse to Warehouse movement

    Gurus, For GTS 7.2, What is the best approach to transfer materials from one bonded warehouse to another (one warehouse storage location to another warehouse storage location)  Also, what is the best way to sell goods out of bonded status to 3rd part

  • Enhancement in ME55

    Hi everybody, i´m looking for any kind of exit ( customer exit, badi, etc) in the trx ME55. I have to make some validations when a requisition is released by the trx ME54N (it´s solved) or via Trx ME55 ( Here is the trouble). I can´t find an enhancem

  • [Solved] PKGBUILD for a Wine driven program - read&write permissions

    Hello everybody, I have stumbled upon a tricky problem when following these guidelines: https://wiki.archlinux.org/index.php/Wi - bin_script My problem is: The program needs to read a big folder which should stay in /opt and ist linked to ~/. Copying

  • ** *** *** W A R N I N G *** *** ***

    If you 'phone BT on an 0800 number and get transferred from India to a call center in the UK, check you don't get charged for a call to the UK call center on you phone bill.... I did, I was charged for them doing that twice.....