Passing  User enterd Data across Modules

Hi please suggest me some design pattern for the req.....
Its a graphics application where user action like moseClick , mouseDragged events are captured and One Bean Class MouseData is populated.
Now differnt totally differnt components wants to use this real time data.So how should i design so that other modules can use this data on demand but i dont want to couple different modules.
What i am thinking on is that thier is MouseData class and if any other module wants than just req for it

First, if you haven't read the GoF Design Patterns book I suggest picking up a copy at a library or bookstore. This is the defacto foundation for OO design.
There are quite a few approaches you could take. Here are two:
The first is the one you have mentioned where you pass the mouse data class to each of the mouse data clients. You can always make your MouseData class an interface. This isn't terrible way to approach this but it's not my favorite. It depends on the situation. The problem with this is that some third party class generally needs to provide the appropiate MouseData instance to each client. This is often inelegant but sometimes it's perfect. Depends on how these clients are interrelated. When want to add a new client, you'll have to again provide the MouseData instance.
The other way I would recommend is to create a Factory class for the MouseData. The Factory class will have a method on it that provides MouseData instances. When you create a client, you call the Factory and get the MouseData instance. This way new clients have less ripple effect on the rest of the code. There are many ways to create Factory methods. One approach is the Abstract Factory approach. You could even make the MouseData class have a static factory method on it. It can't be an interface in that case, but you can make it abstract.

