Get value in Grid with CollapseLevel

Hi all,
I have a grid with CollapseLevel=2
In my datatable, i have 2 lines.
When i load my grid i have 5 lines (Grid.Rows.Count)
i want to get the value of the selected lines. How can i do ??
Example :
2 lines in datatable
5 lines in my grid in mode view
if i select the line 5, pVal.Row has the value 5 but this number of lines does not exists in my datatable.
Thanks for your response.
Best regards
Michael.

Hi,
you may check if the row is selected in cycle as
if oGrid.Rows(x).IsSelected() = true then
and when is selected, receive the value directly from grid and not from datatable or from datatble as
oGrid.GetDataTableRowIndex(x) where x is selected row in matrix and result is row in datatable and the value you will receive from datatable.
hope it helps
Petr

Similar Messages

  • Query to get value sets associated with its descriptive flexfield

    Hi All,
    Here i have a issue
    I am trying to get Value sets associated with its descriptive flex field of Receivable application and
    also if i want this for particular responsibility i.e., GW RBC Receivable Super User.
    I hope u got it.
    Please suggest me some query to get this.
    This is very important for me.

    Hi, I think your question should be addressed to the OEBS experts

  • Getting values from JLabel[] with JButton[] help!

    Hello everyone!
    My problem is:
    I have created JPanel, i have an array of JButtons and array of JLabels, they are all placed on JPanel depending from record count in *.mdb table - JLabels have its own value selected from Access table.mdb! I need- each time i press some button,say 3rd button i get value showing from 3rd JLabel in some elsewere created textfield, if i have some 60 records and 60 buttons and 60 labels its very annoying to add for each button actionlistener and for each button ask for example jButton[1].addActionListener() ...{ jLabel[1].getText()......} and so on!
    Any suggestion will be appreciated! Thank you!

    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    class Testing
      public void buildGUI()
        final int ROWS = 10;
        JPanel[] rows = new JPanel[ROWS];
        final JLabel[] labels = new JLabel[ROWS];
        JButton[] buttons = new JButton[ROWS];
        JPanel p = new JPanel(new GridLayout(ROWS,1));
        final JTextField tf = new JTextField(10);
        ActionListener listener = new ActionListener(){
          public void actionPerformed(ActionEvent ae){
            tf.setText(labels[Integer.parseInt(((JButton)ae.getSource()).getName())].getText());
        for(int x = 0; x < ROWS; x++)
          labels[x] = new JLabel(""+(int)(Math.random()*10000));
          buttons[x] = new JButton("Button "+x);
          buttons[x].setName(""+x);
          buttons[x].addActionListener(listener);
          rows[x] = new JPanel(new GridLayout(1,2));
          rows[x].add(labels[x]);
          rows[x].add(buttons[x]);
          p.add(rows[x]);
        JFrame f = new JFrame();
        f.getContentPane().add(p,BorderLayout.CENTER);
        f.getContentPane().add(tf,BorderLayout.SOUTH);
        f.pack();
        f.setLocationRelativeTo(null);
        f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        f.setVisible(true);
      public static void main(String[] args)
        SwingUtilities.invokeLater(new Runnable(){
          public void run(){
            new Testing().buildGUI();
    }

  • Get value formula worksheet with POV manange

    I have a number of spreadsheets with numerous of getvalue formulas to populate reports. when I refresh the data, I get an error that says each member can be used once and only once and the pov manager pops up. I cant get rid of this issue. Its like the worksheets has characteristics of an adhoc grid, but with out the adhoc grid.

    This error occurs when a formula is pointing to cells that have repeated members for example:
    A1 has Account#NetIncome and B1 has Account#NetSales; and your get formula accidentally is referencing A1 and B1 among the other cell references, hence the error. I know this is unlikely when is pointing to something so obvious like accounts, but the Custom and IC dimensions can have similar members and the cell reference can be confused.
    So, all you can do, although you probably already have tried it, is to check the cell reference until you find the dimension that is being repeated in your formula.
    Also, make sure the member that is being referenced on the cell is not part of your point of view. It is recommended to have all 12 dimensions visible on your spreadsheet and avoid using the POV when you are using formulas.
    Edited by: Raul Rodriguez on Jan 29, 2009 10:22 AM
    Edited by: Raul Rodriguez on Jan 29, 2009 10:24 AM

  • Sorting a grid with CollapseLevel = 1

    hi
    i have a grid in my form, and i use a DataTable to fill up that grid. My sql commando was 2 fields in order by. And it works fine.
    They are represented by [COL 1] and [COL 5] DESC.
    COL 1 ! COL 2 ! COL 3 ! COL 4 ! COL 5
    01 Ex ! 00001 ! 00001 ! 00001 ! Y
    02 Im ! 00002 ! 00002 ! 00002 ! Y
    02 Im ! 00002 ! 00002 ! 00003 ! N
    <u><i><b>03 Re ! 00003 ! 00003 ! 00006 ! Y
    03 Re ! 00003 ! 00003 ! 00004 ! N
    03 Re ! 00003 ! 00003 ! 00005 ! N</b></i></u>
    After i apply the CollpaseLevel=1 it becomes
    COL 1 ! COL 2 ! COL 3 ! COL 4 ! COL 5
    01 Ex !
    ________00001 ! 00001 ! 00001 ! Y
    02 Im !
    ________00002 ! 00002 ! 00002 ! Y
    ________00002 ! 00002 ! 00003 ! N
    03 Re !
    <u><i><b>________00003 ! 00003 ! 00005 ! N
    ________00003 ! 00003 ! 00004 ! N
    ________00003 ! 00003 ! 00006 ! Y</b></i></u>
    It should be order first by [COL 5] in descendente order but it just changes.
    How can i keep de order that i have defined in strsql statment.
    thanks in advance
    Nelson Soares

    I afraid it's not possible to use collaps level and doing "complex" sorting at the same time (I don't think what you trying is complex but it is for the grid).. In general try looking at this thread: Re: Subtotals with collapslevel in Grid
    >Grid and collaps level:
    >- Work with it quite some time and my conclusion is >that what you see initially after setting collapslevel >is what's possible... I would call the grid a big >disappointment when it comes to colapslevel/tree->view... Simple to use, but impossible to customize...
    I have never to date had a problem that the collaps level could solve ...

  • Using bean.variable for inputText but not getting value

    Hi I am using ADF BC JSF 10.1.3.2.
    I have a search page that has : dropdown1,
    based on dropdown1, I populate the dropdown 2 and with autosubmit and partialtrigger and also set either of the two search layouts true
    LAyout 1 based on dropdown1 value, say x, is rendered and I have 3 inputText , each have value= #{backingbean.variable}.
    Now when i am running this page, I got dropdown2 rendered with correct values and layout 2 rendered as required. Problem starts when I enter a value in the inputText1 and click on search button. In the search method, I try to get value for variable with so many ways : getVariable(), this.getInputText1.getValue()/// All these returned null.
    I tried to initialize the variable. In this case, the inputText1 showed initialised value and when i change value and submit, in the search method I still get the old initialised value.
    The inputText1 somehow never sets the value
    Please help..
    Regards
    Sudha

    Hi,
    I'm not exactly sure about what your functionality is but from what I gather the problem could be that if the bean is request scope then the value of the input text is already lost when you are trying to retrieve it.
    In any case I think that the best thing to do is to use the default view criteria functionality to perform the search if it is done on a view object.
    Gabriel.

  • XmlObject - set value of element with a particular attribute

    Hi,
    In a xmlObject I try to set the value of xml element with a particular attribute but it doesn't work
    //get value of element with a particular attribute
    var myValue = xmlObject.ELEMENTS.ELEMENT.(@category == "myCategory"))// works fine
    //set value of element with a particular attribute
    var myValue = "foo"
    xmlObject.ELEMENTS.ELEMENT.(@category == "myCategory"))= myValue // doesn't work
    Thanks for your help
    Regards

    Hi Dirk,
    For example :
    var xmlObject = new XML ( "<rootElement> <elements> <element category='foo1'>value1</element> <element category='foo2'>value2</element> <element category='foo3'>value3</element> </elements></rootElement>");
    myValue = xmlObject.elements.element.(@category == "foo1");
    $.writeln(myValue)// return value1
    // Now I want modify value1 to value99 like this
    xmlObject.elements.element.(@category == "foo1")= "value99"; //doesn't work
    I hope I was clear in my explanation ;-)
    Regards

  • How to get real value from selectOneChoice with javascript?

    Hi,
    How to get real value from selectOneChoice with javascript? The event.getNewValue() only gets me the index of the selected item, not the value/title.
    JSF page:
    <af:resource type="javascript">
    function parseAddress(event)
    alert("new value: " + event.getNewValue());
    </af:resource>
    <af:selectOneChoice label="Location:" value="" id="soc4">
    <af:clientListener type="valueChange" method="parseAddress" />
    <f:selectItems value="#{Person.locations}" id="si7"/>
    </af:selectOneChoice>
    HTML :
    <option title="225 Broadway, New York, NY-10007" selected="" value="0">225 Broadway (Central Office)</option>
    <option title="90 Mark St., New York, NY-10007" value="1">90 Mark St. (Central Office)</option>
    Thanks a lot.

    Something I was missing ,
    You need to add valuePassThru="true" in your <af:selectOneChoice component. I have personally tested it and got the actual value in alert box. I hope this time you got the real solution. You can also test the following code by your end.
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    <f:view>
    <af:document id="d1">
    <af:form id="f1">
    <af:panelBox text="PanelBox1" id="pb1">
    <af:selectOneChoice label="Set Log Level" id="soc1"
    value="#{SelectManagedBean.loggerDefault}"
    valuePassThru="true">
    <af:selectItem label="select one" value="First" id="s6"/>
    <af:selectItem label="select two" value="Second" id="s56"/>
    <af:clientListener method="setLogLevel" type="valueChange"/>
    </af:selectOneChoice>
    <af:resource type="javascript">
    function setLogLevel(evt) {
    var selectOneChoice = evt.getSource();
    var logLevel = selectOneChoice.getSubmittedValue();
    // var logLevelObject = AdfLogger.NONE;
    alert("new value is : " + logLevel);
    //alert(evt.getSelection);
    //alert(logLevelObject);
    evt.cancel();
    </af:resource>
    </af:panelBox>
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>

  • 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,

  • What organizer app has a really good WEEK VIEW like my Palm Pilot - it's a grid with days across the top.  Below each day- the day is divided into hourly grids.  When events are schdeuled across  week - you get a mosaic of time blocks.  Analogue - great

    What organizer app has a really good WEEK VIEW like my Palm Pilot - it's a grid with days across the top.  Below each day- the day
    is divided into hourly grids.  When events are schdeuled across  week - you get a mosaic of time blocks.  Analogue view is  great way
    to comprehend the time obligations as a molar pattern.
    thx,
    Fritz

    I use Week Cal on the iPod.  I think it was only $1.99.  It is a lot better and does a lot more than the one that came with the Palm Pilot.
    As you know, unlike the Palm Pilot, the iPod does not come with a desktop application that you can sync your iPod calendar to.  Since I don't use Outlook, I have to use a Cloud based calendar to sync with my PC.  I use Hotmail's calendar for that.  (If your computer is a MAC, you can use iCal)

  • How to get the returned value from Functions with Callable statement?

    I was glad to find that stored procedures can be invoke with Java class code by the object of Callable statement like :
    String stmt = "BEGIN departments_pkg.do_select(?,?,?); END;";
    and getting the output variables by
    populateAttribute(DEPARTMENTNAME,st.getString(2),true,false);
    But i would like to get values returned from FUNCTION other than stored procedure, how can i achieve it? Thanks a lot!

    Here is  my code
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_1202.
      MODULE subscreen_find.
      CALL SUBSCREEN SUBSEARCH INCLUDING sy-cprog dynnr.
    PROCESS AFTER INPUT.
      MODULE USER_COMMAND_1202.
      CALL SUBSCREEN SUBSEARCH.
    MODULE subscreen_find.
      case sy-ucomm.
        when 'SELECTED'.             "fcode
          case 'ZSKILL_SEARCH'.     "data element
            when '01'.                       " value range
              dynnr = 0110.
            when '02'.
              dynnr = 0111.
          endcase.
      endcase.
    ENDMODULE.
    kindly tell me what is wrong
    Edited by: Raji Thomas on Feb 8, 2010 10:20 AM

  • 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

  • Design View: Toggle on/off background pixel grid (with axis value markers) for assistance in creating parallax scrolling experiences

    Maybe I haven't used the tool enough to be comfortable, but...
    Adding a toggle for a background pixel grid with x and y axis pixel values to assist in determining key positions during preview might be a good feature. As I become more comfortable with the Muse product, I find myself wanting to add a background pixel graphic (temporarily) so when I preview the comp, I can identify exact pixel positions.

    Alyssa,
    Have you tried putting this rule back as it was originally:
    /* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to auto so it comes onto the screen below its parent menu item */
    ul.MenuBarHorizontal ul.MenuBarSubmenuVisible
        left: auto; /*was 9px*/
        color: #EF9CCF;
        background-color: #FFF;
    That is, changing your 9px back to auto.
    And giving  us a link (as you did) is much better than printing out the code for us! Thanks!
    Beth

  • Getting values from a datagrid to an ArrayCollection

    Hi, I have a drag and dropable datagrid. I fill it with rows of data from another datagrid. Finally, my application demands savings the data from the datagrid into an array collection along with the index of each row. How do i get values from a datagrid into an arrayCollection variable? Please help me..!

    Whatever is dropped into the DataGrid automatically goes into its dataProvider property, typically an ArrayCollection. Just access the data grid's dataProvider property to see the values.

  • Values From Grid

    Hi All,
    How can I get the values from Grid. I would like to take a cell value from a selected row directly from grid instead of DataTable.

    Hi All,
    The above stated queries is somewhat true. we can take values directly from grid. we have to use datatable. I tried datatable also but it does not give the values selected values when collapse level is set.
    When we set the collapse level, datarow arrange as per the collapse level on the fly. lets take an example
    In datatable rows are like
    1   A    B
    2   A    B1
    3   B    C1
    4   C    C1
    5   C    BV
    when we set the collapse level rows are like
    1
          ..A...
                .. B...
               ..  B1..
          ..B..
                  ..C1..
         .. C..
                  ...C1..
                  ...BV..
    like this.....  In this case when I select the datarow from grid. it gives me row of selected index and the selected row does not match with the datarow position in datatable. Hence values varies.....
    Edited by: Manish Chourasia on Aug 20, 2008 6:45 AM

Maybe you are looking for

  • How to buid a jar in Jdeveloper, for a class that calls a webservice???

    Hello I have a project with a main class which calls a webservice, I deployed it in a jar file and add all necessary jars in the CONTRIBUTORS node in JAR Deplyment Profile wizard when I tried to run the jar in command window using the command : c:\ja

  • How can I stop these update notices?

    I keep getting told that there are software updates, but when I go there, it is something I don't need. For example, I keep getting told that there is a digital camera RAW compatibility update. I don't need this, as I don't even have a digital camera

  • Consolitation - how to remove carrried balance

    Hi, Someone knows how to remove the carried forward balance corresponding to the previous fiscal year ? I appreciate a lot any advice. Thanks, Jorge

  • WRT54G Wi-fi connects but no net access

    Okay, I've tried everything I can think of. I sincerely hope someone here can help me with a walk-through (Imagine I'm in the fifth Grade)on fixing this problem. I just recently got internet through Cox communications. I have two computers set up rig

  • How to cancel my subscription?

    I purchased ExportPDF on August 7 for converting a pdf file (scientific paper produced by Latex) and I was very disappointing that the translation provided was a serie of graphic symbols, but not at all the text I would like to get. I asked a questio