Problem to get one row from multiple rows

Hi,
i have master detail form.
for one entry in master, i have multiple in detail table.
and in report i want to join both to get the single row.
is it possible in D2k forms(Oracle)
Eg.
I have table hotel
id name location
101 taj delhi
and another table hoteldetail
id roomtype price
101 single 1000
101 double 2000 etc
now in d2k report i want to show data as
id 101
name taj
location delhi
single 1000
double 2000
please help if there is any way
Thanks
kammy
Edited by: user629129 on Dec 16, 2009 5:03 AM
Edited by: user629129 on Dec 16, 2009 5:05 AM

hi
if i got u then
try something like this.
SQL> select emp.empno,emp.ename,dept.deptno,dept.loc from emp,dept where emp.deptno=dept.deptno;
     EMPNO ENAME          DEPTNO LOC
      7369 SMITH              20 DALLAS
      7499 ALLEN              30 CHICAGO
      7521 WARD               30 CHICAGO
      7566 JONES              20 DALLAS
      7654 MARTIN             30 CHICAGO
      7698 BLAKE              30 CHICAGO
      7782 CLARK              10 NEW YORK
      7788 SCOTT              20 DALLAS
      7839 KING               10 NEW YORK
      7844 TURNER             30 CHICAGO
      7876 ADAMS              20 DALLAS
     EMPNO ENAME          DEPTNO LOC
      7900 JAMES              30 CHICAGO
      7902 FORD               20 DALLAS
      7934 MILLER             10 NEW YORK
14 rows selected.sarah

