Multiline containers

what is multiline container in work flow.
why should we use multiline container.please explain with scenario

Thread locked.
Please do not ask interview questions, and please try finding the answer yourself before expecting people to give up their time. The online help is always a good start. See the [Rules of Engagement|https://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement] for further info.

Similar Messages

  • Problem using multiline container in Alert Category

    Hello, experts!
    Could you please suggest me how to solve the following issue.
    I have userdefined multiline container MY_CONTAINER with two elements FIELD (stores name of field) and VALUE (stores value of field). This container is filled in runtime by means of BADI extension. So in transaction ALRTDISP filled container looks like:
      MY_CONTAINER
          MY_CONTAINER[1]
              FIELD    SystemCode
              VALUE    42
          MY_CONTAINER[2]
              FIELD    Key
              VALUE    0292383728232
          MY_CONTAINER[3]
              FIELD    State
              VALUE    1
          ...and so on. Number of filled elements of container is unknown.
    I need to add the contents of this container to Long text of Alert Category in form of:
          SystemCode: 42
          Key: 0292383728232
          State: 1
    ...and so on.
    I added MY_CONTAINER on the Containers tab of my alert category. And in Long text included the following expression:
          &MY_CONTAINER[].FIELD[]&: &MY_CONTAINER[].VALUE[]&.
    But in long text it looks like:
          SystemCode Key State ...: 42 0292383728232 1 ...
    If the expression is like
          &MY_CONTAINER[].FIELD& - &MY_CONTAINER[].VALUE&
    then long text contains only the first element:
          SystemCode: 42.
    Does anybody know how to solve this problem?
    I think I need to use expressions (something like FOR-loop) for filling Long Text in Alert Categories. Is it possible?
    BR,
    Vika

    Hi Experts,
    still trying to work out but couldn't understand the behaviour.
    <b>If the Long text :</b>
    Error: &SXMS_ERROR_CODE& <b>of category &SXMS_ERROR_CAT&</b> was found in a message &SXMS_MSG_GUID& from the service &SXMS_FROM_SERVICE&  <b>and  Interface &SXMS_FROM_INTERFACE&</b>
    to test I am running the program <b>RSALERTTEST</b>
    <b>Msg got thru E-mail is </b>
    Error:  and category:<b> &SXMS_ERROR_CAT&</b> was found in a message  from the service  and Interface
    <b>
    And when I change the Long text</b>
    Error: &SXMS_ERROR_CODE& <b>and &SXMS_ERROR_CAT&</b> was found in a message &SXMS_MSG_GUID& from the service &SXMS_FROM_SERVICE& and Interface &SXMS_FROM_INTERFACE&
    After running the program <b>RSALERTTEST</b>
    <b>
    E-mail msg</b>
    Error:  and was found in a message  from the service  and Interface <b>&SXMS_FROM_INTERFACE&</b>
    coudn't able to understand why it is displaying the container variable as is in the mail.
    checked all the Alert Framework configuration, Everything looks good.
    Thank you,
    <b>MK</b>

  • How to check condtions for multilines in switch step in bpm?

    Hello,
    I am implementing a scenario that send PO create Idoc(orders.orders05) to bpm and bpm receives an OrderResponse from File adapter, I have a switch to check the condition if the Qunatity for each line items from the OrderResponse xml matche with the quantity for each line ltems in OrderCreate, but I don't know how to specify mulitline containers in conditon editor, currently the system only takes the quantity from the first line item.  Any suggestions or other recommendations?  BTW, here is the blog talks about modeling multi rows for incoming message, didn't totally get it...
    Using BPM (Blocks) when Incoming message has multilple rows
    Thanks,
    Hy

    Hi,
    go to Condition Editor-->After selecting your message in the LeftOperand -->then it will lead into Expression Editor there you can see a check box stating "Multiline".
    This will be enabled , if you choose option of XPATH in this Expression Editor.
    Hope this helps,
    Regards,
    Moorthy

  • How to send message from multiline container to same webservice or bus. sys

    Hi All,
    I want to send message from multiline container to a syn web service sequentially.
    I am getting that multiline container after a transformations step (1: n mapping).
    where i dont known what will be the value for n (number of message in multiline container). This will vary; depend upon input message to BPM.
    Scenario is like this.
    1. Receive step
    2. Transfromation to 1: n
    3. Want to send message from multiline container to a web service (business service),default loop and block step doesn’t give desirable result.
    any help will be appreciable
    Regards,
    Adish

    Adish Jain wrote:>
    > where as, if I will use block, it will send the same message to multiple receivers which are present in multiline receiver container. So need to think in different manner.
    Not necessarily.
    When you use block step in ForEach mode, you can select the container variable from:
    - a receiver container;
    - an interface container;
    The line element can then be either a receiver or an interface.
    The problem is that for this to work, the interfaces need to be async (since they are to be used as containers) and hence you won't be able to make your scenario work.
    But again, explain why your scenario with loop step didn't work.
    The only gap here is how to determine the number of loops (defining the counter variable value). But that can be easily solved if you include a new message with occurrence 1 as a target message of your mapping and as a container in your bpm.
    This new message needs only 1 single field, that should be filled with the number of messages you've created in the mapping (you could use count standard function, f.ex.).
    In your bpm, make sure to pass this fields value into the counter container right after your transformation step.
    Regards,
    Henrique.

  • Multiline container, block, transform step ... HELP !!!!!

    Hi everyone.
    I'm trying to create a 'Block' in order to send N IDOCS. The info is contained in a 'container'. This container is of type A and is the one which has the XML file. It's not defined as multiline because if not i'll get an error.
    The question is that i don't know how can i use this 'Block' in order to transform my XML file with N rows into N IDOC, one per row of the XML file.
    I think this couldn't be so difficult but i'm getting several problems when i try to configure the 'Block', the 'transformation step' and the containers.
    Can anyone tell me how to do it?
    Thanks

    Hi Inigo,
    you need first a tranformation step where you have a source message with n lines and n target messages with one line (multi line container).
    Next you can define a loop block for all entries of that container.
    Regards,
    Udo

  • Number of Workitem Containers and Performance Issues

    Hi All,
    Is there a major performance issue based on the number of workflow containers.
    I know its recommended that the containers should be single line rather multiline and to keep the number of containers less
    Did anyone face some performance issue with many containers and any idea on what is the minimum number to keeping performance into consideration.
    Thanks,
    Charan.

    Performance does not come in for Workflow container but it is also a good practise to make the number of Workflow container less. Generally if you consider a sophesticated Workflow Expert who is only into developing will have the minimum of Workflow container. But if that same expert has experience in Support Project where he has to analyse Wflow developed by other expert then it is always handful to maintain all the meaningful information in the Workflow container. I will recommend to use minimum of Workflow container element but this should not sacrifice the information Container element.
    Thanks
    Arghadip

  • Receiver determination step in the BPM and multiline container

    i have made a file2file scenario where:
    there is a BPM,
    the BPM has a send step which contains a receive step,
    a transformation that mapps the incomin message to two messages(Split-messgae case),
    and then a FORK step which sends the two messges to through 2 SEND steps to the intended receiver services.
    It didnt work......and i followed a blog->  /people/sudharshan.aravamudan/blog/2005/12/01/illustration-of-multi-mapping-and-message-split-using-bpm-in-sap-exchange-infrastructure   ............... which suggested to have a
    "receiver-determination" step in the BPM before the SEND step.... it says that this
    "receiver-determination" step will put the message in a MULTILINE container..
    i m confused bout this step ........ can anybody explain.....
    please help

    HI,
    In receiver determination step selctthe multi line container element.in container editor create the one element with type as receiver and select the check box.
    A Receiver Determination step returns set of receivers configured for the output abs interfaces in the directory and puts it into receiver which is a multiline container receiver element
    Regards
    Chilla

  • Not able to change the data of test data containers in production system

    Dear All,
    We have created eCATT scripts in Development SolMan System and moved the transports to Production SolMan System.  Customer wants to change the data at Test data containers and run the scripts in production system but we are not able to edit the data. 
    May be the reason is SCC4 transaction code has set the below option.
    Changes and transports for client-specific Objects
    u2022 No changes allowed
    Customer doesnu2019t want to change the above option and wanted to change the test data containers to give different datau2019s and run the eCATT scripts.
    Could you please let me know the solution for this?
    Your help is really appreciated.
    Thanks,
    Mahendra

    eCatt has the feature where you don't need to transport the scripts or test configuration to our target system. We can keep all our scripts and test data in Solman and run this script any other system in your landscape using the System data container and target system.
    Maintain the production as one of the target system in System container in Solman and point that system while running the script. Change the test data in Solman to run this script.
    Let me know if you need more information
    thanks
    Venkat

  • How can I create a pop up message in MULTILINE on WEB GUI?

    Hi Experts,
    I have gone through several thread to search if I can write pop up message in more than in one line.
    for example...
    title: continue ?
    SDD no12366
    customer name: abc ltm
    lines: 2 lines records
    gr_pers_popup = comp_controller->window_manager->create_popup_2_confirm(
                        iv_title = 'CAUTION - Continue Import ?'
                        iv_text = lv_text "'SDD-1234676; Cust - ABSOLUTE GLASS WORKS; Lines - 2'
                        iv_btncombination = if_bsp_wd_window_manager=>co_btncomb_yesno
        gr_pers_popup->open( ).
        gr_pers_popup->set_on_close_event( iv_event_name = 'Confirm' iv_view = me ).
    Please advise, if any work around available to display multiple line on pop_up_confirm text on WEB UI .
    Thanks in advance.

    Multiline messages cannot be shown on standard Pop Up. In case you need multiline messages then create a new view, use it as a pop up and then you can show text messages as per the business requirement.
    The blog mentioned above (http://wiki.sdn.sap.com/wiki/display/CRM/CallingCustomcomponentaspopupfromastandardcomponentinCRMWEBUI-Part+2) will definately help you
    Rg,
    Harshit

  • Workstation Import/Removal going into wrong containers!?@

    We want our workstations in their proper containers. We have 900 of them
    in *our* 300SM.ABQ.NM.NM container, while only having 300 computers at
    this location.
    We created an Application Object (AO) to:
    1) zwsreg.exe -unreg
    (runs as a pre-distribution script)
    2) zwsreg.exe -importserver 172.16.13.2
    (the server specific to this container.)
    We logged the results, only to find PCs with "registered" into the proper
    container had "jumped" to another container upon next login!
    Are our options for zwsreg incomplete/incorrect? The DN settings are
    ambiguous - does it mean the .CN=blah level or the .OU=blahblah level?
    Are we required to say -importpolicy, or is it implied by the
    -importserver having its own Workstation Import Policy?
    Here's the clipping of the AO's log....
    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>.
    Launch Success 10 8/29/2006 7:19 FRED.JJD.ABQ.NM.NM
    ALBJJS3550840400:13:20:4B:9D:3C.WORKSTATION.300SM. ABQ.NM.NM
    172.16.13.98 ZWSREG.APP.JJD.ABQ.NM.NM 4280C948-470F-4AAC-
    8D8F-7957DE4839E5
    ## After the AO was turned on, it appears to have worked....
    Launch Success 10 8/29/2006 8:29 FRED.JJD.ABQ.NM.NM
    ALBJJS3550840400:13:20:4B:9D:3C.WORKSTATIONS.JJD.A BQ.NM.NM
    172.16.13.98 ZWSREG.APP.JJD.ABQ.NM.NM 4280C948-470F-4AAC-
    8D8F-7957DE4839E5
    ## Ten minutes later he logged out and back in....
    Launch Success 10 8/29/2006 8:37 FRED.JJD.ABQ.NM.NM
    ALBJJS3550840400:13:20:4B:9D:3C.WORKSTATION.300SM. ABQ.NM.NM
    172.16.13.98 ZWSREG.APP.JJD.ABQ.NM.NM 4280C948-470F-4AAC-
    8D8F-7957DE4839E5
    ## Next morning, and the computer is still in the wrong container!
    Launch Success 10 8/30/2006 7:29 FRED.JJD.ABQ.NM.NM
    ALBJJS3550840400:13:20:4B:9D:3C.WORKSTATION.300SM. ABQ.NM.NM
    172.16.13.98 ZWSREG.APP.JJD.ABQ.NM.NM 4280C948-470F-4AAC-
    8D8F-7957DE4839E5
    <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< <<<<<<<<<<<<

    [email protected] wrote:
    > We want our workstations in their proper containers. We have 900 of them
    > in *our* 300SM.ABQ.NM.NM container, while only having 300 computers at
    > this location.
    >
    > We created an Application Object (AO) to:
    > 1) zwsreg.exe -unreg
    > (runs as a pre-distribution script)
    >
    > 2) zwsreg.exe -importserver 172.16.13.2
    > (the server specific to this container.)
    >
    > We logged the results, only to find PCs with "registered" into the proper
    > container had "jumped" to another container upon next login!
    >
    > Are our options for zwsreg incomplete/incorrect? The DN settings are
    > ambiguous - does it mean the .CN=blah level or the .OU=blahblah level?
    > Are we required to say -importpolicy, or is it implied by the
    > -importserver having its own Workstation Import Policy?
    >
    >
    > Here's the clipping of the AO's log....
    >
    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>.
    >
    > Launch Success 10 8/29/2006 7:19 FRED.JJD.ABQ.NM.NM
    > ALBJJS3550840400:13:20:4B:9D:3C.WORKSTATION.300SM. ABQ.NM.NM
    > 172.16.13.98 ZWSREG.APP.JJD.ABQ.NM.NM 4280C948-470F-4AAC-
    > 8D8F-7957DE4839E5
    >
    > ## After the AO was turned on, it appears to have worked....
    >
    > Launch Success 10 8/29/2006 8:29 FRED.JJD.ABQ.NM.NM
    > ALBJJS3550840400:13:20:4B:9D:3C.WORKSTATIONS.JJD.A BQ.NM.NM
    > 172.16.13.98 ZWSREG.APP.JJD.ABQ.NM.NM 4280C948-470F-4AAC-
    > 8D8F-7957DE4839E5
    >
    > ## Ten minutes later he logged out and back in....
    >
    > Launch Success 10 8/29/2006 8:37 FRED.JJD.ABQ.NM.NM
    > ALBJJS3550840400:13:20:4B:9D:3C.WORKSTATION.300SM. ABQ.NM.NM
    > 172.16.13.98 ZWSREG.APP.JJD.ABQ.NM.NM 4280C948-470F-4AAC-
    > 8D8F-7957DE4839E5
    >
    > ## Next morning, and the computer is still in the wrong container!
    >
    > Launch Success 10 8/30/2006 7:29 FRED.JJD.ABQ.NM.NM
    > ALBJJS3550840400:13:20:4B:9D:3C.WORKSTATION.300SM. ABQ.NM.NM
    > 172.16.13.98 ZWSREG.APP.JJD.ABQ.NM.NM 4280C948-470F-4AAC-
    > 8D8F-7957DE4839E5
    >
    > <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< <<<<<<<<<<<<
    >
    >
    >
    >
    Your import policy would determins where the object goes then you would
    do this
    zwsreg -importserver 192.168.10.250 -importpolicy "Server Policy
    Name:General:Workstation Import.someOU.someO"
    Replace "Server Policy Name" with whatever your import policy is, and
    the .someOU.someO with the path to that policy.

  • Email formatting - multiline symbol not showing

    Hi Workflowers
    I am using method <i>sendtaskdescription</i> to send an email. The body of the mail is the task description as normal. I have embedded a multiline element as an expression in the task description using the option "All lines with line break". However, only the first line will show in the email. Each line of the multiline element is simply a text string.
    I have tried all kinds of formatting options in the task description, but nothing seems to help. Anyone with any suggestions?

    Out of all the meaningless and unexplained suggestions here in this forum....
    Would you care to explain why refreshing the organizational buffers should influence the multiline text element inclusion in a work item description? Or were you just taking a shot in the dark, hoping to get some points awarded either out of pity or because Tony didn't know better?
    Now, before some of you say I shouldn't be so harsh, I care to disagree. If this is the quality of advice, then what is the point of the forum? The goal of this forum surely can not be to <u>lower</u> our average intelligence, can it?
    If someone, like Abishek in this case, is taking a shot in the dark - they he/she should at least have the decency and integrity to qualify their advice by stating that: "I'm taking a shot in the dark", or "I don't really know anything about this, but here are some general tricks to try when things fail".

  • [Forum FAQ] How to remove div characters from multiline textbox field in SharePoint 2013

    Scenario:
    Need to avoid the div tags and get data alone from multiline textbox field using JavaScript Client Object Model in SharePoint 2013.
    Solution:
    We can use a regular expression to achieve it.
    The steps in detail as follows:
    1. Insert a Script Editor Web Part into the page.
    2. This is the complete code, add it into the Script Editor Web Part and save.
    <script type="text/javascript">
    ExecuteOrDelayUntilScriptLoaded(retrieveListItems, "sp.js");
    function retrieveListItems() {
    // Create an instance of the current context to return context information
    var clientContext = new SP.ClientContext.get_current();
    //Returns the list with the specified title from the collection
    var oList = clientContext.get_web().get_lists().getByTitle('CustomListName');
    //use CAML to query the top 10 items
    var camlQuery = new SP.CamlQuery();
    //Sets value that specifies the XML schema that defines the list view
    camlQuery.set_viewXml('<View><RowLimit>10</RowLimit></View>');
    //Returns a collection of items from the list based on the specified query
    this.collListItem = oList.getItems(camlQuery);
    clientContext.load(this.collListItem, 'Include(Title,MultipleText)');
    clientContext.executeQueryAsync(Function.createDelegate(this, this.onQuerySucceeded), Function.createDelegate(this, this.onQueryFailed));
    function onQuerySucceeded() {
    //Returns an enumerator to iterate through the collection
    var listItemEnumerator = this.collListItem.getEnumerator();
    //Remove div tag use a regular expression
    var reg1 = new RegExp("<div class=\"ExternalClass[0-9A-F]+\">[^<]*", "");
    var reg2 = new RegExp("</div>$", "");
    //Advances the enumerator to the next element of the collection
    while (listItemEnumerator.moveNext()) {
    //Gets the current element in the collection
    var oListItem = listItemEnumerator.get_current();
    alert(oListItem.get_item('MultipleText').replace(reg1, "").replace(reg2, ""));
    function onQueryFailed(sender, args) {
    alert('Request failed. ' + args.get_message() + '\n' + args.get_stackTrace());
    </script>
    Result:<o:p></o:p>
    References:
    http://www.w3schools.com/jsref/jsref_obj_regexp.asp
    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

    Nice article :)
    If this helped you resolve your issue, please mark it Answered

  • Problem with addRow and MultiLine Cell renderer

    Hi ,
    Ive a problem with no solution to me .......
    Ive seen in the forum and Ivent found an answer.......
    The problem is this:
    Ive a JTable with a custom model and I use a custom multiline cell renderer.
    (becuse in the real application "way" hasnt static lenght)
    When I add the first row all seem to be ok.....
    when I try to add more row I obtain :
    java.lang.ArrayIndexOutOfBoundsException: 1
    at javax.swing.SizeSequence.insertEntries(SizeSequence.java:332)
    at javax.swing.JTable.tableRowsInserted(JTable.java:2926)
    at javax.swing.JTable.tableChanged(JTable.java:2858)
    at javax.swing.table.AbstractTableModel.fireTableChanged(AbstractTableMo
    del.java:280)
    at javax.swing.table.AbstractTableModel.fireTableRowsInserted(AbstractTa
    bleModel.java:215)
    at TableDemo$MyTableModel.addRow(TableDemo.java:103)
    at TableDemo$2.actionPerformed(TableDemo.java:256)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:17
    64)
    at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Abstra
    ctButton.java:1817)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel
    .java:419)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonL
    istener.java:245)
    at java.awt.Component.processMouseEvent(Component.java:5134)
    at java.awt.Component.processEvent(Component.java:4931)
    at java.awt.Container.processEvent(Container.java:1566)
    at java.awt.Component.dispatchEventImpl(Component.java:3639)
    at java.awt.Container.dispatchEventImpl(Container.java:1623)
    at java.awt.Component.dispatchEvent(Component.java:3480)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3165)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095)
    at java.awt.Container.dispatchEventImpl(Container.java:1609)
    at java.awt.Window.dispatchEventImpl(Window.java:1590)
    at java.awt.Component.dispatchEvent(Component.java:3480)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
    read.java:197)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
    ad.java:150)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
    This seems to be caused by
    table.setRowHeight(row,(getPreferredSize().height+2)); (line 164 of my example code)
    About the model I think its ok.....but who knows :-(......
    Please HELP me in anyway!!!
    Example code :
    import javax.swing.*;
    import javax.swing.table.*;
    import java.text.*;
    import javax.swing.text.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    public class TableDemo extends JFrame {
    private boolean DEBUG = true;
    MyTableModel myModel = new MyTableModel();
    MyTable table = new MyTable(myModel);
    int i=0;
    public TableDemo() {
    super("TableDemo");
    JButton bottone = new JButton("Aggiungi 1 elemento");
    table.setPreferredScrollableViewportSize(new Dimension(500, 70));
    //table.setAutoResizeMode(JTable.AUTO_RESIZE_ALL_COLUMNS);
    //Create the scroll pane and add the table to it.
    JScrollPane scrollPane = new JScrollPane(table);
    //Add the scroll pane to this window.
    getContentPane().add(bottone,BorderLayout.NORTH);
    getContentPane().add(scrollPane, BorderLayout.CENTER);
    bottone.addActionListener(Add_Action);
    addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) {
    System.exit(0);
    class MyTable extends JTable {
    MultiLineCellRenderer multiRenderer=new MultiLineCellRenderer();
    MyTable(TableModel tm)
    super(tm);
    public TableCellRenderer getCellRenderer(int row,int col) {
              if (col==1) return multiRenderer;
              else return super.getCellRenderer(row,col);
    class MyTableModel extends AbstractTableModel {
    Vector data=new Vector();
    final String[] columnNames = {"Name",
    "Way",
    "DeadLine (ms)"
    public int getColumnCount() { return 3; }
    public int getRowCount() { return data.size(); }
    public Object getValueAt(int row, int col) {
    Vector rowdata=(Vector)data.get(row);
                                                                return rowdata.get(col); }
    public String getColumnName(int col) {
    return columnNames[col];
    public void setValueAt (Object value, int row,int col)
         //setto i dati della modifica
    Vector actrow=(Vector)data.get(row);
    actrow.set(col,value);
         this.fireTableCellUpdated(row,col);
         public Class getColumnClass(int c)
              return this.getValueAt(0,c).getClass();
         public boolean isCellEditable(int row, int col) {
    //Note that the data/cell address is constant,
    //no matter where the cell appears onscreen.
    if (col == 1)
    return false;
    else
    return true;
    public void addRow (String name,ArrayList path,Double dead) {
         Vector row =new Vector();
         row.add(name);
         row.add(path);
         row.add(dead);
         row.add(name); //!!!Mi tengo questo dato da utilizzare come key per andare a
         //prendere il path nella lista dei paths di Project
         //(needed as key to retrive data if name in col. 1 is changed)
         data.add(row);
         //Inspector.inspect(this);
         System.out.println ("Before firing Adding row...."+this.getRowCount());
         this.fireTableRowsInserted(this.getRowCount(),this.getRowCount());
    public void delRow (String namekey)
    for (int i=0;i<this.getRowCount();i++)
    if (namekey.equals(this.getValueAt(i,3)))
    data.remove(i);
    this.fireTableRowsDeleted(i,i);
    //per uscire dal ciclo
    i=this.getRowCount();
    public void delAllRows()
    int i;
    int bound =this.getRowCount();     
    for (i=0;i<bound;i++)     
         {data.remove(0);
         System.out.println ("Deleting .."+data);
    this.fireTableRowsDeleted(0,i);          
    class MultiLineCellRenderer extends JTextArea implements TableCellRenderer {
    private Hashtable rowHeights=new Hashtable();
    public MultiLineCellRenderer() {
    setEditable(false);
    setLineWrap(true);
    setWrapStyleWord(true);
    //this.setBorder(new Border(
    public Component getTableCellRendererComponent(JTable table,Object value,                              boolean isSelected, boolean hasFocus, int row, int column) {
    //System.out.println ("Renderer called"+value.getClass());
    if (value instanceof ArrayList) {
    String way=new String     (value.toString());
    setText(way);
    TableColumn thiscol=table.getColumn("Way");
    //System.out.println ("thiscol :"+thiscol.getPreferredWidth());
    //setto il size della JTextarea sulle dimensioni della colonna
    //per quanto riguarda il widht e su quelle ottenute da screen per l'height
    this.setSize(thiscol.getPreferredWidth(),this.getPreferredSize().height);
    // set the table's row height, if necessary
    //System.out.println ("Valore getPreferred.height"+getPreferredSize().height);
         if (table.getRowHeight(row)!=(this.getPreferredSize().height+2))
         {System.out.println ("Setting Row :"+row);
             System.out.println ("Dimension"+(getPreferredSize().height+2));
             System.out.println ("There are "+table.getRowCount()+"rows in the table ");
             if (row<table.getRowCount())
             table.setRowHeight(row,(getPreferredSize().height+2));
    else
    setText("");
    return this;
    /**Custom JTextField Subclass che permette all'utente di immettere solo numeri
    class WholeNumberField extends JTextField {
    private Toolkit toolkit;
    private NumberFormat integerFormatter;
    public WholeNumberField(int value, int columns) {
    super(columns);
    toolkit = Toolkit.getDefaultToolkit();
    integerFormatter = NumberFormat.getNumberInstance(Locale.US);
    integerFormatter.setParseIntegerOnly(true);
    setValue(value);
    public int getValue() {
    int retVal = 0;
    try {
    retVal = integerFormatter.parse(getText()).intValue();
    } catch (ParseException e) {
    // This should never happen because insertString allows
    // only properly formatted data to get in the field.
    toolkit.beep();
    return retVal;
    public void setValue(int value) {
    setText(integerFormatter.format(value));
    protected Document createDefaultModel() {
    return new WholeNumberDocument();
    protected class WholeNumberDocument extends PlainDocument {
    public void insertString(int offs,
    String str,
    AttributeSet a)
    throws BadLocationException {
    char[] source = str.toCharArray();
    char[] result = new char[source.length];
    int j = 0;
    for (int i = 0; i < result.length; i++) {
    if (Character.isDigit(source))
    result[j++] = source[i];
    else {
    toolkit.beep();
    System.err.println("insertString: " + source[i]);
    super.insertString(offs, new String(result, 0, j), a);
    ActionListener Add_Action = new ActionListener() {
              public void actionPerformed (ActionEvent e)
              System.out.println ("Adding");
              ArrayList way =new ArrayList();
              way.add(new String("Uno"));
              way.add(new String("Due"));
              way.add(new String("Tre"));
              way.add(new String("Quattro"));
              myModel.addRow(new String("Nome"+i++),way,new Double(0));     
    public static void main(String[] args) {
    TableDemo frame = new TableDemo();
    frame.pack();
    frame.setVisible(true);

    In the addRow method, change the line
    this.fireTableRowsInserted(this.getRowCount(),this.getRowCount()); to
    this.fireTableRowsInserted(data.size() - 1, data.size() - 1);Sai Pullabhotla

  • FireFox is the best internet navigator so far, but starting from this date of July 16th 2011, I'm going back to IE and stop using FF as long as I'm still getting 20 to 25 plugin containers in my Windows Task Manager. Goodbye FF.

    I have been using FF for the last 8 years. Starting from today of July the 16th 2011, I'm going back to IE and say goodbye to FF as long as I'm still getting 20 to 25 plugin containers in my Windows task manager.

    I have the "techie" answer for all of you. According to the tier 2 support at Norton Help Desk, the latest live update from Norton "utilizes Visual Studio 2012 which enables SSE2 instructions" and my processor can not handle that.
    He said they are "working on a solution" and offered to reply back on Wednesday / Thursday this week if a solution could be found...

  • Multiline field in ALV row

    Hello.
    Is it possible to have  a multiline field in an ALV control (cl_gui_alv_grid or cl_salv_table). I already searched the documentation but I could not find anything about multiline fields in a single row.
    Thanks in advance.

    No, you can not wrap text within the cell.
    Regards,
    RIch Heilman

Maybe you are looking for

  • Paper feed out of sync on HP PSC 1510 All-in-One Printer Scanner

    Paper feed out of sync on HP PSC 1510 All-in-One(SN MY59SD224W0498). Goes to flashing orange light. With Vista Home Premium 32-bit, 6.0.6002 Service Pack 2 Build 6002. USB connection to HP Pavilion GU658AA-ABU a6250.uk . After cleaning ink drip tray

  • Upgrade from 9i to 10g (DBUA problem)

    The database instance running on my server doesnt show up in the Database upgrade Assistant screen to be selected for upgrade. The instance is running and I am able to access it using SQL plus. Before the upgrade I had upgraded the OS from Windows NT

  • COM object that has been seperated from its uderlying RCW cannot be used

    What exactly does this error mean? I receive this error when I perform "Unload All Modules" from the sequence editor using TestStand 4.2.1.83 development system, which is part of NI Developer Suite 2010 DS1. It causes TestStand to crash citing that e

  • Unable to Create ASM Diskgroup ORA-15020 and ORA-15018

    Hello Team, Unable to create ASM diskgroup with following error: SQL> create diskgroup data_asm1 external redundancy disk '/dev/sdf*'; create diskgroup data_asm1 external redundancy disk '/dev/sdf*' ERROR at line 1: ORA-15018: diskgroup cannot be cre

  • Problem with adapters

    Hello all,         I have installed PI7.0 Server newely. I created sample scenario file to file in that PI7.0 Server. Messages are Picking by Sender Adapter but when i am checking in SXMB_MONI there are No messages. I also checked in AdapterMonitorin