Interfaces to Components

Hello,
  I'm currently creating a component that I would like to reuse in other components.  I know the way to include this component is via the interface view of the component, but how do I create implementation specific code depending on which component I include the interface in?
For example, I have component X and I want to use X in components A and B.  I also have method 1 in component X, but depending on if I include the component in A or B determines what the implementation of method 1 should be.  I have not figured out an elegant way to do this yet, and the "Implemented Interfaces" under the component interface looks promising, but I can't get that to work.
I might be entirely off on how I'm developing my overall Web Dynpro application.  The idea I'm using is creating a bunch of components to reuse and then consolidating all of the interfaces in one big component and make that the final application.  Is this the correct approach?
Thanks,
Dustin

Hi Dustin,
you can define interfaces at the "Web Dynpro Component Interfaces" node of a WD project via the context menu->"Create Component Interface Definition".
The interface definition includes:
1. The declaration of the interface controller, including Context structure, Events and Methods.
2. Zero to multiple Interface View Definitions with the requested Inbound- and Outbound plugs.
3. Models which should be used by the implementing components.
Interface(s) can be added to the "Implemented Interfaces" of a WD component. Each IFView definition of the interface will be created as a Window in the implementing component, the Component Interface Controller will "inherit" the properties/methods you declared in the interface and the model references will be added to Used Models of the component by the toolset.
It should be possible to do what you want using this great feature.
Hope that helps.
Regards
Stefan