Similar Messages

  • Creating remote objects and passing the retrieved data to modules

    I found at this Adobe tutorial a nice "RemoteService" class that  creates a RemoteObject and contains the functions for handling the  result and fault events. If I wanted to use this approach, how could I  pass the data from the result handler to interfaces that modules from  the main application could use?
    I could put the RemoteService/RemoteObject in the modules, but (in my  opinion- and I could be wrong) the best design seems to be using the  remote calls in the main app and passing the data along to the modules.
    Ultimately, I would like to know what the "best practices" are for creating remote objects and passing the retrieved data to modules
    Thanks!

    public void mouseClicked(MouseEvent e) {
      X x = new X(e.getX(), e.getY());
    }I don't see the difficulty.

  • Pass user type to JAAS module

    Hi,
    I have developed a JAAS module passing username and password and uses LDAP and Database for authentication. I also need to pass user type to the back-end. Can you please suggest how to do this?
    Thanks,
    Matt

    You can use to get the user/role information
    Subject s = context.getSubject();
    You can pass the Subject s as usual way.

  • Mapping user address data across R/3 & EBP systems

    Hello,
    I'm currently using R/3 4.6C & EBP 3.5.
    I'm trying to find a synchronisation program to ensure that when a users communication data is amended in R/3  tran SU01 it is also updated in the user record in SU01 in EBP.
    Can you help?
    Regards,
    Stuart Nixon
    SAP Procurement Support
    Staffs County Council

    Hi Stuart,
    You might want to post your question in another forum this is more appropriate like:
    Application Server - General 
    SAP NetWeaver Application Server
    ABAP Programming 
    ABAP Development
    This forum is for general questions in regards to product certification for partners.
    Regards,
    John Ta

  • Passing user input data to existing pdf

    My customer prints business cards, currently the printing requests are submitted by a variety of methods (e-mail,paper napkins, etc.) that create more work and consume to much time. When a request is finalized it is in pdf format and at that point ready to go to press.
    I am trying to simplify this process by allowing the person that needs a card printed to fill out an online pdf form that looks exactly like their business card. When completed the form is submitted and their info needs to be passed to an existing pdf (also online) that also looks exactly like their business card. This pdf will be submitted for review and approval and used to go to press.
    I have been designing/hosting web sites for years but pdf's are new to me. I purchased Adobe Acrobat Professional 7.0.8 and Live Cycle Designer 7.0, I have created both of the pd's described in the 2nd paragraph and used the Designer to build the form, uploaded to server and had the data saved as XML. I am able to import the XML data to the other pdf and it does so beautifully. I did it this way first to familiarize myself with the software. I also purchased a very comprehensive book on Acrobat 7.0 which also covers the Live Cycle Designer to some extent.
    I learned that a Java Script would be necessary to accomplish my goal but after scouring the web and submitting my project needs to www.rentacoder.com I have been overwhelmed. The coders that responded were going to use everything except Java Script to achieve the desired results (PHP, Java)and cost ranging from $45.00 to $700.00.
    I have downloaded from the Adobe web site the following;
    Acobat JavaScripting Scripting Reference
    Acrobat JS Guide
    I do not write scripts and thought these could help but I can't understand exactly how my script should look.
    These are the fields that will be completed by users;
    Job Title, Full Name, Address1, Address2, City State Zip, Ph#, Cell#, E-mail Address.
    URL to user form -www.tarantulawebdesign.com/bc/twd_form1.pdf
    Url to pdf that data will be passed to - www.tarantulawebdesign.com/bc/bc_tmplt.pdf
    Any help with my situation will be greatly appreciated!

    Hi Steven,
    Luckily, you don't even have to write a single line of JavaScript code to get what you want! :-)
    Just create a new data connection using an example xml-file. Then bind the form fields to their respective data connection field. Then select iomport xml-data in Acrobat Pro or insert a button (optional) with the following line of code:
    xfa.host.importData();
    Here's your file, I tuned a bit. You may want to have a look at it:
    business-cards.pdf (download via filefactory, which is a bit slow and tricky...).
    1) download the file
    2) create a new text-document. rename it to something like business-card_data.xml
    3) copy & paste the following example business card data:
    <?xml version="1.0" encoding="UTF-8"?>
    <form1>
    <vcard>
      <Name>John Smith</Name>
      <Position>CEO</Position>
      <Address1>Nowhere 1</Address1>
      <Address2>Nonsense Enterprises Ltd.</Address2>
    </vcard>
    </form1>
    4) Place both files (pdf, xml) in the same directory
    5) open pdf, click the button, select the xml
    Regards,
    Steve

  • Does Azure Python API create_virtual_machine_deployment allow passing user data/script to a Linux VM?

    Does Azure Python API create_virtual_machine_deployment allow passing user data/script to a Linux VM?
    AWS EC2 python API allows me to pass user proprietary data or script when I try to create a EC2 linux based VM, e.g.
       ec2_conn.run_instances(image_id, key_name=vpc_name, instance_type=vpc_size, subnet_id=subnet_id, security_group_ids=[sec_group.id], private_ip_address=from_private_ip, disable_api_termination=True, user_data=my_user_data)
    For Azure python API create_virtual_machine_deployment, does it have the similar thing?
    I noticed that there is --custom-data in the CLI, but is there such an option using Python API? 
    If yes, could someone provide an example code?
    Thanks in advance...

    Hi,
    In Azure, this feature is called
    custom data. Currently, you can inject custom data into an Azure VM by using the
    Windows Azure command-line tools (--custom-data). 
    I assume that it is not supported in Python API. You can use “custom_data=xxx”
    within “create_virtual_machine_deployment” to check if it works.
    If it is not yet available, please submit your requirement in Azure feedback below:
    http://feedback.azure.com/forums/34192--general-feedback
    Best regards,
    Susie
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • Display of user entered date in one column

    Hi Guys,
    Is it possible to display user entered date(any date) in column of all rows?
    I need to calculate no of days(User entered date-Deposit date).
    Please give some input.

    Hi Sagar,
    How can u display user enterd date in a column?
    For example if user entered 31.03.2007 as input,i need the same date(31.03.2007 ) to display in all rows of the column,so i can use it in the formula.
    Thanks.

  • Need to pass period start date as parameter to ProjectLOVVO in OTL module

    Hi All,
    I have a requirement of passing period start date as a parameter to ProjectLOVVO.
    It will check against the project's base view PA_ONLINE_PROJECTS_V and allow to
    display only those projects in the list where the project completion date and
    resource assignment end date is greater than the period start date.
    This VO is in Oracle Time and Labour Module. Navigation is SelfService Time> Create Timecard Screen.
    The screen is based on AK Developer.
    I have tried to followed the steps as per the document hxcconfiguiwp.pdf during the development work.
    Steps are mentioned below. It is still not working.
    Please go through the steps and if you have worked in this module please provide your valuable
    suggestion as soon as possible.
    Steps:
    1. Modified the customizable view PA_ONLINE_PROJECTS_V to
    keep the assignment end date in the select query.
    2. Created Custom VO- XXProjectLOVVO using JDeveloper same as ProjectLOVVO
    It's SQL Query is -
    SELECT project_number projectnumber,
    project_name projectname,
    project_details projectdetails,
    project_id projectid,
    start_date,
    completion_date,
    carrying_out_organization_id
    FROM pa_online_projects_v
    WHERE TRUNC(completion_date) >= TRUNC(FND_DATE.CANONICAL_TO_DATE(:1))
    AND TRUNC(assignment_end_date) >= TRUNC(FND_DATE.CANONICAL_TO_DATE(:2))
    3. Placed the class files (XXProjectLOVVO.xml and XXProjectLOVVOImpl.class) in Custom Directory in server.
    In location- apps_st/comn/java/classes/custom/oracle/apps/xxhxc/selfservice/timecard/server
    4. Attached the Custom VO to standard AM- TimecardAM in location-oracle.apps.hxc.selfservice.timecard.server.TimecardAM
    and in LovAM location-oracle.apps.hxc.selfservice.configui.server.LovAM
    5. In AK Developer module created LOV Attributes 'XX_HXC_CUI_PROJECT_CO_ORG_ID', 'XX_HXC_CUI_PROJECT_END_DATE',
    'XX_HXC_CUI_PROJECT_ID','XX_HXC_CUI_PROJECT_NAME',
    'XX_HXC_CUI_PROJECT_NUMBER', 'XX_HXC_CUI_PROJECT_START_DATE'
    and created a LOV region 'XX_HXC_CUI_PROJECT_LOV attached to Database Object 'ICX_PROMPTS' in the Object
    and in Region items added all the above attributes.
    Added LovAM location in place of AM and LovCO lication in place of CO.
    6. Migrated the LOV with the below code
    begin
    hxc_lov_migration.migrate_lov_region
    (p_region_code => 'XX_HXC_CUI_PROJECT_LOV'
    ,p_region_app_short_name => 'HXC'
    ,p_force => 'Y'
    commit;
    end;
    7. Copied hxczzhxclayt0019.ldt LDT file from server. Renamed it to xhxczzhxclayt0019.ldt
    modified the Layout section for ProjectLOV
    BEGIN HXC_LAYOUT_COMPONENTS "Custom Projects Timecard Layout - Project"
    OWNER = "CUSTOM"
    COMPONENT_VALUE = "PROJECT"
    REGION_CODE = "HXC_CUI_TIMECARD"
    REGION_CODE_APP_SHORT_NAME = "HXC"
    ATTRIBUTE_CODE = "HXC_TIMECARD_PROJECT"
    ATTRIBUTE_CODE_APP_SHORT_NAME = "HXC"
    SEQUENCE = "210"
    COMPONENT_DEFINITION = "LOV"
    RENDER_TYPE = "WEB"
    PARENT_COMPONENT =
    "Projects Timecard Layout - Day Scope Building blocks for worker timecard matrix"
    LAST_UPDATE_DATE = "2010/11/10"
    BEGIN HXC_LAYOUT_COMP_QUALIFIERS "Custom Projects Timecard Layout - Project"
    OWNER = "CUSTOM"
    QUALIFIER_ATTRIBUTE_CATEGORY = "LOV"
    QUALIFIER_ATTRIBUTE1 = "XXProjectLOVVO"
    QUALIFIER_ATTRIBUTE2 = "N"
    QUALIFIER_ATTRIBUTE3 = "XX_HXC_CUI_PROJECT_LOV"
    QUALIFIER_ATTRIBUTE4 = "809"
    QUALIFIER_ATTRIBUTE5 = "12"
    QUALIFIER_ATTRIBUTE6 =
    "XxHxcCuiProjectNumber|PROJECT-DISPLAY|CRITERIA|N|XxHxcCuiProjectId|PROJECT|RESULT|N|XxHxcCuiProjectNumber|PROJECT-DISPLAY|RESULT|N"
    QUALIFIER_ATTRIBUTE8 = "ProjectNumber"
    QUALIFIER_ATTRIBUTE9 = "ProjectId#NUMBER"
    QUALIFIER_ATTRIBUTE10 =
    "custom.oracle.apps.xxhxc.selfservice.timecard.server.XXProjectLOVVO"
    QUALIFIER_ATTRIBUTE11 = "TIMECARD_BIND_START_DATE|TIMECARD_BIND_START_DATE"
    QUALIFIER_ATTRIBUTE17 = "OraTableCellText"
    QUALIFIER_ATTRIBUTE20 = "N"
    QUALIFIER_ATTRIBUTE21 = "Y"
    QUALIFIER_ATTRIBUTE22 = "L"
    QUALIFIER_ATTRIBUTE25 = "FLEX"
    QUALIFIER_ATTRIBUTE26 = "PROJECTS"
    QUALIFIER_ATTRIBUTE27 = "Attribute1"
    QUALIFIER_ATTRIBUTE28 = "PROJECT"
    LAST_UPDATE_DATE = "2010/11/10"
    END HXC_LAYOUT_COMP_QUALIFIERS
    END HXC_LAYOUT_COMPONENTS
    8. Used FNDLOAD command to upload the ldt
    FNDLOAD apps/apps@instance 0 Y UPLOAD /ad01/app/o2cdev/apps/apps_st/appl/hxc/12.0.0/patch/115/import/hxclaytlayoutsld.lct ./xhxczzhxclayt0019.ldt
    9. Bounch Apache
    10. Checked in below database table to check weather layout records are getting update or not and found records existing:
    In table hxc_layout_COMPONENTS where region_code = 'HXC_CUI_TIMECARD' and component_value = 'PROJECT' and SEQUENCE = 210
    and COMPONENT_NAME = 'Custom Projects Timecard Layout - Project'
    In table hxc_layout_comp_qualifiers where layout_component_id is as in layout component table.
    11. Checked that the XXProjectLOV is attached in the TimecardAM and LovAM. It is visible there but while quering for the project list its picking up all the projects irrelavant of start date parameter value .
    As if its picking up all the records from seeded LOv- ProjectLOV not custom LOV.
    Regards,
    K Bosu

    Hi
    this steps is wrong
    4. Attached the Custom VO to standard AM- TimecardAM in location-oracle.apps.hxc.selfservice.timecard.server.TimecardAM
    and in LovAM location-oracle.apps.hxc.selfservice.configui.server.LovAMU cant add extended VO direct to standard AM .
    VO extension requires .jpx import ,that u have to do ,rest will be take care by this import itself and no need to modify standard AM .
    Please check the steps for VO extension in http://oracle.anilpassi.com/extend-vo-in-oa-framwork-2.html
    thanks
    Pratap

  • Disobey the user profile date setting in module pool

    Hi all,
    I am working on a module pool. I have a request to disobey the user profile date setting dd/mm/yyyy to user requested date format dd-mm-yyyy.
    I understand that it can easily be done in SAPScript with command SET DATE MAST dd-mm-yyyy, but how to do it in module pool?
    Thanks in advance.

    Hi, Wong.
    Follow the Steps Bellow
    --> Copy Search Help BU_DATE_CHAR to ZBU_DATE_CHAR using T-Code SE11
    --> Copy FM BUS_TOOLS_DATE_CHAR_EXIT to Z_BUS_TOOLS_DATE_CHAR_EXIT using T-Code SE37
    --> Open ZBU_DATE_CHAR in Change mode and add Z_ in the Start of Search help exit FM as we have copy new
    --> Active ZBU_DATE_CHAR it will not give you any Error message may be one Warning message but Ignore this.
    --> Active Z_BUS_TOOLS_DATE_CHAR_EXIT my will give you error message do the following Change
         in Changing Tab SHIP type SHLP_DESCR    " Change the Previous type with this one.
         in Tables Tab SHLP_TAB type SHLP_DESCT  " Change the Previous type with this one.-->
    --> After doing above changes.
    --> Add the following line of Code on line number 92 just before the line APPEND record_tab.
    REPLACE ALL OCCURRENCES OF '.' in record_tab-string WITH '-'.
    --> Activate both Search Help and FM
    now in the Search help filed in Module Pool you where using BU_DATE_CHAR use ZBU_DATE_CHAR
    I did the above way and it is working fine this way now When i Press F4 and select some date it show in the Field like 01-01-2009 Previously it was showing me 01.01.2009
    Please Reply if any problem,
    Best Regards,
    Faisal

  • Get authorization data by passing user role

    Hi All,
    Can anybody please tel me to retrieve user authorization data if i  pass user role i want to get whole authorization data for that role.
    Thanks,

    I am not sure about the authorization objects/values for a given role, but you can get that for a user using the FM SUSR_USER_AUTH_FOR_OBJ_GET.

  • Passing data to module from application?

    Hi all..
                    I have an applicaton that is having an arraycollection data... and i have one module and that module contains barchart .. what is my problem here is i want to send the data to module and i want display that chart in main application... i.e i want load that module into main application.. this module contains a barchart ....
                   how can i do that .. i used ModuleManager Class but no use please help me anybody.. sample code is helpful....

    Hi
             I have done it and its working fine ....

  • How to use User entered dates in intreval

    Hi,
    User will enter date range in variable
    As per my requirment i want to use no of days between those 2 user entered dates in my calculaction
    How can i achieve this at report level.
    Thanks

    Hi
    Create a variable with intreval.
    There is a function module which calculates the no of days between the days
    Go to SE38 and ZXRSRU01 Program
    Write the Code like this (Not exact code)  you can modify
    WHEN "ZZZZZ"(Before that create a formula variable to get the number of days between the days and use the tech name of the formula variable here)
    read ..the lower limit and the upper limit of the caldaz variable
    FROMDATE = L_S_RANGE-low
    TODATE = L_S_RANGE-HIGH
    Then call the function module
    Search for the function module by using days in SE37
    Then pass the from and to Date to the function module it will retun the number of days
    update that to table e_T_Range
    You can proceed with this
    Regards
    M.A

  • Module status on LMS is showing as incomplete - even after the user has completed the module.

    Hi Folks,
    Hope you are all keeping well! I have a bit of a problem here. On a number of modules that were developed using presenter - and custom animation (including click next to continue) etc etc, the LMS is not showing the module status as complete - even AFTER the user had comleted the module and closed. This problem has been noticed only when the user uses the CLICK NEXT or click this part of the screen to continue.
    When the user navigates using the presenter control buttons - to navigate the training content that is, the LMS is correctly showing as the module has been completed.
    The problem I am having is that - is there any way to make presenter detect a click within a slide (user click to navigate from within a slide) and thereby register it as a valid module completion?
    Thanks in advance folks,
    Kind Regards,
    Alex.

    Hi Shubi,
    Thanks for you quick reply.
    Shubhi Shukla Dubey wrote:
    Hi Alex,
    Which LMS server you are using?  Secondly what is the Setting in Quiz>Reporting tab is it SCORM 1.2,2004 or Aicc.
    You want status on basis of user clicks then please make sure that Report data is set to "Slide view =100%" (or whatever precentage you want) and  Report Pass/Fail set to "Complete/ Incomplete."
    Thanks,
    Shubhi
    LMS = cornerstone on demand. It has been customised to suit the company requirements, Reporting tab is SCORM 1.2   
    To circumvent the issue I have changed the % view to 0% so in theory when the user launches even one slide / page - it will set it to report as status complete.
    However this is not a viable solution on content critical modules....dont you think so?
    Ideally I would like to get to the bottom of why a button within the module (which is able to navigate between pages) is not being able to report / set / increment the completion status counter.
    Thanks and Kind Regards,
    Alex.

  • Convert the date into user default date formate

    I am wrinting a bdc and i want to convert the date into user default date farmate ..please suggust the functiom module should i use...

    actually by using dats or d type you can get the user specific date itself.
    but if u have different dates format that need to be converted to the user specific date then you can follow below procedure
    1. retrieve the user format from usr01
        SELECT SINGLE datfm
          INTO w_datfm
          FROM usr01
         WHERE bname EQ sy-uname.
    pass w_datfm to the below FM (4th import parameter)
    2. create Z - FM and retrieve the user secific date
    FUNCTION ZFXX_USER_SPECIFIC_DATE.
    ""Local Interface:
    *"  IMPORTING
    *"     VALUE(IW_DAY) TYPE  CHAR2
    *"     VALUE(IW_MONTH) TYPE  CHAR2
    *"     VALUE(IW_YEAR) TYPE  CHAR4
    *"     VALUE(IW_DATFM) TYPE  USR01-DATFM
    *"  EXPORTING
    *"     VALUE(EW_USER_DATE) TYPE  CHAR0008
    *1  DD.MM.YYYY
    *2  MM/DD/YYYY
    *3  MM-DD-YYYY
    *4  YYYY.MM.DD
    *5  YYYY/MM/DD
    *6  YYYY-MM-DD
    CASE iw_datfm.
      when '1'.
        concatenate iw_day iw_month iw_year
               into ew_user_date.
      when '2'.
        concatenate iw_month iw_day iw_year
               into ew_user_date.
      when '3'.
        concatenate iw_month iw_day iw_year
               into ew_user_date.
      when '4'.
        concatenate iw_year iw_month iw_day
               into ew_user_date.
      when '5'.
        concatenate iw_year iw_month iw_day
               into ew_user_date.
      when '6'.
        concatenate iw_year iw_month iw_day
               into ew_user_date.
      when others.
        clear ew_user_date.
    endcase.
    ENDFUNCTION.

  • [svn] 3026: Bugs: LCDS-370 - Passing user credentials from Flex app to WAS 6.1 returns java. lang.ClassCastException

    Revision: 3026
    Author: [email protected]
    Date: 2008-08-28 11:35:50 -0700 (Thu, 28 Aug 2008)
    Log Message:
    Bugs: LCDS-370 - Passing user credentials from Flex app to WAS 6.1 returns java.lang.ClassCastException
    QA: Yes
    Doc: No
    Ticket Links:
    http://bugs.adobe.com/jira/browse/LCDS-370
    Modified Paths:
    blazeds/branches/3.0.x/modules/opt/src/websphere/flex/messaging/security/WebSphereLoginCo mmand.java

    Please test with the new Java Plug-In available in 6u10 at http://jdk6.dev.java.net/6u10ea.html. The Java/JavaScript bridge has been completely rewritten and is now more complete and portable than ever before. Longstanding issues should be fixed with this new version. Please try it and post if you continue to have problems.

Maybe you are looking for

  • Difference b/w KEY FILEDS and DATA FILEDS

    Hello Experts...! What is the difference between char , KF and keyfields and data fileds...? we are going to map this in the ODS concept. char to keyfileds. keyfig to datafields. regards, amit.

  • How do I keep Safari stable with 40-60 windows/tabs/sites open all at once?

    I have an iMac 2.66 GHz Intel Core i5 with 4 GB RAM running 10.6.4. One internal drive of 1TB half full and good external FW with plenty of room. Recently, I have been needing to keep 60+ windows open (or tabs) in Safari. It's a long story- This has

  • Bluetooth not working on new iMac

    On a new iMac, the Bluetooth functionality is not working. The icon shows: "Bluetooth: not available". I have already done a PRAM and a SCM reset with no success. Any ideas?

  • Sender File/FTP Adapter - Matching Input to Message Type

    Hi, I have a sender file/ftp adapter which is using content conversion to generate an XML document from the contents of a text file. This works fine and when I go into the SXI Monitor I can see the XML document I expect: <ns:DN_360BalanceExtract xmln

  • Streams ORA-26767 is that a bug?

    Hi Streams masters got that error DOWNSTREAMS_CAPTURE 26744 ORA-26744: STREAMS capture process "DOWNSTREAMS_CAPTURE" does not support "ARADM IN"."DBMS_TABCOMP_TEMP_UNCMP" because of the following reason: ORA-26767: No enough redo log information for