(AS 3.0) How to separate functionality using classes

Anyone familiar with this? I have already tried dividing
among classes and it is not working.
I have created the following code that pulls data from an
external xml file into a datagrid. I have been trying to figure out
how to get it to function using classes and/or packages. I'd like
to separate the functionality into separate classes for each of the
following:
1) A class for loading the XML file(s) (there will likely be
more datagrids and more xml files)
2) A class for "drawing" the datagrid based on the xml
.... others you can think of??
I have attached the code in question.
Thanks,
Mark

zoran,
Sorry,I didn't explain what to do very clearly :).
Básically, the event.taget parameter is set when you use the
dispatchEvent function, so if you want an event to be dispatched
from a Object you must call the dispatchEvent from this function.
The line I gave you wont work by itself since I don't know
how you reference
DataEntry0._UpdateDeleteProd1.Form10.FormItem102.HBox103.Button104
in your application.
But what you need to do is call the dispatchEvent function in
the Button104 object with the specific event you want to trigger.

Similar Messages

  • How to call function module/ class method of another system.

    Suppose now i am working in System A. And i need to check the system Status of System B, System C, System D....
    my design is to provide an interface. and each system realize the interface individually.now my question is how cani call the interface, because they are in different systems.
    of course i know about the host name, port and logon information over these systems.
    who can give my some suggestions or other solutions.
    thanks in advance.
    Johnney.

    Hello,
    If u want to call a FM of the other system then that FM should be a RFC enable on one.
    <b>CALL FUNCTION func DESTINATION dest.</b>
    Effect
    Executes the function module from an external source (as a Remote Function Call or RFC); dest can be a literal or a variable.
    Depending on the specified destination, the function module is executed in another R/3 or R/2 System. Externally callable function modules must be flagged as such in the Function Builder (of the target system).
    Since each destination defines its own program context, further calls to the same or different function modules with the same destination can access the local memory (global data) of these function modules.
    To maintain existing destinations, choose Tools -> Administration, Administration -> Network -> RFC destinations
    Note
    Under certain circumstances, an RFC may trigger a database commit. For this reason, RFCs must not be used between pairs of SQL statements that open and close a database cursor (such as SELECT... ENDSELECT).
    Vasanth

  • How to find packages using class path

    how to list all the packages in my class path using a java program?
    for eg. if the class path is c:\ajay;
    and ajay contains two folders pack1(i.e a package) and pack2(i.e a general folder not a package)
    in pack1 there are 2 java file which has package pack1; as their first statement.
    in pack2 there are two java file which does not contain package statement.
    so can i identify between pack1 which is a package and pack2 which is a general folder

    I don't think there's any real way to distinguish a package from an "ordinary directory" except by checking if for *.class files.
    Probably you want to use a recursive method to walk the direcotories, calls itself tor each sub-directory found.

  • Disablig Sorting functinoality in ALV using Classes

    Hi,
      How can I disable the ALV sorting functionality using classes? I disabled the buttons on the ALV. But when I select a column and press right click, the sorting functionality is available. How can I disable the right click functionality in alv.
      Thanks in advance.
    Regards,
    Suvan.

    Hi Sridhar,
      Here is the requested code:
    <u><i><b>PBO:</b></i></u>
      gs_LAYOUT-SGL_CLK_HD = 'X'.
      CALL METHOD grid_ref->set_table_for_first_display
        EXPORTING
          i_structure_name              = 'SPFLI'
          is_variant                    = grid_layout
          i_save                        = 'U'
        IS_LAYOUT                     = gs_layout
        IT_TOOLBAR_EXCLUDING          = lt_exclude[]
        CHANGING
          it_outtab                     = t_spfli[]
        EXCEPTIONS
          invalid_parameter_combination = 1
          program_error                 = 2
          too_many_lines                = 3
          OTHERS                        = 4
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      CREATE OBJECT event_receiver.
      SET HANDLER event_receiver->handle_context
                                 FOR grid_ref.
    <u><i><b>
    Class Definition:</b></i></u>
      CLASS my_receiver DEFINITION.
        PUBLIC SECTION.
          METHODS:
            handle_context for event context_menu_request
                     of cl_gui_alv_grid importing e_object.
    endclass.
    <u>
    <i><b>Method Implementation:</b></i></u>
      method handle_right_click.
        data:
          t_fcode_list type UI_FUNCTIONS.
        if t_fcode_list is initial.
          append CL_GUI_ALV_GRID=>MC_FC_SORT_ASC
                              TO T_FCODE_LIST.
          append CL_GUI_ALV_GRID=>MC_FC_SORT_DSC
                              TO T_FCODE_LIST.
        endif.
        CALL METHOD OBJ_CT->HIDE_FUNCTIONS
          EXPORTING
            FCODES = t_fcode_list.
        call method cl_gui_cfw=>flush.
      endmethod.
    Thanks,
    Suvan.

  • How to separate this hyperlink using function in Infopath?

    HI All,
    How to separate this hyperlink using function in Infopath?http://Site:90/Lists/attachment/Attachments/6/Capture.PNGhttp://Site:90/Lists/attachment/Attachments/6/Capture1.PNG
    Actually I have two fields
    in infopath form, attachment field and hyperlink field. If attachment attached, then set value for hyperlink field value as attachment link.
    When I attach more than one attachment, then hyperlink field value gets like above link. I need to separate into two link. How to achieve this?

    try this 
    substring(text, start_position, char_count)
    http://office.microsoft.com/en-us/infopath-help/add-formulas-and-functions-in-infopath-2010-HA101821255.aspx#_Text_functions
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • How do I pass an array of structs to a C function using the dll flexible prototype adapter?

    What I want to do is pass into a C dll function a variably sized Array of structs of type TPS_Data. My Code compiles but when I run it in TestStand, I get an error -17001; Program Error. "Cannot allocate 0 size buffer Error in parameter 2, 'OpenFrdData'."
    I've allocated the Array of structs, and all of the information is there before I call my function, so is it my prototype? Or am I asking too much of the DLL Flexible Prototype Adapter to pass an Array of Structs?
    I can pass in a single struct of type TPS_Data and that works, but not an array.
    Here's the relevent code:
    typedef struct TPS_DATA
    char Report_Number[256];
    char System_Name[256];
    char Open_Date[256];
    char UUT_Part_Number[256];
    char UUT_Serial_Number[256];
    char UUT_Name[256];
    char Open_Employee_Name[256];
    char Open_Employee_Number[256];
    char Close_Employee_Name[256];
    char Close_Employee_Number[256];
    char Close_Date[256];
    } TPS_Data;
    typedef struct TPS_DATA_ARRAY
    TPS_Data DataRecord;
    } TPS_DataArray;
    long __declspec(dllexport) __stdcall OpenDialog (CAObjHandle Context, TPS_DataArray *TpsData[], const char *psFaultStr, char *sComments, const int nCount);

    OK,
    I can pass the data to the DLL function, using the following types:
    typedef struct StringArrayType
    char string[10][256];
    } StringArray;
    typedef struct MultiStringArrayType
    StringArray Record[10];
    } MultiStringArray;
    void __declspec(dllexport) __stdcall ATP_TestStructPassing(StringArray Strings)
    return;
    void __declspec(dllexport) __stdcall ATP_TestMultiStructPassing(MultiStringArray *Strings)
    return;
    But when the MultiStruct function Exits, TestStand reports an Error:
    -17501 "Unexpected Operating System Error" Source: 'TSAPI'
    There doesn't seem to be a way around this, and once the error occurs, I have to force quit TestStand. I've included the sequence file, and the dll code can be compiled from the fun
    ctions shown above.
    Any thoughts on how to get around this error would be greatly appreciated.
    Attachments:
    StructArrayPassing.seq ‏16 KB

  • My husband and I share a new PC.  We have different music tastes and each have an iphone.  How can we both use our one computer and one itunes program with separate music libraries and separate iphones?

    My husband and I share a new PC.  We have different music tastes and each have an iphone.  How can we both use our one computer and one itunes program with separate music libraries and separate iphones?

    Each device only syncs waht you select.
    Select only what you want for each phone.

  • How can i do the upload file function using tomcat library??

    how can i do the upload file function using tomcat library??

    Did you read the document for the library?
    If you can't figure it out, why don't you ask the people who provide the library?
    This has nothing to do with JavaMail.

  • How to  use data function using characterstics variable for calculation on

    how to  use data function using characterstics variable for calculation on  attribute as key figure

    Hi Gayatri
    Did you not see my answer for CASE because CASE does indeed offer the use of the BETWEEN clause, but DECODE does not. Let me give you a little synopsis of DECODE.
    In its most simple form it takes 4 values and looks like this: DECODE(A, B, C, D)
    This essentially means, IF A = B THEN C ELSE D
    The trick to solving BETWEEN in a DECODE is to work out algoriths where A = B. Because we don't know how many values are between 00 and 99, although I could guess there were 100 we could of course have 100 parts in the DECODE but that would be awful. How about if we look at it another way and say this:
    IF PART_NUMBER < 'SDK00' THEN pay_amount
    ELSE IF PART_NUMBER > 'SDK99' THEN pay_AMOUNT
    ELSE pay_amount + 100
    This statement only had 2 hard coded values, but how to make DECODE work with less than? Easy, we use the LEAST function. The LEAST function takes 2 values and returns the one with the lowest value. So I use LEAST(PART_NUMBER, 'SDK00') then whenever the PART_NUMBER is lower than SDK00 it will be true. A similar situation exists for the opposite function GREATEST. Putting all of this together then, you can do this:
    DECODE(PART_NUMBER, GREATEST(PART_NUMBER, 'SDK00'), DECODE(PART_NUMBER, LEAST(PART_NUMBER, 'SDK99'), PAY_AMOUNT * 100, PAY_AMOUNT), PAY_AMOUNT)
    In English this can be read as follows:
    IF the PART_NUMBER is greater than or equal to SDK00 and the PART_NUMBER is less than or equal to SDK99 THEN PAY_AMOUNT x 100 ELSE 0
    Best wishes
    Michael

  • How to use 'several screen function' used to be in os x 10.6

    hi ! ^^
    how r u ? good !
    how to use 'several screen function' used to be in os x 10.6 ??
    it was possible to change whole screen with 'command + arrow keys' (option + arrow keys maybe ??)
    but, in os x 10.7, it seems it is not possible. and instread of it 'mission controls' that is not uesful ..
    no windows drive direct access. no several screen function. crash when control panel ask me administration right.
    os x 10.5 or 10.4 was much easy to control.  
    plz fix and add good functions of 10.6 , remove good functions is not called 'upgrade'.

    You can still do it with CONTROL + Arrow keys, the same as 10.6
    Regards,
    Captfred

  • The find function used to automatically scroll to the next word, now it doesn't. How do I fix it?

    The find function used to automatically scroll to the instance of the word I was looking for. Now it doesn't. How do I fix this?
    == This happened ==
    Every time Firefox opened
    == a few months ago

    Hmm... you're right. I don't have access to that Google Doc, but our support.mozilla.com weekly metrics are on Google Docs, and I see the same issue there.
    https://spreadsheets.google.com/ccc?key=0Aibg4PvTbjUKcGlBLWEtZFhDTDJwN3ZCNXBUdTBIS0E&hl=en#gid=0
    It may be specific to Google spreadsheets (and whether or not you have permission to edit the doc). I'm currently trying to find out if that's a Firefox bug, or a Google bug. If you use the '''Ctrl-F''' keyboard shortcut, Google's Find feature takes over, so they obviously want people using their Find utility.

  • How can I perform the LINEST function using the new version of Numbers? The old method of using "command enter" to complete the array function does not work. Please help ASAP!!!

    LINEST function using Numbers for Mac

    Thank you for your help. This page is somewhat helpful, but I still don't quite understand.  I am using the Numbers program, and my assignment calls for me to use the LINEST function to return a set of 10 values. 
    When I googled how to do this, a lot of pages mentioned hitting "command+enter" to complete the array function, but they were using an older version of Numbers and it doesn't do anything when I try it in the new version.  I tried using "Index" with LINEST, and i've managed to get about 5 values out of it.

  • How to create PBR functionality using WDS deployment

    Dear sir/madam,
    We are a Dutch OEM currently working on deployment and DIS. I have a question about deployment I’m hoping you can help us with.
    We were tought to deploy images via USB using the following script:
    dism /Apply-Image /ImageFile:%1 /Index:1 /ApplyDir:W:\
    md T:\Recovery\WindowsRE
    attrib -h -a -s W:\windows\system32\recovery\winre.wim
    copy W:\windows\system32\recovery\winre.wim T:\Recovery\WindowsRE\winre.wim
    W:\Windows\System32\bcdboot W:\Windows /s S:
    W:\Windows\System32\reagentc /setreimage /path T:\Recovery\WindowsRE /target W:\Windows
    Mkdir R:\RecoveryImage
    Copy %2 R:\RecoveryImage\
    W:\Windows\System32\reagentc /setosimage /path R:\RecoveryImage /target W:\Windows /index 1
    This works perfectly for single systems. However, since we’re planning on building a lot of units we want to automate installation over network. We’re building a solution to deploy custom images on tablets, laptops and desktops based on
    WDS. We currently have a working MS Server 2012 WDS server and several working custom images. The question we have is regarding the system recovery functions (PBR). I’ve managed to automate login to WDS, language choice and disk partitioning using WDSunattend
    (see below). WinRE and Recovery Image partitions are created. We can manually select the image we want to deploy and it will successfully install to the Windows partition.
    <?xml version="1.0" ?>
    <unattend xmlns="urn:schemas-microsoft-com:unattend">
    <settings pass="windowsPE">
    <component name="Microsoft-Windows-Setup" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" processorArchitecture="x86">
    <WindowsDeploymentServices>
    <Login>
    <WillShowUI>OnError</WillShowUI>
    <Credentials>
    <Username>Administrator</Username>
    <Domain>WDS.assemblage.com</Domain>
    <Password>xxx</Password>
    </Credentials>
    </Login>
    <ImageSelection>
    <WillShowUI>OnError</WillShowUI>
    <InstallTo>
    <DiskID>0</DiskID>
    <PartitionID>4</PartitionID>
    </InstallTo>
    </ImageSelection>
    </WindowsDeploymentServices>          
    <DiskConfiguration>
    <Disk>
    <DiskID>0</DiskID>
    <WillWipeDisk>false</WillWipeDisk>
    <CreatePartitions>
    <CreatePartition>
    <Order>1</Order>
    <Size>540</Size>
    <Type>Primary</Type>
    </CreatePartition>
    <CreatePartition>
    <Order>2</Order>
    <Size>260</Size>
    <Type>EFI</Type>
    </CreatePartition>
    <CreatePartition>
    <Order>3</Order>
    <Size>128</Size>
    <Type>MSR</Type>
    </CreatePartition>
    <CreatePartition>
     <Order>4</Order>
    <Size>20000</Size>
    <Type>Primary</Type>
    </CreatePartition>
    <CreatePartition>
    <Order>5</Order>
    <Extend>true</Extend>
    <Type>Primary</Type>
    </CreatePartition>
    </CreatePartitions>
    <ModifyPartitions>
    <ModifyPartition>
    <Order>1</Order>
    <Format>NTFS</Format>
    <Label>WinRE</Label>
    <PartitionID>1</PartitionID>
    <TypeID>de94bba4-06d1-4d40-a16a-bfd50179d6ac</TypeID>
    </ModifyPartition>
    <ModifyPartition>
    <Order>2</Order>
    <PartitionID>2</PartitionID>
    <Label>System</Label>
    <Format>FAT32</Format>
    </ModifyPartition>
    <ModifyPartition>
    <Order>3</Order>
    <PartitionID>3</PartitionID>
    </ModifyPartition>
    <ModifyPartition>
    <Order>4</Order>
    <PartitionID>4</PartitionID>
    <Letter>C</Letter>
    <Label>Windows</Label>
     <Format>NTFS</Format>
    </ModifyPartition>
    <ModifyPartition>
    <Order>5</Order>
    <PartitionID>5</PartitionID>
    <Label>Recovery</Label>
    <Format>NTFS</Format>
    <TypeID>de94bba4-06d1-4d40-a16a-bfd50179d6ac</TypeID>
    </ModifyPartition>
    </ModifyPartitions>
    </Disk>
    </DiskConfiguration>
    </component>
    <component name="Microsoft-Windows-International-Core-WinPE" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" processorArchitecture="x86">
    <SetupUILanguage>
    <WillShowUI>OnError</WillShowUI>
    <UILanguage>en-GB</UILanguage>
    </SetupUILanguage>
    <UILanguage>en-GB</UILanguage>
    </component>
    </settings>
    </unattend>
    Here’s the problem: I can’t find any information on creating PBR functionality using unattend anywhere. Is this possible? If it is, can you help us find a solution?
    Since I can’t find any info on creating PBR using unattend I’m assuming that we have to add PBR functionality using scripts after Windows setup is completed. How do we get this done using WDS?
    With kind regards,
    Frank Wessels.

    Hi,
    We could use deploymenr scripts to configure the recovery partitions:
    Samples: Applying Windows, System, and Recovery Partitions by using a Deployment Script
    More information regarding Capture and Apply Windows, System, and Recovery Partitions, please check:
    http://technet.microsoft.com/en-us/library/hh825041.aspx
    Hope this may help
    Best regards
    Michael Shao
    TechNet Community Support

  • How to separate joint Apple ID's account using different mails and passwords

    How to separate joint Apple ID's account using different mails and passwords

    Hello ROOOS,
    When you speak of a joint Apple ID account it seems you mean a shared Apple ID.
    Frequently asked questions about Apple ID - Apple Support
    Can I share my Apple ID with someone else?
    You shouldn't share your Apple ID account information with other people. Each person should have their own Apple ID.
    To eliminate the share one will keep it and the others will create their own Apple IDs.
    Apple - My Apple ID
    Best regards,
    Nubz

  • How to define Excel function using BEx formula

    Hi experts,
    May I know how to define the following Excel function using BEx formula?
    IF(AND(Revenue<0,Cost<0),"N/A",(Profit/Lost/ABS(Revenue)))
    Thanks!

    for me its easy to implament logic with * and + rather than  AND and OR respectively
    ((Revenue<0)(Cost<0))Value +((Revenue>0)(Cost>0)) ( Profit&Lost / ABS(Revenue))
    As i have mentoned already,for Else case i have considered (Revenue>0) and (Cost>0)  only.
    Value can be a KeyFigure/Formula/formula variable/CKF/RKF
    its not possible to type characters in the formula window so 'N/A'
    Regards.
    Message was edited by:
            Murali c

