JList data model, MVC, is there an example?

I have a JList, constructed from an AbstractListModel based on an ArrayList, tucked into a JScrollPane. The data model changes frequently en masse, not element by element. I have studied the API documentation of ListModel, ListDataListener, and ListDataEvent. I want to update my Jlist without reconstructing the whole thing, JScrollPane and all, and adding that JScrollPane to a JFrame's content pane in a method called from a distant class. That approach is just not working in the details like screen redraws, no matter the combination of validate(),repaint(), and show() calls I make.
The data in the ArrayList is there, I'm just trying to notify the AbstractListModel in the JList in the JScrollPane that the data has changed, so presumably it can take care of displaying those changes. The search function for similar posts on the forum is not working for me, and I am running out of resources to study on my own. A set of tutorials by by Dick Baldwin
http://www.phrantic.com/scoop/onjava.html
has been the most helpful by far in explaining MVC and its application to JList, but he says,
"fortunately we can avoid having to deal with the complexity of creating and maintaining a list of registered listener objects, and invoking listener mithods on those objects, by extending AbstractListModel to create our alternative data model..." I don't want complexity either, but I do want to update a data model.
I need an example of how to use these methods, like addListDataListener(ListDataListener l), fireContentsChanged(Object source,int index0, int index1),
public ListDataEvent(Object source,int type, int index0, int index1)
I can't believe that what I want to do is that uncommon or esoteric. Maybe it's just that I'm not seeing something obvious.
Any pointers?

Stated differently:
Here's the API and my error message and my code: is there a way to have just working code and the API, without the compiler error? (recs in the code is my data model, allRecs is the ArrayLIst it's based on)
API
fireContentsChanged
protected void fireContentsChanged(Object source,
int index0,
int index1)
AbstractListModel subclasses must call this method after one or more elements of the list change. The changed elements are specified by a closed interval index0, index1, i.e. the range that includes both index0 and index1. Note that index0 need not be less than or equal to index1.
Parameters:
source - The ListModel that changed, typically "this".
index0 - One end of the new interval.
index1 - The other end of the new interval.
See Also:
EventListenerList, DefaultListModel
error
C:\My Documents\Java\CIS 290\hw2\ConnectionHandler.java:173: fireContentsChanged(java.lang.Object,int,int) has protected access in javax.swing.AbstractListModel
recs.fireContentsChanged(recs,0,allRecs.size());
codepublic void handleServerMessages(DataInput in)
    done=false;
    int command =0;
    try
        command = in.readInt();
      catch(IOException e)
        e.printStackTrace();
      switch(command)
        case FULLPACKET:{handleFullPacket(in);} break;
        case PARTIALPACKET:
          initializeAllRecs();
          handlePartialPacket(in);
        } break;
        case ALREADYEXISTS: {;} break;
        case DOESNTEXIST: {;} break;
        case BYE: {done = true;} break;
        default: {;}
      recs.fireContentsChanged(recs,0,allRecs.size());
  }

