Displaying values in the table

HI Team,
I am trying to display 10 rows, with 3 cols in a table.
but it is displaying only last row.
this is the code is wrote.
for(int i=1;i<=10;i++)
     wdContext.nodeEmpDetails().invalidate();
    wdContext.nodeEmpDetails().currentEmpDetailsElement().setEmpId(500+i);
     wdContext.nodeEmpDetails().currentEmpDetailsElement().setEmpName("Emp Name :"+i);
     wdContext.nodeEmpDetails().currentEmpDetailsElement().setSalary(10000+i);
     wdComponentAPI.getComponent().getMessageManager().reportSuccess(" Value..."+ i );
And bounded this node attributes to table cols.
when i print them i am getting all the values.
But the table is displaying only last row.
cardinality is 1--n
selction is 0-1
How can display all 10 rows in table
Regards,
Naresh

Hi Naresh,
Instead of
for(int i=1;i<=10;i++)
wdContext.nodeEmpDetails().invalidate();
wdContext.nodeEmpDetails().currentEmpDetailsElement().setEmpId(500+i);
wdContext.nodeEmpDetails().currentEmpDetailsElement().setEmpName("Emp Name :"+i);
wdContext.nodeEmpDetails().currentEmpDetailsElement().setSalary(10000+i);
wdComponentAPI.getComponent().getMessageManager().reportSuccess(" Value..."+ i );
put following
for(int i=1;i<=10;i++)
wdContext.nodeEmpDetails().addElement(wdContext.nodeEmpDetails().createEmpDetailsElement());
wdContext.nodeEmpDetails().moveLast();
wdContext.nodeEmpDetails().currentEmpDetailsElement().setEmpId(500+i);
wdContext.nodeEmpDetails().currentEmpDetailsElement().setEmpName("Emp Name :"+i);
wdContext.nodeEmpDetails().currentEmpDetailsElement().setSalary(10000+i);
wdComponentAPI.getComponent().getMessageManager().reportSuccess(" Value..."+ i );
wdContext.nodeEmpDetails().moveFirst(0);
Regards.
Gopal