Maybe you are looking for

  • HT1657 I do not want to be charged for a movie I can't watch...

    I have rented movies from iTunes before and not had a problem. Today I tried to rent a movie and while watching it freezes many times and then stops downloading. I have tried many different things to resume the download and the movie but this has bee

  • Satellite L30-10T: I need the original number of the inverter

    I bought a second hand Toshiba Satellite L30 10T without an inverter. I need the original number of the inverter . Ho can help me. Dik

  • Bug in weblogic 8.1 SP6 at weblogic.security.SSL.SSLCertificate.verify()

    Hi, I got an java.lang.NullPointerException at weblogic.security.SSL.SSLCertificate.verify(SSLCertificate.java:235) at weblogic.security.SSL.SSLCertificate.input(SSLCertificate.java:116) at weblogic.security.SSL.Handshake.input(Handshake.java:121) at

  • Cannot Import some iTunes into FCE - not a standard file?

    Trying to import some music into FCE from iTunes. Browsing window only will highlight certain music as "standard files" and only import those songs. Others are"greyed out" and when I switched the files list to "all files" and try to import then I get

  • "Complete My Album" gone?

    In the past, if I had purchased a couple of songs from the iTunes Store, I would be asked on my next visit if I wanted to "complete my album" for a nominal fee. (in other words, to purchase the album's remaining tracks at a lower price than buying th