Collecting Responses only collects first line in distributed form

Does anyone know if this is a common problem with a known solution? I have a distributed dynamic form which starts out with one line. The user fills it in, then adds additional lines when necessary. User then uses the submit via email button on the form to email the form back to me. I receive the form, and am prompted to save response into a response file. However, when viewing the response file, only the first line of the form is entered, even though the user has added and filled in multiple lines. Any idea what is causing this?
Thanks,
Jo
Edit: Actually, when I export it as a CSV file and open it in Excel, the data is there, but it is spread out...i.e., each line that has been added by the user is appended as additional columns, not as additional rows. I really only need to view it in Adobe, so is there any way of getting ALL of the collected data to display in the Adobe form collector?

http://forums.adobe.com/community/livecycle/livecycle_es/livecycle_designer_es

Similar Messages

  • Arraylist only reading first line of file

    I am reading a text file using an arraylist. my file has a single value on each line e.g.
    2
    3
    4
    5
    however this method is only reading only the first line of each file. is it because of this statement:
    String s1[] = number.split("\\s");
    I would like to change the method so its not expecting numbers in a single line.. but reads each line and adds it to the collection... how can I do that?
    here is getData method that gets the file and processes it.
         public static List<Integer> getData(String Filename) {
              List<Integer> array1 = null;
              // BufferedReader for file reverse.txt
              try {
                   array1 = new ArrayList<Integer>();
                   BufferedReader bf = new BufferedReader(new FileReader(Filename));
                   String number = bf.readLine();
                   String s1[] = number.split("\\s");
                   for (int i = 0; i < s1.length; i++)
                        array1.add(Integer.parseInt(s1));
              } catch (Exception e) {
                   e.printStackTrace();
              return array1;

    Faissal wrote:
    while(bf .ready()){
    readline() will return null if the end of the stream has been reached. ([http://java.sun.com/javase/6/docs/api/java/io/BufferedReader.html]). This condition can be used to determine when to stop reading thereby ensuring that all lines have been read.
    EDIT:
    Here's a code snippet from [Java Developers Almanac|http://www.exampledepot.com/egs/java.io/ReadLinesFromFile.html]: notice how they close() the stream when they're finished with it.

  • Client sends entire message, Server only sends first line...

    I can send a three lined message to the server, but I can only send one line back and as far as I'm aware I'm using the same stuff either side so it should be fine? Maybe someone here can I point out where I'm going wrong...
    Client
    package Assignment;
    // EchoClient.java
    // This attempts to connect to the echo port of a server.
    // e.g. java EchoClient [IPaddr]
    import java.io.*;
    import java.net.*;
    public class EchoClient {
        public void EchoClient() {
        }     // constructor
        public static void main(String[] args) throws IOException {
            HTCPCPProtocol htcpcp = new HTCPCPProtocol();
            Socket echoSocket = null;
            PrintWriter out = null;
            BufferedReader in = null;
            String host = "localhost";
    //String host = "127.0.0.1"; //modify read in
            int portNo; // modify read in
            if (args.length != 0) {
                host = args[ 0];
            BufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in));
            String userInput;
            do {
                System.out.print("Enter some text to echo (END = exit): ");
                System.out.flush();
                userInput = stdIn.readLine();
                try {
                    echoSocket = new Socket(host, 3456); // modify so portNo is cmd line!
                    out = new PrintWriter(echoSocket.getOutputStream(), true);
                    in = new BufferedReader(new InputStreamReader(echoSocket.getInputStream()));
                catch (UnknownHostException e) { // hostname cannot be resolved to ipaddr!
                    System.err.println("Don't know host named: " + host);
                    System.exit(1);
                } catch (IOException e) { // ipaddr doesn't locate a host
                    System.err.println("Couldn't get I/O for " + "the connection to: " + host);
                    System.exit(1);
                //String message = htcpcp.constructRequestMessage(userInput);
                String message = "\r\n"+"BREW "+" "+ "\r\n"
                    +"Accept Additions:#"+"\r\n"+
                    "Coffee Pot/message=start";
                out.println(message);
                out.flush();
                System.out.println(in.readLine()); // should print entire message
            } while (!userInput.equals("END"));
            out.close();
            in.close();
            stdIn.close();
            echoSocket.close();
        } // main
    } // class EchoClientServer
    package Assignment;
    //  EchoServer.java
    //  Acts as an echo server.
    //  Client must connect on the correct port.
    //  Server closes the connection on receiving 'END'.
    //  But keeps running for more client connections.
    //  Give the port number as a command line argument:
    //    e.g. java EchoServer [4567]
    import java.io.*;
    import java.net.*;
    public class EchoServer {
        public final static int DEFAULT_PORT = 3456;
        public final static int qLen = 3;   // number of clients that can q
        public void EchoServer() {
        public static void main(String[] args) throws IOException {
            HTCPCPProtocol htcpcp = new HTCPCPProtocol();
            ServerSocket listenSocket = null;
    //    OutputStreamWriter osw = null;
            PrintWriter osw = null;
            InputStreamReader isr = null;
            BufferedReader br = null;
            int portNum = DEFAULT_PORT;
            int clientNo = 0;                 // count clients serviced
            if (args.length != 0) {
                try {
                    portNum = Integer.parseInt(args[ 0]);
                    // put some test here to allow for port number not in range
                } catch (NumberFormatException nfE) {
                    System.err.println("Illegal port number: " + args[ 0]);
                    System.err.println("\tUsing the default: " + DEFAULT_PORT);
            try {
                listenSocket = new ServerSocket(portNum, qLen);
            } catch (BindException e) {
                System.err.println("Could not bind to port: " + portNum);
                System.err.println("\tIs it already in use?");
                System.err.println("\tIs it a reserved port number?");
                System.exit(1);
            while (true) {                // loop forever accepting clients
                Socket clientSocket = null;
                // try changing for isr rather than br
                String request = null;
                try {
                    clientSocket = listenSocket.accept();     // actual comms socket!
                    ++clientNo;                               // count clients serviced
                    //osw = new OutputStreamWriter( clientSocket.getOutputStream());
                    osw = new PrintWriter(clientSocket.getOutputStream(), true);
                    //     out = new PrintWriter(echoSocket.getOutputStream(), true);
                    System.out.println("Connection from: " + clientSocket.getInetAddress());
                    br = new BufferedReader(new InputStreamReader(clientSocket.getInputStream()));
                    do {
                        request = br.readLine();
                        System.out.println(request);
                        String responseMessage = "HTCPCP/0.1"+"\r\n"
                    +"safe:yes"+"\r\n"
                    +"Accept Addition:#"+"\r\n"
                    +"Coffee Pot/message=start"+"\r\n";
                        //osw.write( "Hello from "+ InetAddress.getLocalHost() + " to Client no:" + clientNo + "\r\n");
                        String response = htcpcp.OKResponseMessage();
                        osw.write(responseMessage);
                        osw.flush();
                    } while (!request.equals("END"));
                    System.out.println("Client " + clientNo + " closed connection");
                    osw.close();
                    isr.close();
                    br.close();
                    clientSocket.close();
                } // end try{} accepting a client connection
                catch (IOException ioE) {
                    System.err.println("Connection error, maybe the client died!");
                } finally {                           // to trap any other errors!!
                    try {
                        if (clientSocket != null) {
                            clientSocket.close();
                    } catch (IOException ioE) {
                } // end of finally
            } // while forever waiting for a client connection
        } // main
    } // class EchoServer

    aaron101 wrote:
    Hmm, tried it again and it printed the 'safe:yes' line and the 'coffeepot' line... repeated that sequence 4 times.
    I tried changing the while loop too...
    while (in.readLine != null | in.readLine == null) {
    System.out.println(in.readLine()); // should print entire message
    }The output was...
    Accept..
    safe...
    HTCPCP...
    Coffee...
    Accept...
    Am I far from the solution to this problem? Cos I've been stuck on this for two days straight now. Seems so trivial!That shouldn't compile. Assuming you meant in.readLine() everywhere you wrote in.readLine, now you're reading 3 lines every time thru the loop and only printing every 3rd one.
    So no, you're not getting any closer.
    A typical pattern:
    while (true)
      String line = in.readLine();
      if (line == null)
        break; // get out of the loop; no more input
      System.out.println(line);
    }

  • Fonts and indent first line in adobe forms

    Hi,
    I have a smartstyle with paragraph format DF for which <b>left margin</b> is <b>1.00cm</b> and <b>indent first line</b> is <b>-1.00cm</b>. I am using this style in textmodule where i can see the text correctly as desired. but when i am using this text module in <b>adobe form</b>, <b>indent first line</b> is <b>not recognized</b> i.e the first line is also starting from 1.00cm which is supposed to be 0cm.
    can anyone tell me how i can resolve this and also i need <b>Arial</b> font style in smartstyles which is not currently available when i am checking smartstyles, how  can i add this font style in smartstyles?
    Thanks & Regards,
    Prasad.

    Hi Sreenivasulu
    Not sure if this will help you... but just some pointers....
    How about triggering the javascript on selection of a particular record in the table...? i.e. call the particular javascript function only when some row in the table is selected and not otherwise.
    About row selection, you can try using some type of UI control like radio button and through iteration of the table, you can find out which row's radio button has been selected..
    (Please post the query in Adobe Forms section for more hints and suggestions... )
    Thanks
    Deepak

  • Why would only the first line of my data set txt file work?

    Hi -
    I had a lot of success using variables and external data sets until today.
    I have an external text file that I have imported as a data set (Image/Variables/Data Sets/Import...).  All of the variables have been defined and confirmed (at least PSD hasn't told me it can't find something which is the typical error msg.)
    This external text file, with the extension ".txt" has 12 lines on it, each line is 7 comma separated values, and each line is ending in a carriage return.
    YESTERDAY when I used File/Export/Export Data Set as Files... the procedure went beautifully for the 8 times I used it.  TODAY I only get the first of the 12 lines completed and then the export stops.  There are no error messages or other signs that Photoshop has choked on something so I guess something is wrong with my text file... BUT WHAT??
    Any insight on any step in this would be helpful.  You all know that if I'm using this feature it's because I have TONS of repetition ahead of me if it doesn't work.
    TIA your expertise,
    JL

    Fixed it!
    When Exporting as Data sets as files... the step I missed was to select "All Data Sets" from the Data Set drop down.
    Thanks all.
    JL

  • "read from measurement file" reads only first line of data

    Hello,
    I have a problem when trying to read a .lvm file through "Read from Measurements file" with the following block diagram
    Problem: it reads only the first line of data from what I can see in the probe window,.
    A part of the lvm file for reference.
    I haven't used Labview in a long long time, I'm trying to figure out what I am doing wrong.
    Thanks

    Sorry meant to attach the lvm. Here it is. (Actually I had to put it in .txt because the forum wont let me upload a lvm file)
    I unfortunately cannot share the full vi that record the data as I am not its owner/creator. I'll try to give as much info as I can with the relevant pictures attached, I hope it allows us to at least have an hint of where the problem might be.
    (this is in a while loop)
    In the stacked sequence, the other pannels are similar to the one shown here: value read fron a variable, converted to dynamic and a signal attribute is set. The "start recording" control operation is "switch when pressed".
    Here are the properties of the set signal attributes
    And here are the properties of the "write to measurement file"
    Attachments:
    NoTarget_full circle__Rx_-10-SAMPLE.txt ‏60 KB

  • PDF showing only first line of Table?

    Hi @,
    I am showing an input table to PDF using adobe Int Form and in the Adobe screen it is displaying only the first line of the table.
    I am using CE 7.1 SR5.
    Regards

    Hi,
    When the XML interface is generated for the context, for every node that has cardinality 0..n or 1..n, a node named DATA is generated in the XML.
    So if your Webdynpro context has foll structure...
    Node1 ... 1..1
      Node2 ... 0..n
        Attrib1
        Attrib2
    The corresponding XML would be
    Node1
      Node2
        DATA
          Attrib1
          Attrib2
    Regards,
    Reema.

  • Only first line printed in Smartform

    Hello,
    I have a form in Arabic langauge text, when I add a text to a window, only the first line of the text (which in the text editor I have more than 3 lines) is displayed. when I start SAP GUI in english I have all the text displayed and only only the first line.
    please help, thanks

    Can you pls tell me , How you are fetching that text?
    1. through Read_text FM?
    2. Through "Text Module" option from smart form screen?
    3. Using Include option in the text editor?
    Rds,
    Lokesh.

  • Module pool- only first line item data saved, rest disappears??

    Hi Experts,
    I have one module pool that was developed by other developer. It has header details input fields and items details input by table control.
    Now below scenarios occur:
    1) When I enter only one line item, and save it, the data is saved properly
    2) when I enter more than one item data and save it, it only saves first line item data.
    3).When I press ENTER button after every new line item data, it saves all the data properly.
    I tried to debug the report but could not find the exact problem statement as the code is written very badly without any comments.
    I am pasting the flow logic code below for the screen.
    So please help me figure out the problem and solution for it.
    +++++++++++++++++++++++++++++++++++
    PROCESS BEFORE OUTPUT.
    *&SPWIZARD: PBO FLOW LOGIC FOR TABLECONTROL 'IT_MSEG'
       MODULE it_mseg_change_tc_attr.
    *&SPWIZARD: MODULE IT_MSEG_CHANGE_COL_ATTR.
       LOOP AT   it_gp
            INTO wa_gp
            WITH CONTROL it_mseg
            CURSOR it_mseg-current_line.
         MODULE it_mseg_get_lines.
    *&SPWIZARD:   MODULE IT_MSEG_CHANGE_FIELD_ATTR
       ENDLOOP.
    * MODULE STATUS_9001.
       MODULE deactive_screen.
    PROCESS AFTER INPUT.
    *&SPWIZARD: PAI FLOW LOGIC FOR TABLECONTROL 'IT_MSEG'
       LOOP AT it_gp.
         CHAIN.
           FIELD wa_gp-yposnr.
           FIELD wa_gp-matnr.
           FIELD wa_gp-maktx.
           FIELD wa_gp-meins MODULE check_uom ON INPUT..
    *      FIELD WA_GP-DOC_QTY.
    *      FIELD WA_GP-REC_QTY.
           FIELD wa_gp-gp_qty.
           FIELD wa_gp-chall_qty.
           FIELD wa_gp-netwr.
           FIELD wa_gp-remarks.
           FIELD wa_gp-exp_ret.
           MODULE it_mseg_modify ON CHAIN-REQUEST.
         ENDCHAIN.
         FIELD wa_gp-chk
           MODULE it_mseg_mark ON REQUEST.
       ENDLOOP.
       MODULE it_mseg_user_command.
    *&SPWIZARD: MODULE IT_MSEG_CHANGE_TC_ATTR.
    *&SPWIZARD: MODULE IT_MSEG_CHANGE_COL_ATTR.
       MODULE user_command_9001.
    +++++++++++++++++++++++++++++++++++
    Thanks,
    Vishal.

    Hi Aruna,
    Below is the code as you required.
    +++++++++++++++++++++++++++++
    MODULE user_command_9001 INPUT.
       ygp_header_mas-ret_type = v_gpt.
       CASE sy-ucomm.
         WHEN 'MBLNR'.
           PERFORM select_mblnr.
         WHEN 'DEL'.
           PERFORM select_delivery.
         WHEN 'INTI'.
           PERFORM grt_gi_details.
         WHEN 'GENT'.
           PERFORM get_ge_details.
         WHEN 'GP'.
           PERFORM get_returnable_gp.
         WHEN 'SAVE'.
           PERFORM gen_gp_number.
           PERFORM gen_data.
           PERFORM save_data.
         WHEN OTHERS.
           PERFORM get_ge_details_other.
           IF it_gp[] IS INITIAL.
             INSERT INITIAL LINE INTO it_gp INDEX 1.
           ENDIF.
       ENDCASE.
       IF v_entry = 07 .
         PERFORM serial_no1.
         PERFORM insert_row.
       ENDIF.
       IF sy-ucomm IS INITIAL.
         PERFORM calc_amt.
       ENDIF.
       CLEAR:sy-ucomm.
    ENDMODULE.                    "user_command_9001 INPUT
    +++++++++++++++++++++++++++++++
    MODULE it_mseg_user_command INPUT.
       ok_code = sy-ucomm.
       PERFORM user_ok_tc USING    'IT_MSEG'
                                   'IT_GP'
                                   'CHK'
                          CHANGING ok_code.
       sy-ucomm = ok_code.
    ENDMODULE.                    "IT_MSEG_USER_COMMAND INPUT
    ++++++++++++++++++++++++++++++++++
    MODULE it_mseg_modify INPUT.
       MODIFY it_gp
         FROM wa_gp
         INDEX it_mseg-current_line.
    ENDMODULE.                    "IT_MSEG_MODIFY INPUT    
    ====> Above module has some problem i think as while debugging it was not updating IT_GP as the current line number was not matching with IT_GP as it has only one line item and WA_GP was changing. Also WA_GP data was getting changed with LOOP with all line items data.
    ++++++++++++++++++++++++++++++++++++++++++++++
    MODULE it_mseg_mark INPUT.
       DATA: g_it_mseg_wa2 LIKE LINE OF it_gp.
       IF it_mseg-line_sel_mode = 1
       AND wa_gp-chk = 'X'.
         LOOP AT it_gp INTO g_it_mseg_wa2
           WHERE chk = 'X'.
           g_it_mseg_wa2-chk = ''.
           MODIFY it_gp
             FROM g_it_mseg_wa2
             TRANSPORTING chk.
         ENDLOOP.
       ENDIF.
       MODIFY it_gp
         FROM wa_gp
         INDEX it_mseg-current_line
         TRANSPORTING chk.
    ENDMODULE.                    "IT_MSEG_MARK INPUT
    +++++++++++++++++++++++++++++++++++++++++
    If I press ENTER after entering each line item, all records come in IT_GP but if not then only first line item comes. Also if I dont press ENTER after entering the first line item and and add one item (total 2) and then press ENTER then sometimes both the lines disappear.
    Thanks,
    Vishal

  • Truncate text after first line in TextFlow

    I have a TextFlow object which is rendered in a Sprite with multiple lines.
    For a compact display I now want to display only the first line, followed by 3 dots (...).
    I didn't find a good approach so far.

    There is some support for truncation.  It's limited to label use cases and requires using the TextLine factories.  There is no support for editable text with truncation.   Example below.
    Hope that helps,
    Richard
    ADOBE SYSTEMS INCORPORATED
    Copyright 2011 Adobe Systems Incorporated
    All Rights Reserved.
    NOTICE:  Adobe permits you to use, modify, and distribute this file
    in accordance with the terms of the Adobe license agreement
    accompanying it.  If you have received this file from a source
    other than Adobe, then your use, modification, or distribution
    of it requires the prior written permission of Adobe.
    package
        import flash.display.DisplayObject;
        import flash.display.Sprite;
        import flash.display.StageAlign;
        import flash.display.StageScaleMode;
        import flash.geom.Rectangle;
        import flash.text.StyleSheet;
        import flash.utils.ByteArray;
        import flashx.textLayout.container.ContainerController;
        import flashx.textLayout.conversion.TextConverter;
        import flashx.textLayout.elements.TextFlow;
        import flashx.textLayout.formats.TextLayoutFormat;
        import flashx.textLayout.factory.StringTextLineFactory;
        import flashx.textLayout.factory.TextFlowTextLineFactory;
        import flashx.textLayout.factory.TruncationOptions;
        [SWF(width="500", height="500")]
        public class Truncation extends Sprite
            public function Truncation()
                stage.align = StageAlign.TOP_LEFT;
                stage.scaleMode = StageScaleMode.NO_SCALE;
                // sample of truncation with the StringFactory
                var stringFactory:StringTextLineFactory = new StringTextLineFactory();
                var stringSprite:Sprite = new Sprite();
                stringSprite.x = 25; stringSprite.y = 25; addChild(stringSprite);
                // this bounds has no maximum height
                stringFactory.compositionBounds = new Rectangle(0,0,200,NaN);
                stringFactory.text = "This is an extremely long and overly verbose string of text that I would like to see trunctated.";
                // truncate after two lines
                stringFactory.truncationOptions = new TruncationOptions(TruncationOptions.HORIZONTAL_ELLIPSIS,2);
                stringFactory.createTextLines(function (obj:DisplayObject):void { stringSprite.addChild(obj); });
                // sample of truncation with the TextFlowTextLineFactory
                var flowFactory:TextFlowTextLineFactory = new TextFlowTextLineFactory();
                var flowSprite:Sprite = new Sprite();
                flowSprite.x = 25; flowSprite.y = 75; addChild(flowSprite);
                // this bounds has no maximum height
                flowFactory.compositionBounds = new Rectangle(0,0,200,NaN);
                // truncate after three lines with a big red ellipsis
                flowFactory.truncationOptions = new TruncationOptions(TruncationOptions.HORIZONTAL_ELLIPSIS,3,TextLayoutFormat.createTextLayoutFormat({ fontSize:24, lineHeight:0, color:0xff0000 }));
                flowFactory.createTextLines(function (obj:DisplayObject):void { flowSprite.addChild(obj); },TextConverter.importToFlow(Data.markup, TextConverter.TEXT_LAYOUT_FORMAT));
    class Data
        public static const markup:String = "<TextFlow xmlns='http://ns.adobe.com/textLayout/2008' fontSize='10' textIndent='15' paragraphSpaceAfter='15' paddingTop='4' paddingLeft='4'>" +
            "<p>The following excerpt is from Ethan Brand by Nathaniel Hawthorne.</p>" +
            "<p><span>There are many </span><span fontStyle='italic'>such</span><span> lime-kilns in that tract of country, for the purpose of burning the white marble which composes" +
            " a large part of the substance of the hills. Some of them, built years ago, and long deserted, with weeds growing in the vacant round of the interior, which is open to the sky," +
            " and grass and wild-flowers rooting themselves into the chinks of the stones, look already like relics of antiquity, and may yet be overspread with the lichens of centuries to come." +
            " Others, where the lime-burner still feeds his daily and nightlong fire, afford points of interest to the wanderer among the hills, who seats himself on a log of wood or a fragment " +
            "of marble, to hold a chat with the solitary man. It is a lonesome, and, when the character is inclined to thought, may be an intensely thoughtful occupation; as it proved in the case " +
            "of Ethan Brand, who had mused to such strange purpose, in days gone by, while the fire in this very kiln was burning.</span></p><p><span>The man who now watched the fire was of a " +
            "different order, and troubled himself with no thoughts save the very few that were requisite to his business. At frequent intervals, he flung back the clashing weight of the iron door, " +
            "and, turning his face from the insufferable glare, thrust in huge logs of oak, or stirred the immense brands with a long pole. Within the furnace were seen the curling and riotous flames, " +
            "and the burning marble, almost molten with the intensity of heat; while without, the reflection of the fire quivered on the dark intricacy of the surrounding forest, and showed in the " +
            "foreground a bright and ruddy little picture of the hut, the spring beside its door, the athletic and coal-begrimed figure of the lime-burner, and the half-frightened child, shrinking " +
            "into the protection of his father's shadow. And when again the iron door was closed, then reappeared the tender light of the half-full moon, which vainly strove to trace out the " +
            "indistinct shapes of the neighboring mountains; and, in the upper sky, there was a flitting congregation of clouds, still faintly tinged with the rosy sunset, though thus far down " +
            "into the valley the sunshine had vanished long and long ago.</span></p></TextFlow>";

  • TEXT_IO ...  replace first line

    Hello,
    i have a small Problem with the TEXT_IO.PUT_LINE builtin
    I want to write and read a .txt file with TEXT_IO
    It workes fine but if i use put_line to write something in, it replace all inside my .txt file
    My Question: Is it possible to replace only the first line inside my txt file
    Example Forms:
    Declare
         filename           varchar2(30) := 't:\test\Laufzettel.txt';
         file_handle TEXT_IO.FILE_TYPE;
         umrechnung number;
    BEGIN
    If :parameter.intervall is not null then
         file_handle := TEXT_IO.FOPEN(filename, 'W');
         umrechnung := :button.intervall;
         umrechnung := round(((umrechnung*60)*1000));
         TEXT_IO.PUT_LINE(file_handle,umrechnung);     
         TEXT_IO.FCLOSE(file_handle);
    end if;
    END;
    and the .txt file looks like this:
    6000
    CT
    CT2
    Mammo
    MR
    US
    Bestrahlung
    MRT
    NUK
    SD
    i want to replace the 6000 with another number without rewriting all the other entrys?!
    Sorry for my bad English :)
    Message was edited by:
    user628271

    If you are unix use grep command to replace the string. And this grep command can be called using host.
    If you are in Windows , create a new file from the original and while creating you
    can replace which ever line you needed.
    Once you create the new file , delete the original file using host command.
    Once you delete the old file, copy the new file to the original file name using host command.
    Rajesh Alex

  • Validation for first line item ( table )

    Dear Friends,
    i have table with multiple line items, i want to validate first line item only, if first line item is initial, it should throw an error message, could any one pls help me with an example
    Thanks
    Vijaya
    Col1
    Col2
    Col3

    Hi Vijaya,
    Method get_static_attributes_table of interface if_wd_context_node will return a table of context elements. You can then either read the first row of that table or loop through it to validate the table's data and issue messages as needed. For example...
    data lo_nd_ctx_node type ref to if_wd_context_node.
    data lt_attributes_table type wd_this->elements_ctx_node.
    lo_nd_ctx_node = wd_context->get_child_node( name = wd_this->wdctx_ctx_node ).
    lo_nd_ctx_node->get_static_attributes_table( importing table = lt_attributes_table ).
    If the row to be validated happens to be the table's lead selection, you can fetch attributes of the lead selection row directly, and again validate and issue messages as needed...
    data lo_nd_ctx_node type ref to if_wd_context_node.
    data lo_el_ctx_element type ref to if_wd_context_element.
    data ls_attributes type wd_this->element_ctx_node.
    lo_nd_ctx_node = wd_context->get_child_node( name = wd_this->wdctx_ctx_node ).
    lo_el_ctx_element = lo_nd_ctx_node->get_element( ).
    lo_el_ctx_element->get_static_attributes( importing static_attributes = ls_attributes ).
    Both of these code patterns to read context data are available through the Web Dynpro Code Wizard.
    Cheers,
    Amy

  • af:table, only the first row of the table is effect

    Hi experts,
    I have an issue about using the <af:table, needs your help:
    1.The default selected line is the first line of the table(This should be ok).
    2.Only the first line can react to my manipulate, such as select one line and click delete button.
    3.While choosing the other line-->click the command button, the page will be refreshed and the selected one will turned to the first line. (Now the selected row, will be the first row). And will do nothing ,and has no action with the command button.
    I have an page OVS_Server.jspx, parts of it is :
    <af:table value="#{backVS.serverList}"
    var="row" rows="20"
    emptyText="#{globalRes['ovs.site.noRows']}"
    binding="#{backing_app_broker_OVS_Server.serverListTable}"
    id="serverListTable" width="100%"
    partialTriggers="poll1 commandButton_refresh commandButton_searchServer"
    selectionListener="#{backing_app_broker_OVS_Server.onSelect}">
    <f:facet name="selection">
    <af:tableSelectOne text="#{globalRes['ovs.site.selectAnd']}" autoSubmit="true"
    id="tableSelectOne" required="false">
    <af:commandButton text="#{globalRes['ovs.site.server.poweroff']}"
    id="commandButton_powerOff"
    action="#{backing_app_broker_OVS_Server.powerOffAction}"
    partialTriggers="tableSelectOne"
    disabled="#{backing_app_broker_OVS_Server.unreachableServer}"
    />
    <af:commandButton text="#{globalRes['ovs.site.edit']}"
    id="commandButton_edit"
    action="#{backing_app_broker_OVS_Server.editAction}"
    />
    <af:commandButton text="#{globalRes['ovs.site.delete']}"
    id="commandButton_delete"
    action="#{backing_app_broker_OVS_Server.deleteAction}"
    />
    </f:facet>
    <af:column sortProperty="ip" sortable="true"
    headerText="#{globalRes['ovs.site.serverHost2']}"
    id="column_ip">
    <af:commandLink text="#{row.ip}"
    id="commandLink_ip"
    shortDesc="#{globalRes['ovs.site.viewUpdateDetails']}"
    action="#{backing_app_broker_OVS_Server.viewAction}"
    immediate="true"/>
    </af:column>
    <af:column sortProperty="serverName" sortable="true"
    headerText="#{globalRes['ovs.site.serverName']}"
    id="column_serverName">
    <af:outputText value="#{row.serverName}"/>
    </af:column>
    </af:table>
    One JavaBean OVS_Server.java,and part of it is :
    public class OVS_Server {
    private CoreTable serverListTable;
    private VirtualServer selectedServer;
    public void onSelect(SelectionEvent selectionEvent) {
    selectedServer = (VirtualServer)serverListTable.getSelectedRowData();
    public String deleteAction(){
    if (selectedServer!=null) {
    deleteServerOper.execute();
    return "deleteServer";
    Would anyone show some lights on it?
    Thank you very much.

    Thank you for your reply!
    But the example you mentioned also has the issue like one of the comments :
    "Hi, on selecting the first row it displays the correct value, when navigating to another row still it displays the old value and not fetching the new selected row, actually I can see this on your sample screen shots... is there any way we can fix??"
    Is there any resolution?

  • Display the first line

    hi,
    i have a field called comments of length 1000. i need to display only the first line of the comments field in the alv grid.

    Hi Juli,
    Once you get the data into the internal table (itab)....
    Read itab with sy-index 1 into one internal table.
    then pass this to the alv grid fm...

  • HOW TO DISTRIBUTE FORM TO READER AND COLLECT RESPONSES IN READER

    I created a fillable form in pro at home and need to distribute to my job which only have adobe reader. How do I distribute and collect responses in my work email if the forms are filled out in reader?

    Reader doesn't do that, only Acrobat does.

Maybe you are looking for

  • Error when Starting OIS server

    When I was trying to start OIS, I got the following error. start_ois_server_nptl Using NPTL Threading Library. OIS Server started with pid: 20964 [root@localhost ~]# bind: ?????? Identity server: Error: bind Starting OIS server Watchdog..... OIS Serv

  • Cannot locate Java class oracle.tip.adapter.db.DBWriteInteractionSpec

    I have created a BPEL process in which i have used DB Adapter when i try to deploy the soa suite coposite i am getting the following error. [09:36:10 PM] Error deploying archive sca_TicketBooking_rev1.0.jar to partition "default" on server soa_server

  • In sales order item level billing tab

    in sales order item level billing tab you have nine fields for payment terms i want to know from where is the payment terms coming in the fields , i have checked that whatever payment term is there in SP/SH/PY they are not getting updated in the nine

  • Drive transplants

    Hi Just got 2.66 quad core Mac Pro and we want to move everything over from our G5, including the G5's two 500GB hard drives, both around a year old. Currently one drive on the G5 has OS X, applications, documents and a few other bits and pieces = ab

  • Livetime Version and Novell ServiceDesk Version

    Hello @ all! Is anybody knowing anything about the differents in Versions of livetime and ServiceDesk. I know LiveTime is on Version 6.5 and Novell ServiceDesk is still on Version 6.2. I want to know if it's possible to become the Novell ServiceDesk