Similar Messages

  • How to get one value from multiple duplication for a key figure field

    Hi expert,
          I have a infoprovider, with following format:
            employee     hourly_rate   action_type  count of action
         there are multiple rows for each employee, I want to create query as follows:
            employee     hourly_rate   action_type  count of action
         in which hourly_rate is constant , only retriving one value from multiple rows for one employee, count of action should be summarized. 
    how to get this hourly_rate.
    Many Thanks,

    Hi,
    put the employee in rows panel -> reaming object put it in free char panel.
    suppress the all result rows for the all object except employee .
    select the object -> go to query properties -> select display tab -> select result rows -> select suppress.
    select the employee -> go to query properties -> select display tab -> select result rows -> select always display. - now it will give employee wise hourly rate summarize data.
    Thanks,
    Phani.

  • [ASK] Get One Row of Property Value From Dimension in Script Logic

    Hello, i need help about how to get one row of property value from dimension in script logic.
    Let say there is CATEGORY dimension and the members are like this :
    ID                                                  YEAR   Status
    PLAN_2011                                   2011        A
    PLAN_2011_V1                            2011        I
    ACTUAL_2011                              2011        I
    FORECAST_2011                         2011        I
    FORECAST_2011_V1                  2011        A
    PLAN_2012                                  2012        A
    PLAN_2012_V1                           2012        I
    ACTUAL_2012                             2012        I
    FORECAST_2012                         2012        I
    FORECAST_2012_V1                  2012        A
    If i scope CATEGORY like this :
    *XDIM_MEMBERSET CATEGORY = [CATEGORY].PROPERTIES("YEAR") = "2011"
    Then i will get member scope like this :
    PLAN_2011                                   2011        A
    PLAN_2011_V1                            2011        I
    ACTUAL_2011                              2011        I
    FORECAST_2011                         2011        I
    FORECAST_2011_V1                  2011        A
    Question :
    In script logic, how can i read the second record of scope and move it to variable ?
    Ex. : I read second record, so i can get the data of second record (PLAN_2011_V1, 2011, A).
    Is there any function to read all record that had been scope ? So i can read all those 5 records.
    Is there any substring or offset function in script logic ? How to use it ?
    Thank you.

    Hi,
    Firstly, when we scope the logic, it doesnt fetch the entire record from the member sheet. It just fetches the ID.
    Secondly, we dont have the feasibility to read only the second ID and skip the others. However, one alternative is that you use the SELECT statement to store all the IDs in a variable, and then use a FOR loop. But this will loop through all the 5 IDs, as per your example. If you want to skip all the IDs except one, you should maintain some property, so that all the IDs are neglected which doesnt have a particular property value.
    Hope you got the idea.

  • SQL*Plus two fetches for getting one row.

    Hi all.
    I have tested following script.
    alter session set events '10046 trace name context forever, level 12';
    select * from dual;And achieved such results (extract from .trc file).
    SQL*Plus: Release 11.2.0.1.0; (Oracle Version 10.2.0.4.0, 11.2.0.1.0)
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.00       0.00          0          0          0           0
    Execute      1      0.00       0.00          0          0          0           0
    Fetch        2      0.00       0.00          0          0          0           1
    total        4      0.00       0.00          0          0          0           1SQL*Plus: Release 8.1.7.0.0; (Oracle Version 8.1.7.0.0)
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.00       0.00          0          0          0           0
    Execute      2      0.00       0.00          0          0          0           0
    Fetch        2      0.00       0.00          0          1          4           1
    total        5      0.00       0.00          0          1          4           1Allround Automations PL/SQL Developer 8.0.4; (Oracle Version 10.2.0.4.0, 11.2.0.1.0)
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.00       0.00          0          0          0           0
    Execute      1      0.00       0.00          0          0          0           0
    Fetch        1      0.00       0.00          0          0          0           1
    total        3      0.00       0.00          0          0          0           1Allround Automations PL/SQL Developer 8.0.4; (Oracle Version 8.1.7.0.0)
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.00       0.00          0          0          0           0
    Execute      1      0.00       0.00          0          0          0           0
    Fetch        1      0.00       0.00          0          1          4           1
    total        3      0.00       0.00          0          1          4           11) I can't figure out why sqlplus does TWO fetches for getting ONE row (instead of pl/sql developer).
    8i raw trace
    PARSING IN CURSOR #1 len=31 dep=0 uid=0 oct=3 lid=0 tim=0 hv=3549852361 ad='4a0155c'
    select 'hello world' from dual
    END OF STMT
    PARSE #1:c=0,e=0,p=0,cr=0,cu=0,mis=0,r=0,dep=0,og=4,tim=0
    BINDS #1:
    EXEC #1:c=0,e=0,p=0,cr=0,cu=0,mis=0,r=0,dep=0,og=4,tim=0
    WAIT #1: nam='SQL*Net message to client' ela= 0 p1=1111838976 p2=1 p3=0
    FETCH #1:c=0,e=0,p=0,cr=1,cu=4,mis=0,r=1,dep=0,og=4,tim=0
    WAIT #1: nam='SQL*Net message from client' ela= 0 p1=1111838976 p2=1 p3=0
    FETCH #1:c=0,e=0,p=0,cr=0,cu=0,mis=0,r=0,dep=0,og=0,tim=0
    WAIT #1: nam='SQL*Net message to client' ela= 0 p1=1111838976 p2=1 p3=0
    WAIT #1: nam='SQL*Net message from client' ela= 0 p1=1111838976 p2=1 p3=0
    STAT #1 id=1 cnt=1 pid=0 pos=0 obj=195 op='TABLE ACCESS FULL DUAL '11g raw trace
    PARSING IN CURSOR #3 len=30 dep=0 uid=96 oct=3 lid=96 tim=1581355246985 hv=1158622143 ad='b8a1bcdc' sqlid='5h2yvx92hyaxz'
    select 'hello world' from dual
    END OF STMT
    PARSE #3:c=0,e=130,p=0,cr=0,cu=0,mis=0,r=0,dep=0,og=1,plh=1388734953,tim=1581355246984
    EXEC #3:c=0,e=40,p=0,cr=0,cu=0,mis=0,r=0,dep=0,og=1,plh=1388734953,tim=1581355247154
    WAIT #3: nam='SQL*Net message to client' ela= 7 driver id=1111838976 #bytes=1 p3=0 obj#=-1 tim=1581355247252
    FETCH #3:c=0,e=18,p=0,cr=0,cu=0,mis=0,r=1,dep=0,og=1,plh=1388734953,tim=1581355247324
    STAT #3 id=1 cnt=1 pid=0 pos=1 obj=0 op='FAST DUAL  (cr=0 pr=0 pw=0 time=0 us cost=2 size=0 card=1)'
    WAIT #3: nam='SQL*Net message from client' ela= 193 driver id=1111838976 #bytes=1 p3=0 obj#=-1 tim=1581355247735
    FETCH #3:c=0,e=2,p=0,cr=0,cu=0,mis=0,r=0,dep=0,og=0,plh=1388734953,tim=1581355247800
    WAIT #3: nam='SQL*Net message to client' ela= 5 driver id=1111838976 #bytes=1 p3=0 obj#=-1 tim=15813552478552) Is there any possibility to view data provided by each fetch?
    Thanks in advance!
    P.S.
    SQL> sho arraysize
    arraysize 15

    Thanks.
    I have tested two statements.
    select 'hello world' from dual where 1=1;
    select 'hello world' from dual where 1=0;When query returns no data, there is only one SQL*Net roundtrip (and one fetch)
    SQL> set autot on statistics
    SQL> select 'hello world' from dual where 1=1;
    'HELLOWORLD
    hello world
    Statistics
              0  recursive calls
              0  db block gets
              0  consistent gets
              0  physical reads
              0  redo size
            528  bytes sent via SQL*Net to client
            492  bytes received via SQL*Net from client
              2  SQL*Net roundtrips to/from client
              0  sorts (memory)
              0  sorts (disk)
              1  rows processed
    SQL> select 'hello world' from dual where 1=0;
    no rows selected
    Statistics
              0  recursive calls
              0  db block gets
              0  consistent gets
              0  physical reads
              0  redo size
            329  bytes sent via SQL*Net to client
            481  bytes received via SQL*Net from client
              1  SQL*Net roundtrips to/from client
              0  sorts (memory)
              0  sorts (disk)
              0  rows processedBut in both cases i found in client trace this sequence of bytes:
    ] nsprecv: 00 00 36 01 00 00 00 00  |..6.....|
    ] nsprecv: 00 00 00 00 00 00 00 00  |........|
    ] nsprecv: 00 00 90 19 43 13 00 00  |....C...|
    ] nsprecv: 00 00 00 00 00 00 00 00  |........|
    ] nsprecv: 00 00 00 00 00 00 00 00  |........|
    ] nsprecv: 00 00 00 00 00 00 00 00  |........|
    ] nsprecv: 00 00 00 00 00 00 00 00  |........|
    ] nsprecv: 00 00 00 00 00 00 00 00  |........|
    ] nsprecv: 00 00 00 00 00 00 00 00  |........|
    ] nsprecv: 00 00 00 00 00 00 00 00  |........|
    ] nsprecv: 00 00 19 4F 52 41 2D 30  |...ORA-0|
    ] nsprecv: 31 34 30 33 3A 20 6E 6F  |1403:.no|
    ] nsprecv: 20 64 61 74 61 20 66 6F  |.data.fo|
    ] nsprecv: 75 6E 64 0A              |und.    |In first case - it was in 2nd packet and in second case (query returns no data) - part of 1st packet.

  • How to get the data from multiple nodes to one table

    Hi All,
    How to get the data from multiple nodes to one table.examples nodes are like  A B C D E relation also maintained
    Regards,
    Indra

    HI Indra,
    From Node A, get the values of the attributes as
    lo_NodeA->GET_STATIC_ATTRIBUTES(  IMPORTING STATIC_ATTRIBUTES = ls_attributesA  ).
    Similarily get all the node values from B, C, D and E.
    Finally append all your ls records to the table.
    Hope you are clear.
    BR,
    RAM.

  • Hello my name is RESHMA JAN ,i want ask about my itunes..why i cant to open from my PC?everytime i want open still cant..and i get one note from my PC..i also dont know what my problem..

    hello my name is RESHMA JAN ,i want ask about my itunes..why i cant to open from my PC?everytime i want open still cant..and i get one note from my PC..i also dont know what my problem..

    Hello Reshma Jan,
    You will find the solution from other similar discussions from the below link :
    https://discussions.apple.com/message/18744905#18744905
    https://discussions.apple.com/message/22910553#22910553

  • Problem in getting parameter value from selection screen in web dynpro abap

    Hi,
    I am facing problem in getting parameter value from selection screen.
    Please find my code below:
    DATA LT_PAR_ITEM TYPE IF_WD_SELECT_OPTIONS=>TT_SELECTION_SCREEN_ITEM.
    FIELD-SYMBOLS:<FS_PAR_ITEM> LIKE LINE OF LT_PAR_ITEM,
                                 <FS_OBJ_USAGE>    TYPE REF TO data.
      WD_THIS->M_HANDLER->GET_PARAMETER_FIELDS( IMPORTING ET_FIELDS = LT_PAR_ITEM ).
      LOOP AT LT_PAR_ITEM ASSIGNING <FS_PAR_ITEM>.
        CASE <FS_PAR_ITEM>-M_ID.
          WHEN `OBJ_USAGE`.
             ASSIGN <FS_PAR_ITEM>-M_VALUE->* TO <FS_OBJ_USAGE>.      
    [ Here, sy-subrc is 4,  <FS_OBJ_USAGE> is not assigning.]
        ENDCASE.
      ENDLOOP. 
    So, can any one solve this problem.
    Thanks in advance,
    Radhika

    Hi Radhika,
    Try using GET_RANGE_TABLE_OF_SEL_FIELD...
    Please Refer below code..
       DATA: NODE_FLIGHTS TYPE REF TO IF_WD_CONTEXT_NODE.
      DATA: RT_CARRID TYPE REF TO DATA.
      DATA: ISFLIGHT TYPE TABLE OF SFLIGHT.
      DATA: WSFLIGHT TYPE SFLIGHT.
      FIELD-SYMBOLS: <FS_CARRID> TYPE TABLE.
    Retrieve the data from the select option
      RT_CARRID = WD_THIS->M_HANDLER->GET_RANGE_TABLE_OF_SEL_FIELD( I_ID = 'S_CARR_ID' ).
    Assign it to a field symbol
      ASSIGN RT_CARRID->* TO <FS_CARRID>.
      CLEAR ISFLIGHT. REFRESH ISFLIGHT.
      SELECT * INTO CORRESPONDING FIELDS OF TABLE ISFLIGHT FROM SFLIGHT
                           WHERE CARRID IN <FS_CARRID>.
      NODE_FLIGHTS = WD_CONTEXT->GET_CHILD_NODE( NAME = `FLIGHTS` ).
      NODE_FLIGHTS->BIND_ELEMENTS( ISFLIGHT ).
    Thanks,
    Regards,
    Kiran

  • I am facing problem to get text file from application sever

    Hi This is lokesh.
    Actually my requirement is to craete sales orders by getting file from other server.for that i have used shell script to connect that server.Ok i am connecting to that different server(not sap server) successfully.
    But my problem is getting text file from application SERVER.
    That different server people will send the file name as 'DDHHMMSS' (Days,Hours,Minutes,Seconds).
    Just suppose if they will send today means that file name will come as 20103025. and with in half an hour if they again send that file file means that file name as '20110025'.
    like that file name is always varies.So how can i read that type of text files from the application server.
    and one more thing that is there chance to read morethan one text file from application server.
    Pls guide me if u know the solution.PLs this requirement is urgent.
    Regards,
    Lokeshgoud

    Hi..,
    <b>Just execute this program ... this is for the files received in JUST 3 MINS...</b>
    change it according to your requirement !!
    data time type sy-uzeit value '100000'. <i>"<<----start time</i>
    data file(8) type c value '20'.
    do 180 times. <i>" <<----- for 3 minutes</i>
    add sy-index to time.
    concatenate file time into file.
    write / file.
    OPEN DATASET FILE FOR INPUT IN TEXT MODE ENCODING DEFAULT.
    IF SY-SUBRC EQ 0.
    PERFORM READ_DATASET.
    ENDIF.
    file = '20'.
    time = '100000'.
    ENDDO.
    <b>form read_dataset.
    read the file here with the file name <b>FILE</b>.
    endform.</b>
    regards,
    sai ramesh

  • How can I get one value from local machine registry

    how can I get one value from local machine registry, I would like read one value of regitry. I have windows NT workstation. I need it to find the full path of iexplore.exe, this value is in 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\IEXPLORE.EXE'
    Thanks.

    You can use the D2KWUTIL.pll library to read/write to the registry. You have to install the forms examples to get the library.
    The library d2kwut32.dll must also be installed at the clients.

  • Custom authorization provider for WL7 problem (not getting all parameters from ContextHandler)

    I'm implementing a custom authorization provider for WebLogic 7.
    In my Access Decision isAccessAllowed method I need to check values of
    the parameters passed to an EJB method. Now, if an EJB method I have
    two parameters of the same type, for example int, when I get
    ContextElement array from ContextHandler and iterate through it to get
    names and values of the parameters I get the same value (value of the
    first int parameter) from both ContextElement's.
    Here is the code:
    String [] names = ch.getNames();
    for (int i = 0; i < names.length; i++)
    String name = names;
    System.out.println("name = " + name);//here it gets array of
    Strings, which contains two parameter names: "int","int",
    which are the types of EJB method parameters
    ContextElement[] ces= ch.getValues(names);
    for (int j = 0; j < ces.length; j++)
         ContextElement ce = ces[j];
         System.out.println(ce.getName()+ " = " + ce.getValue());
    //here if the value of the first int was 2 and the second 0,
    it would get 2 from both ContextElements (each of ContextElements will
    have name "int"
    If I try this with method parameters of different types, for example
    int with value 2 and long with value 0, then this code work fine -
    first ContextEleement has name int and value 2 and the second has name
    long and value 0.
    Thanks,
    -Oleg Kozlov.

    I'm implementing a custom authorization provider for WebLogic 7.
    In my Access Decision isAccessAllowed method I need to check values of
    the parameters passed to an EJB method. Now, if an EJB method I have
    two parameters of the same type, for example int, when I get
    ContextElement array from ContextHandler and iterate through it to get
    names and values of the parameters I get the same value (value of the
    first int parameter) from both ContextElement's.
    Here is the code:
    String [] names = ch.getNames();
    for (int i = 0; i < names.length; i++)
    String name = names;
    System.out.println("name = " + name);//here it gets array of
    Strings, which contains two parameter names: "int","int",
    which are the types of EJB method parameters
    ContextElement[] ces= ch.getValues(names);
    for (int j = 0; j < ces.length; j++)
         ContextElement ce = ces[j];
         System.out.println(ce.getName()+ " = " + ce.getValue());
    //here if the value of the first int was 2 and the second 0,
    it would get 2 from both ContextElements (each of ContextElements will
    have name "int"
    If I try this with method parameters of different types, for example
    int with value 2 and long with value 0, then this code work fine -
    first ContextEleement has name int and value 2 and the second has name
    long and value 0.
    Thanks,
    -Oleg Kozlov.

  • Problem with getting affected row only in AdvancedTable in OAF(It is very Urgent, I hope you will help)

    Hai,
                   I have problem in advancedTable in oaf.   I don't know how to get last clicked row events in advancedTable. I construct the advancedTable using VO without EO.   I want to save last modified record into database. But I can't do.  This is my code below.
    Controller code
      public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
       super.processFormRequest(pageContext, webBean);
        try{      
              OAApplicationModule am = (OAApplicationModule) pageContext.getRootApplicationModule();         
              if ("update".equals(pageContext.getParameter(OAWebBeanConstants.EVENT_PARAM))) {
                String budgetName = pageContext.getParameter("Budget");
               System.out.println("Budget Name :"+budgetName);
               Serializable[] params ={budgetName};     
                am.invokeMethod("budgetName", params);
            if(pageContext.getParameter("save1")!= null){
            OAViewObject vo = (OAViewObject)am.findViewObject("BudgetCeilingVO1");
            System.out.println("vo :"+vo);
            if(vo !=null){    
                Row row[] = vo.getAllRowsInRange();
                                   System.out.println("rowcount  :"+row.length);
                                   for (int i=0;i<row.length;i++)
                                     BudgetCeilingVORowImpl rowi = (BudgetCeilingVORowImpl)row[i];
                                      String account =   rowi.getAccount();
                                      System.out.println("account :"+account);
                                      String currentYearBudget = rowi.getAttribute1();
                                      System.out.println("currentYearBudget :"+currentYearBudget);
                                      if(account!=null &&currentYearBudget!=null){
                                          Serializable[]   paramsValue ={account,currentYearBudget};
                                          String flag =(String)am.invokeMethod("saveBudgetCeiling",paramsValue);
                                          System.out.println("Success flag is :"+flag);
                                      }else {                                     
            }else{           
        }catch(Exception e){
            e.printStackTrace();

    Hi sandeepM,
                   I used advancedTable to display all records.  When I enter value into messageTextInput to save into database.
    I created View Object (VO). I didn't create any Entity Object(EO). When I press the save button, it save all the 20000 records into db. I want to save only one records at the time, whatever I entered into messageTextInput.
    VO:BudgetCeilingVO1
    Attribute name:Account
    This is my Controller code:
      public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
       super.processFormRequest(pageContext, webBean);
        try{     
              OAApplicationModule am = (OAApplicationModule) pageContext.getRootApplicationModule();        
              if ("update".equals(pageContext.getParameter(OAWebBeanConstants.EVENT_PARAM))) {
                String budgetName = pageContext.getParameter("Budget");
               System.out.println("Budget Name :"+budgetName);
               Serializable[] params ={budgetName};    
                am.invokeMethod("budgetName", params);
            if(pageContext.getParameter("save1")!= null){
            OAViewObject vo = (OAViewObject)am.findViewObject("BudgetCeilingVO1");
            System.out.println("vo :"+vo);
            if(vo !=null){   
                Row row[] = vo.getAllRowsInRange();
                                   System.out.println("rowcount  :"+row.length);
                                   for (int i=0;i<row.length;i++)
                                     BudgetCeilingVORowImpl rowi = (BudgetCeilingVORowImpl)row[i];
                                      String account =   rowi.getAccount();
                                      System.out.println("account :"+account);
                                      String currentYearBudget = rowi.getAttribute1();
                                      System.out.println("currentYearBudget :"+currentYearBudget);
                                      if(account!=null &&currentYearBudget!=null){
                                          Serializable[]   paramsValue ={account,currentYearBudget};
                                          String flag =(String)am.invokeMethod("saveBudgetCeiling",paramsValue);
                                          System.out.println("Success flag is :"+flag);
                                      }else {                                    
            }else{          
        }catch(Exception e){
            e.printStackTrace();

  • Problem is fetching one row having min diff in date

    Hi All,
    I have a requirement like from below query's result, I want to pick the row having minimum DIFF only. But when I tried putting min around trunc(sysdate) - trunc(rsh.shipped_date) "DIFF", it is giving me error of "Not a single-group Group function"...
    select rsh.shipment_num "ASN_NUMBER",
    rsh.shipped_date "SHIPMENT_DATE",
    trunc(sysdate) - trunc(rsh.shipped_date) "DIFF",
    rsl.po_header_id,
    pha.segment1
    from rcv_shipment_lines rsl,
    rcv_shipment_headers rsh,
    po_headers_all pha
    where rsl.item_id = 701879
    and rsl.shipment_header_id = rsh.shipment_header_id
    and rsh.shipment_num is not NULL
    and pha.po_header_id = rsl.po_header_id
    and pha.org_id = 586
    Please help me. I have tried group by function also, but it is not helping...
    Thanks
    Nidhi

    Hi Guys,
    The problem is solved, now I am using following query to get the required result.
    select rsh.shipment_num "ASN_NUMBER",
    rsh.shipped_date "SHIPMENT_DATE",
    trunc(sysdate) - trunc(rsh.shipped_date) "DIFF",
    rsl.po_header_id,
    pha.segment1
    from rcv_shipment_lines rsl, rcv_shipment_headers rsh, po_headers_all pha
    where rsl.item_id = 701879 and
    rsl.shipment_header_id = rsh.shipment_header_id and
    rsh.shipment_num is not NULL and pha.po_header_id = rsl.po_header_id and
    pha.org_id = 586 and
    trunc(sysdate) - trunc(rsh.shipped_date) =
    (select min(trunc(sysdate) - trunc(rsh.shipped_date))
    from rcv_shipment_lines rsl,
    rcv_shipment_headers rsh,
    po_headers_all pha
    where rsl.item_id = 701879 and
    rsl.shipment_header_id = rsh.shipment_header_id and
    rsh.shipment_num is not NULL and
    pha.po_header_id = rsl.po_header_id and pha.org_id = 586)
    and rownum<2
    Thanks and Regards,
    Nidhi

  • Problem in getting current row with JTree

    Following is the code. It doesn't show the currently selected row, it shows the previously selected row:
    treeEqType.addTreeSelectionListener(new TreeSelectionListener() {
    public void valueChanged(TreeSelectionEvent e) {
    DefaultMutableTreeNode node =
    (DefaultMutableTreeNode)treeEqType.getLastSelectedPathComponent();
    JUIteratorBinding iter = panelBinding.findIterBinding("AllIter");
    AllRow row = (AllRow)iter.getCurrentRow();
    System.out.println(row.getName());
    Aamir

    Have a look here: TransactionModified on VO.findByKey()
    It's an unrelated problem, but the code fragment may be what you're looking for.

  • Problem getting all parameters from multiple select

    I have a multiple select option box that's properly displaying all the values. I'm using getParameterValues() to retrieve all of the selections but it returns the string[] with only the first selection made.
    JSP:
    <select name="selectList" multiple="true" size="2">
    <option value="value1"> Select 1
    </option>
    <option value="value2"> Select 2
    </option>
    </select>Servlet:
    String[] subset = request.getParameterValues("selectList");I think all my code above is fine. Anything else that would cause getParameterValues() to only return the top selected item?
    Thanks!

    The HTML cod is written in incorrect syntax, the browser nor the Server will understand.
    If you write it in XHTML then the proper syntax is:
    <select name="selectList" multiple="multiple" >
    If you write it in plain old HTML then the proper syntax is:
    <select name="selectList" MULTIPLE >
    (I'm not sure about this HTML syntax, but definitely the XHTML syntax shown above is correct)

  • Problem in getting opening balance for multiple GL Account

    Hi,
    I am working on a  Trail Balance Report in which i am trying to fetch the data for the opening balance for multiple GL Accounts but it is not coming accurate.. Here is the link to the code which i am using currently right now:-
    http://docs.google.com/View?id=dfxswwff_13fgpdcbgt
    here i am showing the logic for the data of previous year only... i.e. data from begining to 1 day less of the date-low.

    Hi,
    It is a tranparent table which is getting data from the 2 other tables,the filling of this table is right. The execution of this query is right in the program but the problem comes when it is trying to calculate the opening balance for the respective GL Account present in the query it is not doing it. i.e. if there are 2 gl account ids having 3 rows of data each it is not calculating the of it in a single row.. i hope it is clear now...

Maybe you are looking for

  • HOW to run a batch file in DOS 6.22???

    I have written a batch file that runs fine under Windows Command Prompt, but I would like to be able to run it after POST in DOS. I have copied my code to AUTOEXEC.BAT file which gets executed automatically; however it comes up with syntax errors onc

  • Burning to Blu-ray

    I am getting the following error in Encore CS6 when trying to burn to blu-ray: First  play not set and Title Remote not set. Where can I find these? Thanks, Joe

  • How does one resize a photo to the dimensions required by a contest?

    How does one resize a photo in aperture to the dimensions required by contest?

  • How do I store the configuration of an ad-hoc network?

    I have created and Ah-Hoc network in Mavericks, pretty easy. Connection to my iPad works too. My MacBook is connected via LAN to the internet and via the Ad-Hoc conection to my iPad, the reason for that is that I work in a secure environment and this

  • How do you make clips from clips?

    Need help making clips from clips. On a given clip, i mark in and out and then select the area in between. When I copy and paste to another bin, I end up getting the entire clip, not just the part I selected. ALSO, it won't let me name this clip anyt