What is the conversion of onload event to AS3 ?

I have following code on AS2 . Now I need to convert into AS3. Please give your idea to change into AS3
myxml2.onLoad = function() {
     // functionality goes here
myxml.load(my.xml);

var xml:XML;
var url:String = "sample.xml";
var req:URLRequest = new URLRequest(url);
var loader:URLLoader = new URLLoader(req);
loader.addEventListener(Event.COMPLETE, loaderCompleteHandler);
function loaderCompleteHandler(event:Event):void {
    xml = new XML(event.currentTarget.data);
    trace(xml.toXMLString());
Or one could always RTFM: Reading external XML documents
http://livedocs.adobe.com/flash/9.0/main/00000132.html

Similar Messages

  • What is the diffrence between sap events and application events

    Hi all,
    what is the diffrence between sap events and application events.Can any one tell me with examples.
    regards,

    Hi,
    Look at this,
    <b>System Events (Default)</b>
    The event is passed to the application server, but does not trigger the PAI. If you have registered an event handler method in your ABAP program for the event (using the SET HANDLER statement), this method is executed on the application server.
    Within the event handler method, you can use the static method SET_NEW_OK_CODE of the global class CL_GUI_CFW to set a function code and trigger the PAI event yourself. After the PAI has been processed, the PBO event of the next screen is triggered.
    The advantage of using this technique is that the event handler method is executed automatically and there are no conflicts with the automatic input checks associated with the screen. The disadvantage is that the contents of the screen fields are not transported to the program, which means that obsolete values could appear on the next screen. You can work around this by using the SET_NEW_OK_CODE method to trigger field transport and the PAI event after the event handler has finished.
    <b>Application Events</b>
    The event is passed to the application server, and triggers the PAI. The function code that you pass contains an internal identifier. You do not have to evaluate this in your ABAP program. Instead, if you want to handle the event, you must include a method call in a PAI dialog module for the static method DISPATCH of the global class CL_GUI_CFW. If you have defined an event handler method in your ABAP program for the event (using the SET HANDLER statement), the DISPATCH method calls it. After the event handler has been processed, control returns to the PAI event after the DISPATCH statement and PAI processing continues.
    The advantage of this is that you can specify yourself the point at which the event is handled, and the contents of the screen fields are transported to the application server beforehand. The disadvantage is that this kind of event handling can lead to conflicts with the automatic input checks on the screen, causing events to be lost.
    Hope u understood.
    Thanks&Regards,
    Ruthra.R

  • What does the "conversion error" I get when converting a pdf file to Microsoft word?

    What is the "conversion error" I get when converfting a pdf file to aMicrosoft word?

    Adobe reader with export to PDF
    Sent from my iPhone 5
    Marty Kennedy

  • What caused the Windows 2008R2 Security event discarded

    Dear Support team,
    I have a windows 2008 R2 server, The security events didn't recorded from last year.
    1. The maximum log size set to 100 MB, But the log file is 300 MB.  The retention was set to "archive the log when full,do not overwrite events".
    2.  Below last entry security log show the registry key that i modified at that time. After i modify the registry value all of the security event were discarded
    A registry value was modified.
    Subject:
                    Security ID:                              domain\userid
                    Account Name:                        userid
                    Account Domain:                     domain
                    Logon ID:                                0x2c202074
    Object:
                    Object Name:                           \REGISTRY\MACHINE\SYSTEM\ControlSet001\services\eventlog\Security
                    Object Value Name: Retention
                    Handle ID:                               0x100
                    Operation Type:                       Existing registry value modified
    Process Information:
                    Process ID:                               0x129c
                    Process Name:                          C:\Windows\regedit.exe
    Change Information:
                    Old Value Type:                       REG_DWORD
                    Old Value:                                0
                    New Value Type:                      REG_DWORD
                    New Value:                              4294967295
    3. As i know,The Windows Event Log supersedes the Event Logging API beginning with the Windows Vista operating system. Here is the KB link:  http://msdn.microsoft.com/en-us/library/windows/desktop/aa385780(v=vs.85).aspx?ppud=4
    And the registry key which i modified at the before ( \REGISTRY\MACHINE\SYSTEM\ControlSet001\services\eventlog\Security\retention )  Seems only apply to Event logging  for Windows 2003 and prior system. 
    Here is the KB link:  http://msdn.microsoft.com/en-us/library/windows/desktop/aa363648(v=vs.85).aspx
    May i know what is the reason cause security event discarded ?
    Does the retention setting at Registry still working at windows 2008?
    Thanks very mush.
    Randy

    The new methods are via GPO described here.
    http://technet.microsoft.com/en-us/library/cc722385(v=WS.10).aspx
    http://blogs.technet.com/b/askds/archive/2008/08/12/event-logging-policy-settings-in-windows-server-2008-and-vista.aspx
    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows]
    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

  • What are the main sap script events and their functionality and usage?

    what are the main sap script events and their functionality and usage?

    Hi,
    Inside the Script, there are events like Top of Page, End of page etc.
    Please elaborate about your requirement.
    Best regards,
    Prashant

  • What are the conversion rules

    what are the conversion rules?can anybody give information on that?points wil be rewarded?

    hI..
    From sap help....
    <b>Conversion Rules for Elementary Data Types</b>
    There are ten predefined ABAP data types. There are 100 possible type combinations between these elementary data types. ABAP supports automatic type conversion and length adjustment for all of them except type D (date) and type T (time) fields which cannot be converted into each other.
    The following conversion tables define the rules for converting elementary data types for all possible combinations of source and target fields.
    C  D  F  I  N  P  STRING  T  X  XSTRING
    Source Type Character
    <b>
    Conversion table for source type C</b>
    Target
    Conversion
    C
    The target field is filled from left to right. If it is too long, it is filled with blanks from the right. If it is too short, the contents are truncated from the right.
    D
    The character field must contain an 8-character date in the format YYYYMMDD .
    F
    The contents of the source field must be a valid representation of a type F field as described in Literals.
    N
    Only the digits in the source field are copied. The field is right-justified and filled with trailing zeros.
    I, P
    The source field must contain the representation of a decimal number, that is, a sequence of digits with an optional sign and no more than one decimal point. The source field can contain blanks. If the target field is too short, an overflow may occur. This may cause the system to terminate the program.
    STRING
    The occupied length of the source field is copied. All trailing spaces are truncated.
    T
    The character field must contain a six-character time in HHMMSS format.
    X
    Since the character field must contain a hexadecimal string, the only valid characters are 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F. This string is packed as a hexadecimal number, transported left-justified, and filled with zeros or truncated on the right.
    XSTRING
    As for fields of type X, except that the target field is not filled with zeros.
    <b>Source Type Date</b>
    <b>Conversion table for source type D</b>
    <b>Target
    Conversion</b>
    C
    The date is transported left-justified without conversion.
    D
    Transport without conversion.
    F
    The date is converted into a packed number. The packed number is then converted into a floating point number (see corresponding table).
    N
    The date is transported left-justified without conversion and, if necessary, filled with zeros on the right.
    I, P
    The date is converted to the number of days since 01.01.0001.
    STRING
    The date is converted to a character field, which is then converted to a character string.
    T
    Not supported. Results in an error message during the syntax check or in a runtime error.
    X
    The date is converted to the number of days since 01.01.0001 in hexadecimal format.
    XSTRING
    As for fields of type X, except that only significant bytes are copied.
    <b>Source Type Floating Point Number
    Conversion table for source type F
    Target
    Conversion</b>
    C
    The floating point number is converted to the <mantissa>E<exponent> format and transported to the character field. The value of the mantissa lies between 1 and 10 unless the number is zero. The exponent is always signed. If the target field is too short, the mantissa is rounded. The length of the character field must be at least 6 bytes.
    D
    The source field is converted into a packed number. The packed number is then converted into a date field (see corresponding table).
    F
    Transport without conversion.
    N
    The source field is converted into a packed number. The packed number is then converted into a numeric text field (see corresponding table).
    I, P
    The floating point number is converted to an integer or fixed point value and, if necessary, rounded.
    STRING
    As for fields of type C, except that the maximum number of places is used for the mantissa (maximum precision). Despite this, different signs or exponents can lead to different string lengths.
    T
    The source field is converted into a packed number. The packed number is then converted into a time field (see corresponding table).
    X
    The source field is converted into a packed number. The packed number is then converted into a hexadecimal number (see corresponding table).
    XSTRING
    As for fields of type X, except that leading zeros are not copied.
    <b>Source Type Integer</b>
    Type I is always treated in the same way as type P without decimal places. Wherever type P is mentioned, the same applies to type I fields.
    <b>Source Type Numeric Text
    Conversion table for source type N</b>
    <b>Target
    Conversion</b>
    C
    The numeric field is treated like a character field. Leading zeros are retained.
    D
    The numeric field is converted into a character field. The character field is then converted into a date field (see corresponding table).
    F
    The numeric field is converted into a packed number. The packed number is then converted into a floating point number (see corresponding table).
    N
    The numeric field is transported right-justified and filled with zeros or truncated on the left.
    I, P
    The numeric field is interpreted as a number, and transferred to the target field, where it is right-justified, and adopts a plus sign. If the target field is too short, the program may be terminated.
    STRING
    As for fields of type C. The length of the character string matches the length of the numeric text.
    T
    The numeric field is converted into a character field. The character field is then converted into a time field (see corresponding table).
    X
    The numeric field is converted into a packed number. The packed number is then converted into a hexadecimal number (see corresponding table).
    XSTRING
    As for fields of type X, except that leading zeros are not copied.
    <b>Source Type Packed Number</b>
    If the program attribute Fixed point arithmetic is set, the system rounds type P fields according to the number of decimal places or fills them out with zeros.
    <b>Conversion table for source type P
    Target
    Conversion
    </b>
    C
    The packed field is transported right-justified to the character field, if required with a decimal point. The last position is reserved for the sign. Leading zeros appear as blanks. If the target field is too short, the sign is omitted for positive numbers. If this is still not sufficient, the field is truncated on the left. ABAP indicates the truncation with an asterisk (*). If you want the leading zeros to appear in the character field, use UNPACK instead of MOVE.
    D
    The packed field value represents the number of days since 01.01.0001 and is converted to a date in YYYYMMDD format.
    F
    The packed field is accepted and transported as a floating point number.
    N
    The packed field is rounded if necessary, unpacked, and then transported right-justified. The sign is omitted. If required, the target field is filled with zeros on the left.
    I, P
    A packed field is converted to type I. The resulting four bytes are placed into the target field right-justified. If the target field is too short, an overflow occurs. If the target field is longer, it is filled with zeros on the left.
    STRING
    As for fields of type C, except that leading zeros are not generated.
    T
    The packed field value represents the number of seconds since midnight and is converted to a time in HHMMSS format.
    X
    A packed field is converted to type I. The resulting four bytes are placed into the target field right-justified and in big-endian format. If the target field is too short, it is truncated from the left. If the target field is longer than 4, it is filled with zeros on the left. Negative numbers are represented by the two's complement (= bit complement +1).
    XSTRING
    As for fields of type X, except that leading zeros are not generated.
    <b>Source Type String
    Conversion table for source type STRING
    Target
    Conversion</b>
    C
    The target field is filled from left to right. If it is longer than the string, it is filled with trailing spaces. If it is too short, the contents are truncated from the right.
    D
    The string must contain an 8-character date in the format YYYYMMDD .
    F
    The contents of the string must be a valid representation of a type F field as described in Literals.
    N
    Only digits in the string are copied. The field is right-justified and filled with trailing zeros. If the target field is too short, it is truncated from the left.
    I, P
    The string must contain the representation of a decimal number, that is, a sequence of digits with an optional sign and no more than one decimal point. The source field can contain blanks. If the target field is too short, an overflow may occur. This may cause the system to terminate the program.
    STRING
    The source string is copied to the target string unconverted.
    T
    The string must contain a six-character time in HHMMSS format.
    X
    Since the character field must contain a hexadecimal-character string, the only valid characters are 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F. This character string is packed as a hexadecimal number, transported left-justified, and filled with zeros or truncated on the right.
    XSTRING
    As for target fields of type X, except that the field is not filled with zeros.
    <b>
    Source Type Time
    Conversion table for source type T
    Target
    Conversion</b>
    C
    The source field is transported left-justified without conversion.
    D
    Not supported. Results in an error message during the syntax check or in a runtime error.
    F
    The source field is converted into a packed number. The packed number is then converted into a floating point number (see corresponding table).
    N
    The date is converted into a character field. The character field is then converted into a numeric text field (see corresponding table).
    I, P
    The date is converted to the number of seconds since midnight.
    STRING
    The time is converted to a character field, which is then converted to a character string.
    T
    The date is transported left-justified without conversion and, if necessary, filled with zeros on the right.
    X
    The date is converted to the number of seconds since midnight in hexadecimal format.
    XSTRING
    As for fields of type X, except that only significant bytes are copied.
    <b>Source Type Hexadecimal Field
    Conversion table for source type X
    Target
    Conversion</b>
    C
    The value in the hexadecimal field is converted to a hexadecimal character string, transported left-justified to the target field, and filled with zeros.
    D
    The source field value represents the number of days since 01.01.0001 and is converted to a date in YYYYMMDD format.
    F
    The source field is converted into a packed number. The packed number is then converted into a floating point number (see corresponding table).
    N
    The source field is converted into a packed number. The packed number is then converted into a numeric text field (see corresponding table).
    I, P
    The value of the source field is interpreted as a hexadecimal number. It is converted to a packed decimal number and transported right-justified to the target field. If the hexadecimal field is longer than 4 bytes, only the last four bytes are converted. If it is too short, a runtime error may occur.
    STRING
    As for target fields of type C, except that the field is not filled with zeros. The length of the string is twice the length of the hexadecimal field.
    T
    The source field value represents the number of seconds since midnight and is converted to a time in HHMMSS format.
    X
    The value is transported left-justified and filled with X'00' on the right, if necessary.
    XSTRING
    The hexadecimal field is copied completely – that is, trailing zeros are not truncated.
    Source Type Byte Sequence
    Conversion table for source type XSTRING
    Target
    Conversion
    C
    The value in the byte sequence is converted to a hexadecimal character string, transported left-justified to the target field, and filled with zeros.
    D
    The byte sequence value represents the number of days since 01.01.0001 and is converted to a date in YYYYMMDD format.
    F
    The content of the byte sequence is converted into a packed number. The packed number is then converted into a floating point number (see corresponding table).
    N
    The content of the byte sequence is converted into a packed number. The packed number is then converted into a numeric text field (see corresponding table).
    I, P
    The content of the byte sequence is interpreted as a hexadecimal number. It is converted to a packed decimal number and transported right-justified to the target field. If the byte sequence is longer than 4 bytes, only the last four bytes are converted. If it is too short, a runtime error may occur.
    STRING
    As for target fields of type C, except that the field is not filled with zeros. The length of the string is twice the length of the byte sequence.
    T
    The byte sequence value represents the number of seconds since midnight and is converted to a time in HHMMSS format.
    X
    The byte sequence is transported left-justified and filled with X'00' on the right, if necessary.
    XSTRING
    The source byte sequence is copied to the target byte sequence unconverted.
    Conversion Rules for Internal Tables
    Internal tables can only be converted into other internal tables. You cannot convert them into structures or elementary fields.
    Internal tables are convertible if their line types are convertible. The convertibility of internal tables does not depend on the number of lines.
    <b>Conversion rules for internal tables:</b>
    Internal tables which have internal tables as their line type are convertible if the internal tables which define the line types are convertible.
    Internal tables which have line types that are structures with internal tables as components are convertible according to the conversion rules for structures if the structures are compatible.
    <b>Conversion Rules for Structures</b>
    ABAP has one rule for converting structures that do not contain internal tables as components. There are no conversion rules for structures that contain internal tables. You can only make assignments between structures that are compatible.
    You can combine convertible structures in the following combinations:
    Converting a structure into a non-compatible structure
    Converting elementary fields into structures
    Converting structures into elementary fields
    In each case, the system first converts all the structures concerned to type C fields and then performs the conversion between the two resulting elementary fields. The length of the type C fields is the sum of the lengths of the structure components. This rule applies to all operations using structures that do not contain internal tables.
    If a structure is aligned, the filler fields are also added to the length of the type C field.
    A non-aligned structure without filler fields:
    If you convert a structure into a shorter structure, the original structure is truncated. If you convert a structure into a longer one, the parts at the end are not initialized according to their type, but filled with blanks.
    It can make sense to assign a structure to another, incompatible, structure if, for example, the target structure is shorter than the source, and both structures have the same construction over the length of the shorter structure. However, numeric components of structures that are filled in incompatible assignments may contain nonsensical or invalid values that may cause runtime errors.
    DATA: BEGIN OF FS1,
    INT TYPE I VALUE 5,
    PACK TYPE P DECIMALS 2 VALUE ‘2.26’,
    TEXT(10) TYPE C VALUE ‘Fine text’,
    FLOAT TYPE F VALUE ‘1.234e+05’,
    DATA TYPE D VALUE ‘19950916’,
    END OF FS1.
    DATA: BEGIN OF FS2,
    INT TYPE I VALUE 3,
    PACK TYPE P DECIMALS 2 VALUE ‘72.34’,
    TEXT(5) TYPE C VALUE ‘Hello’,
    END OF FS2.
    WRITE: / FS1-INT, FS1-PACK; FS1-TEXT, FS1-FLOAT, FS1-DATE.
    WRITE: / FS2-INT, FS2-PACK, FS2-TEXT.
    MOVE FS1 TO FS2.
    WRITE: / FS2-INT, FS2-PACK, FS2-TEXT.
    Message was edited by:
            Rammohan Nagam

  • When using the analog inputs and analog outputs of the PCI-7344, what is the conversion between the voltage entering the card to counts? Similarly, what is the conversion between counts to voltage at the output of the card?

    I am using the PCI-7344 to control my system. The analog inputs are connected to the output of my system while the analog outputs serve as feedback to the system. The system is a servo. I want to know what is the conversion between the voltage read at the input, to card counts, and finally to the voltage output to the system.

    Carole,
    If you are trying to do analog feedback with a servo motor, Chapter 14 of the manual talks about how to set up the torque feedback. Also linked below is a LabVIEW example of analog feedback.
    Chapter 14
    NI-Motion User Manual
    Automatic Analog Feedback with FlexMotion example
    A. Talley
    National Instruments

  • What's the best substitution of events in the Photos

    Since moments can't be named I was looking for a substitution of events. Albums are not optimal for what I need because many times it's just few pictures in each event and  I don't think albums are meant to be used for that. I may have 4-5 pictures that I want to name "Hadi's school contest", another 4-5 that are "In the restaurant with Sam", 4-5 more to name "kids playing with balloons in the backyard".
    I think albums are meant to be used for larger collections of pictures that fits specific criteria (vacation, nature, ....) and not for few pictures each.
    What I really need is just making notes on each photo in each collection. Not a good use for keywords either. I thought of making these comments in the title or description of  the photos. I was surprised when I found that I can't batch title or batch description in Photos.
    What can be the best substitution for events for my needs.

    Moments in Photos are the new Events, i.e. groupings of photos sorted by date taken.
    When the iPhoto Library was first migrated to Photos there was a folder created in the sidebar titled iPhoto Events and all migrated iPhoto Events (which are now Moments) are represented by an album in that folder. To open the sidebar if it's not already open use the Option+Command+S key combination.
    There's a way to simulate events in Photos.
    When new photos are imported into the Photos library go to the Last Import smart album, select all the photos and use the File ➙ New Album menu option or use the key combination Command+N.  Name it as desired.  It will appear just above the iPhoto Events folder where you can drag it into the iPhoto Events folder
    When you click on the iPhoto Events folder you'll get a simulated iPhoto Events window.
    The downside to the simulation is that the Albums/Events can only be sorted automatically by Title. But they can also be sorted manually, either in the sidebar or in the folder's window at the right.
    Ask Apple for more sorting options in Photos as well as for those iPhoto features that have been left out via https://www.apple.com/feedback/photos.html.

  • What's the best option for event generation from an Oracle database?

    Hi all,
    I need to interface from an oracle database into WLI (or elink if need be). The
    code that needs to call this interface is written in pl/sql in the database.
    What is the best way to enable the pl/sql to make a call to WLI?
    I know you can set up an event trigger on a table using the sample DBMS adapter
    so that it will send info to WLI via the events table in the database but this
    is what they call a pull event(i.e. the adapter is actually polling this table
    for whenever an event gets put into it I think).
    Has anyone ever done a push type event? (e.g. calling java code from pl/sql that
    sends event to WLI)
    Or anyone know whether the new JCA for Oracle Applications will help with this?
    I am using Oracle 8.1.7 so don't have any extras with Oracle Apps.
    thanks all
    adam

    Adam,
    I have not implemented an push event adapter with Oracle. However, I
    know the trend that seems to be happening in the industry and I can say
    I agree 100% with it's implementation. I am seeing vendors using
    Oracle's Advanced queuing features to push events out to other
    applications. One interface for AQ is PL/SQL using DBMS_AQ, DBMS_AQADM,
    and DBMS_AQELM packages, so you would not have to rewrite your current
    business logic. Although I have not done the leg work, logically, this
    would be the approach I would take if tasked to implement an Oracle
    event adapter.
    For more information register (free) for an account on Oracle Technology
    Network (OTN), then go to the following URL:
    http://otn.oracle.com/docs/products/oracle9i/doc_library/release2/appdev.920/a96587/toc.htm
    Note: (the url goes to Oracle9i, as I couldn't find the link to 8i, but
    8i AQ in will work just as well)
    Cheers,
    Chris
    Adam Finlayson wrote:
    Hi all,
    I need to interface from an oracle database into WLI (or elink if need be). The
    code that needs to call this interface is written in pl/sql in the database.
    What is the best way to enable the pl/sql to make a call to WLI?
    I know you can set up an event trigger on a table using the sample DBMS adapter
    so that it will send info to WLI via the events table in the database but this
    is what they call a pull event(i.e. the adapter is actually polling this table
    for whenever an event gets put into it I think).
    Has anyone ever done a push type event? (e.g. calling java code from pl/sql that
    sends event to WLI)
    Or anyone know whether the new JCA for Oracle Applications will help with this?
    I am using Oracle 8.1.7 so don't have any extras with Oracle Apps.
    thanks all
    adam

  • What is the difference observerables /actions/events ?

    I dont know if this is the right place to ask this but what is the difference between these three things. I understand the basics of actions and actionlisteners but what is the differences between these three objects? It seems like you could use any one of the three combinations to get the job done so what is the difference and what should be used when?
    Observer with Observables
    Action with ActionListener
    Event with EventListener
    Can some one explain this. I am sure its been asked before but I spent all day searching and still dont understand the difference.
    Thanks

    Observer & observerables are derived from the classical solutions for Action/event handlers in the software paradigm. There's nothing wrong that to manage a UseCase trigger, you use the Observer & observerables patterns inherently.

  • *what are the step by step events trigger in interactive report*

    Hi gurus,
    pls explain event by event triggers in interactive report.
    points will be rewarded.
    Thanks,
    Balakrishna.

    Hi,
    Interactive reporting allows the user to participate in retrieving and presenting data at each level during the session.  Instead of presenting one extensive and detailed list with cluttered information, with interactive reporting you can create a condensed basic list from which the user can call detailed information by positioning the cursor and entering commands.
    Detailed information is presented in secondary lists. A secondary list may either overlay the basic list completely or appear in an additional dialog window on the same screen.  The secondary list can itself be interactive again. The basic list is not deleted when secondary list is created.
    User can interact with the system by:
    u2022     Double clicking or pressing F2
    u2022     Selecting menu option
    Like classical report, the interactive report is also event driven. Both the action mentioned above trigger events and code is written to handle these events.  The events triggered by this action are as follows:
    u2022     At line-selection
    u2022     At user-command
    u2022     Top-of-Page During Line-Selection for Secondary Page Header info
    Interactive report consists of one BASIC list and 20 secondary list. Basic list is produced by START-OF-SELECTION event. When the user double clicks on the basic list or chooses the menu option, the secondary list is produced. All the events associated with classical report except end-of-page are applicable only to basic list.
    AT LINE-SELECTION event
    Double clicking is the way most users navigate through programs. Double clicking on basic list or any secondary list triggers the event AT LINE-SELECTION. SY-LSIND denotes the index of the list currently created. For BASIC list it is always 0.  Following piece of code shows how to handle the event.
    Start-of-selection.
    Write: / u2018this is basic listu2019.
    At line-selection.
    Write : u2018this is first secondary listu2019.
    In this case the output will be displayed on basic list i.e.
    This is basic list.
    When user double clicks on this line, the event at line-selection gets triggered and secondary list is produced, i.e. This is first secondary list.
    You can go back to basic list by clicking on F3 or back icon on the standard tool bar.  For this list, the value of sy-lsind will be 1.
    HIDE technique
    In this case thins are much simpler. Consider the case, wherein you display fields from table sflight in basic list. When user double clicks on any sflight-carrid, you are displaying the detailed information related to that particular carrid on secondary list.  Hence there is a need to store the clicked carrid in some variable.  So that you can access this carrid for next list. ABAP/4 has facility; a statement called HIDE, which provides the above functionality.
    HIDE command temporarily stores the content of clicked field in system area.
    Syntax:
    HIDE <FIELDS>.
    This statement stores the contents of variable <f> in relation to the current output line (system field SY-LINNO) internally in the so-called HIDE area. The variable <f> must not necessarily appear on the current line.
    You have to place the HIDE statement always directly after the output statement i.e., WRITE for the variable <f>.  As when you hide the variable, control is passed to next record.  While writing, WRITE statement takes that record from header and writes it on to the list, but when writing onto your interactive list you will miss out 1st record.
    To hide several variables, use chain HIDE statement.
    As soon as the user selects a line for which you stored HIDE fields, the system fills the variables in the program with the values stored.  A line can be selected.
    u2022     By an interactive event.
    For each interactive event, the HIDE fields of the line on which the cursor is positioned during the event are filled with the stored values.
    The HIDE area is a table, in which the system stores the names and values of all HIDE fields for each list and line number.  As soon as they are needed, the system reads the values from the table.  (Please try to find the name of this table.)
    Sy-lsind indicates the index of the list and can be used to handle all the secondary lists.  When the user double clicks on the line or presses F2, sy-lsind is increased by one and this new sy-lsind can be handled.  For example:
    Write: / u2018this is basic listu2019.
    u2022     Will create a basic list.
    If sy-lsind = 1.
    Write: / u2018this is first secondary listu2019.
    Elseif sy-lsind = 2.
    Write: / u2018This is second secondary listu2019.
    Endif.
    When this code is executed,
    u2022     Basic list is produced.
    u2022     When the user clicks on the basic list, sy-lsind becomes one.
    u2022     AT LINE-SELECTION event is triggered.
    u2022     Whatever is written under IF Sy-lsind = 1, gets executed.
    u2022     Secondary list is produced.
    u2022     Again if user clicks on this list, sy-lsind becomes two.
    u2022     AT LINE-SELECTION gets triggered.
    u2022     Code written under IF Sy-lsind = 2, gets executed.
    A sample program for AT LINE-SELECTION.
    AT USER-COMMAND
    When the user selects the menu item or presses any function key, the event that is triggered is AT USER-COMMAND, and can be handled in the program by writing code for the same. The system variable SY-UCOMM stores the function code for the clicked menu item or for the function key and the same can be checked in the program.  Sample code would look like
    AT USER-COMMAND.
    Case sy-ucomm.
    When u2018DISPu2019.
            Select * from sflight.
            Write sflight-carrid, sflight-connid.
            Endselect.
    When u2018EXITu2019.
         LEAVE.
    If GUI status, suppose you have set menu bar for two items and the function code is u2018DISPu2019 and u2018EXITu2019 respectively. If the user clicks the menu item u2018DISPLAYu2019, then function code u2018DISPu2019 is stored in the sy-ucomm and whatever is written under the when u2018DISPu2019, gets executed. This is applicable for EXIT as well.
    Sy-lsind for the screen increases when the user clicks the menu item.
    Usually you have combination of all the three navigations in your user interface, i.e., you have to create menu bar, assign function code for the function keys and write code to handle all this in addition to handling double clicking.
    Things to remember while using all the combinations:
    u2022     Sy-lsind increases even if you select menu-item.
    u2022     When the user double clicks on particular line, value of sy-ucomm is u2018PICK.
    u2022     If you set sy-lsind = 2 for your 4th secondary list, when control is transferred to the 2nd secondary list, all the other lists after 2nd are lost or memory allocated to them is lost.
    u2022     Sy-lisel also gives you the value of clicked line but in this case you cannot differentiate between field. To retrieve the exact field, you have to know the field length of each field.
    u2022     If you use statement SY-LSIND = 1.
    The system reacts to a manipulation of SY-LSIND only at the end of an event, directly before displaying the secondary list. So, if within the processing block, you use statements whose INDEX options access the list with the index SY-LSIND, make sure that you manipulate the SY-LSIND field only after processing these statements. The best way is to have it always at the `as the last statementu2019 of the processing block.
    Regards,
    Bhaskar

  • What is the problem with this event handler in LabView 8.0?

    Please find attached a copy of a simple Event Structure VI. Can anyone please tell me why the Pos 0, Pos 1, Pos 2 work fine, but Pos 3 does Not????? It works in Version 7.1 of Labview, but Not in version 8.0. Any help here would be appreciate
    Everything is Free! Until you have to pay for it.
    Attachments:
    ValChgEventBug.vi ‏29 KB

    Hi,
    It doesn't work because the logic is flawed.  If you run the VI in Execution-Highlight mode you will see that for a value-change of, say, 7.0, all the cases (except the first one) are True!  And since there is no data dependency, whatever case executes last will set the final position. 
    You will want to change the logic to check if the value falls in a range, rather than just being greater than something.  For isntance, the psuedo-code would be: 
    "go to position 2 IF value >= 4  AND < 6" 
    You are missing the "AND" part.  Hope this helps.
    -Khalid

  • What's the difference between splitting events and creating an event?

    With photos selected in an event, "splitting" the event and "creating a new event" appear to do the same thing. Is there any difference? In either case, a new event is created with the selected photos taken out of the original event.
    doug

    Doug:
    Auto split will split up the event into events based on the date requirement that's been set for events, i.e. 1 day per ever, 1 week ,etc. It's automatic. Whereas creating a new event you determine which photos go into that event.
    Do you Twango?
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've written an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 08 libraries. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • What is the Eventhandler for Submit event?

    Hello All,
    I am creating a project in Project Server 2013 and when I click on Submit I need to write some code in submit event. I understand we need to do this through eventhandler, but I did not find any submit event in ProjectEventReceivers class. Please help,
    is it possible to capture submit event through any eventhandlers?
    Thanks in Advance,
    Shanila

    Hi Christopher,
    Yes, but is it possible? Since Visual Studio 2012 workflow is declarative workflow and I think we cannot add any custom code in it. In 2010, it is possible since we had Code Activity. But I am not sure on this, can we include code in Visual Studio 2012 after
    all?

  • OnLoad Event in as3????

    please change this code to as3 code.....
    mymc.onLoad=function()
       trace("onLoad is working!")

    please change it yourself
    http://www.adobe.com/devnet/actionscript/as3_migration_table.html

Maybe you are looking for

  • Hard Drive Upgrade on 17" MacBook Pro, 2.4 GHz Core 2 Duo

    I have a 17" MacBook Pro, 2.4 GHz Core 2 Duo, with a 160 GB hard drive. I am looking to upgrade the hard drive. Will a WD Scorpio Black, 320 GB SATA, notebook hard drive fit into my MacBook Pro?

  • Aperture 3 and MobileMe Galleries created in iPhoto

    I wanted to post this to hopefully help someone else should they run into the same thing. I recently upgraded from point and shoot camera's to a higher quality camera, so I also decided that it was time to upgrade from iPhoto to something better.  I

  • User exit name which triggers when a save button is pressed in cs01

    Hi Gurus, Can anybody tell me what is user exit which will trigger for a save button in tcode CS02 Regards Yathish

  • Switching graphic cards don't work

    , Hi and thanks again for posting back.  Here is a link to your systems supported drivers. HP Pavilion g6-2170ec Notebook PC - Software and Drivers Here is a link on How to enable/disable automatic driver installation for Windows 8 Please let me kno

  • Exporting tables from 8i to 9i

    Hi Gurus, Can an existing Table from Oracle 8i be imported to Oracle 9i? If it is possible how can this be possible? I need to move onto Oracle 9i Standard Edition Release 2 (9.2.0.1.0) for Windows . And I am presently running on Oracle 8i Release 8.