Saving a new boolean value from the ADF table/ to the OracleDb

We have a problem with the <af:selectBooleanCheckbox/> -component
and with the Oracle database. The <af:selectBooleanCheckbox/> will use the boolean datatypes, but the database needs number datatypes (1/0).
We have to also to use <af:table/> -component to read datarows into it.
We have tested that the "converting" -property does not work inside the <af:table/>
and I think maybe that is a somekind of bug(?)
Saving the data back to the database will cause an error like: "The value 'false' is not a number."
What will be a solution? Is there a some workaround or trick to do that?
thanks in advance

Yes - there's a simple trick...
Re: How to do a bound af:SelectBooleanCheckbox inside of af:Table
John

Similar Messages

  • How  to retrieve a column field value from an ADF table ?

    All,
    I have a backing bean where I have bounded a field of an ADF table.
    I would like, in the bean, to read the value of that field so that I can use it inside a task flow router.
    The question: how to read a value from a ADF table column field ?
    In the bean I have the getter and setter of the RichInputText ADF table field. But when I type:
    System.out.println("the name is: " + this.getName().getValue());
    or
    System.out.println("the name is: " + this.Name().getValue());
    I get a null pointer exception.
    Thanks in advance,
    Sergio.

    Thanks Marvin, but this is not really what I'm looking for. Or at least, it does not sounds like to be :)
    I need to get the value contained in a row cell of an ADF table.
    Let's say the table (two rows, three cells) contains these values:
    "table_A", "123", "John"
    "table_B", "456", "Peter"
    When I click on the first row, I need the value: "table_A". Once I got that value, I extract the last char, in this case: "A", and then I call a specific task flow from a task flow router (specified in the task flow router Cases property).
    When I click on the second row, the same process applies, only the router now points to another flow view.
    So to summarize, I need to get the value of a row cell in an ADF table. How to do that from within a javaBean in JDeveloper 11g Release 2 ?
    This is what I have in the bean; so far I've bounded the related row cell (herkunft) to the bean. Each time I select a row on the ADF table, the function setHerkunft() runs - I see that from within the JDeveloper console - but when I try to get its value, I get a null value - hence the surrounding if statement.
    package bean;
    import javax.faces.component.UIComponent;
    import javax.faces.context.FacesContext;
    import javax.faces.event.ValueChangeEvent;
    import oracle.adf.view.rich.component.rich.input.RichInputText;
    +public class taskFlowBean {+
    public RichInputText herkunft;
    public static String taskFlowView = "C";
    +public taskFlowBean() {+
    System.out.println("taskFlowBean constructor call");
    +}+
    +public void setHerkunft(RichInputText herkunft) {+
    System.out.println("set herkunft");
    this.herkunft = herkunft;
    if (this.getHerkunft().getValue() != null )
    System.out.println("herkunft is: " + this.getHerkunft().getValue());
    +//here taskFlowView will set accordingly with the herkunft value.+
    +}+
    +public RichInputText getHerkunft() {+
    System.out.println("get herkunft");
    return herkunft;
    +}+
    +public String getTaskFlowView() {+
    System.out.println("get taskFlowView ! : " this.taskFlowView);+
    return this.taskFlowView;
    +}+
    +}+
    Regards,
    Sergio.

  • How to use Boolean values from 2 different sources to stop a while loop?

    I am working on a program for homework that states E5.4) Using a single Whil eLoop, construct a VI that executes a loop N times or until the user presses a stop button. Be sure to include the Time Delay Exress Vi so the user has time to press the stop botton. 
    I am doing this right now but it seems as though I can only connect one thing to the stop sign on th while loop. It won't let me connect a comparision of N and the iterations as well as the stop button to the stop sign on the while loop. So how would I be able to structure it so that it stops if it receives a true Boolean value from either of the 2 sources (whichever comes first)? 
    Basically, I cannot wire the output of the comparison of N and iterations as well as the stop button to the stop button on the whlie loop to end it. Is there a solution?
    Thanks!
    Solved!
    Go to Solution.

    Rajster16 wrote:
    Using a single Whil eLoop, construct a VI that executes a loop N times or until the user presses a stop button. 
    Look in the boolean palette for something similar to the word hightlighted in red above.
    LabVIEW Champion . Do more with less code and in less time .

  • LOV Values not reflecting in the ADF table

    Hi,
    I created to VO's one for the LOV and one which uses the LOV. When I select a value from the LOV three columns in the ADF Table needs to be reflected with the selected value, But the Only one column is reflecting the value.
    When I manually refresh the jsp page the second value and the third value is getting reflected.
    I tried adding Refreshing the ADF table VO using VO Iterator in a managed bean and also added Auto submit , but nothing works.
    The ADF Table is in Page fragment.
    Jdeveloper Version:11.1.2.3.0
    Please help me in resolving the issue.
    Thank you.
    Regards,
    Manigandan R

    Hi,
    set the LOV property "autosubmit" to "true" and then PPR the table (use the PartialTriggers property on teh table to reference the LOV component Id)
    Frank

  • Values from a Multi-Select in the where clause of a Select statement

    I have a web page that solicits query parameters from the user.
    The selections that the user makes will populate the WHERE clause of a Select statement.
    One of the controls on the page is a multi-select control.
    When this page posts, I would like to execute a Select statement wherein the selected values from this control appear in the .. Column IN ( <list here> ) portion of the WHERE clause.
    This is an extremely common scenario, but I cannot seem to locate a how-to or message thread that addresses this specific case.
    I have an idea that it may involve dynamic SQL or Execute Immediate, but cannot seem to pin down the answer.
    Any help would be greatly appreciated!

    anonymous - As illustrated here: Re: Search on a typed in list of values
    Scott

  • How to retrieve the values from PL/SQL table types.

    Hi Every one,
    I have the following procedure:
    DECLARE
    TYPE t1 IS TABLE OF emp%ROWTYPE
    INDEX BY BINARY_INTEGER;
    t t1;
    BEGIN
    SELECT *
    BULK COLLECT INTO t
    FROM emp;
    END;
    This procedure works perfectly fine to store the rows of employee in a table type. I am not able to retrieve the values from Pl/SQL table and display it using dbms_output.put_line command.
    Can anybody help me please!!!!!
    Thanks
    Ahmed.

    You mean, you can't add this
    for i in t.first..t.last loop
    dbms_output.put_line(t(i).empno||' '||t(i).ename||' '||t(i).job);
    end loop;or you can't add this
    set serveroutput onor maybe, you are working in third party application where dbms_output is not applicable at all?
    You see, not able like very similar it is not working - both are too vague...
    Best regards
    Maxim

  • Could not complete the new 3D extrusion from selected layer command because the path is too complex.

    I was trying to do a photo of mine like in this video but its not working help needed. thanks.
    http://www.youtube.com/watch?v=egyLY78H7nE
    When I tried the 3D I got an error message that said (could not complete the new 3D extrusion from selected layer command because the path is too complex.) what does this mean and how can i fix it?

    There was a bug at one time where really simple paths (like a triangle, for example) could cause that error.
    Is your path really simple (I don't plan to go watch the video)?  If so, have you installed the latest update for Photoshop?  That bug may have been fixed already.
    If it's not that, it's possible that if your path is really complex and simply exceeding Photoshop's capability.
    -Noel

  • How to CREATE SUBQUERY in ADF or generate the ADF table consisting of colum

    hi,
    I have to generate the ADF table consisting of columns from different database tables depending on some criteria.. kindly help me in generating the subquery or retrive the columns from different database tables......

    hi, i m using adf bc, toplink . i have got 3 row of data in a table now i wnt to pass these values one by one in the query to fetch the coloumn from the different database table and place the result obtained in the third new coloumn... can u give me the detailed answer

  • How to hide committed data in the adf table

    Hi,
    I want to hide the existing data or committed data from the ADF Table when it loads.
    When I press the create button the new record only should show.
    How to do this?
    Any suggestions please.
    Thanks in advance,
    Sundar

    You can use VO.setQueryMode(ViewObjectImp.QUERY_MODE_SCAN_UNPOSTED_ENTITY_ROWS) followed by VO.executeQuery() in this case.
    http://docs.oracle.com/cd/E23549_01/apirefs.1111/e10653/oracle/jbo/ViewObject.html#QUERY_MODE_SCAN_UNPOSTED_ENTITY_ROWS
    alternatively you can also iterate over the rowset and check the entity state of the current row to be STATUS_NEW else remove the row from the collection.

  • Retrieve values from a HTML table !!!

    Hi.
    How can i retrieve values from a HTML table using javascript ?
    I´m trying to use the command "document.getElementsByTagName" without success.
    Thanks in advance.
    Eduardo

    Hi, Deepu.
    I´m still with trouble in retrieving the value in HTML.
    In debug the C_CELL_ID seems to be correctly updated but
    when using the command "document.getElementById" the value is always "null".
    I implemented in the method DATA_CELL the code :
      if i_x = 3 and i_y = 2.
      C_CELL_ID             = 'zs'.
      C_CELL_CONTENT = 10. 
      endif.
    And in HTML :
    var ztest = document.getElementById('zs');
    alert(ztest);
    Could you help me please.
    Many regards
    Eduardo S.
    Message was edited by: Eduardo   Silberberg

  • Bind a new view object to same adf table at run time

    Hello,
    I have an adf table, that changes based on the type of data the user selects. For example, lets say we have a page that consists of type drop down box at the top and an ADF table at the bottom, which lists data based on the type that is selected from the drop down box. For example, lets say, I have the types (Cars, Planes, and Trains).
    Let's further say we have a view object for cars, one for Planes and one for Trains. Each VO has its own specific set of attributes associated with them, which in should be reflected in the adf table that's on the screen.
    So for example, I select Train..
    My table should contain the columns, num cabs, train type, year built
    For plane, the columns might be Num engines, plane manufacturer, size(ie. 747, 727, etc), year built
    Some type of thing with Cars , cylinders, color, model, year, etc.
    Is there a way to tell my adf table to use a specific view object(ie. Plane, train, or car) at runtime?

    You can try implementing this with dynamic components, e.g. dynamic table
    >
    ADF Dynamic and ADF Read-Only Dynamic Table: Allows you to create a
    table when the attributes returned and displayed are determined dynamically
    at runtime. This component is helpful when the attributes for the
    corresponding object are not known until runtime, or you do not wish to
    hardcode the column names in the JSF page. For more information about
    working with dynamic components, see Section 26.7, "Using a Dynamic Form
    to Determine Data to Display at Runtime."
    >
    Or you use dynamic regions and swithc the region containing the table depending on the selectOneChice. Check http://docs.oracle.com/cd/E24382_01/web.1112/e16182/taskflows_regions.htm and https://blogs.oracle.com/shay/entry/adf_dynamic_regions_switching_just
    Timo

  • Can COPA pull values from material classification tables

    Hi All,
    I know COPA can pull values from standard SAP tables like material master tables (e.g. MARA) but can it also pull values from material classification table(s)?
    Your help is greatly appreciated,
    Points will be rewarded

    Hi Kati,
    In order to derive CO-PA chars from material classification view for a
    specific material value you have to implement the CO-PA derivation exit
    (include ZXKKEU11) accordingly. It's indeed table AUSP from which you
    can get the corresponding value (field ATWRT) for each classifying
    attribute (field ATINN). In order to find out the field name for each
    ATINN number (so that the mapping to corresponding CO-PA chars can be
    done in a sensible way) you have to select additionally the ATNAM value
    from table CABN (for given ATINN number).
    BR,
    MLM

  • Distinct values from dynamic internal tabls

    Hi All,
    I have a dynamic internal tables like <dy_table> , i want to get distinct  values from this internal tables,
    how to do that, structure of dynamic internal tables is dynamic acc. to user conditions.
    regards,
    Anuj

    Hi Anuj
    Just try this,
    CALL METHOD cl_alv_table_create=>create_dynamic_table
    EXPORTING
    it_fieldcatalog = tb_fields_for_it
    IMPORTING
    ep_table = gp_dyn_table.
    ASSIGN gp_dyn_table->* TO <gt_table>.
    ASSIGN LOCAL COPY OF INITIAL LINE OF <gt_table> TO <fs_table>.
    LOOP AT tb_output.
    *To assign value for serial number.
    ASSIGN COMPONENT 1 OF STRUCTURE <fs_table> TO <ls_field>.
    <ls_field> = tb_output-sno.
    UNASSIGN <ls_field>.
    *To assign value for Sales Organization.
    ASSIGN COMPONENT 2 OF STRUCTURE <fs_table> TO <ls_field>.
    <ls_field> = tb_output-vkorg.
    UNASSIGN <ls_field>.
    *To assign Rate for its respective Condition type.
    LOOP AT tb_konp WHERE knumh = tb_output-knumh.
    READ TABLE tb_fieldcat1 WITH KEY fieldname = tb_output-kschl.
    IF sy-subrc EQ 0.
    lv_count = tb_fieldcat1-col_pos.
    ASSIGN COMPONENT lv_count OF STRUCTURE <fs_table> TO <ls_field>.
    IF tb_konp-konwa EQ '%'.
    tb_konp-kbetr = tb_konp-kbetr / co_10.
    <ls_field> = tb_konp-kbetr.
    ELSE.
    <ls_field> = tb_konp-kbetr.
    ENDIF.
    ENDIF.
    ENDLOOP.
    lv_count = lv_count + 1.
    APPEND <fs_table> TO <gt_table>.
    CLEAR <fs_table>.
    ENDLOOP.
    Hope this proves helpful to you.

  • How do I select a range of rows from an internal table in the debugger?

    Hi,
    I have a case where I wanted to delete a range of rows (several thousand) from an internal table using the debugger.
    It seems that rows can only be selected one at a time by selecting (clicking) on the far left side of the row.
    This is cumbersome, if not impossible when wishing to delete several thousand rows. 
    Other tools, such as Excel for example, allow for selecting a range of rows by selecting the first row and then holding the SHIFT key and selecting the last row and all rows in between will be selected.
    I can't seem to find the combination of keys that will allow this in the table (or structure) tab of the debugger.
    Is it possible to select a range of rows without having to select each row one at a time?
    Thanks for your help,
    Andy

    While it's a Table Control and should/could have a button to select all fields (or visible fields)...I don't think we can do it right now...I know it's a pain to select each row one at a time...but I don't we have any more options...
    Greetings,
    Blag.

  • Display a file with in the ADF screen in the edit mode.(RTF or Word format)

    Hi ,
    As per my business need i need to display a file (.doc or .pdf) in the ADF screen in the edit mode. Later user can be able to save the document . As of now i am using a separate editor for edit the document. but that editor is supporting only for html format only. so that some images which are there in those files are not displaying in the screen.so this is not the consistent solution for my requirement.
    So please help on this if any body had done this kind of object.
    Thanks,
    Rajesh
    Edited by: 927500 on Apr 18, 2012 7:31 AM

    Hi,
    ADF doesn't provide a component for PDF and Word editing.
    Frank

Maybe you are looking for