How to diplay table row dynamically  by button click

Hi All,
I had a table with  with visible row count '3',   i want to display dynamic row  by a button click, mean a 4 th row need to  be added to the table with same like  row '3'.
please help me ..
Thanks,
Raj.

Hi Raju,
while click the Add Button,
Get the all the Rows from the Table  and Put it in to one internal table . after that append the one empty record to that internal table. then again bind to that node.
Like following code.
  DATA lo_nd_sales TYPE REF TO if_wd_context_node.
  DATA lo_el_sales TYPE REF TO if_wd_context_element.
  DATA ls_sales TYPE wd_this->element_sales.
  DATA lt_sales TYPE wd_this->elements_sales.
navigate from <CONTEXT> to <SALES> via lead selection
  lo_nd_sales = wd_context->get_child_node( name = wd_this->wdctx_sales ).
get element via lead selection
  lo_el_sales = lo_nd_sales->get_element(  ).
  CALL METHOD lo_nd_sales->get_static_attributes_table
EXPORTING
   from   = 1
   to     = 2147483647
    IMPORTING
      table  = lt_sales
  IF lt_sales IS NOT INITIAL.
    CLEAR ls_sales.
    APPEND ls_sales TO lt_sales.
    lo_nd_sales->bind_table( lt_sales ).
  ENDIF.
Regards,
Vijay.

