Getting value with checkbox inside IR

close
Edited by: mang jose on Feb 4, 2011 7:49 PM

Hi,
You welcome.
I do not know details what you like do checked values.
Consider also insert/update all values in one go.
It is faster than looping , example like
DECLARE
BEGIN
  INSERT INTO my_tbl (empno)
  SELECT c001
  FROM apex_collections
  WHERE collection_name = 'EMP_CHK_COLLECTION'
    and c002 = 'true'
END;Or
DECLARE
BEGIN
  UPDATE my_tbl SET my_col_2 = 'SOMETHING'
  WHERE EXISTS(
    SELECT 1
    FROM apex_collections
    WHERE collection_name = 'EMP_CHK_COLLECTION'
      AND c002 = 'true'
      and c001 = my_tbl.empno_col
END;Regards,
Jari

Similar Messages

  • How to get value with two parameter fro sharepoint list in SSRS reporting

    Hi 
    I am using Sharepoint list and fetching data in SSRS.
    Using three parameter as Department,Section and subsection.
    with filter everything working fine,but if i use category All and Sub category all for particular department,unable to get record.
    please let me know how to implement.
    Help will be appreciated.
    Hasan Jamal Siddiqui(MCTS,MCPD,ITIL@V3),Sharepoint and EPM Consultant,TCS
    |
    | Twitter

    Hi Hasan,
    Per my understanding you want to add mutilple value parameters to filter the data in the sharpoint list datasource report, right?
    I have a test based on the step by step details information in below link and all works fine which will make the multiple value parameter works fine:
    https://audministrator.wordpress.com/2014/02/17/sharepoint-list-add-distinct-parameter-value/
    Add the custom code from above link
    Parem1 is the parameter which get values from a query and with all the values(duplicate value),please setting as below:
    Param2 is the parameter which will display in the report have done the deduplication, check the "Allow Multiple values" and then Specify the available value and default value using below expression:
    =Split(Code.RemoveDups(JOIN(Parameters!Param1.Value, ",")), ",")
    Add the filter and preview.
    Similar thread below for your reference:
    SSRS reporting with sharepoint list using Distinct and Multivalue
    parameters
    If i have some misunderstanding, please try yto provide more details information about your requirements.
    Regards,
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • How to get values against checkbox from table

    hi all,
    how can i get column values from database against multiple check boxes,
    is there array in oracle to store multiple values?
    i stored value of check boxes in column named checkid, in table named information.
    now i want to get value of infoid against these chekid column where checkid=1 from this table and want to store infoid against it in another table named handing,
    i want to do like this
    -----Table handing-------
    HID value1 value2
    1 abc xyz
    1 abc xyz
    1 abc xyz
    2 ccc ddd
    3 bbb aaa
    3 bbb aaa
    i wrote code
         DECLARE
         var_id number;
    CURSOR my_cur is
    select infoid from information
    where CHECKID = 1;
         BEGIN
         open my_cur;
         fetch my_cur into var_id;
         CLOSE my_CUR;
         insert into handing
              (hID,
              value1,
              value2)
         values
              (var_id,
              :handing.value1,
              :handing.value2);
    COMMIT;
         SAVED_ALERT;
    end;
    but i know that var_id data type is number it must be array, this codd does not works what should i do? should i use loop but how??? please help me.
    regars

    Hello Wreesha,
    you can enhance your chance to get an answer in several ways.
    - Use {noformat}{noformat} Tags around your code examples to make them more readable and to preserve white space
    - Provide CREATE and INSERTS for sample data (We still don't know how your information table looks like and what date it has)
    - The expected result (also formatted)
    - Don't use words like "immediate" or "asap". We don't get paid for answering questions.
    Regards
    Marcus                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Getting values from checkboxes and emailing

    I have several checkboxes name="area[]"
    the user can check as many as they like.
    To get the value in php I used
    $f_area = $_REQUEST['area'] ;
    and if I want to print out the values I say
    echo $f_area[0];
    echo $f_area[1];
    echo $f_area[2];
    The problem occurs when the user don't check every single
    checkbox because it still prints the maximum number of items.
    I know I need to use a loop and have it run as many times as
    there are items in the array so I used the following code which
    doesn't work.
    $j = count ($f_area);
    $l_area = "";
    for ($i = 0; $i <= $j; $i++)
    echo $l_area
    . "<br>";
    can anyone let me know what is wrong with my loop?

    OK I am really tired. I forgot my $ before the i in the echo
    $l_area
    . "<br>";

  • Set and get values with vector

    I have a class that that querys a db and sets a value of the result to a vector array. Is it possible to set and retrieve that vector array using the set and get methods?
    ex:
    my class:
    sql = "Select ...";
    Vector fName = new Vector();
    rs = sqlStatement.executeQuery(sql);
    if (rs != null) {
    while (rs.next()) {
    fName.add(rs.getString("fName") + "");
    rs.close();
    setFName(fName);
    how would I set up the set and get methods???
    thanks

    I am unsure of what you are asking:
    A Vector has set and get methods for it, you use indexes of the array to say what element you want to work with.
    If you are asking how do you know what elements of the Vector contain which data columns, you have to remember how you put them in.
    If you are asking if you can use set to load the Vector: then NO, you have to have elemenets already there to change, use the add method.
    If you are asking how to access the elements of the Vector you use an Enumeration:
    for(java.util.Enumeration e = v.elements(); e.hasMoreElements();){
    s = (java.lang.String) e.nextElement();
    vl.add(s.substring(0, 12));
    If you are asking something else: please elaborate what you want--my brain may not be very functional this morning.

  • Getting value with an anonymous block using ODP

    Hi all!
    I have a problem I hope someone can help me with. I believe it to be a minor one. I am trying to imbed an anonymous block into my .net app and use it dynamically to get a value from the database depending on the values in a tables. Since my procedure is quite large I am displaying a small example proc for simplicity purposes. Basically I want to execute an anonymous block from my app that will return a value (not a row or rows) from the database. The code is below:
    Private Sub test()
    Dim cn As New OracleConnection(profileString)
    Try
    Dim sb As New System.Text.StringBuilder
    sb.Append("Declare ")
    sb.Append("v_maxnum varchar2(6); ")
    sb.Append("Begin ")
    sb.Append("Select max(to_number(email_address_id)) into ")
    sb.Append("v_maxnum from CVWH14_CDRV_TEST.EMAIL_ADDRESS_TBL; ")
    sb.Append("dbms_output.put_line(v_maxnum); ")
    sb.Append("Exception ")
    sb.Append("When Others ")
    sb.Append("Then ")
    sb.Append("dbms_output.put_line('Program run errors have occurred.'); ")
    sb.Append("End; ")
    Dim cmd As New OracleCommand(sb.ToString, cn)
    With cmd
    cmd.CommandType = CommandType.Text
    Dim parm As New OracleParameter
    parm.ParameterName = "v_maxnum"
    parm.OracleType = OracleType.VarChar
    parm.Direction = ParameterDirection.Output
    parm.Size = 6
    cmd.Connection.Open()
    Dim ret As Object = cmd.ExecuteScalar()
    Dim res As String = cmd.Parameters.Item(0).Value.ToString -- **Error is occuring here**
    cmd.Connection.Close()
    cmd.Dispose()
    End With
    Catch ex As Exception
    MessageBox.Show(ex.Message, "Error")
    'End If
    If cn.State = ConnectionState.Open Then
    cn.Close()
    End If
    End Try
    End Sub
    The exception error reads "Invalid Index 0 for this OracleParameterCollection with Count=0."
    If I can figure out how to get a parameter value from the database via the anonymous block, I can apply the logic to the real application. Any help or direction I could receive would be greatly appreciated. Thanks for reading this post!

    Thank you for responding. The code that I posted was just one of many ways I have tried. I retried the proc making just 2 changes:
    Private Sub test()
    Dim cn As New OracleConnection(profileString)
    Try
    Dim sb As New System.Text.StringBuilder
    sb.Append("Declare ")
    sb.Append("v_maxnum varchar2(6); ")
    sb.Append("Begin ")
    sb.Append("Select max(to_number(email_address_id)) into ")
    sb.Append("v_maxnum from CVWH14_CDRV_TEST.EMAIL_ADDRESS_TBL; ")
    sb.Append("dbms_output.put_line(:v_maxnum); ") -- !Changed this to a bind variable!
    sb.Append("Exception ")
    sb.Append("When Others ")
    sb.Append("Then ")
    sb.Append("dbms_output.put_line('Program run errors have occurred.'); ")
    sb.Append("End; ")
    Dim cmd As New OracleCommand(sb.ToString, cn)
    With cmd
    cmd.CommandType = CommandType.Text
    Dim parm As New OracleParameter
    parm.ParameterName = ":v_maxnum" -- !Changed this to a bind variable!
    parm.OracleType = OracleType.VarChar
    parm.Direction = ParameterDirection.Output
    parm.Size = 6
    cmd.Connection.Open()
    Dim ret As Object = cmd.ExecuteScalar() -- !The error is now occuring here!
    Dim res As String = cmd.Parameters.Item(0).Value.ToString
    cmd.Connection.Close()
    cmd.Dispose()
    End With
    Catch ex As Exception
    MessageBox.Show(ex.Message, "Error")
    If cn.State = ConnectionState.Open Then
    cn.Close()
    End If
    End Try
    End Sub
    I am now getting the error message "Not all variables bound". Any more help or direction that you could throw my way would be greatly appreciated.

  • Creating a process with Checkbox inside interactive report

    close
    Edited by: mang jose on Feb 4, 2011 9:21 PM

    Hi,
    Create dynamic Action. Select Advanced
    Event: After Refresh
    Selection Type: Region
    Region: {select your report region}
    Condition: No Condition
    Action: Execute JavaScript code
    Fire On Page Load: True
    Code:
    $('.apexir_WORKSHEET_DATA input[name="f01"]:checked').each(function(){
    $(this).parents("tr:eq(0)").children().css({"background-color":"#00FF66"})
    })Selection Type: None
    I did updated my sample
    https://apex.oracle.com/pls/apex/f?p=40323:53
    Regards,
    Jari

  • Modify Std. code to get value for User Exit.

    I am executing release strategry at user exit EXIT_SAPLEBND_002  ( Exit Name M06E0004 ), for the field ( USRN1)
    This has got user program ZXM06U22 in it. In this exit I get values from I_CEKKO , IT_BEKPO, IT_BEKET, IT_EKKNU
    and I have to pass the PO value from these structures to E_CEKKO-USRN1   ( This field has set in SPRO setting ) .
    I get the PO value as per standard calculation in the field IT_BEKPO-EFFWR , I also get a value in I_CEKKO-GNETW. However not one of both these values satisfy any one of my conditions. My document condition is defined in SPRO as ZVPA and values against it is calculated considering Taxes On PO. The fields EFFWR or GNETW does not include taxes. And my release startegy should get executed after considering the amount with taxes.
    After debugging a lot I have found that the PO_AMOUNT can be obtained from the Internal Table TKOMV. In this it is stored at TKOMV-KAWRT. I can get the TKOMV values at the point where this user-exit is called.
    i.e. in program MM06EF0S_STRATEGIE_CEKKO    in the last you can see the call to user exit wriiten as below
        CALL FUNCTION 'EXIT_SAPLEBND_002'
          EXPORTING
            i_cekko  = cekko
            it_bekpo = pot[]
            it_beket = ett[]
            it_ekknu = knt[]
          IMPORTING
            e_cekko  = cekko.
    If I put the debugger on  CALL FUNCTION 'EXIT_SAPLEBND_002 and go to TABLES tab and enter there 'TKOMV'
    I can get the table and it's values. However If I press F5 then I go inside my exit code i.e. ZXM06U22. But Here I Don't Get access to the internal table TKOMV , which is  accessible from main calling program MM06EF0S_STRATEGIE_CEKKO.
    My job can be done if I get value from TKOMV inside the code of ZXM06U22. However to get that code in ZXM06U22 what right now I can do is to get the access key of MM06EF0S_STRATEGIE_CEKKO and write code before exit Call and pass the ZVPA from TKOMV there. However many people here advised me not to do that since it is a STANDARD CODE.
    So I would like to know your suggestion in this regard.
    Amol

    Hi All
    Thanks for your quick replies. I wrote code below in my exit. But I am getting Compilation error at following line ( In Bold )
    DATA: l_name(50).
    DATA: my_tkomv TYPE TABLE OF komv.
    <b>FIELD-SYMBOLS: <tkomv> type standard table of komv.</b>l_name = '(SAPMMM06E)TKOMV[]'.
    ASSIGN (l_name) TO <tkomv>.
    my_tkomv[] = <tkomv>.
    The error is below
         "," expected after "TABLE".          
    I don't know whether TYPE TABLE OF is correct or not.
    I will be glad If I get some further help.
    Amol

  • ADF Mobile - selectManyCheckbox - Issue to get value

    Hi,
              I have a simple amx page with selectManyCheckbox as below, I want to get value (first / second) inside Test Bean. But not getting the value as expected
    <amx:selectManyCheckbox label="label1" id="smc1" valueChangeListener="#{TestBean.getCheckBoxValue}" value="#{pageFlowScope.pValue}">
    <amx:selectItem label="Check Box 1" value="first"/>
    <amx:selectItem label="Check Box 2" value="second"/>
    </amx:selectManyCheckbox>
              getCheckBoxValue inside TestBean is as below.
    public void getCheckBoxValue(ValueChangeEvent valueChangeEvent) {
    try {
    System.out.println(" vaule is " + valueChangeEvent.getNewValue().toString());
    System.out.println(" vaule is " + valueChangeEvent.getOldValue().toString());
    String selectedValuesAsString  = "";
    ValueExpression ve;
    ve = (ValueExpression)AdfmfJavaUtilities.getValueExpression("#{pageFlowScope.pValue}",String.class);              
    System.out.println(" 1 "+ve);
    System.out.println(" 1 "+(ve.getValue(AdfmfJavaUtilities.getAdfELContext()).getClass().getName()));
    String attrBinding = (String)ve.getValue(AdfmfJavaUtilities.getAdfELContext());
    System.out.println(" 2 "+attrBinding.toString());
    } catch (Exception e) {
    // TODO: Add catch code
    e.printStackTrace();
    All the places : i am getting the value as object , Here is the console output
    06-19 07:58:31.506: D/CVM(1419):  vaule is [Ljava.lang.Object;@fa17c0
    06-19 07:58:31.506: D/CVM(1419):  vaule is [Ljava.lang.Object;@992d6a59
    06-19 07:58:31.516: D/CVM(1419):  1 TreeValueExpression(#{pageFlowScope.pValue})
    06-19 07:58:31.516: D/CVM(1419):  1 java.lang.String
    06-19 07:58:31.526: D/CVM(1419):  2 [Ljava.lang.Object;@aea1046e
    Could you please let me know How to get value back inside bean using  ValueChangeEvent.
    Thanks in advance.
    Ajoy Sinha

    Here is the answer ..
                                    valueChangeEvent.getNewValue() will return array of Object , i.e Object[]. Now one should loop through the Object and retrieve each object to get value out of it.
    Object[] value = (Object[])valueChangeEvent.getNewValue();
    for (int count = 0; count < value.length; count++) {
    Object checkedBox = value[count];
    String checkBoxValue = checkedBox.toString();
    System.out.println(" Check Box Value " + checkBoxValue);

  • How to get all the values of a variable with F4 with checkboxes to select

    Dear Experts,
    After Executing a query by giving let 3 values(Out of 10 Values) to a variable.
    To give 2 more input values to the same variable(i.e.,total I wanted to give 5 inputs this time ),after refreshing the query,for that variable if I click F4, I am seeing the historical values(i.e.,3) and remaining 7 values also But with out any Check Boxes besides them to select the 2 inputs.
    In the same F4 Screen, If I click all values(an Icon at The bottom),then also Im seeing but no check Box.
    I hve tried by deleting the Delete Personalization also,but no use.
    Please tell me How to get all the values with F4 with check boxes to select ,whatever I want??
    Thanks in advance

    Take a look at the InfoObject and go to the Business Explorer tab. If the 'Query Def. Filter Value Selection' is set to 'Only Values in InfoProvider', you're only going to get the values in F4 that exist in the InfoProvider, not everything in the Master Data. This would need to be changed to the value of 'Values in Master Data Table' if you want it to show everything possible when F4 is chosen.
    Likewise, you're going to need to look at the query and go to the Advanced tab for the InfoObject. Make sure that the radio button for 'Values in Master Data Table' is selected. If not, then you should change that selection.

  • Getting values from a checkbox

    I am iterating through a vector and displaying the values in checkbox format. The problem I have is that my servlet can only see one value that has been selected from the checkbox.
    The JSP code is as such:
    <%int checkBoxIndex = 0;
    Vector abc = (Vector)session.getAttribute("vector");
    Enumeration e = abc.elements()
    while(e.hasMoreElements())
    code........
    checkBoxIndex ++;
    %>
    <input type=checkbox name="Select" value="<%= checkBoxIndex%>">
    <%}%>
    In the servlet, I am getting the selected values as such:
    String screenInput[] = request.getParameterValues("Select");
    Please help me with ideas of how to get all the selected values from the checkbox.

    Please send the full code, its not proper, i dont understand whether the checkbox is displayed only once or multiple times.

  • Problem with checkbox value and app.settings.getSetting()

    Hello everyone.
    I`ve got a problem with getting saved settings for checkbox.
    Saved settings doesn`t apply on checkbox value.
    It`s strange, but it always "true".
    So here piece of code:
    checkMe = 11;    //any value for the first time running
    if (app.settings.haveSetting("savea", "chck")) {                           
                          checkMe = app.settings.getSetting("savea", "chck");  // get saved value, else 11
                          alert("checkMe = "+checkMe)
                        if(checkMe == 11){
                            checkMe= false;   //if there is no saved settings, checkbox value will be false/ unchecked
                            alert("You run this script first time, so manual value will be 'false'")
                            }else{
                                checkMe = app.settings.getSetting("savea", "chck");     // if saved settings exist, get true or false
         alert("Yes, checkMe will = "+checkMe)       
    win.checkPanel.chkOne.value = checkMe;  /// checkbox value will equal saved checkMe
    var fff = win.checkPanel.chkOne.value;  // string for alert
    alert("aha! but checkbox value is  = " +fff+ "\n Why so?")     // here we`ve got always "true"
    win.checkPanel.chkOne.onClick  = function () {
        var path11 = win.checkPanel.chkOne.value;  //  checkbox value to variable
        app.settings.saveSetting("savea", "chck", path11);  //saving checkbox value
        alert("Saved this value - " + app.settings.getSetting("savea", "chck"))
    win.checkPanel.chkOne.value is always true.
    Can someone exmplain why and how to get rid of this static value?
    P.S. just in case, here is full code:
    function mainFun()
        this.windowRef = null;
    mainFun.prototype.run = function()
        /*----- UI -----*/
              var retval = true;
              var win = new Window("palette", "Check option", [150, 150, 460, 455]);
              this.windowRef = win;
              win.checkPanel = win.add("panel", [25, 150, 285, 265], "Checkbox");
              win.checkPanel.chkOne = win.checkPanel.add("checkbox", [10, 15, 125, 35], "Checkbox One");
              //win.checkPanel.chkTxtOne = win.checkPanel.add('edittext', [140, 15, 230, 35], '');
         win.quitBtn = win.add("button", [110,275,200,295], "Close");
    checkMe = 11;    //any value for the first time running
    if (app.settings.haveSetting("savea", "chck")) {                           
                          checkMe = app.settings.getSetting("savea", "chck");  // get saved value, else 11
                          alert("checkMe = "+checkMe)
                        if(checkMe == 11){
                            checkMe= false;   //if there is no saved settings, checkbox value will be false/ unchecked
                            alert("You run this script first time, so manual value will be 'false'")
                            }else{
                                checkMe = app.settings.getSetting("savea", "chck");     // if saved settings exist, get true or false
         alert("Yes, checkMe will = "+checkMe)       
    win.checkPanel.chkOne.value = checkMe;  /// checkbox value will equal saved checkMe
    var fff = win.checkPanel.chkOne.value;  // string for alert
    alert("aha! but checkbox value is  = " +fff+ "\n Why so?")     // here we`ve got always "true"
    win.checkPanel.chkOne.onClick  = function () {
        var path11 = win.checkPanel.chkOne.value;  //  checkbox value to variable
        app.settings.saveSetting("savea", "chck", path11);  //saving checkbox value
        alert("Saved this value - " + app.settings.getSetting("savea", "chck"))
              win.quitBtn.onClick = function() {
                  win.close();
        win.center();
              win.show();
              return retval;
    if(typeof(mainFun_unitTest) == "undefined") {
        new mainFun().run();

    Played around with different values, combinations...
    Doesn`t work too:
    checkMe = 111;    //any value for the first time running
    if (app.settings.haveSetting("333", "check")) {                           
                          checkMe = app.settings.getSetting("333", "check");
    alert(checkMe);
                    if(checkMe == 111){
                             win.checkPanel.chkOne.value= false;
                            }else{
                                if (checkMe != false){
                                win.checkPanel.chkOne.value= true;
                                }else{
                                win.checkPanel.chkOne.value= false;
    win.checkPanel.chkOne.onClick  = function () {
        var path11 = win.checkPanel.chkOne.value;
        var path12 = path11.toString();
        app.settings.saveSetting("333", "check", path12);
        alert("Saved value - " + app.settings.getSetting("333", "check"))

  • How to loop to get value of all checked checkboxes?

    I am a non-techic trying to fix something for work. Your help is really appreciated.
    I have a form with checkboxes (4 check boxes). Everything sumbits fine. SQL db is updated perfectly and data is displayed on webpage w/o any problem. However when I go to edit an entry, on the edit form, (if more then one checkbox were selected oringally), non of the checkboxes are checked. If only one checkbox was selected orinally, that checkbox is selected. What am I missing? I know I am suppose to use loop to get all checked checkbox values, but I have no idea how.
    Here is my code so far.
    <input type="checkbox" name="colors" value="red" <cfif #getResultSet.colors# EQ "red">checked</cfif>>red
        <input type="checkbox" name="colors" value="blue" OR<cfif #getResultSet.colors# EQ "blue">checked</cfif>>blue
        <input type="checkbox" name="colors" value="green" OR<cfif #getResultSet.colors# EQ "green"></cfif>>green
        <input type="checkbox" name="colors" value="yellow" OR<cfif #getResultSet.colors# EQ "yellow">checked</cfif>>yellow

    JayYaj wrote:
    However when I go to edit an entry, on the edit form, (if more then one checkbox were selected oringally), non of the checkboxes are checked. If only one checkbox was selected orinally, that checkbox is selected.
    You've given all the checkboxes the same name. Give them each a unique name and you will be able to access them individually. Current standards also require a unique ID, which can (but does not have to) be the same as the name.
    The "OR" characters in your code are not doing anything. You can safely delete them.

  • Getting values from a stored procedure with no parameters

    Hi,
    I'm trying to get values out of a stored procedure that I created on SQL server. I'm trying to get XML values out of the database, but I'm not sure how to get any data out of it written to a file if the procedure doesn't have any parameters.
    So I'm just making a call:
    CallableStatement cs = conn.prepareCall("{call myproc}");
    cs.execute();How do I get values back from this stage?
    Thank you very much,
    Lior

    The short form answer, which assumes that the stored procedure is returning the XML as an out parameter would go something like this.
         public void build(String newUserID, String newPassword) throws SQLException {
              String sql = "{ call GET_ITEM_DETAIL(?, ?, ?, ?, ?, ?) }" ;
              try{
                   init(newUserID, newPassword) ;
                   setCallableStatement(getConnection().prepareCall(sql)) ;
                   getCallableStatement().setInt(1, getItemNumber()) ;
                   getCallableStatement().registerOutParameter(2, oracle.jdbc.driver.OracleTypes.CURSOR) ;
                   getCallableStatement().registerOutParameter(3, oracle.jdbc.driver.OracleTypes.INTEGER) ;
                   getCallableStatement().registerOutParameter(4, oracle.jdbc.driver.OracleTypes.VARCHAR);
                   getCallableStatement().registerOutParameter(5, oracle.jdbc.driver.OracleTypes.VARCHAR) ;
                   getCallableStatement().registerOutParameter(6, oracle.jdbc.driver.OracleTypes.VARCHAR) ;
                   getCallableStatement().execute() ;
                   setSqlResult(getCallableStatement().getInt(3)) ;
                   setSqlMessage(getCallableStatement().getString(4)) ;
                   if( getSqlResult() != 0 ){
                        throw new SQLException(getSqlMessage(), null, getSqlResult()) ;
                   setResultSet((java.sql.ResultSet) getCallableStatement().getObject(2)) ;
                   if( getResultSet() != null ){
                        while( getResultSet().next() ){
                             setItemType(getResultSet().getString("ITEM_TYPE")) ;
                             setItemValue(getResultSet().getString("ITEM_VAL")) ;
                             setDisplayType(getCallableStatement().getString(5)) ;
                             setDisplaySize(Integer.parseInt(getCallableStatement().getString(6))) ;
              catch(SQLException e){
                   java.util.Date now = new java.util.Date() ;
                   java.text.DateFormat format = java.text.DateFormat.getInstance() ;
                   setSqlMessage( e.getClass().getName() + " : " + format.format(now) + " : " + e.getMessage() + " : IN " + getClass().getName() ) ;
                   System.err.println(getSqlMessage()) ;
                   throw e ;
              finally{
                   closeResources() ;
         }The GET_ITEM_DETAIL stored procedure returns several out parameters of various types. The code registers them as out parameters along with an anticipated type and then calls the getXXX(n) method that corresponds with that data type in the appropriate position.
    As I mentioned in my other post, the onus of returning the XML is on the stored procedure, when you get it into Java it's going to be a java.lang.String that you can then parse by whatever means is appropriate to your situation.
    Regards,

  • How to get selected values (using checkBox) from DataGrid in flex.

    i have a datagrid which is getting values from a XML file (getting this xml file from database using PHP and HTTP request in flex). i have created a checkbox in every row in data grid. and here is my requirement: i want to select tow or three check-box and would like to get all the values form that particular ROWs in some form , prefered arraycollection (such that i can pass this array directly to a bar chart) .. can some one help me as i am new to flex .
    code ......
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" creationComplete="siteData.send()">
              <mx:Script>
                        <![CDATA[
                                  import mx.collections.XMLListCollection;
                                  import mx.controls.*;
                                  import mx.events.ListEvent;
                                  import mx.rpc.events.ResultEvent;
                                  import mx.controls.Alert;
                                  [Bindable] private var fullXML:XMLList;
                                  private function contentHandler(evt:ResultEvent):void{
                                            fullXML = evt.result.values;
                        ]]>
              </mx:Script>
              <mx:VBox>
                        <mx:Label text="This Data Grid is loading the full XML file"/>
                        <mx:DataGrid width="600"  id="datagrid" dataProvider="{fullXML}">
                                  <mx:columns>
                                            <mx:DataGridColumn headerText="Select">
                                                      <mx:itemRenderer>
                                                                <mx:Component>
                                                                          <mx:HBox horizontalAlign="center">
                                                                                    <mx:CheckBox id="check"/>
                                                                          </mx:HBox>
                                                                </mx:Component>
                                                      </mx:itemRenderer>
                                            </mx:DataGridColumn>
                                            <mx:DataGridColumn dataField="release_version" headerText="Release"/>
                                            <mx:DataGridColumn dataField="build" headerText="build"/>
                                            <mx:DataGridColumn dataField="time_login" headerText="time_login"/>
                                            <mx:DataGridColumn dataField="time_tunnel" headerText="time_tunnel"/>
                                            <mx:DataGridColumn dataField="rate_login" headerText="time_tunnel"/>
                                            <mx:DataGridColumn dataField="rate_tunnel" headerText="rate_tunnel"/>
                                  </mx:columns>
                        </mx:DataGrid>
              </mx:VBox>
              <mx:HTTPService url="http://localhost/php_genxml.php" id="siteData" result="contentHandler(event)" resultFormat="e4x"/>
    </mx:Application>
    as you can see in the image , i will get this datgrid . now i want to select two or three checkboxes and would like to get all the values form the perticular row (for which check box is selected). i would like to get in array from such that i can driectly pass them to bar chart....
    can some one help me in this. as i m new to flex. or if you have some other suggestion ...My final requirement is: select some values and generate bar gharph for those values.
    please help me in this.
    thanks
    tanuj

    Hi Timo -
    Thanks for the suggestion. I could get the values as below:
    public void multiOpUnitValChange(ValueChangeEvent valueChangeEvent) {
    // Add event code here...
    BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();
    DCIteratorBinding opUnitIter = (DCIteratorBinding)bindings.get("OperatingUnit2VOIterator");
    Integer[] values = (Integer[])valueChangeEvent.getNewValue();
    for (int i=0; i<values.length; i++){
    Row row = opUnitIter.getRowAtRangeIndex(i);
    System.out.println(row.getAttribute("OpUnitId"));
    Thanks -
    Rohit

Maybe you are looking for

  • Any "burps" with Snow Leopard?

    Just touching base with the folks to see if there have been any problems installing and using Snow Leopard. I will be installing it next week. Thank you.

  • Credit balance is lower than I expected.

    A week ago I have subscribed skype credit for 10 EUROS. It says the call rates to India are 1.1 cent per minute. Int his case I should get more than 900 minutes for 10 EUROS. I have not used more then 300 minutes till now. But my current skype balanc

  • Hyperion Planning - Calculation script take too much time to complete

    Dear all, I'm using version 11.1.2.1, and i need your help to solve our problem I had 5 dimension: Entity : Parent Company with > 50 level 0 member Items: Capex-Asset Item with > 500 level 0 member Account: Capex Account with > 20 level 0 member and

  • Epson 2400 - Can't print tabloid

    Having a problem in our studio right now ... Recently installed Leopard on one of the G5's. Went to print this morning on our Epson 2400 and we cannot print tabloid - the page contents will clip at letter size. Same problem no matter what application

  • Preloader errors

    I'm really new at this. I'm getting 4 errors in my preloader script. Ive created a bar with bytes loaded and bytes total and a percentage. No text comes up in the dynamic fields and the bar does not progress. But when I test the movie with "simulate