Checkboxes in table that show value

Hello,
I have a series of questions that I want the user to be able to answer yes or no by selecting or deselecting a checkbox. I have this working fine now, except when it is loaded again all the checkboxes are unchecked, even though some of my values are 'true'.
I've tried setting the 'selected' property on the checkbox to a binding of the value in the table, as #{row.answer}, but that did nothing. I got it to work by using a #{row.answer == 'true'}, but then the checkbox became read only, which destroys the purpose.
Lastly, I tried having two separate checkboxes, one that was selected by default and one that was unselected, then I set the render property to #{row.answer == 'true'} or #{row.answer == false}, respectively. This works the first time I load the page but after I submit or change sections they all show as unselected again.
How can I get the checkboxes to reflect the current value?
Thanks,
-N

Hi Frank,
Thanks, that's exactly what I'm looking for.
I'm getting stuck though and I can't figure out why. I got the sample application to work very easily, but when I try to adapt it to my new project it doesn't show any value for StatusAsBoolean. I tried using the same table even and it remains blank.
Here's what I've done:
Created an entity object for the table.
Created a view object based on the entity and added another attribute (StatusAsBoolean) and uncheck everything, set as type Boolean and Always Updatable.
Created a new class (SettingsViewRowImpl.java) and used the same code as in the class in the sample file.
Created a table on the .jsp page.
One thing I've noticed is that when I make a view object, it creates a SettingsViewImpl.java file. I tried putting the code in there but that crashes the application.
I hope I'm not frustrating you, I've been trying really hard to get this to work and I'm sure it's a really obvious mistake.
Thanks

