Updated property of rowset is set for data table if I use convertors

Hi,
I use data table for update database table. What I use is sale tax table of Pointbase. I use convertors for date effect and tax rate.
I just change 1 row of data table but Jcreator finds all row are updated. This is a waste of resource and performance. Here is the code (I copied from clip).
public String saveButton_action() {
// User event code here...
log("OnePage: update_action()");
// BYHAND - Count up the rows with updates (optional)
int count = 0;
Iterator keys = dataTable1Model.getDataCache().iterator();
while (keys.hasNext()) {
Integer key = (Integer) keys.next();
com.sun.jsfcl.data.DataCache.Row row = dataTable1Model.getDataCache().get(key.intValue());
if (row.isUpdated()) {
count++;
// BYHAND - Perform the actual update transaction and report results
try {
dataTable1Model.commit();
info("Total rows updated: " + count);
} catch (Exception e) {
log("OnePage: Update commit exception", e);
error("OnePage: Update commit exception: " + e);
// BYHAND - Re-execute the query to pick up new results
try {
dataTable1Model.execute();
} catch (SQLException e) {
log("OnePage: Update reselect exception", e);
error("OnePage: Update reselect exception: " + e);
return null;
My guess is jCreator compares the text from data table and rowset's cache (???). as I display date and rate in formats I need.
My data table displays 10 rows so each time I change 1 row jCreator updates 10 rows of the data table.
Need clarification on this.
Cheers.

Hi Hung,
I received your email and was unable to reproduce using
a new project.
I want to reproduce this ASAP.
Is this the same project you sent me previously?
If not, then could you please email it to me again.
Thank you
John
JSC QA

Similar Messages

  • BIG CONCERN for data table columns bound to property.

    Here the issue.
    I have a data table with many columns of which:
    1/ first group bound directly to database table columns.
    2/ Second group bound indirectly to database table columns through properties (I need some extra formatting depends on the data of the database table�s columns).
    When I display the page the first time it appears correct but when I go back to the page previously displayed the second group columns all get the last value of the bound properties.
    What I guess is:
    - The first group of columns get data from database.
    - The second group of columns just get the value of the properties they were bound , the getXXXXXX method does not get called again because the page was already loaded ?�..So my second group displayed with the wrong data (the last value of property they were bound to).
    BIG ISSUE�.when I redisplay the previous page. For example I am on page 3 when I go back to page 1 or page 2 they display the wrong data�
    Is it the way it supposed to work ? If so how to force the getXXXXXX method called again to get the right property�s value not the last property�s value?
    Thanks.

    Here is what I am trying to do (this is a real application not with Pointbase bundled with jCreator).
    I want to display a iSeries (AS/400) table in a data table but some columns I need to format suitably:
    For example: I have a few date columns in my database table are numeric fields not date fields so if its value is zero I don�t need to display. What I do to display in data table is:
    1/ To bind its value to a property let�s call it enteredDate of type java.sql.date
    public Date getEnteredDate() {
    Object o = getValue("#{dealDetaiSWAPl.dealRowSet1.currentRow['$SEND']}");
    return getMyDateFromDdMmYy(o); this method is to convert $SEND from numeric to Date field.
    2/ To bind rendered attribute to enteredDateRendered
    public boolean isEnteredDateRendered() {
    Object o = getValue("#{dealDetaiSWAPl.dealRowSet1.currentRow['$SEND']}");
    return dateRendered(o);
    public boolean isDateRendered(Object o) { /* This method I reuse elsewhere */
    int date = java.lang.Integer.parseInt(o.toString());
    if (date == 0)
    return false;
    else
    return true;
    When I display page 1 : it looks correct.
    Ex: ��date1�..
    ��date2�..
    ��date3�..
    Display page 2: it looks correct.
    Ex: ��date4�..
    ��date5�..
    ��date6�..
    Go back to page 1: all columns date have the same value of the first row
    Ex: ��date1�..
    ��date1�..
    ��date1�..
    I did not change anything in page navigation method.
    By the way I notice that each time I go to table layout screen JSC deletes all components I added in the navigation gridPanel. So if I change something in them I have to restart the whole thing again.
    Can you give me your email I will send you screenshots of my application.
    Thanks.

  • Best strategy for data definition handling while using OCCI

    Hi, subject says all.
    Assuming to use OCCI for data manipulation (e.g. object navigation), what's the best strategy to handle definitions in the same context ?
    I mean primarily dynamic creation of tables and columns.
    Apparent choices are:
    - SQL from OCCI.
    - use OCI in parallel.
    Did I miss anything ? Thanks for any suggestion.

    Agreeing with Kappy that your "secondary" backups should be made with a different app. You can use Disk Utility as he details, or a "cloning" app such as CarbonCopyCloner or SuperDuper that can update the clone periodically, rather than erasing and re-copying from scratch.
    [CarbonCopyCloner|http://www.bombich.com> is donationware; [SuperDuper|http://www.shirt-pocket.com/SuperDuper/SuperDuperDescription.html] has a free version, but you need the paid one (about $30) to do updates instead of full replacements, or scheduling.
    If you do decide to make duplicate TM backups, you can do that. Just tell TM when you want to change disks (thus it's a good idea to give them different names). But there's no reason to erase and do full backups; after the first full backup to each drive, Time Machine will back up only the changes made since the last backup +*to that disk.+* Each is completely independent.

  • Global Setting for ALV Table in webdynpro

    Hi guys,
    We are in process of upgrading to EHP7 and ABAP-7.4 and we are facing one small issue on default ALV table setting where we are not getting
    Grid line = 'All'  insist we are getting Grid Line = 'Horizontally'.
    I have seen lots of thread suggesting that we can customized it based on application but as we already have lots of webdynpro application and it not a good ideas to go in each and every application and change it.
    I have a feeling there should be some place where we can set the default setting for the same may be System or Global .
    Any idea on the same.
    Atul 

    hi,
    according to what i understood from your explanation you want that inspite of scrolling you need to do so on user clicking some button or some action ....
    i did the same in a scenario...
    what i did was just giving  a input field on the screen.
    and in code i just checked number of records to be less than or equal to the number user puts in the i/p field .
    I chose onactionenter for doing this .
    firstly i used node->invalidate.
    again filled the internal table with number of records matching and displayed the same.
    hope it will help
    Regards,
    Sahai.s

  • Default setting for Planning Table

    Dear gurus,
    How to default user setting in planning table?
    ( Not at individual user level) how it is possible?
    Pl. reply.
    Srini

    Hi Srini,
    you can customize some settings.
    Define scheduling parameters for planned orders - OPU5
    Maintain Entry Parameters - Production\Repetitive Manufacturing\Planning\Planning Table\Maintain Entry Parameters
    Maintain Row Selection - Production\Repetitive Manufacturing\Planning\Planning Table\Maintain Row Selection
    For the capacity planning in the planning table you can maintain different profiles.
    Kind regards,
    Frank

  • How can I set the date of my PC using Java?

    Which class has the function to set system date and time.
    Thanks in advance.

    but the following sentence
    Process p=Runtime.getRuntime().exec("date
    11-03-2002");
    always throw IOExecption error
    java.io.IOException: CreatePreocess:date 11-03-2002
    error=0
    and why?
    How to settle it?
    'date' is an internal command which means you need a shell to run it. Depending on the OS this will either be 'cmd' or 'command'. If you search the forums with the following keywords you will find examples on how to use this: "exec", "Runtime", "cmd" or "command"

  • M or P master data table  to be used in routine read statement

    Hi
      I update of a DSO i had a requirment for a routine to get the Attribute of a Infoobject.
      So which master data table  M or P table i need to use in my read statement and why
    Thanks

    Use M table as it it the view on time dependent(P table) and time independent(Q table) tables.
    M table is view on time dependent and time independent attributes, you can see characteristic values and all the attributes for the Characteristic.
    The tables that go in the view are the Master Data Table and the Time-Dependent Master Data Table. If the characteristic only has time-dependent attributes, only the time-dependent master data table goes in. If the characteristic has only non-time-dependent attributes, only the master data table goes in.

  • Which master data table to be used to get attribute value

    Hi all,
    I am writing  routine in update rule to get data for one master data attribute of master data 0customer.
    But I am cofused in choosing master data table to get data.
    There are two master data table in master data tab of  0customer characteristics.
    1. View of MstrDtaTbls  :-  /BI0/MCUSTOMER
    2. Master data tab          :-  /BI0/PCUSTOMER
    Suggest me which one to take .
    Although I have tried with 2 one and it is working fine.

    Hi,
    If the attribute is not time-dependent please use  /BI0/PCUSTOMER, else use /BIC/QRCOSTCTR.
    Just remember P table and Q table.
    Regards,
    Frank

  • Why aren't my plugins auto updating like I have it set for?

    I have set up for my add-ons to automatically update but find they are not always doing that. i.e., Java and Adobe. I know that I can manually do it but do not want to have to and that is why I have it set up to auto update.

    Only extensions can be updated via Firefox.<br />
    Plugins like Flash and Java are installed via other programs and software on your computer and you need to updates plugins yourself manually if they do not check that automatically when they are used.
    *http://www.mozilla.com/plugincheck/

  • Need to load large data set from Oracle table onto desktop using ODBC

    I don't have TOAD nor any other tool for querying the database.  I'm wondering how I can load a large data set from an Oracle table onto my desktop using Excel or Access or some other tool using ODBC or not using ODBC if that's possible.  I need results to be in a .csv file or something similar. Speed is what is important here.  I'm looking to load more than 1 million but less than 10 million records at once.   Thanks.

    hillelhalevi wrote:
    I don't have TOAD nor any other tool for querying the database.  I'm wondering how I can load a large data set from an Oracle table onto my desktop using Excel or Access or some other tool using ODBC or not using ODBC if that's possible.  I need results to be in a .csv file or something similar. Speed is what is important here.  I'm looking to load more than 1 million but less than 10 million records at once.   Thanks.
    Use Oracle's free Sql Developer
    http://www.oracle.com/technetwork/developer-tools/sql-developer/downloads/index.html
    You can just issue a query like this
    SELECT /*csv*/ * FROM SCOTT.EMP
    Then just save the results to a file
    See this article by Jeff Smith for other options
    http://www.thatjeffsmith.com/archive/2012/05/formatting-query-results-to-csv-in-oracle-sql-developer/

  • For custom tables should we use UTC for date/time fields

    A general question.
    Can anyone confirm that SAP does seem to be moving towards storing date/time in UTC format?
    We're building custom tables and we're making it a standard to store date/time fields in UTC format.
    Regards,
    Lavaughn

    Hello Lavaughn,
    I can not speak for SAP, but from my personal experience TimeStamps are the state of the art to store time date info in db tables. Even with date/Time fields a conversion to the local timezone is necessary. Of course you can reuse your db definition on dynpros. But since UI and business logic will be divided anyway this is also not really a valid point.
    Best Regards
    Klaus

  • Export data for the table of SAP using  the JCO

    Good Morning,
    Sorry error of the agreement, and that I am using a translator.
    I am needing of help, to solve a problem that I have to integrate the system in Java using the SAP JCO.
    Well I need send (Export_Parameter) data into a table in SAP,but I do not know this process.
    If someone went through that and can help, thank you in advance
    Obs : Not found documents that help me
    Att
    Elton C.

    This is a forum for problems with the Java language and the default libraries that come with it. We can't help you with any third-party applications/libraries such as SAP and JCO.
    Sorry.

  • How to use filter for data tables? Important topic but no docs/examples.

    I was looking at the TableRowGroup APIs:
    http://developers.sun.com/prodtech/javatools/jscreator/reference/docs/apis/webui/index.html
    and looks like it has getTableDataFilter and setTableDataFilter methods. Sounds to me, that we can use TableDataFilter to filter rows that are displayed. For example, we can provide users with a drop down list of fields to choose from, and input field to enter the value of the selected field, so that they can narrow down the rows to search for specifics row(s) they are looking for.
    I have not seen any example, or enough documentation, to figure out how to use this filter. Since JSC is new, there are not too many resources out there or on web for such specific issues. Any gurus out there?
    Thanks

    Creator Team: Data filtering tutorial is over due now. This is something that will be useful to most developers. We all want to display users some data and want to provide user ability to filter it down based on some criteria, i.e. display rows within a date range, display all rows that have certain value or a field, etc. If there is a built-in filter in TableRowGroup, why not document it adequately along with some examples and a tutorial?
    This is one of the key elements of Microsoft/VS.NET market share -- provide tons of example/tutorials/advanced code/books/3rd party books, etc. Why can't other companies follow a well-proven success element? In spite of making a better product, the can end up loosing or not gaining enough share, because of this lack of attention.

  • Charged for data I didn't use including overage charges

           I have had a chronic problem with overage charges for over 2 months now. Each time it has been addressed it has always been blamed on my computer data usage. We  initially had no problems, other than lousy service in our area, UNTIL we went to a store and inquired about upgrading. We were told we were grand fathered in with our existing account but needed to upgrade. We declined at that time due to the higher cost involved. But had to go with a "jet pack" due to our existing wireless "my Fi " going out. Then like magic we started to incur overage charges. Just a coincidence, I am sure. We have upgraded to higher usage, twice, and yet each time our usage is magically over that new higher limit. I un installed my Norton's and  most recently we even started turning off our computer. IN FACT! WE HAVE BEEN GETTING CHARGED FOR APPROX. 0.5 GIGS OF DATA on more than one occasion, EVEN WHEN THE COMPUTER IS TURNED OFF.  COULD SOMEONE EXPLAIN THIS SCAM TO ME?  Gee, do you think when I research this further I will find anyone else that has had this problem? The "Jet Pack" shows nothing is going on. So how long has this jet pack scam been going on? Are the employees at the stores charging our accounts with their usage? Have you sensed my level of anger yet?

        Hello RonB57,
    We want to do everything we can to properly report your data usage. After all, managing your usage is the best way to effectively enjoy your wireless service. May I ask is the issue only with your mifi/jetpack device? If so then which model mifi/jetpack do you have? I suggest turning off the mifi/jetpack when not in use. This ensures that data is being transmitted to a wireless device that may be auto-connecting to your account. Please share the details so we can help.
    Thank you...
    ArnettH_VZW
    Follow us on Twitter @VZWSupport

  • I am being charged for data I am not using-can anyone help me?

    My iPhone has started using massive amounts of data without my knowing and my phone bill has gone through the roof! Can anyone help me to stop this happening?

    I am having the same issue with my iPhone 5. AT&amp;T told me it is a current issue with some sort of glitch between there system and iPhone software, and there is supposed to be a patch coming out for it. But no one knows when, I was told some customers already have it. My AT&amp;T rep told me they would credit me all overages since they can see from my average usage that something is drastically wrong. I have been manually turning off my cellular data whenever I'm not using wi-fi and it is still using data like crazy and charging me for it. Never had this problem until about 3 months ago. I'm calling AT&amp;T again tomorrow since the local store is of no use.

Maybe you are looking for

  • How to get songs on iPhone?

    I have a ipod touch with 700 songs on it, they are not on my computer because i got a new mac. i want to get these songs to my iphone but i think it has to get on the mac first? How do i get it on my comp/itunes? Thanks

  • Reimporting of Adaptive RFC model

    Hi all, I have added two fields in the BAPI and i have reimported the Adaptive RFC model in Web Dynpro. After running the application and accessing the new fields, i am getting this exception. java.lang.ArrayIndexOutOfBoundsException      at com.sap.

  • Ipod touch & ipod shuffle on same itunes account and computer

    I have an ipod touch which works fine with my itunes account.  I purchased an ipod shuffle for my sister for xmas.  I need to synce a playlist of songs for her on the ipod shuffle using my computer.  I have purchased songs for her from itunes which a

  • Getting you have a missing ALT100.dll don't know how to solve this problem

    When trying to rip a cd get this message. Some music I have ripped won't play , getting the same message.

  • Places and Faces missing from iPhone

    I use Aperture and tag all my Faces from there. I also use several cameras which geotag my photos, so Places is working in Aperture, too. However, on my Phone (iOS 7), neither Places nor Faces are appearing. I understand they are supposed to be displ