Similar Messages

  • Add ColdFusion pages, interfaces, and components

    This question was posted in response to the following article: http://help.adobe.com/en_US/ColdFusionBuilder/Using/WSf01dbd23413dda0e1736ebc1213a528ab0-7 ff8.html

    After add coldfusion page, how to may it display in IE?

  • PL/SQL and Java Swing interface

    Everybody in this forum knows that Oracle is the best database around
    with many functionalities, stability, performance, etc. We also know
    that PL/SQL is a great language to manipulate information directly
    in the database with many built in functions, OOP capability,
    transaction control, among other features. Today an application that
    manipulates information, which needs user interface, requires components
    to be developed using different technologies and normally running in
    different servers or machines. For example, the interface is done using
    a dynamic HTML generator like JSP, PHP, PL/SQL Web Toolkit, etc.
    This page is executed in an application server like Oracle iAS or
    Tomcat, just to name two, which in turn access a database like Oracle to
    build the HTML. Also rich clients like Java applets require an intermediate
    server to access the database (through servlets for example) although
    it is possible to access the database directly but with security issues.
    Another problem with this is that complexity increases a lot, many
    technologies, skills and places to maintain code which leads to a greater
    failure probability. Also, an application is constantly evolving, new
    calculations are added, new tables, changed columns. If you have an
    application with product code for example and you need to increase its
    size, you need to change it in the database, search for all occurrences
    of it in the middle-tier code and perhaps adjust interfaces. Normally
    there is no direct dependency among the tier components. On another
    issue, many application interfaces today are based on HTML which doesn't
    have interactive capabilities like rich-client interfaces. Although it
    is possible to simulate many GUI widgets with JavaScript and DHTML, it is
    far from the interactive level we can accomplish in rich clients like
    Java Swing, Flash MX, Win32, etc. HTML is also a "tag-based" language
    originally created to publish documents so even small pages require
    many bytes to be transmitted, far beyond of what we see on the screen.
    Even in fast networks you have a delay time to wait the page to be
    loaded. Another issue, the database is in general the central location
    for all kinds of data. Most applications relies on it for security,
    transaction and availability. My proposal is to use Oracle as the
    central location for interface, processing and data. With this approach
    we can create not only the data manipulation procedures in the database,
    but procedures that also control and manage user interfaces. Having
    a Oracle database as the central location for all components has many
    advantages:
    - Unique point of maintenance, backup and restore
    - Integrated database security
    - One language for everything, PL/SQL or Java (even both if desired)
    - Inherited database cache, transaction and processing optimizations
    - Direct access to the database dictionary
    - Application runs on Oracle which has support for many platforms.
    - Transparent use of parallel processing, clusters and future
    background technologies
    Regarding the interface, I already created a Java applet renderer
    which receives instructions from the database on how to create GUI
    objects and how to respond to events. The applet is only 8kb and can
    render any Swing or AWT object/event. The communication is done
    through HTTP or HTTPS using Oracles's MOD_PLSQL included in the Apache
    HTTP server which comes with the database or application server (iAS).
    I am also creating a database framework and APIs in PL/SQL to
    create and manipulate the client interface. The applet startup is
    very fast because it is very small, you don't need to download large
    classes with the client interface. Execution is done "on-demand"
    according to instructions received from the database. The instructions
    are very optimized in terms of network bandwidth and based on preliminary
    tests it can be up to 1/10 of a similar HTML screen. Less network usage
    means faster response and means that even low speed connections will
    have a good performance (a future development can be to use this in
    wireless devices like PDAs e even cell phones, just an idea for now).
    The applet can also be executed standalone by using Java Web Start.
    With this approach no business code, except the interface, is executed
    on the client. This means that alterations in the application are
    dynamically reflected in the client, no need to "re-download" the
    application. Events are transmitted when required only so network
    usage is minimized. It is also possible to establish triggering
    events to further reduce network usage. Since the protocol used is
    HTTP (which is stateless), the database framework I am creating will
    be responsible to maintain the state of connections, variables, locks
    and session information, so the developer don't need to worry about it.
    The framework will have many layers, from communication up to
    application so there will be pre-built functions to handle queries,
    pagination, lock, mail, log, etc. The final objective is to have a
    rich client application integrated into the database with minimum
    programming and maintenance requirements, not forgetting customization
    capabilities. Below is a very small example of what can de done. A
    desktop with two windows, each window with two fields, a button with an
    image to switch the values, and events to convert the typed text when
    leaving the field or double-clicking it. The "leave" event also has an
    optimization to only be triggered when the text changes. I am still
    developing the framework and adjusting the renderer but I think that all
    technical barriers were transposed by now. The framework is still in
    the early stages, my guess is that only 5% is done so far. As a future
    development even an IDE can be created so we have a graphical environment
    do develop applications. I am willing to share this with the PL/SQL
    community and listen to ideas and comments.
    Example:
    create or replace procedure demo1 (
    jre_version in varchar2 := '1.4.2_01',
    debug_info in varchar2 := 'false',
    compress_buffer in varchar2 := 'false',
    optimize_buffer in varchar2 := 'true'
    ) as
    begin
    interface.initialize('demo1_init','JGR Demo 1',jre_version,debug_info,compress_buffer,optimize_buffer);
    end;
    create or replace procedure demo1_init as
    begin
    toolkit.initialize;
    toolkit.create_icon('icon',interface.global_root_url||'img/switch.gif');
    toolkit.create_internal_frame('frame1','Frame 1',50,50,300,136);
    toolkit.create_label('frame1label1','frame1',10,10,50,20,'Field 1');
    toolkit.create_label('frame1label2','frame1',10,40,50,20,'Field 2');
    toolkit.create_text_field('frame1field1','frame1',50,10,230,20,'Field 1','Field 1',focus_event=>true,mouse_event=>true);
    toolkit.create_text_field('frame1field2','frame1',50,40,230,20,'Field 2','Field 2',focus_event=>true,mouse_event=>true);
    toolkit.set_text_field_event('frame1field1',toolkit.focus_lost_event,'demo1_set_upper',toolkit.get_text_method,'FIELD 1','false');
    toolkit.set_text_field_event('frame1field2',toolkit.focus_lost_event,'demo1_set_upper',toolkit.get_text_method,'FIELD 2','false');
    toolkit.set_text_field_event('frame1field1',toolkit.mouse_double_clicked_event,'demo1_set_lower',toolkit.get_text_method,'field 1','false');
    toolkit.set_text_field_event('frame1field2',toolkit.mouse_double_clicked_event,'demo1_set_lower',toolkit.get_text_method,'field 2','false');
    toolkit.create_button('button1','frame1',10,70,100,25,'Switch','Switch the values of "Field 1" and "Field 2"','S','icon');
    toolkit.set_button_event('button1',toolkit.action_performed_event,'demo1_switch_fields(''frame1field1'',''frame1field2'')','frame1field1:'||toolkit.get_text_method||',frame1field2:'||toolkit.get_text_method);
    toolkit.create_internal_frame('frame2','Frame 2',100,100,300,136);
    toolkit.create_label('frame2label1','frame2',10,10,50,20,'Field 1');
    toolkit.create_label('frame2label2','frame2',10,40,50,20,'Field 2');
    toolkit.create_text_field('frame2field1','frame2',50,10,230,20,'Field 1','Field 1',focus_event=>true,mouse_event=>true);
    toolkit.create_text_field('frame2field2','frame2',50,40,230,20,'Field 2','Field 2',focus_event=>true,mouse_event=>true);
    toolkit.set_text_field_event('frame2field1',toolkit.focus_lost_event,'demo1_set_upper',toolkit.get_text_method,'FIELD 1','false');
    toolkit.set_text_field_event('frame2field2',toolkit.focus_lost_event,'demo1_set_upper',toolkit.get_text_method,'FIELD 2','false');
    toolkit.set_text_field_event('frame2field1',toolkit.mouse_double_clicked_event,'demo1_set_lower',toolkit.get_text_method,'field 1','false');
    toolkit.set_text_field_event('frame2field2',toolkit.mouse_double_clicked_event,'demo1_set_lower',toolkit.get_text_method,'field 2','false');
    toolkit.create_button('button2','frame2',10,70,100,25,'Switch','Switch the values of "Field 1" and "Field 2"','S','icon');
    toolkit.set_button_event('button2',toolkit.action_performed_event,'demo1_switch_fields(''frame2field1'',''frame2field2'')','frame2field1:'||toolkit.get_text_method||',frame2field2:'||toolkit.get_text_method);
    end;
    create or replace procedure demo1_set_upper as
    begin
    toolkit.set_string_method(interface.global_object_name,toolkit.set_text_method,upper(interface.array_event_value(1)));
    toolkit.set_text_field_event(interface.global_object_name,toolkit.focus_lost_event,'demo1_set_upper',toolkit.get_text_method,upper(interface.array_event_value(1)),'false');
    end;
    create or replace procedure demo1_set_lower as
    begin
    toolkit.set_string_method(interface.global_object_name,toolkit.set_text_method,lower(interface.array_event_value(1)));
    toolkit.set_text_field_event(interface.global_object_name,toolkit.mouse_double_clicked_event,'demo1_set_lower',toolkit.get_text_method,lower(interface.array_event_value(1)),'false');
    end;
    create or replace procedure demo1_switch_fields (
    field1 in varchar2,
    field2 in varchar2
    ) as
    begin
    toolkit.set_string_method(field1,toolkit.set_text_method,interface.array_event_value(2));
    toolkit.set_string_method(field2,toolkit.set_text_method,interface.array_event_value(1));
    toolkit.set_text_field_event(field1,toolkit.focus_lost_event,'demo1_set_upper',toolkit.get_text_method,upper(interface.array_event_value(2)),'false');
    toolkit.set_text_field_event(field2,toolkit.focus_lost_event,'demo1_set_upper',toolkit.get_text_method,upper(interface.array_event_value(1)),'false');
    toolkit.set_text_field_event(field1,toolkit.mouse_double_clicked_event,'demo1_set_lower',toolkit.get_text_method,lower(interface.array_event_value(2)),'false');
    toolkit.set_text_field_event(field2,toolkit.mouse_double_clicked_event,'demo1_set_lower',toolkit.get_text_method,lower(interface.array_event_value(1)),'false');
    end;

    Is it sound like Oracle Portal?
    But you want to save a layer 9iAS.
    Basically, that was the WebDB.(Oracle changed the name to Portal when version 3.0)
    Over all, I agree with you.
    >>Having a Oracle database as the central location for all components has many
    >>advantages:
    >>
    >>- Unique point of maintenance, backup and restore
    >>- Integrated database security
    >>- One language for everything, PL/SQL or Java (even both if desired)
    >>- Inherited database cache, transaction and processing optimizations
    >>- Direct access to the database dictionary
    >>- Application runs on Oracle which has support for many platforms.
    >>- Transparent use of parallel processing, clusters and future
    >>background technologies
    I would like to build 'ZOPE' inside Oracle DB as a back-end
    Using Flash MX as front-end.
    Thomas Ku.

  • BAPI for changing components of a item in purchase order

    Hi All,
    I am working in VMS. In that i deal with Assembly purchase orders. There will be only one line item for such type PO's and there can be any number of components for that item.
        Now from the module pool screen i need to update the batch details of the components. I could not find any BAPI which suits my requirement. Which can change the components of a puchase order.
    Thanks in advance.
    Sanjay Gandhi.
    Ta

    Hello,
    I would also like to create purchase order with article components (DB view MDSB, table RESB) and can not find any BAPI or FM with component interface. I'm using BAPI_PO_CREATE1 for creating PO, but ther is no interface for components.
    Thank You in advance for help.
    J.
    EDIT: We are using version 4.6C...
    Edited by: Jana Bittnerova on Jan 23, 2008 9:28 AM

  • Can anybody explain me what is interface

    hi gurus
    can anyone explain me what is interface
    tahnk you
    regards
    kals.

    hi
    Interfaces are independent structures that allow you to enhance the class-specific public points of contact by implementing them in classes.
    Interfaces can be defined globally in the R/3 repository or locally in ABAP program
    Can define exactly same components in Interfaces as in Classes
    Unlike classes, Interfaces do not have instances, instead they are implemented by classes
    Implemented using INTERFACES statement in the declaration part of the class
    INTERFACES statement must be included in the PUBLIC SECTION of the class
    Different classes that implement the same interface can all be addressed in the same way.
    Interface references allow users to address different classes in the same manner.
    Interfaces can also be nested.
          Interfaces are the basis for polymorphism in classes, because they allow a single interface method to behave differently in different classes.
    If an interface is implemented in the class, the interface components are added in the public section of the class.
    A component comp of an interface intf, implemented in a class, becomes a fully-fledged member of that class, with the name intf~comp.
    Classes that implement interfaces must implement all of their methods.
         METHOD intf~meth.
         ENDMETHOD.
    Interfaces allow you to use different classes in a uniform way (polymorphism).
    Interface References
    Creating Interface Reference Variables
          DATA obj TYPE REF TO intf.
    Using this reference variable, you can access any of the components defined in the interface
    Nested Interfaces
    Interface can include one or more interfaces as components, which can contain interfaces themselves.
    Compound Interface : It includes other interface as its component.
    Elementary Interface : It does not include any interface as a component.
    All interface components of a compound interface have the same level
    A component interface exists only once even if it is used once more as a component of another component interface.
    Aliases : It can be used to assign alias names to the components of component interfaces, thus making them visible within the interface definition.
                  ALIASES <alias name> FOR intf~comp.
    Where, intf  = interface name and comp = Component name
    Accessing Objects using Interface References
    It is also possible to directly generate an object to which the interface reference
          variable points initially. In this case, the TYPE addition of the statement CREATE OBJECT must be used to specify a class that implements the interface.               CREATE OBJECT iref TYPE class.
    If the interface intf contains an attribute attr and an instance method meth, you can address them as follows:
    Using the class reference variable:
    Accessing an attribute attr: cref->intf~attr
    Calling a method meth: CALL METHOD cref->intf~meth
    Using the interface reference variable:
    Accessing an attribute attr: iref->attr
    Calling a method meth: CALL METHOD iref->meth
    Accessing Static Components of Interfaces
    Use the name of the interface to access constants within an interface. 
    Accessing a constant const: intf=>const.
    To access the other static components of an interface, use an object reference or the class class that is implementing the interface. 
    Accessing a static attribute attr: class=>intf~attr.
    Calling a static method meth: CALL METHOD class=>intf~meth.

  • Interfacing Vectra XU-6/200, W2K SP4 and Scanjet 2P, difficulties.

    This is a query for the long serving HP folks.
    I am attempting to interface an HP Vectra XU-6/200 running under W2K SP4 and an HP Scanjet 2P, all legacy products.
    The Vectra XU and the Scanjet 2P are interfaced via an HP adaptor pwa. Unfortunately the adaptor pwa does not have an HP product number attached, the only identifier is a paper label glued to the outside face of the installation bracket, the label reads " HP Scanjet scanner". The Vectra XU has three PCI slots and three ISA slots, its User Manual states that both the ISA bus and the PCI bus have 'Plug & Play' (P&P) capability. W2K of course has P&P capability.
    The Vectra XU BIOS allows for two P&P settings, both of which I have tried, without success. The normal P&P mode is labelled 'Bootable' in the BIOS, the alternate method is labelled  'Full'.   Under 'Bootable' the P&P service does the complete job of interfacing all components, under 'Full' the BIOS initialises all components, but does not allocate IRQ's etc. that has to be done manually.
    My problem is that the OS appears to be unable to recognise the adaptor card. I have tried installing the card after the driver, ( WIN 3 method), I have tried installing the adaptor card before the driver, (WIN NT/2K method) The Scanjet 2P User Manual discusses both methods. more or less, since the hardware  and software are claimed to operate on versions of Windows from WIN 3.1 to W2K.
    To the best of my knowledge the adaptor card is functional, as is the scanner, I removed both  from my wife's old Vectra RS-25, where it was functioning quite happily under WIN 3.11. The Vectra XU has the optional second CPU and runs well under W2K SP4. Our faithfull old Vectra RS 25 suffered a HDD controller card failure after around twenty years of service.  I have beeen unable to find a replacement HDD controller card, so, sadly, I scrapped our faithfull servant!
    I would appreciate it greatly if anyone is able to tell me how to solve this riddle? It is my suspicion that the problem lies in the adaptor card failing to provide identity information in a form recognisable by W2K. I have considered changing the Vectra OS back to WIN 3.11, but I'm not anxious to do that for the obvious reason of lesser capability

  • How can I get Instant notification if a download fails, instead of sifting through the whole library later looking for a fail message

    sometimes I download hundreds of articles, pdf's, videos etc at one sitting, and cannot stop to watch whether or not some few of the items "fail" to completely download. Later, when scrolling down the whole list of recent downloads in the library I try to squint and see the tiny words notifying of a failed download but it is easy to miss the warning plus when there are hundreds of items it is VERY time-consuming to double click each item to attempt a re-download . . it usually DOES re-download ok BUT selecting this process sends the cursor back to the top of the library listings and now it takes forever to find your place back in the area where there were several "fails" listed together to continue the correction process for the whole list. Would be SO VERY MUCH better if and when a particular download fails, that a pop up window message would alert to that fact and a simple click within said window would automatically re-start the download, etc. That way a vital article would not later be discovered to have no content or error message, etc, just when one needed it and perhaps was not able to go online to fix it.

    You can run this code in the Browser Console (Firefox/Tools > Web Developer) to add a tooltip to the icon of each item in that list.
    You probably need to scroll the full list to make Firefox update all attributes and you need to rerun the code in the browser console via cursor Up and Enter to update all tooltips after having done a new download.
    If you run the code then you get a pop-up that shows some information of all selected items (Ctrl click multiple items).
    You can open the Browser Console (Firefox/Tools > Web Developer).
    Paste the JavaScript code in the command line and press the Enter key to run the code.
    *Toggle the devtools.chrome.enabled pref on the <b>about:config</b> page to true to enable the command line
    <pre><nowiki>var {classes:Cc,interfaces:Ci} = Components;
    var wm = Cc["@mozilla.org/appshell/window-mediator;1"].getService(Ci.nsIWindowMediator);
    var win = wm.getMostRecentWindow("Places:Organizer");
    if(d=win.document.getElementById("downloadsRichListBox")){
    var C=[],L=[],r,R;
    r=d.getElementsByTagName("richlistitem");
    for(i=0;R=r[i];i++){
    var tt=R.getAttribute("image").replace(/^moz-icon:[/][/]([^?]+)[?]size=\d+$/,"$1");
    var tT=[];
    var nD=R.getAttribute("displayName");
    tT.push("["+(i+1)+"] ["+nD+"]");
    tT.push("FILE: "+tt);
    var eT=R.getAttribute("state")||0;
    var sT=R.getAttribute("status");
    tT.push("STATUS["+eT+"]: "+sT);
    R.setAttribute("tooltiptext",tT.join("\n"));
    if(R.getAttribute("selected")=="true"){C.push(tT);L.push(tt)}
    if(C){if(prompt(C.join("\n"),C)){prompt(L.join("\n"),L);}}
    </nowiki></pre>

  • How to create the floating message view like Map app and Safari does?

    Hi, guys,
    I am trying to implement a information message view like the Map app and the Safari does.
    Here is the description:
    1. When you drop a pin in the Map app and then tap on the pin, you always can see a floating transparent message on the top of the pin.
    2. When you tap and hold on a link in the Safari app for a few seconds, you can also see a same message view like the Map app does and without showing the disclosure button.
    All I want is such kind of thing, but I had look through out the documentation and the Interface Builder components list. I can not find such a component.
    Does anybody has a similar experience on implement this?
    Thank you guys..

    You're not going to find a control to do this for you. You will have to create a subview and set the properties (color, frame, etc) yourself.

  • Changing UoM of a component in Sale Order

    Hello everyone,
    We are faced with the following issue:
    1) For a material A there is a BOM created which has material B as a component.
    2) The base UoM for both the higher level item as well as the component is CS.
    3) The sale UoM for the higher level item is ACB.
    4) There is no sale UoM maintained for the component material.
    When a sale order is created for material A using VA01, the UoM for A as well as B is CS.
    The requirement is that the UoM for B should always be ACB.
    We have tried some user exits also but the UoM for B is always reflected as CS.
    How to solve this problem?
    Best regards,
    Ronnie
    4)

    Hello,
    I would also like to create purchase order with article components (DB view MDSB, table RESB) and can not find any BAPI or FM with component interface. I'm using BAPI_PO_CREATE1 for creating PO, but ther is no interface for components.
    Thank You in advance for help.
    J.
    EDIT: We are using version 4.6C...
    Edited by: Jana Bittnerova on Jan 23, 2008 9:28 AM

  • Calling a method in DC1 from DC2

    Hi
    Can you please tell me how to call amethod in DC1 from DC2 wiith an example
    Thanks
    Rahul

    hi rahul,
    in additon to sharma's
    check this
    Re: Interfaces to Components
    Re: Reuse of Component
    when to use the
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/604ddc2f-ec9c-2b10-1682-be37e1c62dee
    http://help.sap.com/saphelp_nw04s/helpdata/en/02/6755bd296ade42931646f869b1fd15/frameset.htm
    complex conditons
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/wdjava/use%252bcomponents%252bin%252bbigger%252bweb%252bdynpro%252bprojects%252b(componentization)
    with detail look
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/30d56578-f7e5-2a10-5ab5-8afc55d2e0e8
    let me know u need any further info
    bvr

  • Recent College Grad needs help

    Hi, I am a recent computer science graduate of DePaul university. I have been looking
    for an entry level full time position for the past three months and I finally got a nible.
    The problem is I have never had a phone interview and I really don't know what to
    expect. I really need this job so I want to prepare myself as much as possible. The
    position in and entry level programmer/analyst. Below is the job description, can
    someone please tell me wher I can find some quick reference for COBOL and C++. I
    took a class in both and did pretty well but that was school and this is real life. Again,
    I really want this position and I am a really quick study. Can someone please tell me
    what kinds of questions I should prepare to answer. I know the is a java forum but I
    was hoping one of you professional programmers can point me in the right direction.
    Any help would be greatly appreciated.
    Role: Programmer Analyst (COOL Developer)
    The Programmer Analyst is responsible for developing and managing the
    application code and user interface (UI) components for a basic system
    on the products and services team. (These systems can include the base TBA
    System, desktop applications, IVR systems, or Internet/intranet applications.)
    The Programmer Analyst works closely with other programmer analysts,
    quality assurance analysts, and systems analysts, with tasks in the following
    categories:
    Planning and design. The Programmer Analyst takes the specifications
    from the Systems Analyst and then determines the detailed tasks required to
    create the code and UI.
    Developing the application code and UI components. The Programmer
    Analyst builds the code and UI components according to the functional
    specifications and detailed design.
    Other specific responsibilities in development include:
    Working with the Systems Analyst to clarify and improve the design as
    required. He or she may also prepare user documentation and will unit
    test each piece of code to verify the basic functionality before passing it along
    for more comprehensive testing. Throughout the project, the programmer analyst
    consistently uses code management tools to avoid versioning problems.
    Role Requirements
    Problem solving and decision making
    Learning agility
    Client responsiveness
    Project execution
    Project analysis and planning
    Technical Skills
    Structured programming, design, and language(s) such as COBOL or C
    Operating systems
    Relational databases and data models (ex. DB2, Oracle or Access)
    Source code management
    Editing, compiling, and debugging tools
    Creating user and technical documentation
    Years of Relevant Experience Required: 0-4 years
    Travel Required: None
    COOL stands for COBOL Object-Oriented Language. It utilizes some of the
    skills involved in both COBOL and C++ programming.
    Again ANY HELP WOULD BE GREATLY APPRECIATED.

    Actually the book thing is a great idea. I feel sorry
    for you recent grads, when I graduated they were
    putting English majors in programming postions.That explains so much of what I see! ;->
    Seriously, I agree about the book. One important note is that phone interviews tend to run the gamut of perfunctory HR screenings ("can you spell SQL?", "What was your GPA?", "Does this guy seem to be able to communicate to other humans in the required language?") to fairly narrow, very deep technical screenings. I spend a lot of time giving the latter form.
    Your best bet is to get comfortable with the kinds of questions you are likely to get (the book can help). Then consider all the questions that you hope they don't ask and decide (practice) how you are going to answer them when they do - and they often do. Don't get stunned when asked something unexpected. A simple "Hmm, I haven't really thought about that, but perhaps...." will go a long way. There are times when it is best to say "I don't know."
    Don't try to bluff your way through unless you are sure that the person on the other end knows far less about the subject than you can successfully pretend to know. And be careful, some interviewers will go along with any bull they might hear to see where you take it... I know I do.
    Most interviewers react badly to deceit and are probably looking at other candidates with similar level of skills to you - otherwise they probably wouldn't be calling you. Try to emphasize your abilities and demonstrate how you can easily fill any knowledge gaps you might have.
    Don't try to fill lulls in conversation with information you don't really have. Nervous folks tend to chatter and get themselves into a hole, and interviewers are often taught to use this tactic to see how a candidate reacts. Just answer each question as completely as you feel is necessary and wait for the next question.
    Chuck

  • Recent Grad - needs help on what to expect for phone interview

    Hi, I am a recent computer science graduate of DePaul university. I have been looking for an entry level full time position for the past three months and I finally got a nible. The problem is I have never had a phone interview and I really don't know what to expect. I really need this job so I want to prepare myself as much as possible. The position in and entry level programmer/analyst. Below is the job description, can someone please tell me wher I can find some quick reference for COBOL and C++. I took a class in both and did pretty well but that was school and this is real life. Again, I really want this position and I am a really quick study. Can someone please tell me what kinds of questions I should prepare to answer. I know the is a java forum but I was hoping one of you professional programmers can point me in the right direction. Any help would be greatly appreciated.
    Role: Programmer Analyst (COOL Developer)
    The Programmer Analyst is responsible for developing and managing the
    application code and user interface (UI) components for a basic system
    on the products and services team. (These systems can include the base TBA
    System, desktop applications, IVR systems, or Internet/intranet applications.)
    The Programmer Analyst works closely with other programmer analysts,
    quality assurance analysts, and systems analysts, with tasks in the following
    categories:
    Planning and design. The Programmer Analyst takes the specifications
    from the Systems Analyst and then determines the detailed tasks required to
    create the code and UI.
    Developing the application code and UI components. The Programmer
    Analyst builds the code and UI components according to the functional
    specifications and detailed design.
    Other specific responsibilities in development include:
    Working with the Systems Analyst to clarify and improve the design as
    required. He or she may also prepare user documentation and will unit
    test each piece of code to verify the basic functionality before passing it along
    for more comprehensive testing. Throughout the project, the programmer analyst
    consistently uses code management tools to avoid versioning problems.
    Role Requirements
    Problem solving and decision making
    Learning agility
    Client responsiveness
    Project execution
    Project analysis and planning
    Technical Skills
    Structured programming, design, and language(s) such as COBOL or C
    Operating systems
    Relational databases and data models (ex. DB2, Oracle or Access)
    Source code management
    Editing, compiling, and debugging tools
    Creating user and technical documentation
    Years of Relevant Experience Required: 0-4 years
    Travel Required: None
    COOL stands for COBOL Object-Oriented Language. It utilizes some of the
    skills involved in both COBOL and C++ programming.
    Again ANY HELP WOULD BE GREATLY APPRECIATED.
    A

    Actually, no. Just need time to get to your post. If you have not had your interview already try this.
    One, bone up on your basic program structures.
    Know basic keywords, etc.
    Have your books in front of you and open to some topics that seem like test questions.
    Review the content of the books that are pertinent. Prepare for the interview like you would a test.
    ABOVE ALL - RELAX, sound confident that if you do not know the answer now you can look it up. This is an entry level position - They do not expect you to know everything - just have a basic understanding and be able to go from there.
    Do not be afraid to say "I don't know but I know where to look in xxxx book".
    Sorry, been busy today just got to forums.
    If you posted without allowing a few hours for a reply then ....

  • What are the advantages..

    Hi friends,
          can you please tell me <b>what are the advantages of using MVC?</b> because <b>i can use ABAP Objects without using MVC.</b>
    Thanks in advance,
    Regards,
    Kannan.

    Hi Kanna,
            For Dynamically componentised you need to use controller.In the main page you partition for what you want to present dynamically and then call controller as a response to the user.What the action you have take in case of Page flow logic(Event Handler) need to be placed in controller.
    Using the MVC design pattern has the following advantages:
    ·        Structuring BSP applications is simplified, since the view is cleanly separated from the controller and the model.  This not only facilitates changing BSP applications, but also considerably improves their maintenance.
    ·        You have the option of generating program-driven layout. The HTML/XML output is therefore created by program code instead of a page with scripting.
    ·        Navigation using the <bsp:goto> element and call using the <bsp:call> element. The advantage of using <bsp:goto> navigation over redirect is that there is no additional network traffic. Furthermore, you remain in the same work process, which can have advantages for creating objects and memory space. The call using <bsp:call> element is more variable than adding them using INCLUDEdirective, since it is triggered at runtime.
    With the call option using <bsp:call>, you can also distribute the user interface into components.
    ·        Optimized performance due to fewer redirects.
    ·        Intuitive and east-to-use interface for application development.
    Main advantage of MVC is that you can keep these(Model View ,Controller) separately.If you need to change in logic you do not have to worry about presentation(View).
    Regards,
    Albert

  • This program rules

    100000%
    every time I discover a new feature in pro7 i'm like 'oh i love this so much'

    "subSE7EN" <[email protected]> wrote in
    message
    news:e43ccq$9nk$[email protected]..
    > I got this from a LiveDocs explaining the VideoDisplay
    component:
    > The VideoDisplay control does not support scan forward
    and scan backward
    > functionality. However, you can achieve this
    functionality by moving the
    > playback sliders...
    >
    > By "playback sliders", do they mean an HSlider binded to
    the VideoDisplay?
    Yes, the VideoDisplay component doesn't have a UI, so you'd
    have to build
    one of your own using the components available in Flex.
    > In which case we'd have to build a full interface using
    components...
    Yups...
    > Is there any way of using those interfaces that you can
    choose from in
    > Flash 8
    > Pro?
    I'm afraid, no.
    Manish Jethani
    Developer, Flex Framework
    Adobe Systems Inc.

  • Simple caching in singleton DAO

    Suppose I was to use a DAO like this in a web application. Different threads would be concurrently accessing this code from different servlets, struts actions, JSP pages, whatever.
    import java.util.Map;
    import java.util.HashMap;
    public class CacheSingletonDAO {
         private static Map items = new HashMap();
         //----- Singleton Methods --------------------------------------------------
         private static final CacheSingletonDAO instance = new CacheSingletonDAO();
         private CacheSingletonDAO() {
              items.put("1","foo");
              items.put("2","bar");
         public static CacheSingletonDAO getInstance() {
              return instance;
         //----- Public Methods -----------------------------------------------------
         public String getItem(String key) {
              Object obj = items.get(key);
              if(obj != null && obj instanceof String) {
                   return (String)obj;
              } else {
                   return null;
         public Map getItems() {
              return items;
         public void addItem(String key, String item) {
              items.put(key,item);
    }The code here is over simplified. For a real implementation of this, there would most likely be a private getItemsFromDB() method that the private constructor would call. I would also have a method like refreshCache() that would call the getItemsFromDB() method, so that I could call that to update the items HashMap with whatever is in the database. The addItem(String, String) method would first store the item in a database, then put item in the HashMap. Assume I would be using this in a single server, single JVM application. Are there any thread-safety or other problems/issues with code like this?

    I don't think this logic necessarily follows. I agree
    that the user must see all the entries in the
    drop-down list, but that doesn't mean that this class
    needs to hand the map over to the drop-down list
    instance or the UI container. Instead, the UI could
    ask this instance to write itself into the drop-down
    list.I envisioned the DAO as the model in a MVC app. Writing the drop-down seems like it is a task for the view.
    This is a very common sentiment among programmers.
    "If you're code is written wrong, then it's not my
    problem." I'm not saying that you're wrong to feel
    this way, but in general projects get finished faster
    when the interfaces between components or classes are
    tight. That is, write an interface to your class
    that helps people avoid coding mistakes. If
    getItems().add() should not be coded then you should
    try to make sure that it can't be.That makes sense.
    This is a little better. Now when somebody else codes
    getItems().add(), their code compiles (as it did
    before) but when they run some test case (assuming
    they test the right path) they will see an
    UnsupportedOperationException instead of seeing some
    occasional bad behaviour (as they would have seen
    before). But better still, write an interface that
    doesn't allow anybody else to code getItems().add() in
    the first place. I'm not trying to make your life
    more difficult, but in the long run doing this saves
    time for everybody on your project.I see your point.
    Would it be a reasonable
    solution to write String[] getItemValues(), that
    returns a copy of all the values currently in the
    HashMap? Do you need to supply the user with key-value
    pairs instead? Is there a way that you can return an
    array of those things rather than the map?You are right, there is no reason I couldn't do that. Would this cause potential performance issues? I would think giving the client the a read-only reference to the hashmap would be faster than generating an array of Object each time.
    >>
    But then my original question still is do add and
    refresh need to be synchronized? I can't think of
    anything that would be bad if they weren't
    synchronized, but maybe I am overlooking something.
    What happens if someone calls the add method while
    the refresh method is executing? I guess I need to
    show more code to address that:
    public void add(String key, String item) {
    addItemToDB(key,item);
    items.put(key.item);
    public void refreshCache() {
    items = getItemsFromDB();
    }Assume addItemToDB() returns void and inserts myitem
    into the database.
    Assume getItemsFromDB() queries the DB for all the
    items and returns a Map with all of the items.
    Do these methods need to be synchronized?
    You need to provide synchronization for the map, the
    map has no synchronization of it's own.But just synchronizing add and refreshCache won't cut it, right? I think if things happend in this order I would have an issue:
    1. Thread A calls refreshCache()
    2. refreshCache() calls getItemsFromDB()
    3. getItemsFromDB() internally has queried the DB, gotten a ResultSet and is building a collection from the result set, but the method isn't finished yet.
    4. Thread B calls add()
    5. add() calls addItemtoDB(key,item), which finishes
    6. add() puts the item in the items HashMap
    7. add() finished executing
    8. getItemsFromDB() finishes executing and returns a collection, but the collection doesn't have the item add by Thread B's add()
    9. refreshCache replaces the items HashMap with the collection returned from getItemsFromDB() and now the item that was added by Thread B's add() won't end up in the collection until next time refreshCache() is called.
    This would be the case even if add() and refreshCache() were synchronized, right?

Maybe you are looking for