Similar Messages

  • Table that shows variants?

    Dear GURUS
    I need to know if there is a table that holds the variants which are used in reports.
    Best Regards
    SP

    > VARID
    > VARIT
    > VARI <- this is the table that holds variant values,
    > but unfortunately they are stored in a cluster and
    > hence not easy to read.
    Could you please open a little bit. about the table VARI / i need to finds variant's values. how to read that table?
    thanks

  • Tables That Show a Specific Field

    Hello,
    The same field is used in many transactions and tables, for example Purchase Groups and Validity Dates.  Can anyone tell me if there is a transaction or table that would tell me what other transactions or tables use a particular field as part of the criteria?
    Thank you in advance.
    Judi

    Press F1 on the field you want to know..
    and you will see a popup, there click the technical information
    tab..
    you will see table , field & data element...
    Double click on Data element..
    it will take you to Next screen..
    there clcik the Where- used List( Three Arrows) CtrlShiftF3..
    you will get the options for tables, transactions , Programs etc..
    Tick what you want to see
    for that  particular field ...
    and execute..
    Thx
    Raju
    Edited by: Manohar Raju on Mar 12, 2008 12:53 PM

  • Process Chains! is there a table that shows how long a PC works?

    hi all
    I've got many process chains in my system, i need their statistical data about how long they keep working once a day,
    so, do you know a table that keeps the data i need?
    regards,
    Mete

    If you run/receive the Early Watch report, it has some info on Process Chains, a sample of the info pasted below (apologies on some of the alignment).  Also tran ST03 in Expert mode has some Process Chain info as well.
    Main Chain     #Total Subchains     #Total Steps     #Runs     Total Runtime [min]     Avg. Runtime [min]     Med. Runtime [min]     Avg. Proc.Type Runt. [min]
    ZTV_D_LOAD     0     24     4     964     241     236     267
    ZSR_D_ALL_META     18     113     4     740     185     169     111
    ZFM_D_TRAN_METACHAIN     9     63     4     363     91     81     120
    ZPM_D_METACHAIN     6     46     4     328     82     30     83
    FI_DAILY_TRAN_METACHAIN     8     51     4     280     70     68     118
    ZADM_R_RSRV     0     6     1     145     145     145     254
    ZSRMD_WK_META     4     68     1     111     111     111     111
    ZMD_D_METACHAIN     7     93     4     103     26     26     27
    ZTC_D_METACHAIN     3     56     4     72     18     18     18
    ZMM_D_META_2     2     17     4     58     15     8     14
    ZADM_D_METACHAIN     2     16     4     52     13     14     13
    ZFI_12PM_TRAN_XTRA     3     11     7     48     7     8     7
    ZFI_3PM_TRAN_XTRA     6     20     7     45     7     7     7
    ZARS_W_TRAN     0     9     1     40     40     40     39
    ZFI_5PM_TRAN_XTRA_START     12     38     7     37     6     6     6
    ZFI_D_TRAN_ZSLGS_01     0     3     4     34     9     7     9
    ZMM_D_META_1     1     17     4     31     8     7     8
    ZFI_X_ARAPGL_TRAN     6     40     1     30     30     30     47
    ZFI_5AM_TRAN_XTRA_META     9     29     2     28     14     14     14
    ZMD_W_TEXT_PROBLEMS     0     4     1     18     18     18     18

  • Cannot Drop Table that Shows in dba_tables

    In my IDE I see two tables that I no longer need. I created them as a test to see the difference between LOGGING vs NOLOGGING. Now I want to drop the tables.
    I issue the command drop table customers_no_logging.
    The system responds with ORA-00942: table or view does not exist.
    However, select table_name from dba_tables returns the table names in question.
    Even in sqlplus I get the same result:
    SQL> select table_name from dba_tables where owner = 'RUB';
    TABLE_NAME
    CUSTOMERS
    INV_ITEM_MASTER
    INV_SITE
    CUSTOMERS_w_log
    CUSTOMERS_no_log
    5 rows selected.
    SQL> drop table CUSTOMERS_no_log;
    drop table CUSTOMERS_no_log
    ERROR at line 1:
    ORA-00942: table or view does not exist
    How can I drop these tables?
    Thanks,
    Gregory

    I was connected as RUB in my IDE and SYS in SQLPlus.
    I have connected as RUB in SQLPlus and tried
    SQL> drop table "RUB.CUSTOMERS_no_log";
    drop table "RUB.CUSTOMERS_no_log"
    ERROR at line 1:
    ORA-00942: table or view does not exist
    Maybe I need to stop and restart the DB?
    Gregory

  • Workflow table that shows whether a TS is a background type

    Hi,
    does anyone know the name of the SAP table that tells you whether a workflow task is a foreground or background type?
    Thanks,
    Jerry

    Hi Rose,
    Thank you. The SE11 table description for HRS1201 doesn't reflect what's in the table.
    Regards,
    Jerry

  • What object it colud be? column/field does not exists in table but shows values?

    Hi,
    I have a typical problem. Where is this column comming from??
    Below is the actual table column description where I don't have a field called "3rd_party_driver_home_phone"
    But when I run the query as select 3rd_party_driver_home_phone from
    additional_vehicle damage; it shows records with some value 3 for each of its row,
    This field is acting like a regular column but when I try to drop that
    column(Oracle 8.1.5) It says column doesn't exist.
    why this problem is occuring?
    Thanks,
    Ramana
    Table Description is as follows :
    SQL> desc additional_vehicle_damage;
    Name Null? Type
    AD_VEH_ID NOT NULL NUMBER(38)
    AD_ADJ_CLAIM_NU VARCHAR2(20)
    AD_ADJ_FNAME VARCHAR2(40)
    AD_ADJ_LNAME VARCHAR2(40)
    PARTY3RD_DRIV_HOME_PHONE VARCHAR2(30)
    null

    APC,
    Actually, Oracle objects can start with a number, but it's a really bad idea. When you create the object you just have to enclose it in double quotes, which also makes it case sensitive:
    "3rd_party_driver_home_phone"
    Your guess about the query sounds likely.
    Ramana,
    Did you figure it out yet? Was the query like APC suggested? If not, have you searched the user_objects table in the same manner as the user_synonyms table?
    Barbara
    null

  • Column/field does not exists in table but shows values?

    Hi,
    I have a typical problem. Where is this column comming from??
    Below is the actual table column description where I don't have a field called "3rd_party_driver_home_phone"
    But when I run the query as select 3rd_party_driver_home_phone from
    additional_vehicle damage; it shows records with some value 3 for each of its row,
    This field is acting like a regular column but when I try to drop that
    column(Oracle 8.1.5) It says column doesn't exist.
    why this problem is occuring?
    Thanks,
    Ramana
    Table Description is as follows :
    SQL> desc additional_vehicle_damage;
    Name Null? Type
    AD_VEH_ID NOT NULL NUMBER(38)
    AD_ADJ_CLAIM_NU VARCHAR2(20)
    AD_ADJ_FNAME VARCHAR2(40)
    AD_ADJ_LNAME VARCHAR2(40)
    PARTY3RD_DRIV_HOME_PHONE VARCHAR2(30)

    APC,
    Actually, Oracle objects can start with a number, but it's a really bad idea. When you create the object you just have to enclose it in double quotes, which also makes it case sensitive:
    "3rd_party_driver_home_phone"
    Your guess about the query sounds likely.
    Ramana,
    Did you figure it out yet? Was the query like APC suggested? If not, have you searched the user_objects table in the same manner as the user_synonyms table?
    Barbara
    null

  • Regarding table that shows tcode info

    Hi all,
           Is there a table in SAP which shows all the users who used a particular tcode. Can any one suggest me if there is one like that.
       Let me know if any additional information is required.
    Thanks in advance.
    Ravi Boppana

    Hi Ravi,
    I think ST03N tcode is used to check the history of transaction usage by the users. I think you will have logs upto 5 months.
    You can also go to SUIM and check which users have access to a particular tcode.
    Hope this helps.
    Regards,
    Kiran Kandepalli.

  • How to retrieve data from a table that match values in a varray?

    Using - Oracle 10g Release 1.2
    How to do write a sql to retrieve data matching values in a varray?
    I have the following:
    declare
        v_ct          NATURAL := 0;
        type t_cur is  REF CURSOR;
        v_cursor t_cur;
        TYPE t_array IS VARRAY(100) OF NUMBER;
        l_codes t_array := t_array();
    begin
        select count(*)
          into v_ct
          from table1
         where ind_cd IS NULL;
        IF v_ct = 0 THEN
            l_codes(1) := 1;
        END IF;
        select count(*)
          into v_ct
          from table2
         where cd IS NULL;
        IF v_ct = 0 THEN
            l_codes(2) := 2;
        END IF;  
       OPEN v_cursor for
          select * from error_table where error_cd in (SELECT * FROM TABLE(CAST(l_codes AS t_array)) );
    end;

    This may not answer your question, but what about a pure SQL solution?
    NOTE THIS IS UNTESTED:
    SELECT *
    FROM     ERROR_TABLE
    WHERE     ERROR_CD IN
              SELECT      1
              FROM      table1
              HAVING      COUNT(*) > 0
              UNION ALL
              SELECT      2
              FROM      table2
              HAVING      COUNT(*) > 0     
         )HTH!

  • PO structures or tables that hold the values at Routine level

    hi
    can any one tell me what are all the MM structures or tables that holds value of mode of transport (OIC_MOT) and Order acknowledgment requirement (KZABS) values at VOFM routine level.
    if we caunt find these values at the routine level through structures, is there any other method to get those values at the routine level
    vamsi

    hi Mav,
    it's normal to have + and - records in infocube, the way infocube work is always ADD/INSERT records, any changes to data will be - first then insert new value, e.g
    Data come from transaction
    Date           Customer     Order Qty
    12.12.2005     A            100
    Data go to infocube
    Date           Customer     Order Qty
    12.12.2005     A            100
    Then transaction change :
    Date           Customer     Order Qty
    12.12.2005     A            50
    so in infocube will have 3 records :
    12.12.2005     A            100
    12.12.2005     A           -100
    12.12.2005     A             50
    -- total = 50 (correct)
    so its' normal to have - in infocube
    you can eliminate these records by do infocube compression.
    hope this helps.

  • Show value for key in table

    Hello,
    i have a table in a view that shows data that comes from a aRFC
    model from the R/3 backend.
    So far so good, the values shown are the same as in the backend.
    Now i have the problem that two colums in this table contain only
    keys (one character, represented as String).
    I want to show the right values for this keys in the table, so i created
    two simple types that contain the enumerations for these two columns.
    The problem is, that i can not change the type of these two elements
    in the Context of the view controller, because they are mapped from
    the model and can not be altered.
    Is there a "best practice" approach to the topic of getting values for
    given keys from the backend?

    Hello Armin,
    yes you can change the type of your with something like this:
    // get Mofiable type of your model attribute
    ISimpleTypeModifiable statiType =               wdThis.wdGetAPI().getContext().getModifiableTypeOf(
         "YourModelNode.YourModelNode.YourModelAttribute");
    // Set valid values for this data type
    IModifiableSimpleValueSet statiValues =statiType.getSVServices().getModifiableSimpleValueSet();
    statiValues.clear();
          for (int i = 0; i < yourValues.size(); i++) {
              //set key value pairs
              String statusText = yourValues.get(i);
             statiValues.put(i, statusText);
    Hope it helps, regards
    Sakib

  • Why in FI doc. show value 909 but in table BSEG-DMBTR show 9.09 ?

    hello everyone .
    I have problem
    in FI document (transaction code FB03) system show value 909
    but in BSEG it's show 9.09
    and i use this value to show in report .
    it's show 9.09 .
    could you tell me why this happen ?
    what should i do to fix this problem ?
    please help.

    Hi
    There are some currencies which will not always use 2 decimals, they can be 3, 4 or even none. Since the data element used for storing this field is 2 decimals, internally the amount will be stored after converting the amount to 2 decimals.
    But when the same amount is displayed in any screen or reports it will use the currency key associated with the amount and does the conversion as per table TCURX and displays them.
    So this is not any problem, you do not have to worry. But whenever you are using these amount fields always add the currency addition for any purpose be it ALV, list output etc. so that you will not have any issue.
    Regards
    Ran ganath

  • Is there a table/report that shows a list of the original tcodes vs tcodes?

    How to I find out the calling tcode of a transaction other than using SE93?
    e.g
    ABUM 's original tcode is AB01.
    Is there a table/report that shows a list of the original tcodes vs tcodes?

    Table TCDCOUPLES gives a list of called tcodes for a particular tcode.
    e.g
    For parameter tcode 1KEF  , called-tcodes are :
    1KE1
    1KEF
    1KEG
    OKKS
    BUT this table does not show which called-tcode is the original tcode.
    Using se93, I see that 1KEG is the original tcode.
    Is there a table that will show only the parameter tcodes vs orginal tcodes?

  • Table that stores Analysis authorization values

    Hi all,
           We generated analysis authorizations for users on Profit centers. In RSECADMIN for each user we see an automatic authorization object being assigned with a name like RSR_000234  so on. We can see the values (profit centers) for this object when we double click on it. I would like to create a list of all users and the assigned profit centers. Can you please tell me if a table is available to get this list.
    Thanks,
    Ram.

    Chetan,
             We are loading authorizations values to 0PROFIT_CTR from ECC and flatfile into the Authorization DSO's and generating authorizations to assing the profit centers to users. I would like to see the profit centers assigned to a user. For example suppose if a user is assigned a particular region. I would like to see all the values of the profit centers assigned to the user from a table rather than going to the hierarchy and getting the list for each region.
            The tables that you specified give the userid and the technical name of the authorization(RSR_000234..) but I would like to see the actual values in the authorization.
          Hope I am clear. Thank you for your assistance.
    Ram.

Maybe you are looking for

  • Pages does not Open .Pages Documents

    Hello, When I attempt to open any of my .pages documents, Text Edit opens instead. I have attempted to correct this by right clicking on the document and changing 'Open With' from 'Text Edit' to 'Pages (default)' and then choosing the 'Change All' op

  • Interactive Report Download CSV file Issue (output includes separator BR)

    Hi, I have a Interactive Report and displaying the column values (multiple values in same ROW) as mentioned below. SQL Query   select deptno,        function1(empno) empno   from emp IR Output Dept       Employee No 10         AAA,BBB,CCC, ...    //

  • Missing Thumbnail Fix, at least for me

    I had an extremely frustrating issue with missing thumbnails (dotted blank boxes) with iPhoto 6 that migrated to iPhoto 8 with no relief. I tried all the thumbnail and library rebuilding, and permission repair issues to no avail. In my case, the orig

  • Iphone/Ipad/Ipod connection issues

    I have configured the above router and everything works fine apart from connecting new apple payment devices via the inbuilt AP. I can connect my windows 7 laptop and browse the network and internet but cannot connect my iphone or ipad /ipod touch, d

  • Soceket failure loading index.html

    I just installed Weblogic 5.1 on NT 4.0 spk5. (This is an evaluation download that I got on 7/7/00 ). Everything installed okay, but to test the server, I entered the following URL http://localhost:7001 The page comes up but the console shows an exce


HashFlare