Similar Messages

  • How to display the values from the table in the screen

    Hi,
    I have created a screen where i will enter the values for the field treshold amount and desc and if i press update button  .it will update the new values by overriting the existing values .
    Now i have got requirement i need to create a button show which will display the existing value from the table. always there will be only one entry...in this table
    Please can one give me idea...to do this
    or sample code...thanks in advance
    regards
    paveeeeee

    Define a function code 'SHOW' for your button. In your PAI module, when you check for various sy-ucomms, check for 'SHOW' also.
    Your code will be like this:
    Case sy-ucomm.
      when 'SHOW'.
         perform show_details.
    endcase.
    In the perform, you can fetch the data from the table and put it in global variables. In the PBO, move the data from the global variables to the screen fields so that they get displayed on the screen.
    Hope this helps. Reward points for useful answers.
    Regards
    Nithya

  • How to display(binding) values in the table from more than one node?

    Hi,
    I have two nodes (TRIPS & AMOUNTS)in the context. How to bind these values into the table control?
    When i bind second one, first one is getting replaced.

    Hi Mog,
    Of course it is possible to create a table from attributes of more than one node, and in some cases this is still necessary, but you have to do this the hard (manual) way.
    If you have a table control, have a look at the properties and the elements belonging to it.
    First of all, there is the property "dataSource", which binds to a multiple node (let's name it TableRootNode). This means that for each element of THIS node, one row is created. In each row the data of exactly one element of this TableRootNode is displayed.
    Then you have columns in this table. Inside of the columns there is a header and an editor. The editor is the interesting part.
    Normally the primary property of this editor is bound to an attribute of the TableRootNode. Then everything works as expected. If it binds to an attribute of a subnode (SUB) of TableRootNode, then in row i the data of the subnode of the i-th element of TableRootNode is displayed. There is no need for SUB to be a multiple node, but it must not be a singleton.
    If you bind a property of the editor to an attribute, which does not lie in the subtree of TableRootNode, then you will see the same value in each row.
    Now it depends on the structure of your context. Take the node, which is relevant for the change in each row (I assume it is TRIPS) and bind the table to the node as you are used to. Then for each additional column, you have to create a new column in the tree, create a new header element with a title and a new editor (e.g. textview or inputfield) and then bind the right property of the editor to the corresponding attribute in node AMOUNTS).
    If these 2 nodes do not have parent-child-relationship, the tip to create a new node, which consists of the attributes of both nodes is the only solution.
    Ciao, Regina

  • Timeline usage : To display value at the end of timeline values

    Hi Team,
    In my current project, I want to implement functionality given below. All records are present in one single table.
    Table has columns as (City,Date,Positive,Negative,CountOfItems)
    I have created data model as given below.
    I need to design Power View Report for which Date will act as "Timeline", so when I select DAte as "2010-10-01" to "2010-11-01" then It should show me report having data on "2010-11-01 because it is latest data I am having.
    Final report should look like as below.
    But as I have used "Sum" function, it shows me wrong result.
    My actual meaning is that, on every date of selected window in timeline, value at the last day of selected window should be displayed at report.
    Can anyone help me to do db design and report formulation.

    It looks like this was answered in your other thread...
    Display value at the end of timeline range selection: http://social.msdn.microsoft.com/Forums/en-US/sqlkjpowerpivotforexcel/thread/20ce91d4-9cc1-4680-be71-6172c64e4da7/#20ce91d4-9cc1-4680-be71-6172c64e4da7
    In the future, please try to avoid creating multiple threads for the same problem :)
    Regards,
    Michael
    Please remember to mark a post that answers your question as an answer...If a post doesn't answer your question but you've found it helpful, please remember to vote it as helpful :)

  • How to pass line item values in the table paramer of FM

    Hi all,
    When i will give the import of  the FM as VBELN"sales order number.
    I want to display all the line items for "PO Quantity in the out put of the FM.
    For this i thnk i have to pass the line item values in the table parameter of the FM.
    Can any body please tell me how to pass the values for the line items in the table parameter fo teh FM.
    Please give a example.
    Thanks

    Sub pLoopThroughPivotFields()
    Dim oItem As Excel.PivotItem
    Dim oField As Excel.PivotField
    Set oField = ThisWorkbook.Worksheets("Sheet1").PivotTables("Pivot Table name").PivotFields("field name")
    For Each oItem In oField.PivotItems
    oField.CurrentPage = oItem.Name
    'Put your copy code here
    DoEvents
    Next oItem
    End Sub
    Felipe Costa Gualberto - http://www.ambienteoffice.com.br

  • How to update values in the table control at  Cat2 transaction,

    Hi,
    i am working on cat2 transaction, here
    i am using the exit_saplcats_006 and updating values at catsdb table, but i want to display this values at the table control in the cat2 transaction.
       can any one provide me solution for this same.
    Regards

    Hi Suresh
      this is actual requirement
    in the CAT2.
    1. Add a new column for WBS description and derive the value as per the FS
    2. Retrieve project number and description and update in the column specified
    3. When a service order is selected it should do the same for 2.
    4. Finally repeat for the worklist view (which is the section above)
       here i am able to display values at data entry area
    for service order and network but not worklist area ?
        updation is not coming, can u plz go throw it..
    Thanks
    Chinna

  • Update the values in the table on select of a particular row

    hi
    I want to update the values in the table on selecting the particular row.
    im able to select the particular row using Leadselect.
    can any one help me in updating the values in the table?
    regards
    raji

    hi,
    values are coming from my database ( SQLServer.)
    on click of the button i am able to display the values from the database.
    My problem is on selection of any row , i should be able to edit/update the values in the table .
    regards
    raji

  • Error in retrieving the value to the table

    Hi,
       I have requirement like this,
    I want to display data in the table.
    I created table and I created columns.
    I didn't do directly create binding, (Because in mobile stimulator create binding is not accepted)
    Instead  I binded values by going to properties -> text
    My Problem is , in my table, only the first rows is displaying form the back end.
    If i tried with create binding option, all the rows are displaying from the back end
    Could you please guide me, how to bind the table and get values from the back end.
    Regards,
    Anitha

    Hi
    1.Map the data source property of table to the model node.
    2.Take the size of the model node.
    3.create a context attribute ctx_size of type integer
    4.Bind the VisibleRowCount property of table to the context attribute "ctx_size"
    5.In the code set the value for ctx_size to size of the model node //According to size of the node row will be displayed
    6.Insert TableCellEditor according to your requirement(textview etc) and bind the text property with the model attribute.repeat this depending the number of column.
    Thanks
    Susmita
    Edited by: susmita panigrahi on Sep 2, 2009 12:22 PM

  • Old value in the table  SETLEAF

    Dear All,
    Normally we take back up on every weekend. Due to some wrong transport request in production in last weekend, all the value in the table - SETLEAF has been overwriten. Is there any way in which we can read the value entry in the table -SETLEAF from the back up system befor the last week end ?
    Please help immideate basis.
    Regards,
    sp sahu

    Hello,
    I think you will have to build another database to read the value from specific table.
    Restore system to another server and check the table valaues.
    Good Luck,
    Atil

  • Exit in DP90 and how to get value in the table

    Hi all,
    My requirement is when execute DP90(create billing request), the amount in the table must be validated when I click the "Billing Request" button.
    Please tell me the user_exit, BADI or any other enhancement which can I use to validate the amount in that transaction.
    And how to get the amount(amount to be Billed, Amount rejected) value in the table after that??
    Thanx

    Hi Teja,
    Check the BADI (SE18) - BADI_SD_DPBP - Extensions in SD for DP90 with Billing Plan

  • How to find the value in the table in database ?

    Hi, Could you please advise me, How to findout the data-value in the table in database ?

    what do you mean by value ?
    --Girish                                                                                                                                                                                                                           

  • Find second Biggest and second smallest values in the table

    Hi guys
    I am new to oracle - sql and pl/sql
    I need u r help
    My question is i have a table with columns s.no, emp name, salary etc.,
    how can i get the second largest and smallest value in the table (based on salary)
    Any one pls give the queries (pls the query is used in oracle 8i)
    Regards
    Marimuthu.N

    You only need to use max and min. Once you have it, select the max lower than max and the min biggest than min.

  • How to Maintain Values in the Table control?

    Hi,
    I'm Saikumar.
    I've done a table control program.
    When I click SAVE or ENTER Button, the values are getting saved into the database(This is working alright)......but when I click those buttons, The values entered in the table control are getting cleared.
    What should I do in order to have those values in the table control itself when I click SAVE/ENTER? (I need to create multiple records at a time)
    What I've done is:
    IF sy-ucomm = 'SAVE' OR sy-ucomm = 'ENTR'.
    INSERT into <database table> values wa_matgl.
    MODIFY it_matgl from wa_matgl INDEX tc1-current_line. "tc1 is the table control name.
    Refresh it_matgl.
    endif.
    I tried many ways but the vales are getting cleared in the table control? (I need to create multiple records at a time).
    Please suggest a way to overcome it.
    Thanks in advance,
    saikumar

    Hi ...
    Just to add...
    were there any values in the internal table it_matgl  initially in the PBO screen to be shown to the users ?
    <u>if the answer is no...then......</u>
    i came across the same coding in DEMO_DYNPRO_TABCONT_LOOP_AT.....
    here also in PAI..when we press enter..the values are not retained...
    MODIFY it_matgl from wa_matgl INDEX tc1-current_line. "tc1 is the table control name.
    <b>because i believe the modify statement is not working.coz the it_matgl is empty..pls check if sy-subrc = 0....after the modify statement....if it is not...then we need to insert the data into the it_matgl using an append statement</b>
    for this it_matgl needs to be with header line...
    Pls explore the following....
    data : it_matgl type table of XXXX with header line.
    in the section
    IF sy-ucomm = 'SAVE' OR sy-ucomm = 'ENTR'.
    INSERT into <database table> values wa_matgl.
    MODIFY it_matgl from wa_matgl INDEX tc1-current_line. "tc1 is the table control name.
    <i>if sy-subrc <> 0.
    move corresponding wa_matgl to it_matgl.
    append it_matgl.
    clear it_matgl.
    endif.
    endif.</i>
    Pls check and revert
    Regards
    Byju

  • Hardcode the values in the table

    Hiii
    Iam developing a web dynpro application.With out writing the code i can able to deploy and run the application.In that i want to hardcode values in the table for demo purpose.how i can get those values.
    Is there any property in web dynpro to do that,,,,,,,, or else,,,,,,,,, we have to write the code in the application.
    If thats the case,,,,Please provide the code to get the values in the table.
    Regards
    Sushma

    Hi
    For different data,,,,,in what way i have to do.
    Like this your saying
    IPrivateEtrecEmpView.IEmployeeElement element4 = wdContext.nodeEmployee().createEmployeeElement();
                   element4.setDesignation("Software Engineer");
                   element4.setDepartment("Basis");
                   element4.setEmailID("");
                                  element4.setEmpCode("0011579");
                                  element4.setEmpName("");
                                  element4.setMobileNo("");
                                  element4.setSlno("4");
                                  element4.setLocation("Bangalore");
                        wdContext.nodeEmployee().addElement(element4);
         IPrivateEtrecEmpView.IEmployeeElement element3 = wdContext.nodeEmployee().createEmployeeElement();
                             element3.setDesignation("Software Engineer");
                             lement3.setDepartment("Web dynpro");
                             element3.setEmailID("");
                             element3.setEmpCode("0011579");
                             element3.setEmpName("");
                             element3.setMobileNo("");
                                  element3.setSlno("4");
                                  element3.setLocation("Bangalore");
                   wdContext.nodeEmployee().addElement(element3);

  • Executed  Step outcome  value  from the table

    Hi,
       How to get the Step outcome  value  from the table for the executed workitem.
    Regards,
    Rani.

    Hi Rani,
    For database tables you can refer to tables:
    SWWLOGHIST -      History of a work item
    SWWORGTASK -      Assignment of WIs to Org.Units and Tasks
    SWWUSERWI -      Current Work Items Assigned to a User
    SWWWIHEAD -      Header Table for all Work Item Types
    SWWWIAGENT -      Gets agents assigned to a workitem
    You can you FMs like SAP_WAPI_GET_WORKITEM_DETAIL, SAP_WAPI_CREATE_WORKLIST as per your requirement.
    Hope this helps!
    Regards,
    Saumya