Similar Messages

  • How to open a Filechooser on a button click from jsp page

    can anyone tell me how to open a Filechooser on a button click from a jsp page.
    Thanks

    <input type="file" name="myfile">

  • How to create editable tablecells for a single table row dynamically?

    Hi
    How to make the cell of a tablerow editable based on flag in backing list object bound to row? I can't decide the editable property while creating table columns. So i can't use setCellFactory() during creation. However setCellFactory() makes all cells in table column editable.How to make non-editable table row cell editable and vice-versa based on flag?

    hi
    good
    if you want to create two different view for a same table than you cant give the same name for the same view,otherwise it would allow you to create the view.Try out with different view name as well as the function group name,i hope this ll work.
    thanks
    mrutyun^

  • How to get current row using submit button ?

    Hello Friends ,
    Is there any way i can capture the value of current row by submit button ?
    Here is my requirement , i have seeded OAF screen and it has table region one of the column has radio button , the existing
    functionality is when ever the radio button is selected and click on submit button ( submit button attached on top of the table region )
    other oaf page is getting opened .
    Now i wish to restrict the navigation based on some condition , but i don't know how to get the current row using submit button .
    Note : there is no Fire Action event for radio button column ? I dont' know how orale is selecting a specific row
    Any suggestion please ?
    Regards ,
    Vamsi

    Thanks sushant for your response ,
    Well i have tried your approch , i am not getting values for current row .
    if (pageContext.getParameter("paApply") != null)
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    OAViewObject localOAViewObject1 = (OAViewObject)am.findViewObject("ProjectDatesVO");
    if(localOAViewObject1!=null) {
    Row DateVoROw = localOAViewObject1.first();
    RowSetIterator iterator = localOAViewObject1.createRowSetIterator("iterator");
    iterator.setRangeStart(0);
    iterator.setRangeSize(localOAViewObject1.getRowCount());
    for(int i=0; i<iterator.getRowCount(); i++)
    DateVoROw=iterator.getRowAtRangeIndex(i);
    String vacancyValue= DateVoROw .getAttribute("vacancyname).toString();
    Could you please let me know where i am going wrong
    Thanks again ,
    Vamsi

  • How to create table columns dynamically ?

    Hi All,
    I am working on an SSRS report that will show sales in the past 5 years. If the user selected to view sales of past 3 years he will only see 3 columns. so How can I create table columns dynamically at run time and how can I make sure that their dimensions
    will adjust to fit the report page size.

    Hi Developer life,
    According to your description that you want to dynamically increase and decrease the numbers of the columns in the table, right?
    As Jason A Long mentioned that we can use the matrix to do this and put the year field in the column group, amount fields(Numric  values) in the details,  add  an filter to filter the data base on this column group, but if
    the data in the DB not suitable to add to the matrix directly, you can use the unpivot function to turn the column name of year to a single row and then you can add it in the column group.
    If there are too many columns in the column group, it will fit the page size automatically and display the extra columns in the next page.
    Similar threads with details steps for your reference:
    https://social.technet.microsoft.com/Forums/en-US/339965a1-8cca-41d8-83ef-c2548050799a/ssrs-dataset-column-metadata-dynamic-update?forum=sqlreportings 
    If your still have any problem, please try to provide us more details information, such as the data structure in the DB and the table structure you are currently designing.
    Any question, please feel free to let me know.
    Best Regards
    Vicky Liu

  • How to add another row dynamically in Adobe Forms ?

    Hello All,
      Can someone advise on how am I able to add another row to my table upon the click of a button in Adobe Form ?
    Based on some sample PDFs that I downloaded from the net as reference, it seems that all I need to do is add the statment "_Car.addInstance(1)" in the script editor that will trigger upon a clicking of a button where Car is a subform that is of Type : Flow Content and Direction : Table Row set.
      Any suggestion/advise will be greatly appreciated.
    from
    Kwok Wei

    Hello Kwok Wei,
    in NW 2004s, this will be possible on the client using a special forms library object provided by Adobe.
    Be aware, though, that while you are able to add any number of additional lines on the PDF, the original Web Dynpro context is not aware of these actions. This means that your application needs to create the corresponding new nodes in the context before the data contained in these nodes can be submitted back to the application.
    Regards,
    Markus Meisl
    SAP NetWeaver Product Management

  • How to access Table rows in ADOBE form

    Hello Experts,
    I want to access the Table rows which are getting populated by WDA context, in form JavaScript when the table is populated.
    on the basis of few cell values i want to disable and enable particular cells in table rows when the table is rendered to the user.
    Please provide your inputs and suggestion on how to write a java script for it and in which event  i should write the script.
    i searched SDN and found couple of blogs and threads and tried using them but not working.
    Thanks,
    Siddharth

    Hello All,
    thanks for your suggestions.
    after some research and  trial and error i found the solution:here is the sample code for those who might face this issue.
    SUPERNODE(Root Node)
        --SUBFM(SUBFORM)
    MYNODE( Table)
    DATA(Table ROW)
    ADD       (Table COLUMNS)
    DELETE   (Table COLUMNS)
    var data1;
    var norows = xfa.resolveNodes("SUPERNODE.SUBFM.MYNODE.DATA[*]").length;
    for ( var i =0; i < norows; i++)
         if( xfa.resolveNode("SUPERNODE.SUBFM.MYNODE.DATA["i"].DELETE").rawValue == "")
        xfa.resolveNode("SUPERNODE.SUBFM.MYNODE.DATA["i"].DELETE").access = "readOnly";
        if( xfa.resolveNode("SUPERNODE.SUBFM.MYNODE.DATA["i"].ADD").rawValue != "")
        xfa.resolveNode("SUPERNODE.SUBFM.MYNODE.DATA["i"].ADD").access = "readOnly";

  • How to use table name dynamically in report  procedure

    Hello every body
    I want to use table name dynamically means at runtime i want to pass table name.
    I can do this by lexical parameter in main query.
    But my problem is that i want to crate new format trigger or new function that use 1 cursor in which that lexical parameter : table name is used.
    so how to do that?
    i can not use that lexical parameter it is giving error.
    please help me how to do that.

    Call a database function which you pass the lexical parameter. Then in the database function you use dynamic sql or the execute immediate option to build the SQL string.
    Return the information from this function to build your business logic on in your format trigger.
    Marcos

  • How to retrieve table rows data and add into DB

    Hi All,
    I'm a beginner in JAVAFX, I have developed a table and adding the data into the table in multiple rows. on button click I would like these rows to be added into DB.
    Please could anyone help on this. I'm copy the code for reference.
    CODE:
    import javafx.ext.swing.SwingComponent;
    import javax.swing.event.ListSelectionEvent;
    import javax.swing.event.ListSelectionListener;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    import javax.swing.table.DefaultTableModel;
    package class TableColumn{
    public var text: String;
    package class TableCell{
    public var text: String;
    public var id;
    public var str:String;
    public var str1:String[];
    public var num:Number;
    package class TableRow{
    public var cells: TableCell[];
    package class SwingTable extends SwingComponent{
    var table: JTable;
    var model:DefaultTableModel;
    public var selection: Integer;
    public var columns: TableColumn[] on replace{
    model = new DefaultTableModel(for(column in columns) column.text, 0);
    table.setModel(model);
    public var rows: TableRow[] on replace oldvalue[lo..hi] = newVals{
    for(index in [hi..lo step -1]){
    model.removeRow(index);
    for(row in newVals){
    model.addRow(for(cell in row.cells) cell.text);
    public override function createJComponent(){
    table = new JTable();
    model = table.getModel() as DefaultTableModel;
    var selectionModel = table.getSelectionModel();
    selectionModel.addListSelectionListener(
    ListSelectionListener{
    public override function valueChanged(e: ListSelectionEvent ) {
    selection = table.getSelectedRow();
    return new JScrollPane(table);
    }

    Instead of using a combo box, using a text ring makes it much easier to disable items in the list. Here is a vi that will do what you want. Also you can delete the last element in the table and make it enabled in the text ring for selecting again.
    - tbob
    Inventor of the WORM Global
    Attachments:
    test_table[1].vi ‏75 KB

  • Smartforms  how to print Table rows on to the next page automatically

    if this question is answered pls point to the the link
    SMART forms:
    layout :  Half of my A4 page is filled with templates, a small portion is footer, the middle portion is Table.
    Note: i have set the condition for the footer as (tick the check box) "only after end of main window"
    Output:
                       the template is displayed the table is populated on the first page, no footer on 1st page,
                    on page 2 the table rows are printed (table rows were a lot) and finally footer got printed every thing as per normal
    what i want is:
                     instead of the table lines printed in the middle of page 2 (bcz my main window table is in the middle, top is templates)
                     i want the table lines (after filling the main window table lines in the 1st page) to continue to print from the
                     top of the page on page 2 and immediately after the table rows finish. footer must be printed....
    what should i be doing to get this output

    dear bob,
    yes i have done that already as u said, when i do it......
    i created a new page (next page) directed first page to next page
    on the next page my layout is like below
    removed all the templates dragged the main window to the top of the page...... 
    when i check the result, there is an empty line as the first line in the table (2nd page)
    and also the footer (again a template) on the first page, which is ticked as ( print after end of main window) is NOT displaying.

  • How to display UI elements dynamically on the click of a radiobutton

    hi all,
    I have created two radio buttons rb1, rb2 dynamically.  If i click on rb1, ......
    one label, one inputfield (ie., some UI elements ) must be displayed in the same view & if i click on rb2, other UI elements must display. 
    can anyone tell how to display UI elements which were created dynamically on the click of a radio button.
    thanks & regards,
    vila

    Hi,
    1. Create a context attribute name visible1 of type type     com.sap.ide.webdynpro.uielementdefinitions.Visibility(using brose button in the type property of context)
    2. Bind this context to all tha elements of that you want to make visible when radio button 1 is clicked to their visibility property.
    3. Create a context attribute name visible2 of type com.sap.ide.webdynpro.uielementdefinitions.Visibility(using brose button in the type property of context)
    4. Bind this context to all tha elements of that you want to make visible when radio button 2 is clicked to their visibility property.
    5. Create actions for both radio button1 say action1 and for radio button2 say action2.
    6. In action1 write this line of code
    wdContext.currentContextElement.setVisible1(WDVisibility.VISIBLE);
    wdContext.currentContextElement.setVisible2(WDVisibility.BLANK);
    7. In action2 write this line of code
    wdContext.currentContextElement.setVisible2(WDVisibility.VISIBLE);
    wdContext.currentContextElement.setVisible1(WDVisibility.BLANK);
    Regards,
    Murtuza

  • How to return java objects on the button click

    hello all,
    i wonder if any body let me know ,how to return java objects on button click,
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    class base
         base()
              JFrame frame = new JFrame("Base class Message Dialog Box");
              JPanel panel = new JPanel();
              JButton buttonchildone = new JButton("Child class one");
              buttonchildone.addActionListener(new ActionListener(){
                   public actionPerformed(ActionEvent e)
                        childone ch1=new childone();
                   return ch1;
              JButton buttonchildtwo = new JButton("Child class two");
              buttonchildtwo.addActionListener(new ActionListener(){
                   public void actionPerformed(ActionEvent e)
                        childtwo ch2=new childtwo();
                        return ch2;
              panel.add(buttonchildone);
              panel.add(buttonchildtwo);
              frame.add(panel);
              frame.setSize(300, 300);
              frame.setVisible(true);
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         void show()
              System.out.println("Base class show() method");
    public class mainmethod
         public static void main(String[] args)
              base baseobj=new base();
    here my aim is to achieve dynamic polymorphism by button click's ,where based on the button click i can send back an object of childone or childtwo classes
    thanks and regard
    Mac
    Message was edited by:
    LoveOpensource

    You probably need to rethink your design. Where are these child classes going? What is using or consuming them? I agree with the message above about a button instantiating a parent field variable to one child or the other depending on which button is pressed.
    Message was edited by:
    petes1234

  • How to open multiple report windows on button click without losing session?

    Hi,
    JDev : 11.1.1.2.0
    I am trying to open multiple discoverer plus report windows using my ADF application.
    My requirement is that user has to select multiple reports from the screen and by clicking on submit button all the reports should be opened in different windows.
    1) Below link provided me the the first solution but I can't go with it because my page is jsff and in jsff it doesn't support form tag.
    http://andrejusb.blogspot.com/2007/07/opening-report-window-in-adf-faces.html
    2) RichGoButton also provide targetFrame property but there is not action property in it so I can't call backing bean method with RichGoButton
    3) I have tried to open report windows using javascript window.open with ExtendedRenderKitService but on discoverer side it giving error message that Discoverer Plus cannot attach same session to multiple request.
    4) I have created one jsp page in the same folder where my jsff is kept in my ADF application and on submit button click I have launch this jsp page using afConetxt.launchDialog and in jsp scriplet I have written response.sendRedirect to report url but here all report are getting open properly to seperate windwos but my ADF application session is getting timeout so after clicking on submit button it will automatically goes to login page it cann't stay with the current page.
    Hoe you have understnad my problem and please provide me if you know any other solution aprart from above mentioned 4 solutions
    Regards,
    DevD

    sURL is query parameter value that I want to pass on jsp page. It is used to set some value on jsp page.
    If this is not a right approach then let me know how to pass the parameter in jsp page.

  • How to popup a menu when rigth button clicked?

    Hi, i have a mouse listener on a Jtree, it is working fine and now i want that when the user clicks in the right button of the mouse, a popUp menu appears with diferent options depending on the type of node....i only need to know how do make the menu to appear...
    thanks

    I have had this same problem. For me it always occurs on Mandrake (I've only tried 8.0 and 8.1), but I have never had it occur on other Linux distributions such as Red Hat or Debian.
    Quick caveat: Although Sun says that this is not a
    bug I have installed Java on 5 different computers
    with various versions of Mandrake Linux (7.1, 8.0, and
    8.1) In these installations a left click (the main
    button click) will return a mouse event with a button
    mask of BUTTON1_MASK + BUTTON3_MASK instead of simply
    BUTTON1_MASK. This makes your popup window appear on
    every mouse click instead of just right button click.
    The solution (until this bug is fixed) is to see if
    the int returned from the getModifiers() method on
    mouse event == BUTTON1_MASK + BUTTON3_MASK and if it
    does then DONT popup the window.
    Oddly enough, I've had other people test this and they
    tell me that the mouse events return the proper button
    mask but every time I've tested it I get this bug.
    Just a FYI. If you see that behavior then this is how
    to fix it.

  • HOW TO CALL APPROVAL WORK FLOW ON BUTTON CLICK EVENT OF VISUAL WEB PART?

    Hiall,
    I created an OOB an approval work flow I want to start that approval work flow through visual web  part button click event
    In work flow Settings I selected to manually start .Is this possible ? if possible please guide me how to do this
    Thanking you,
    Arun  kumar

    Hi,
    If you have an instance of SPListItem, and know the workflow association name, you can start it. First you need to find workflow assocation instance and tell SPSite.SPWorkflowManager to start your workflow.
    See this for more information:
    http://blog.mmasood.com/2012/06/programatically-start-workflow.html
    Please remember to up-vote or mark the reply as answer if you find it helpful.

Maybe you are looking for

  • Error while raising a invoice using VF01

    Hi, I am getting an error while raising a invoice using VF01. Error as follows RV_MESSAGE_UPDATE Update was terminated System ID....   TIP Client.......   300 User.....   user1 Transaction..   VF01 Update key...   E66E6454075548D8922BAC091E81F0CB Gen

  • Calling Web Service from PL/SQL (ORA-31011: XML parsing failed)

    hi all, i want to invoke a web service from PL/SQL. i found a soap_api package from "Tim Hall". but it gives error in "ealtas.soap_api.invoke function" ORA-31011: XML parsing failed ORA-19202: Error occurred in XML processing LPX-00007: unexpected en

  • Creating a Vendor and Accounts Payable  Invoice

    Hello Everyone, At the moment we are using transaction FK01 or XK01 to create a Vendor on the SAP system. We want the process of "Creating a Vendor" and "Creating Accounts Payable Invoice" to be available on Portal which allows us to automate some pa

  • Music track details listed in non-Latin characters (might be Kanji)

    I copied over 44 music tracks which were all ripped at the same time from a CD; numbers 10 to 44 are fine; numbers 1 to 9 are not listed correctly in the Touchpad music player, it looks to me like the details have been tranlated to Kanji font. They a

  • UV-SO when partitioned and deployed

    Hi there, I have a question related to User-Visible Service Object(UV-SO) when partitioned and deployed. According to TechNote 9674:Service Object Visibility, "if a partition only contains UV-SOs, there will be one of these partitions per user". This