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.

Similar Messages

  • Change Data Table column header color

    How do I change the background color displayed in data table column headers?

    Thanks for your response. Problem is that I'm creating a portlet and the stylesheet.css file does not appear to exist, so Winston's blog does not help.

  • How to use selectOneList in a updateable data table column

    Hi,
    Could someone tell me how to use selectOneList (source from a vo X) in an updateable data table column (from another vo Y)?
    I successfully created a page with the data table. However, strange things happened:
    1) the values populated on the selectOneList column don't match the underlying value in vo Y. in fact, every rows in the column got the same value.
    2) when I update one of the rows, the column value in every other rows turns to the new value.
    3) when I sort other columns in the table, the values shown in the selectOneList column get toggled between blank and some incorrect value.
    I believe it is something related to the fact that the same iterator is used to the source view object. If this is the case, how can I solve it?

    See #7 here:
    http://radio.weblogs.com/0118231/stories/2005/06/24/jdeveloperAdfScreencasts.html

  • Using Alias for the table column

    Dear all,
       Can we use alias name for the table column while developing zreport.
    ie.,
      without using standard  table column name ( like mara-matnr ), i wish to use mat_num for matnr. So that, one can easily understand the column.
    Could you help me out in this regard.
    Thanks in Advance,
    S.Sridhar.

    yes you can declare in ur internal table like
    material_number like mara-matnr.

  • Bi publisher report, data table, column label displays last character

    Hello all,
    I have created various reports on BI Publisher (win2008 R2 64bit 11g (.1.1.5) version). After altering some access rights, all the reports that include data tables display only the last character of the column label. All the column data is reported correctly.
    example:
    - TotalNumber -
    4234
    234
    4
    became
    - r -
    4234
    234
    4
    Any ideas about what is going on???
    Thank you

    Thanks for the suggestion Simon.
    I just created a view based on the 46-column SELECT statement from dual above and then set "SELECT * FROM myview" as the Source Query.
    Unfortunately I get exactly the same error.
    Thanks,
    Andy

  • Trigger how to get new and old value for nested table column?

    Hi,
    I have created a nested table based on the following details:
    CREATE TYPE typ_item AS OBJECT --create object
    (prodid NUMBER(5),
    price NUMBER(7,2) )
    CREATE TYPE typ_item_nst -- define nested table type
    AS TABLE OF typ_item
    CREATE TABLE pOrder ( -- create database table
    ordid NUMBER(5),
    supplier NUMBER(5),
    requester NUMBER(4),
    ordered DATE,
    items typ_item_nst)
    NESTED TABLE items STORE AS item_stor_tab
    INSERT INTO pOrder
    VALUES (800, 80, 8000, sysdate,
    typ_item_nst (typ_item (88, 888)));
    Now I would like to create a trigger on table pOrder for after insert or update or delete
    and I would like to track the new and old value for the columns inside nested table.
    Can anybody direct me how to do it?
    I would like to know the sytax for it like:
    declare
    x number;
    begin
    x := :new.nestedtablecolumn;--how to get the new and old value from nested table columns
    end;
    Hope my question is clear.
    Thanks,
    Lavan

    Hi,
    Try like this:
    CREATE OR REPLACE TRIGGER PORDER_I
    BEFORE INSERT
    ON PORDER
    REFERENCING OLD AS old NEW AS new
    FOR EACH ROW
    DECLARE
      items_new typ_item_nst;
      ordid_NEW NUMBER;
    BEGIN
    FOR i IN :new.items.FIRST .. :new.items.LAST LOOP -- For first to last element
      DBMS_OUTPUT.PUT_LINE(':new.items(' || I || ').prodid: ' || :new.items(I).prodid );
      DBMS_OUTPUT.PUT_LINE(':new.items(' || I || ').price:  ' || :new.items(I).price );
    END LOOP;
    END;Regards,
    Peter

  • How mapping sharepoint list Columns to Sql server data table columns programaticlly

    Hi ,
     I have one Verification List in share Point ,in that list i have 10 columns.And we have sql server in that sql server we have one data table Verification_Table
    in that table we have 25 column, my requirement is all list data  move to  sql data table[ what ever columns mapping to list--->data table that data store in data table reaming column is  Null]
     using grammatically not in BCS

    Hello,
    You can create SQL connection and use Datareader to read from SQL.Firs create a connection string and put this string in web application web.config file of your sharepoint site.
    Now use below code to call your connectionstring in your webpart.
    SqlConnection con = new SqlConnection(System.Configuration.ConfigurationManager.AppSettings["ConnectionString"]);
    Here is link to read the data from SQL:
    http://www.akadia.com/services/dotnet_data_reader.html
    Here is one MSDN link to read SP list data:
    http://msdn.microsoft.com/en-us/library/dd490727%28v=office.12%29.aspx
    Let me know if you have any doubt
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • 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

  • Sum function for internal table column

    Dear Experts,
    how can I sum a complete internal table column.
    Regards
    ertas

    Hi,
    Use SUM in AT END of event in the loop of an internal table.
    Example
    Loop at ITAB into wa_itab.
    at end of wa_itab-field.
    sum.  " Here all numric fields will be summed and stored in that filed(wa_itab-field)
    endat.
    Endloop.
    Regards
    Krishna

  • How to set title/text for ALV table column header in WD ABAP

    Hello,
    I am working in WDA using SALV_WD_Table to display data in table. I need to change the column header text, the obvious way is to get the column header and call the method SET_TEXT to set new text / title. However, this method does NOT work, it does not change the column header text. I also tried the SET_TOOLTIP, this one works, but SET_TEXT does not work. Anyone has idea why this not working and do you find any go-around solution?
    My version is NW 7.0
    Thank
    Jayson

    Hi jason ,
    For setting Heder text for your ALV table
    ip_confing type ref to CL_SALV_WD_CONFIG_TABLE.
    "set alv table header
      ip_config->if_salv_wd_table_settings~r_header->set_text( 'Test ALV Header functionality' ).
    first you have to hide the DDIC text and then try to set your own text .
    "modify columns
      LOOP AT lt_columns INTO ls_column.
        lr_column = ls_column-r_column.
        CASE ls_column-id.
          WHEN 'MANDT'.
            "hide this field
            lr_column->set_visible( cl_wd_abstr_table_column=>e_visible-none ).
           WHEN 'SEQNR'.
            "set header to different string
            lr_column->r_header->set_ddic_binding_field( if_salv_wd_c_column_settings=>ddic_bind_none )." use this line to hide ddic text
            lr_column->r_header->set_text( 'Position' ).     
        endcase.
      endloop.
    Regards
    Chinnaiya P

  • Problem in using OCIBindByName  for date type column

    Hi,
    Can you please guide me about my following problem?
    I am trying to fetch the data from system table "FLOWS_020100.WWV_FLOW_ACTIVITY_LOG1$" in Oracle Express edition 10.2.0.3 database, using the OCI library on Windows with C++
    This table has a TIMESTAMP column of date type.
    I've the following query as below:
    select TIME_STAMP from FLOWS_020100.WWV_FLOW_ACTIVITY_LOG1$ where TIME_STAMP > to_date('31/OCT/12 23:59:59', 'DD-MON-YY HH24:MI:SS') order by TIME_STAMP asc;
    For this, first I am preparing the query as below:
    select TIME_STAMP from FLOWS_020100.WWV_FLOW_ACTIVITY_LOG1$ where TIME_STAMP > :PKVAL order by TIME_STAMP asc;
    Before calling OCIExecute(), I am setting the PKVAL buffer to following value:
    "to_date('31/OCT/12 23:59:59', 'DD-MON-YY HH24:MI:SS') "
    & calling the OCIBindByName function with data type as SQLT_DATE.
    But when the OCIExecute is called, my program crashes with access violation
    Can you please guide me what is the correct way to pass the date value in query to OCI? How do we bind the date values?
    Thanks in advance for your time and help.
    Best Regards.

    I had a similar problem. TO_DATE doesn't appear to function w/ BindByName or BindByPos.
    You are going to have to bite the bullet and use an actual date.
    Here's an example (I am using two dates in my query):
    int main (int argc, char **argv, char **envp)
    static text invalidQuery = (text )"SELECT f1.my_val, COUNT(f1.my_val) invalid_count, (SELECT COUNT(*) FROM my_db_table f2 WHERE f2.my_val = f1.my_val AND f2.foo_dt = :1 ) total_count FROM my_db_table f1 WHERE f1.foo_dt = :1 AND ( (f1.vld_bar_sw IS NULL OR f1.vld_bar_sw = 'N') OR (f1.vld_foo_sw IS NULL OR f1.vld_foo_sw = 'N') ) group by my_val order by my_val asc";
    OCIDate boundDateVal;
    sb2 inputYear;
    ub1 inputMonth;
    ub1 inputDay;
    char inputYearStr [] = "0000";
    char inputMonthStr [] = "00";
    char inputDayStr [] = "00";
    /* I get and validate the date as input, but you can set it however you'd like */
    inputYear = (sb2) (atoi (inputYearStr));
    inputMonth = (ub1) (atoi(inputMonthStr));
    inputDay = (ub1) (atoi(inputDayStr));
    /* Allocating Date*/
    OCIDateSetDate ( &boundDateVal, inputYear, inputMonth, inputDay );
    OCIDateSetTime( &boundDateVal, 0, 0, 0);
    returnVal = OCIBindByPos(invalidStmt, &firstInputBindHPtr, myErrorHandle, (ub4) 1,
    (dvoid *) &boundDateVal, (sword) sizeof(boundDateVal),
    SQLT_ODT, /*dty OCIDate*/
    (dvoid *) 0, (ub2 *) 0, (ub2 *) 0, (ub4) 0, (ub4 *) 0, OCI_DEFAULT);
    if ( !(returnVal == OCI_SUCCESS || returnVal == OCI_SUCCESS_WITH_INFO) )
    displayErrors (returnVal, myErrorHandle, "OCIBindByPos-contactDate 1 ");
    cleanup();
    exit(1);
    }//if
    returnVal = OCIBindByPos(invalidStmt, &secInputBindHPtr, myErrorHandle, (ub4) 2,
    //(dvoid *) &InputArguments.contactDate, (sword) sizeof(InputArguments.contactDate),
    (dvoid *) &boundDateVal, (sword) sizeof(boundDateVal),
    SQLT_ODT, /*dty OCIDate*/
    (dvoid *) 0, (ub2 *) 0, (ub2 *) 0, (ub4) 0, (ub4 *) 0, OCI_DEFAULT);
    if ( !(returnVal == OCI_SUCCESS || returnVal == OCI_SUCCESS_WITH_INFO) )
    displayErrors (returnVal, myErrorHandle, "OCIBindByPos-contactDate 2 ");
    cleanup();
    exit(1);
    }//if
    }//main
    ** I have had issues w/ OTN not correctly translating certain characters, so hopefully the above example is readable or you can figure out which characters may be missing.

  • Custom sorting for a Table column

    I have a Table object with multiple columns. The first is an alphanumeric unique identifier that is usually utilized by clients as String representations of integers. When a client does use integers, the sorting is completely off. Here is a sample list of how Studio Creator sorts this data:
    1
    10
    11
    12
    2
    3
    4
    5
    6
    7
    8
    9I obviously would like 10, 11, and 12 to come after 9. One way I could do this is to sort the values after they have been left-padded with zeros; however, I don't know how to implement this. I created a small class that implements Comparator in a way that will left-pad all Strings up to a max of 25 characters long, and then sorts them.
    How can I have Studio Creator sort like I want it to? Thanks.

    Solved.
    I continued down the path of the object that implements Comparator and left-pads all values with zeros up to a total length of 25; I also sorted alphanumeric characters after numeric characters. I overwrote .compare(), .equals(), and .toString(). The issue was that I had to create a custom Converter for the TextField to be able to write updates to it.

  • Problem with using SelectOneChoice for a Table column..

    Hi
    Thank you for reading my post
    I have a Table in my database which one of its fields is an status field.
    the status can be :
    Done
    Pending
    In-Progress
    I have a form that one can edit the records of this table and i want to use a ComboBox for this field.
    As you know, the ComboBox should indicate the current value and its change should be reflected to database after user pressed the submit/commit button.
    But all my tries failed, i tried to
    -put a SelectOneChoice in the form and bind it to the field
    -Use Drag and Drop feature to drag and drop the Data Control field on the form as a SelectOneChoice, it shows a Binding Dialog that i can not configure it correctly and it has no help.
    Can you please help me to resolve it?
    Thanks

    Hi user,
    Have a look at Steve M's example at http://www.oracle.com/technology/products/jdev/tips/muench/screencasts/editabletabledropdown/dropdownlistineditabletable.html?_template=/ocom/technology/content/print
    Hope this helps,
    John

  • Security Concern for PX_TXN table

    ADF saves model state in PX_TXN table and for that application module have to connect to the database with user which have access to insert and select data from PX_TXN table. Now my question was is there any security thread in that because any other user by knowing can access it and change the information of other users saved state or corrupt it. Any thought?

    Just protect the db account (don't give out the user name and password). It's no different than protecting any other db schema.
    Join

  • Oracle Stored Procedure's TYPE IS RECORD for join table columns

    Hi there,
    I'm trying to use the type is record to setup all my output columns; However, these columns are joined from 2 or more tables. i.e.,
    TYPE my_rec IS RECORD (
    myColumn1 varchar2(50),
    myColumn2 varchar2(20)
    where myColumn1 is slected from a join of table1 and table2, and myColumn2 is selected from a join of table2 and table3.
    as I tried to exec mySP, I got the error:
    wrong number or types of arguments in call to 'mySP'
    I know it is not "wrong number of arguments", but I don't know why these columns are wrong types? though I had TO_CHAR the new myColumn1 and myColumn2, I'm wondering if I should use %TYPE instead. If so, how do I do?
    Meanwhile, I think it may help if I post the code here:
    ===========================================
    create or replace package PHAStatusRpt is
    type pha_type is record(
    name varchar2(50),
    pha_start varchar2(12),
    current_step varchar2(50),
    dates varchar2(25),
    last_status varchar2(20)
    pha_rec pha_type;
    procedure PHAStatusData(ret_parm OUT pha_type);
    end PHAStatusRpt;
    create or replace package body PHAStatusRpt is
    procedure PHAStatusData(ret_parm OUT pha_type) is
    BEGIN
    SELECT name,
    TO_CHAR(DECODE(NVL(current_pha_step_name,'~'),'~',last_pha_date,current_pha_start),'mm/dd/yyyy') pha_start,
    DECODE(NVL(current_pha_step_name,'~'),'~','Complete',current_pha_step_name) current_step,
    DECODE(NVL(current_pha_step_name,'~'),'~',TO_CHAR(last_pha_date,'mm/dd/yyyy'),pp_date) dates,
    DECODE(NVL(current_pha_step_name,'~'),'~',null,last_pha_status) last_status
    INTO pha_rec
    FROM (SELECT pfeed_name||' ('||TO_CHAR(pfeed_dob,'mm/dd/yyyy')||')' ||'('||SUBSTR(pers_ssn,5,4)||')' name,
    current_pha_start,
    current_pha_step_name,
    last_pha_date,
    last_pha_status,
    TO_CHAR(pp.start_date,'mm/dd/yyyy')||'-'||NVL(TO_CHAR(pp.end_date,'mm/dd/yyyy'),'n/a') pp_date
    FROM v_pers_unit pu, personnel_readiness pr, person_processes pp
    WHERE pu.pers_pers_id=pr.pers_id AND pr.current_pha_step_pp_id=pp.pp_id(+) AND cmdstr_cs_id=95990)
    ORDER BY name;
    end PHAStatusData;
    end PHAStatusRpt;
    SQL> exec phastatusrpt.phastatusdata
    BEGIN phastatusrpt.phastatusdata; END;
    ERROR at line 1:
    ORA-06550: line 1, column 7:
    PLS-00306: wrong number or types of arguments in call to 'PHASTATUSDATA'
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    ============================================
    Thanks in advance,
    SC

    case closed. I found the answer.

Maybe you are looking for