Maybe you are looking for

  • How can I keep my regions organized for arranging in Logic 9?

    I just finished getting all of the loops/tracks I need for my dub tune, and it's time to arrange it.  My arrange view is full of scattered puzzle pieces.  The tracks and regions are named to help stay organized.  I start the tune on measure 16 so tha

  • Windows 8.1 enterprise 64 bit hyper-v

    I have core i5 hp pro book 4540s and I am running win 8.1 enterprise edition  When I enable my hyper-v from windows features , on upon restart It does not load back, and the circle of windows loading revolve hour and hours 

  • Can't get add-ins to show up in Outlook 2007 at all.

    In the Outlook 2007 Trust Center Add-Ins, the Itunes add ins just won't show up at all. As such, I can't sync anything from Outlook. I have tried directing the COM Add-in manager to the .dlls, and sometimes Outlook says it's not a valid add in, other

  • ITunes duplicating artwork for same artist but different song.

    iTunes is automatically adding artwork to another song of the same artist in my library. I import artwork for one track of an artist and iTunes applies that artwork to all tracks by the same artist. This is silly. They are all singles and I want each

  • Library sharing help

    I had this all set up very easily at first. I had the iPhoto Lib on my external HD and was sharing it with my G5, iBook G4 and Powerbook G$ all with iPhoto 08'all running 10.4.11. Then I upgraded my G5 to a new iMac running 10.5.5 and I can choose th