Similar Messages

  • How to use NetworkConstraint in Network Data Model?

    e.g. In a transportation application, you may drive from Node1 to Node2 along Link12, and from Node2 to Node4 along Link24, but you can not 'turn-left' from Link12 to Link24, how to restrict this in Oracle Spatial Network Data Model?
    Is there any examples?
    Thanks a lot.

    The only way I know to do it, is to have a more complex node model. Instead of a simple node joining links 12 and 24, you need several at that point that link the streets. For example, with a standard four-way intersection, each end of the streets would have a node (warning CRUDE drawing):
    ..A
    B.+.C
    ..D
    Links between those nodes could have directional restrictions, or not even exist at all between any two. So, you could set it up such that From D to A and B to C you can go either way. For right turns, D to C, C to A, A to B, and B to D are directional. For left turns, C to D, A to C, and B to A are directional, with no D to B link existing.
    Hope that makes sense.

  • Custom Reports Data Model - can't report on custom dictionaries

    Custom Reports Data Model - can't report on custom dictionaries
    In QA and Prod I see custom dictionaries in the Custom Reports Data Model, in Test there are none.
    Dictionaries and Sevices marked Reportable are not showing up under Dictionaries and Services Dimensions.
    I rerun the ETL and the scheduled tasks, but no luck. any suggestions?

    Do you see any error when you run the ETL, i.e. the Java ETL embedded with the app server? 

  • Publish data model with designer

    Hi,
    so far I used ERwin for data modelling. ERwin can generate HTML output consisting of the graphical data model plus hyperlinks on the tables. If you click on a table a report pops up with all details, e.g. table and column comments.
    I find this very useful to publish the data model.
    Is there something similar available with Oracle Designer?
    I found this announcement, but no product: http://otn.oracle.com/products/designer/pdf/ROB_Announce.pdf
    Best Regards,
    Jens

    If you have any recent release of Designer installed, then you have the ROB automatically installed. Select your Start menu in Windows and then navigate through your menus to the Designer sub menu and you'll see a link for setting up the ROB.
    The ROB was made available as part of Designer from March 2003. The lastest release of Designer, viz Designer 10g (9.0.4.4) and the equivalent 9i and 6i releases, all now avialable on OTN, have additional support for the ROB. This offers the ability to save and ERD or Server Model Diagram directly to the ROB.
    You do need to add the "hotpost" functionality manually. The ROB help gives a step by step apporach on adding these hotspots. There are a number of demos on the Designer demo page on using the ROB and configuring the App Server to use it. http://otn.oracle.com/products/designer/demos.htm
    Regards
    Sue

  • SQL Developer Data Modeler Information Flow descriptions

    Hello
    I am new to SQL Developer Data Modeler. Is there a way to display on the Data Flow Diagram the descriptions on the Information Flow lines.
    Regards
    Ade

    1) Is there a cross reference report so that I can check my information structures on the DFD diagram with the attributes defined at Logical Model diagram?you can use "File>Export>To Reporting Schema" functionality to export your design into Oracle database. Two tables there give usage of attributes/entities in processes - DMRS_PROCESS_ATTRIBUTES and DMRS_PROCESS_ENTITIES. look for "reports\Reporting Schema diagrams" directory under installation of Data Modeler - there are PDF files with diagrams of reporting schema tables.
    2) How can I create a copy (synonym) for any of my information stores or external agents on the same DFD diagramgraphical synonyms are supported only for objects in Logical and Relational models.
    Philip

  • Logical Vs Physical Data Model

    Hi guys
    What is the difference between logical data model and physical data model.

    I assume you are talking about ERwin.
    In short,
    Logical data model is non-database specific model you can apply it to any database by convert it to target physical data model.
    Physical data model is database specific, for example, column data type, physical storage parameter, SQL syntax etc.

  • Trouble saving Data Modeler design 4.0EA3

    Hello,
    I'm having trouble saving a Data Modeler design.  I can create and import tables into a physical model; however, when i save the model (File > Data Modeler > Save) it doesn't appear to be saved correctly since the resulting .dmd file is 0 bytes.  If i close the design and reopen it, none of the tables that i created appear.
    I'm using version  SQL Developer Version 4.0.0.13.30 on Windows 7.
    Thanks,
    Pete

    i don't see any recent errors in the datamodeler.log file.  the only entries for the last 2 days are:
    2013-11-12 11:04:52,116 [AWT-EventQueue-0] INFO  DataModelerAddin - Oracle SQL Developer Data Modeler 4.0.0.825
    2013-11-12 11:15:12,672 [AWT-EventQueue-0] INFO  DataModelerAddin - Oracle SQL Developer Data Modeler 4.0.0.825
    2013-11-12 11:26:59,517 [AWT-EventQueue-0] INFO  DataModelerAddin - Oracle SQL Developer Data Modeler 4.0.0.825
    2013-11-12 16:54:18,313 [AWT-EventQueue-0] INFO  DataModelerAddin - Oracle SQL Developer Data Modeler 4.0.0.825
    2013-11-13 10:44:03,694 [AWT-EventQueue-0] INFO  DataModelerAddin - Oracle SQL Developer Data Modeler 4.0.0.825
    2013-11-13 10:49:26,093 [AWT-EventQueue-0] INFO  DataModelerAddin - Oracle SQL Developer Data Modeler 4.0.0.825
    2013-11-13 11:08:11,679 [AWT-EventQueue-0] INFO  DataModelerAddin - Oracle SQL Developer Data Modeler 4.0.0.825
    if run sqldeveloper\sqldeveloper\bin\sqldeveloper.exe, the only message in the console is:
    LOAD TIME : 205
    no other messages.
    I have 3 different builds of sql developer 4.x - they all have this problem.  My 3.2 build does not have this problem.  So, next, i installed the Data Modeler standalone version (4.0.0.825) and created a physical model with just one table - and i was able to save it!  The .dmd had the following content (not 0 byte):
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <OSDM_Design class="oracle.dbtools.crest.model.design.Design" name="test_dm_only" id="986F3685-3223-BAF6-8D69-6C2C4C52718E" version="3.5">
    <createdBy>HillsP01</createdBy>
    <createdTime>2013-11-13 16:36:18 UTC</createdTime>
    <ownerDesignName>test_dm_only</ownerDesignName>
    <capitalNames>false</capitalNames>
    <designId>986F3685-3223-BAF6-8D69-6C2C4C52718E</designId>
    </OSDM_Design>
    So, looks like the Data Modeler works, but there's a problem with my installation with the full SQL Developer product.  One thing that i noticed is that my full SQL Developer install does not have a full list of logical types.  I had to manual create a the ones that i use.  In the Data Modeler only install, all of the logical types were available out of the box.

  • What happened to Effort metrics in the Custom Reports data model?

    What happened to Effort metrics in the Custom Reports data model?
    Is there any way to use the Custom Reports data model to report on task effort?  This was a metric captured in the Standard Reports Data Package, but looking through the metrics in the Custom Reports data model (particularly the ServiceTask Fact table) I do not see any effort related metric. 

    Ed is right.  The Custom Report data model on pre-2007.1.1 did not contain task effort data but it is added as a fact to report against in the 2007.1.1 release.  You will get this once you upgrade to 2007.1.1 and turn on the task effort entry setting in site administration.

  • Please let me know a good example of Data Modeling Xml files...

    Business process, ERD and so on...
    Anything is OK. I want to get a good example of Data Modeling XML files.
    I want to see what you did and how to use it more efficiently.
    Thanks in advance.
    Edited by: allbory on May 17, 2009 11:05 PM

    Hello,
    there are several samples at data modeler page http://www.oracle.com/technology/products/database/sql_developer/files/Modeling.html
    Philip

  • Is there a tool to convert XML data model into berkeleydb automatically?

    Hi all,
    Is there already a tool which convert a xml data model definition file into C++ source code with berkeleydb as underlying db implementation?
    If there is already one, I don't need to spend the time to code it.
    Regards,
    -Bruce

    Hello,
    One suggestion is to take a look at the Berkeley DB XML documentation at:
    http://docs.oracle.com/cd/E17276_01/html/toc.htm
    and see if you find what you are looking for.
    Thanks,
    Sandra

  • Will there be generators for Data Modeler

    Are there plans to add any generators to SQL Data Modeler? This would be similar to what we had in Oracle Designer. One of the nicest things with Oracle Designer was that we could interview the End Users, build the ERDs and FHDs based on the interviews, push them down to tables and modules and menus, then generate those with Forms and Reports and then show the End User the prototype. This would provide the feedback if we were in the right track or not very early on in the design process. Since we had the data model transformers, we could modify the logical model and then re-push the changes.
    With DM 3.0 and all that it provides on the modeling side, will some form generators for a user interface be provided?
    Thanks in advance,
    Scott

    That last statement, question should read:
    With DM 3.0 and all that it provides on the modeling side, will some form of generators for a user interface be provided?
    Edited by: ScottK on Feb 23, 2011 10:23 AM

  • Is there a Data Model in BW for Financial Reporting?

    Hi,
    I am required to integrate a non-SAP Financial application to SAP BW. I am wondering if there exists a Data Model in SAP BW that supports out of the box canned reports. This will help me target the interface design to feed the existing Data Model. Any pointers to this Data Model and list of canned reports would be very helpful.
    Thanks,
    Nitin

    Have you looked at the BI content:
    http://help.sap.com/saphelp_nw04/helpdata/EN/65/7beb3cad744026e10000000a11405a/frameset.htm
    This will link to an R3 backend but it will give you an idea of what can be done?

  • Some observations on my first use of Data Modeler Beta

    First of all, I can see this tool has a lot of promise.
    I hope Oracle keeps at it, it could turn into a real winner if all the features I see being worked on mature.
    Thanks!
    Here are a few observations on things that I found non-obvious or tedious to do.
    1. When designing an entity, I want to give it a name, a definition, attributes and keys. I want that process to be quick and require the minimum amount of mouse-clicking/navigation fiddling as possible. The current way of defining the attribute's datatype and size is painfully slow. I have to click to get a pop-up. Then I have to click to choose from a set of categories. Then I have to click on a dropdown list. If I try to use the down-arrow on the dropdown list, it works, but not if I go past the one I want. The up-arrow won't take me backwards in the list, so more clicking. It's just a nasty, slow interface to do a simple task that I have to do a thousand times in a data model. If I need to change the size of something, back I go thru the entire process all over again.
    That makes it doubly slow to work in the most natural way, which is to list the attributes and the datatypes, then come back and refine the sizes once the model is maturing and relatively stable.
    2. Adding an additional attribute requires a mouse click instead of a down-arrow. That means I have to take my hands off the keyboard to add a new attribute. Maybe there is some short-cut key that does that, but I have better things to do than memorize non-standard keyboard mappings. Make the down/up arrows works as they should.
    3. Adding the comment that describes the attributes is not quite as slow, but still requires more keystrokes/mouse movements than it should. It's hard enough to get developers to document their attributes, don't discourage them.
    4. I can't see the list of attributes, data types, sizes, key/mandatory settings, and the comment at one time while editing the entity. Makes it harder to grasp what all the attributes mean at a glance, which slows down the modeling and the comprehension of an existing model.
    5. All the entities I created had primary keys with columns in them. But when I tried to have it build a physical model, it complained that some relationships had no columns in them. For the life of me, I couldn't figure out how to fix that. Never had that problem in any other case tool.
    6. Getting it to generate DDL was awkward to find. Make it something obvious, like a button on the toolbar that says "Generate DDL".
    7. Apostrophes in the Comments in RDBMS are not escaped, so the generated DDL won't run.
    8. For the ease of use/speed of use testing on high-volume key tasks, make the developers do the task 1000 times in a row. Make them use long names that require typing, not table A with columns c1, c2 and c3. Long before they get to iteration 1000 they will have many ideas on how to make that task easier and faster to do.
    9. Make developers use names of things that are the maximum length allowed. For example, for a table name in oracle, the max length of the name is 30 characters. The name of one testing table should be AMMMMMMMMMMMMMMMMMMMMMMMMMMMMZ. That's a capital A followed by 28 capital M's and a capital Z. For numbers, use the pattern 1555559. If the developers can't see the A and Z or 1 and 9 in the display area for the name in the default layout for the window, they did the display layout wrong. For places where the text can be really long, choose a "supported visible length" for that field and enter data in the pattern AMMMMMMMMMMMMMMMQMMMMMMMMZ, where Q is placed at the supported visible length. if the A and Q don't show, the layout is wrong.
    10. SQL Developer has quite a few truly gooberish UI interaction designs and I can see some of that carrying over to the Data Modeler tool. I really recommend getting a windows UI expert to design the ui interface, not a java expert. I've seen a lot of very productive windows user interfaces and extremely few java interfaces suitable for high-speed data entry. Give the UI expert the authority to tell the java programmers "I don't want to hear about java coding internals - make the user interface perform this way." I think the technical limitations in java UIs are much less than the mindset limitations I've seen in all to many programmers. That, and making the developers use their code 1000 times in a row to perform key tasks will cause the UI to get streamlined considerably.
    Thanks, and keep up the good work!

    Dear David,
    Again thank you for your valuable and highly appreciated feedback. Find included a more elaborated answer to your observations:
    *1. When designing an entity, I want to give it a name, a definition, attributes and keys.*
    In the new Early Adopter Release, a "SQL developer like" property window has been added for Entities and Tables. For each attribute/column you will have the ability to add name, datatype, Primary Key, Mandatory and comment from one and the same screen
    *2. Adding an additional attribute requires a mouse click instead of a down-arrow.*
    An enhancement request has been created
    *3. Adding the comment that describes the attributes is not quite as slow, but still requires more keystrokes/mouse movements than it should.*
    In the new Early Adopter Release, a "SQL developer like" property window has been added for Entities and Tables. For each attribute/column you will have the ability to add name, datatype, PK, M and comment from one and the same screen
    *4. I can't see the list of attributes, data types, sizes, key/mandatory settings, and the comment at one time while editing the entity. Makes it harder to grasp what all the attributes mean at a glance, which slows down the modeling and the comprehension of an existing model.*
    See former answers. For meaning of attributes you can also use the Glossary and Naming Standardization facilities: see Tools Option menu, Glossary and General Options for naming standards
    *5. All the entities I created had primary keys with columns in them. But when I tried to have it build a physical model, it complained that some relationships had no columns in them. For the life of me, I couldn't figure out how to fix that. Never had that problem in any other case tool.*
    A Bug report has been created. Issue will most probably be solved in the nexr Early Adopter release
    *6. Getting it to generate DDL was awkward to find. Make it something obvious, like a button on the toolbar that says "Generate DDL".*
    An enhancement request has been created.
    *7. Apostrophes in the Comments in RDBMS are not escaped, so the generated DDL won't run.*
    A bug report has been created
    *8. For the ease of use/speed of use testing on high-volume key tasks, make the developers do the task 1000 times in a row. Make them use long names that require typing, not table A with columns c1, c2 and c3. Long before they get to iteration 1000 they will have many ideas on how to make that task easier and faster to do.*
    I aplogize, but I don't understand clearly what you want to say with the use/speed of use here.
    *9. Make developers use names of things that are the maximum length allowed.*
    Our relational model is for use for not just Oracle, but also DB2, SQL Server and in the future maybe other database systems. Whicjh means that we can't taylor it to just one of these database systems. However you can set maxinum name lenghts by clicking right on the diagram and select Model Properties and here you can set naming Options. Here you can also use the Glossary and Naming Standardization facilities: see Tools Option menu, Glossary and General Options for naming standards
    *10. SQL Developer has quite a few truly gooberish UI interaction designs and I can see some of that carrying over to the Data Modeler tool.*
    Fully agree. As you will see in our next Early Adopter release we have started to use SQL Developer like UI objects.
    Edited by: René De Vleeschauwer on 17-nov-2008 1:58

  • Data model that takes part of data to DSO and part to cube

    Hello experts,
    I have a question about the data model I am currently working on. This model is about a reservation agency, where a customer contacts the agency through a sales representative and makes a reservation for a certain event. He later has the option of confirming or cancelling the reservation. We will be receiving data for future reservations every day, with the updated status of future and recently past reservations, sales representative in charge of the reservations, income that will be perceived from each reservation (if the reservation is confirmed) or that was perceived if the event already took place, and more.
    I have found the need to use a DSO to update the reservation status of incoming reservations, as well as other fields. I am loading from a flat file with 20 fields, and the destination is a cube, after the data gets cleansed in the DSO, where there are 2 key fields (reservation code and reservation date).  However, not all the remaining data from the flat file needs to get updated. Out of the other 18 fields, only around 9 may change on an update, while the others will never change (for example, the customer name, confirmation date and event name will not change, while the sales representative, reservation status and income perceived can change from one day to another).
    I was designing a model in which the DSO contained all 18 non-key fields as data fields, so that everything got updated and passed to the cube, but then I thought that perhaps since many fields will not change, it would be better if the DSO only updated those fields that could actually change, while the other fields "jumped" directly to the cube. After the DSO updates the changing fields, the others will already be in the cube. This way, the DSO would receive and have to process less amount of data, making the DSO tables smaller and the process more efficient. But I cannot find a proper way to do this from a single data source, since the data has to pass from the data source to the DSO and then through a transformation from the DSO to the cube.
    Is there a way to accomplish this, or should I just have all fields go through the DSO and from there to the cube?

    Hi, thanks for the suggestion. The reservation code, as of right now, is not master data, and it is unique almost always, except for rare occurences where the same customer makes several reservations, each one for a different date (that is why for the DSO I am using as key fields both reservation date and reservation code). Because of that and the fact that there are lots of reservations made each day, we had defined that object without master data (since the master data table would be huge in a short amount of time). Perhaps I should change it to become master data? Or what should we do?

  • Re: [iPlanet-JATO] Data model(Dataobject in Nd5)

    Sn,
    Computed columns need special attention.
    The migration tool creates a QueryFieldSchema for each Model (DataObject).
    The schema is populated with entries for each of the "data fields" needed by
    that query. For example:
    FIELD_SCHEMA.addFieldDescriptor(
    new QueryFieldDescriptor(
    FIELD_NDNWORDERS_ORDERID,
    COLUMN_NDNWORDERS_ORDERID,
    QUALIFIED_COLUMN_NDNWORDERS_ORDERID,
    Integer.class,
    false,
    false,
    QueryFieldDescriptor.APPLICATION_INSERT_VALUE_SOURCE,
    QueryFieldDescriptor.ON_EMPTY_VALUE_EXCLUDE,
    The query field descriptor describes the "metadata" for a given field:
    QueryFieldDescriptor(java.lang.String logicalName, java.lang.String
    columnName, java.lang.String qualifiedColumnName, java.lang.Class
    fieldClass, boolean isKey, boolean isComputedField, int insertValueSource,
    java.lang.String insertFormula, int onEmptyValuePolicy, java.lang.String
    emptyFormula)
    There is also a SQL Template generated for select statements:
    static final String SELECT_SQL_TEMPLATE="SELECT ALL ndnwOrders.OrderID,
    ndnwOrders.CustomerID, ndnwOrders.EmployeeID, ndnwOrders.OrderDate,
    ndnwOrders.RequiredDate, ndnwOrders.ShippedDate, ndnwOrders.ShipVia,
    ndnwOrders.Freight, ndnwOrders.ShipName, ndnwOrders.ShipAddress,
    ndnwOrders.ShipCity, ndnwOrders.ShipRegion, ndnwOrders.ShipPostalCode,
    ndnwOrders.ShipCountry FROM ndnwOrders __WHERE__ ";
    public
    So for computed columns you need to do two things:
    1. You need to adjust the SELECT_SQL_TEMPLATE to reflect your computed
    column instead of the "simplistic" column name that appears there by
    default.
    2. You have to "alias" that column and provide the value of the alias in the
    columnName position of the QueryFieldDescriptor. This is needed so that the
    model will be able to dereference the computed column in the result set.
    ----- Original Message -----
    From: "SNR R" <snr@s...>
    Sent: Thursday, July 12, 2001 8:30 AM
    Subject: [iPlanet-JATO] Data model(Dataobject in Nd5)
    Hi
    We are migrating ND5 application into iplanet.When we are excuting
    data model it is giving invalid column name error but when we check
    data
    model sql statement which is working fine at sqlplus but this data model
    has got computed column.
    could you please tell me how to resolve this problem.
    Thanks
    Sn
    ----- Original Message -----
    From: "Todd Fast" <toddwork@c...>
    Date: Monday, July 9, 2001 10:42 pm
    Subject: Re: [iPlanet-JATO] COULD YOU PLS HELP ME TO FIX REPEATED OBJECT
    ISSUE.
    This code should generally be in the TiledView (it may appear in
    both the
    ViewBean and the TiledView after migration).
    CSpRepeated repeated =(CSpRepeated) event.getSource();// Assuming the code is in the TiledView
    TiledView repeated=this;
    CSpStaticText stFieldName =(CSpStaticText)
    repeated.getDisplayField("stFieldName");StaticTextField stFieldName=
    (StaticTextField)getDisplayField("stFieldName");
    - or -
    StaticTextField stFieldName=getStFieldName();
    int index = event.getRowIndex();In what event do you want to obtain the index? For the most part,
    you can
    just call TiledView.getTileIndex(). If this is a request event
    handlingmethod, the row index is part of the event signature.
    IMPORTANT: If the original code cached references to display
    fields as page
    instance variables for use in the class's events, you should NOT
    do the same
    in JATO. This was an ND pattern that is unnecessary and
    inefficient in
    JATO. Instead, you should just use the generated accessors or the
    getDisplayField()/getChild() methods to obtain a reference to a
    displayfield as needed. Mike Frisino has elaborated this point in
    the past; please
    refer to his emails.
    Todd
    [email protected]
    [email protected]

    Sn,
    Computed columns need special attention.
    The migration tool creates a QueryFieldSchema for each Model (DataObject).
    The schema is populated with entries for each of the "data fields" needed by
    that query. For example:
    FIELD_SCHEMA.addFieldDescriptor(
    new QueryFieldDescriptor(
    FIELD_NDNWORDERS_ORDERID,
    COLUMN_NDNWORDERS_ORDERID,
    QUALIFIED_COLUMN_NDNWORDERS_ORDERID,
    Integer.class,
    false,
    false,
    QueryFieldDescriptor.APPLICATION_INSERT_VALUE_SOURCE,
    QueryFieldDescriptor.ON_EMPTY_VALUE_EXCLUDE,
    The query field descriptor describes the "metadata" for a given field:
    QueryFieldDescriptor(java.lang.String logicalName, java.lang.String
    columnName, java.lang.String qualifiedColumnName, java.lang.Class
    fieldClass, boolean isKey, boolean isComputedField, int insertValueSource,
    java.lang.String insertFormula, int onEmptyValuePolicy, java.lang.String
    emptyFormula)
    There is also a SQL Template generated for select statements:
    static final String SELECT_SQL_TEMPLATE="SELECT ALL ndnwOrders.OrderID,
    ndnwOrders.CustomerID, ndnwOrders.EmployeeID, ndnwOrders.OrderDate,
    ndnwOrders.RequiredDate, ndnwOrders.ShippedDate, ndnwOrders.ShipVia,
    ndnwOrders.Freight, ndnwOrders.ShipName, ndnwOrders.ShipAddress,
    ndnwOrders.ShipCity, ndnwOrders.ShipRegion, ndnwOrders.ShipPostalCode,
    ndnwOrders.ShipCountry FROM ndnwOrders __WHERE__ ";
    public
    So for computed columns you need to do two things:
    1. You need to adjust the SELECT_SQL_TEMPLATE to reflect your computed
    column instead of the "simplistic" column name that appears there by
    default.
    2. You have to "alias" that column and provide the value of the alias in the
    columnName position of the QueryFieldDescriptor. This is needed so that the
    model will be able to dereference the computed column in the result set.
    ----- Original Message -----
    From: "SNR R" <snr@s...>
    Sent: Thursday, July 12, 2001 8:30 AM
    Subject: [iPlanet-JATO] Data model(Dataobject in Nd5)
    Hi
    We are migrating ND5 application into iplanet.When we are excuting
    data model it is giving invalid column name error but when we check
    data
    model sql statement which is working fine at sqlplus but this data model
    has got computed column.
    could you please tell me how to resolve this problem.
    Thanks
    Sn
    ----- Original Message -----
    From: "Todd Fast" <toddwork@c...>
    Date: Monday, July 9, 2001 10:42 pm
    Subject: Re: [iPlanet-JATO] COULD YOU PLS HELP ME TO FIX REPEATED OBJECT
    ISSUE.
    This code should generally be in the TiledView (it may appear in
    both the
    ViewBean and the TiledView after migration).
    CSpRepeated repeated =(CSpRepeated) event.getSource();// Assuming the code is in the TiledView
    TiledView repeated=this;
    CSpStaticText stFieldName =(CSpStaticText)
    repeated.getDisplayField("stFieldName");StaticTextField stFieldName=
    (StaticTextField)getDisplayField("stFieldName");
    - or -
    StaticTextField stFieldName=getStFieldName();
    int index = event.getRowIndex();In what event do you want to obtain the index? For the most part,
    you can
    just call TiledView.getTileIndex(). If this is a request event
    handlingmethod, the row index is part of the event signature.
    IMPORTANT: If the original code cached references to display
    fields as page
    instance variables for use in the class's events, you should NOT
    do the same
    in JATO. This was an ND pattern that is unnecessary and
    inefficient in
    JATO. Instead, you should just use the generated accessors or the
    getDisplayField()/getChild() methods to obtain a reference to a
    displayfield as needed. Mike Frisino has elaborated this point in
    the past; please
    refer to his emails.
    Todd
    [email protected]
    [email protected]

Maybe you are looking for

  • How do I cut and past on my macbook pro?

    How do I cut and past on my MACBOOK PRO?

  • Unicode Enabling

    Greetings, We are going through an upgrade from 46C to ERP 5.0. Will we be able to unicode enable individule ABAP programs without setting the system to unicode enabled?  Thanks in advance for your assistance. Regards, Jason

  • How to join payroll and general ledger

    Hi, some one could help me to join the payroll table and general ledger? what i need is to know how to obtain the gl_code_combination_id of a per_time_period thanks

  • Backgroundrush lower in Soundbooth

    Hallo Leute, ich habe bei einer Aufnahme, wo eine weibliche  Person sehr leise spricht, die Tonspur in PP sehr hochziehen müssen um  die Person verstehen zu können. Leider wurde dadurch auch das  Hintergrundrauschen sehr laut. Kann mir jemand beschre

  • 5 Reasons to Use Layer Groups in Photoshop | The Complete Picture with Julieanne Kost | Adobe TV

    Layer Groups - they're not just for organizing your layers! In this episode of The Complete Picture, Julieanne demonstrates 5 ways to use Layer Groups to create special effects in Photoshop. http://adobe.ly/V4DeYJ