Reg : object creation for controller and view ?

hi friends....
i am new to WDA and objects...
please explain me..
when i create the web dynpro component one interface is automatically created as IF_COMPONENTCONTROLLER for component
IF_MAINVIEW for view
IF_WINDOW for window
correct me if i am wrong
suppose if i want to reuse class, i want to create object... like wise
if i want to reuse interfaces, i want to create object.
but in this case..for eg (IF_COMPONENTCONTROLLER, IF_MAINVIEW ) where we are creating object...?
no need to create object ?
regards
deva

>but in this case..for eg (IF_COMPONENTCONTROLLER, IF_MAINVIEW ) where we are creating object...?
no need to create object ?
No you don't have instantiate any of the objects.  Think of Web Dynpro as a modeling layer implemented in ABAP Objects, but sitting on top of the Object Oriented constructs.  You still have some of the benfiits of OO - like event registration, inheritance, methods, etc - but a lot of the OO setup is done and maintained by the framework for you.  So although each section of Web Dynpro - the component, the controllers, contexts, views, etc - are all technically ABAP Object instances, you don't have to manage the objects directly.

Similar Messages

  • Diff between Component controller,Custome controller and  View controller

    hi,
        Can any body tell me the following details,
    1.difference between the Component controller,Custome controller and  View controller in WD-ABAP.?
    2.what is Lead Selection?   
    Regards,
    Ravi

    Hi Ravi.
    The component controller is visbile to all views in a component. So all context nodes and methods you create here can be accessed from all views in the component. This way you can share data between the views by mapping context nodes or thru method calls. You can also mark methods and nodes as interface so that they are acessable from other components that define component usages to this cmponent.
    Custom controller is quiet similar to the component controller. You can define it if you want to group some views with a custom controller for a certain functionality.
    If you want to access a custom controller in a view you have to define the usage first on the properties tab of the view.
    A view controller is only visible in the view itself. So all methods or context nodes you define here are only accesable by the current view.
    The lead selection is in most cases the current selected element in a context node. The lead selection is used by many UI elements to determine which element has to be shown (e.g drop down).
    If you have a table with single selection the current selected table row is the lead selection element of the bound context node.
    SO you can get the lead selection element easily in any mthod by calling context_node->get_element( ).
    Hope this clears your questions.
    Cheers,
    Sascha

  • Delayed Data Display for Tables and Views

    Is it possible to delay the display of data for data and views.
    I work on remote databases over relatively slow ADSL/Dialup connections when compared to a LAN/WAN.
    If the tables are large, the data retrieved can be relatively slow and therefore the setting of a filter before display would reduce the amount of data retrieved and enable the viewing of the attributes, statistics etc in a timely manner

    AL_INDEX and AL_COLMAP store metadata of tables that you import in Datastore
    AL_COLMAP and AL_COLMAP_TEXT table store column mapping information that use in Dataflow, this data is usually populated when you save Dataflow, check if the "automatically calculate column mapping" option is checked in the Tools-> Options window in Designer
    if you are not seeing any data in these 2 tables, then go to Designer, select Datastore tab in object library right in the Datastore workspace select Repository menu option and select Calculate Usage Dependency once that completes do select Calculate Column Mapping from the same menu, once that completes check if you see data in these 2 tables

  • Is it possible to restrict the object creation for stateless session beans

    Hi,
    Is it possible to restrict/fix the ejb object creation for stateless session beans in application server?
    For example, i want to configure the application server ( am using JBOSS ) to create maximum of 10 session bean objects. and if any requests for the stateless session bean come, as application server has created 10 objects, the requests should be blocked.
    Thanks in advance,
    nvseenu

    You can keep a counter in the application code. A static var won't work, but an entity and a consistent id should. This version would affect performance, but it would be portable to other app servers.
    // ConstrainedBean.java
    package unq.ejb;
    import javax.ejb.Stateless;
    import javax.ejb.CreateException;
    import javax.annotation.PostConstruct;
    import javax.annotation.PreDestroy;
    import javax.persistence.PersistenceContext;
    import javax.persistence.EntityManager;
    @Stateless
    public class ConstrainedBean implements Constrained {
        final static int DEFAULT_COUNTERID = 1;
        @PersistenceContext EntityManager em;
        @PostConstruct
        protected void init() throws CreateException {
         ConstrainedBeanCounter counter =
             em.find(ConstrainedBeanCounter.class, DEFAULT_COUNTERID);
         if( counter == null ) {
             counter = new ConstrainedBeanCounter();
             counter.counterId = 1;
             counter.counterValue = 0;
             em.persist(counter);
         if( counter.atMaximum() ) {
             throw new CreateException("error attempting to create > 10 beans");
         else {
             counter.increment();
        @PreDestroy
        protected void destroy() {
         ConstrainedBeanCounter counter = em.find(ConstrainedBeanCounter.class,
                                   DEFAULT_COUNTERID);
         counter.decrement();
        public void doSomething() { System.out.println("doSomething()"); }
    // ConstrainedBeanCounter.java
    package unq.ejb;
    import javax.persistence.Entity;
    import javax.persistence.Id;
    @Entity
    public class ConstrainedBeanCounter implements java.io.Serializable
        @Id public int counterId;
        public int counterValue = 0;
        public void increment() {
         counterValue++;
        public void decrement() {
         counterValue--;
        public boolean atMaximum() {
         return counterValue > 9;
    }

  • What's the best app for editing and viewing office doc's

    What is the best App for editing and viewing office doc's, that will be compatable with IPhone 5S and Air pad?

    Search the app store, find one that you like and that works for you.

  • HT1386 I have just purchased an ipad3 mainly for storing and viewing my photos but I cannot get my photos to sinc from itunes. Does anyone have the solution.

    I have just purchased an ipad3 mainly for storing and viewing my photos but I cannot get my photos to sync using itunes. Does anyone have the best solution please?

    See http://support.apple.com/kb/HT4236
    Another way. You can use a USB flash drive & the camera connection kit.
    Plug the USB flash drive into your computer & create a new folder titled DCIM. Then put your movie/photo files into the folder. The files must have a filename with exactly 8 characters long (no spaces) plus the file extension (i.e., my-movie.mov; DSCN0164.jpg).
    Now plug the flash drive into the iPad using the camera connection kit. Open the Photos app, the movie/photo files should appear & you can import. (You can not export using the camera connection kit.)
    Secrets of the iPad Camera Connection Kit
    http://howto.cnet.com/8301-11310_39-57401068-285/secrets-of-the-ipad-camera-conn ection-kit/
    This may interest you.
    Expand your iPad's storage capacity with HyperDrive
    http://www.macworld.com/article/1153935/hyperdrive.html
    On the road with a camera, an iPad, and a Hyperdrive
    http://www.macworld.com/article/1160231/ipadhyperdrive.html
    Since you are new to iPad.....
    You can download a complete iPad User Guide here: http://manuals.info.apple.com/en/ipad_user_guide.pdf
    Also, Good Instructions http://www.tcgeeks.com/how-to-use-ipad-2/
    Apple - iPad - Guided Tours
    http://www.apple.com/ipad/videos/
    Watch the videos see all the amazing iPad apps in action. Learn how to use FaceTime, Mail, Safari, Videos, Maps, iBooks, App Store, and more.
    How to - Articles & User Guides & Tutorials
    http://www.iphone-mac.com/index.php/Index/howto/id/4/type/select
    iPad How-Tos  http://ipod.about.com/lr/ipad_how-tos/903396/1/
    You can download this guide to your iPad.
    iPad User Guide for iOS 5
    http://itunes.apple.com/us/book/ipad-user-guide-for-ios-5/id470308101?mt=11
     Cheers, Tom

  • Coupling between component controller and view controller

    Hello,
    I have seen some discussions in this forum regarding the possibilities of calling / triggering a view controllers's method from a component controller's method;  obviously the Web Dynpro framework only provides for the other direction (view ctrl -> comp ctrl) via handle <i>wd_comp_controller</i>.
    Some people proposed raising events in the comp controller and catching these in the view controller, others pointed out that any dependance of a view controller on a component controller would violate MVC principles.
    Now, I can't see why a tighter coupling (in both ways) between controllers within one component would harm MVC in any way. So I suggest to "register" a view controller in the pertaining component controller if necessary:
    this_controller = wd_this->wd_get_api( ).
    wd_comp_controller->register_view_ctrl_XYZ( this_controller ).
    This way the component controller can save the reference and later call any method on it. What do you think, does anything argue against this practice?
    Regards,
    Sebastian

    Hi Sebastian,
    I wouldn't try to explain whether it is violating the MVC principles or not.
    Can you please explain how to call methods of view using the view controller?
    have you tried using an example???
    I want to give a small example which I think is a basic disadvantage of calling View methods from component controller.
    Suppose I have 30 methods in a view and such 7 views in a component (I think this is a very common example).
    Till now one is very clear that if I have a method in view, it will be called at maximum by other methods with in the view. That means at any point of time, my search is limited to 30 methods.
    Now if component controller can also call my search will become horrible and spread to 210 methods, unless otherwise, you are very good at naming attributes and wont make the mistake of assigning attributes wrongly.
    Imagine the effort if the outside components also access these methods through interface.
    Also I dont think that the webdynpro phase model can support this way of calling view methods. You might be successful once, but then you are trying to open a can of worms.
    This is my way of thinking...
    Also, it would be great if you can tell me whether you are successful in calling views methods or not???
    Thanks,
    Anand

  • In Pages document, how do I search for word and view its frequency and page numbers in a sidebar?

    I have a long document and I want to be able to search for certain key words and phrases, and then see how many times they appear in the document and exactly where.  How do I conduct this sort of search and viewing?  In the past, in Pages and Word, I've been able to view my "finds" in a sidebar but I can't figure out how to activate that service anymore.
    Thanks!

    Here is a word frequency concordance Automator Service that works in both versions of Pages. It does not present a page number reference. It is by descending count, and alphabetically, within the repetitive counts as shown in the image here. In any document, you select the text to process, then Menu > Application Name > Services > Frequency. The Service will open TextEdit with the n-pages of scrollable results. It is 16 pt Helvetica Neue for legibility.
    Here is the code:
    on run {input, parameters}
         try
              set mySelection to input as text
              set formatted_result to concordance(mySelection)
              if formatted_result is not null then
                   set textHeading to "Word Frequency List"
                   tell application "TextEdit"
                   activate
                         set NewDoc to make new document with properties {name:"Concordance"}
                         make new paragraph at beginning of text of NewDoc with data textHeading & return
                         make new paragraph at end of text of NewDoc with data formatted_result
                         tell text of NewDoc
                               set font to "Helvetica Neue"
                               set size to 16
                               set color of paragraph 1 to {0, 0, 65535}
                         end tell
                        end tell
              else
                        display dialog with title ¬
                         "No input selected" with icon stop ¬
                          giving up after 15
              end if
         on error errmsg number errnum
                    display alert ¬
                               "AppleScript Error" message errmsg & "[" & errnum & "]" as critical ¬
                                  giving up after 30
         end try
         return input
    end run
    on concordance(mySelection)
    -- Use Ruby to count word frequency and alphabetically sort words
        set rb to ¬
        "selected = String.new\nfreqs = Hash.new(0)\nselected = ARGV.join('  ').gsub(/[,.]/, \"\")\n
         words = selected.split(/[^\\w-]+/)\nwords.each { |word| freqs[word] += 1 }\n
         freqs_sorted = freqs.sort do |a,b|\n\t
         a.last == b.last ? a.first <=> b.first : b.last <=> a.last\nend\n
         freqs_sorted.each { |k,v| printf \"[ %8s ]          %s\", v, k }"
        do shell script "/usr/bin/ruby -e " & rb's quoted form & space & mySelection's quoted form
    end concordance
    Launch /Applications/Automator and choose New Document, then click the Service icon, and then select the Choose button.
    On the left, you will have a list of Libraries from which to choose workflow items. Find Library > Utilities. In the adjacent column, locate the Run Applescript workflow. Click on it, then drag and drop it in the large workflow window to your right.
    At the top, you can select Service receives text in any application. Leave Output replaces selected text unchecked.
    In your Run AppleScript workflow window, you will see AppleScript boilerplate. Click on it and press command+A, then backspace to delete this content. Copy and paste the above code into this Run AppleScript workflow window. Press the Run button in Automator's upper right corner. If (and it should) a TextEdit window pops up, you are good, and you want to press File > Save. A dialog box will pop-up where you can name your Service. I called my Frequency, you may wish to call it something else. Once you have save it, you can exit Automator. Services are deposited in yourlogin directory/Library/Services.
    If you have a Pages document open with text, either select it, or command+a to select the entire document. Now, you select your Service via Pages > Services > Frequency. This will now pop-up a new TextEdit document with the results. If you want to save this new document, you must use option+File to Save as...

  • How do I use iPhoto vs. Pictures folder for organization and viewing?

    I have a high level question as to how to use, in general not specific functions, iPhoto on my new iMac.  I imported all of my PC files from an external drive into the appropriate Folders (Pictures, Documents, Music, Movies) successfully.    So my large collection of photos resides in many sub folders under Pictures (like ‘2012 Mom Visit’ or “Christmas 2008’).
    My question is should I be using iPhoto as my primary app for viewing and organizing my full inventory of pictures, along with obviously editing/creating? Or do I use the default Pictures folder, and dig through with Finder or some search mechanisms if I only want to look at a photo and save iPhoto for editing and creating tasks?  If iPhoto should be my primary photo browsing and organizing tool, and I hope so because I would like a tool to just organize/view/search all my photos rather than thumbing through the folder structure, how to I “import” or tell iPhoto where all my photos are (there are a lot under a lot of subfolders)?  Will iPhoto then keep duplicate copies of these or do all my photo files remain in the Folder structure?
    Bottom line: is iPhoto supposed to be my go-to place for all my photo browsing, viewing, searching as well as editing and creating?  Should every photo I add to this iMac somehow be linked or imported through iPhoto?
    I also have pictures in the cloud and on an iPad (since my PC died I dumped camera photos directly to the ipad) but I’ll deal with these after I understand the appropriate use for iPhoto.
    Thanks for any input.

    The important thing to remember is there is no "supposed to" or "best way". There's what works for you and you photos. This may be iPhoto or some other app.
    Couple of thoughts: iPhoto is not an editor. It's a Manager - like Contacts for your Addresses or iTunes for your Music, it offers powerful and easy to use tools that will help you manage and share your photos in the various ways you might need it. It will also enhance and crop and edit photos as well, but if you're not using it as a manager then forget about it for editing as it will be just too complex. There are loads of editors out there.
    If you use iPhoto then it's your "go-to" for anything to do with your Photos. Viewing, Organising, sharing, Uploading, Printing, whatever. All of these things can be done either with or via iPhoto. Put another way, you never access your files via the Finder.
    For more on this see this User tip:
    https://discussions.apple.com/docs/DOC-4491
    There are two ways to set up your iPhoto Library. Managed and Referenced
    A Managed Library, is the default setting, and iPhoto copies files into the iPhoto Library when Importing. The files are then stored in the Library package
    A Referenced Library is when iPhoto is NOT copying the files into the iPhoto Library when importing because you made a change at iPhoto -> Preferences -> Advanced. (You unchecked the option to copy files into the Library on import) The files are then stored where ever you put them and not in the Library package. In this scenario you are responsible for the File Management. 
    As you are new to iPhoto I strongly urge you to run a Managed Library. There are many pitfalls with a Referenced one - see here for instance
    https://discussions.apple.com/thread/3062728?tstart=0
    and for someone new to iPhoto and The Mac you can lose data very easily with a Referenced Library.
    However you store the files, importing is the same: easiest way: drag a folder of images to the iPhoto Window and iPhoto will import it and create an Event from it.
    If you have a managed library then it will copy the files into its own Library. You filing structure is then pointless. You can trash it - but don't do it immediately. iPhoto is a great app, but it's not necessarily for everyone. When you've lived with it for a few weeks and are sure it's for you, that's when you can trash your own filing structure.
    The problem with what you have now - files-in-folders-and-subfolders - is that it is limited. Searching is trcky as you don't have a whole lot of things to search on. I append the following to show you some of the options available in iPhoto.
    I use Events simply as big buckets of Photos: Spring 08, July - Nov 06 are typical Events in my Library. I use keywords and Smart Albums extensively. I title the pics broadly.
    I keyword on a
    Who
    What
    Where basis (The When is in the photos's Exif metadata). I also rate the pics on a 1 - 5 star basis.
    Using this system I can find pretty much find any pic in my 44k library in a couple of seconds.
    So, for example, I have a batch of pics titled 'Seattle 08' and a  typical keywording might include: John, Anne, Landscape, mountain, trees, snow. With a rating included it's so very easy to find the best pics we took at Mount Rainier.
    File -> New Smart Album
    set it to 'All"
    title contains Seattle
    keyword is mountain
    keyword is snow
    rating is 5 stars
    Or, want a chronological album of John from birth to today?
    New Smart Album
    Keyword is John
    Set the View options to Sort By Date Ascending
    Want only the best pics?
    add Rating is greater than 4 stars
    The best thing about this system is that it's dynamic. If I add 50 more pics of John  to the Library tomorrow, as I keyword and rate them they are added to the Smart Album.
    In the end, organisation is about finding the pics. The point is to make locating that pic or batch of pics findable fast. This system works for me.

  • GOS(Object Services) for ME31K and ME41

    Hi,
      Is it possible to have a General object services for the transactions ME31K and ME41.If yes,Can you please give me the procedure for the same.
    Thanks

    the notes for ME31K: start with [329437|https://websmp130.sap-ag.de/sap(bD1kZSZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=329437&nlang=EN&smpsrv=https%3a%2f%2fwebsmp110%2esap-ag%2ede] and work your way through the dependencies and follow-ups.
    ME41: there's no way to know beforehand. either you can see it while you are using the transaction or you can't. if you can't you go searching service.sap.com ... at least that's how i do it ...

  • Object lock for table T001B / view V_T001B (tcode OB52)

    Hi,
    The table T001B or view V_T001B is for Opening and Closing FI periods.
    We have given the transaction to Business users who are located in various parts of the world.
    During month end each user is trying to open the period for his company.
    However when one user is using the transaction OB52 which updates the table T001B, the trasnaction gets locked for all the other users.
    How can we avoid this occurence?
    The idea is to enable the transaction/ table / view update by multiple users parallely.
    Your inputs are highly appreciated.
    Thanks,
    Nitish

    OB52 is just calling the maintenance view V_T001B. At first I thought that maybe it would be possible to call SM30 for this view and enter the conditions, but it doesn't allow to enter any... Very strange... Perhaps you could create a custom maintenance view, which would allow to maintain only selected records, not the whole table. Such view can then be "wrapped" in a small program that would require entering the selection criteria and could also have authorization check.
    Additionally, it might be possible simply to run this as a monthly background job instead of having the users do it manually.

  • Enterprise Wireless Mesh License needed for controller and AP's?

    If I have a 2112 WLAN Controller and 7 1240AG AP's what licensing do I need to purchase to enable enterprise wireless mesh? Do I need to get the license for the controller (AIR-AP-LIC-M-12)? A license for each AP? Both? Thanks for any replies!

    Hi Andy,
    You only require the Mesh license for the Controller not for the individual AP's :)
    Solution
    The Cisco EWM license is required for wireless mesh deployments for the indoor access point platforms, including the Cisco Aironet 1130 and 1240 Series. For the Cisco Aironet 1500 Series, these licenses are not required. These EWM licenses are required for all the WLAN controllers when mesh indoor acess points are associated with the controller. Each WLAN controller has a corresponding EWM license. The license entitles the user to configure as many mesh indoor access points as the controller allows.
    The license SKUs are as follows:
    • AIR-AP-LIC-RTU=, Cisco Advanced Feature License
    • AIR-AP-LIC-M-6, Cisco Advanced Enterprise Wireless Mesh, 6-AP Controller
    • ***AIR-AP-LIC-M-12, Cisco Advanced Enterprise Wireless Mesh, 12-AP Controller
    • AIR-AP-LIC-M-25, Cisco Advanced Enterprise Wireless Mesh, 25-AP Controller
    • AIR-AP-LIC-M-50, Cisco Advanced Enterprise Wireless Mesh, 50-AP Controller
    • AIR-AP-LIC-M-100, Cisco Advanced Enterprise Wireless Mesh, 100-AP Controller
    • AIR-AP-LIC-M-300, Cisco Advanced Enterprise Wireless Mesh, 300-AP Controller
    Cisco Enterprise Wireless Mesh Licensing and Ordering Guide
    http://www.cisco.com/en/US/solutions/collateral/ns340/ns394/ns348/ns767/ordering_guide_c07-482365_ps6521_Products_Brochure.html
    Hope this helps!
    Rob

  • Bridge - Search for folders and view all contents at once?

    Say I do a search for "Landscape" and it brings up 25 folders on my hard drive, is there a way to view the contents of all my folders at once?
    Thank you,
    Benjamin

    I have found exactly what I was looking for.  And there it is... on AEScripts.com.  Color me embarrassed.
    For anyone else who's interesed in the answer I found "pt_EffectSearch" by Paul Tuersley.    
    Marc

  • Reg:T-CODE for open and close period for materials(new plant).

    hi sap guru's
    T-code for following process
        can anybody send me , how to create calendar to new plant . and what is the T-code to be use for open and close period of materials for new plant.
    thanks
    sakthi..

    Hi Sakthi,
    I am assuming that you are asking about the factory calendars which are assigned while difing the plant.
    Factory calendars are created through transaction "SCAL".
    Opening and closing of MM periods can be done through transaction MMPV.This is based on the company code.Before using MMPV ,you can look the last opened period in the transaction MMRV.
    Reward points if it helps.
    Regards
    Karan

  • Any doc. available on India loz (RG Reg) period close for Inventory and PO?

    Can any body help to send a document for the india loz document for inv and po modules. Any process steps for expecailly RG registers.
    Edited by: user8694571 on Aug 4, 2009 12:12 AM

    Hi,
    You can refer the following ML doc,
    [Oracle India Localization Setup Users Reference Manual|https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=334838.1]
    [Oracle India Localization Implementation Guide 11i|https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=334668.1]
    [Documentation repository for Oracle Financials for India|https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=471249.1]
    Thanks,
    Anchorage :)

Maybe you are looking for

  • How can i transfer my old files from 3d phone to my new phone 5s

    I got an old phone 3g now I want to transfer my pictures and others to my new cellphone just newly bought apple 15s 16GB gold lte. I tried following the steps written in by the sales representative but I cannot find the find the things she instructed

  • Need Help With Adobe Photoshop Elements 2.0

    I have and use Adobe Acrobat and three versions of Adobe Photoshop Elements (2, 5 and 7). I use version 2 frequently as I'm more familiar with it and it's simpler to use for what I need to do. All was fine until recently when my computer was installe

  • Page counter bug in iPhoto Book

    I have created 98 pages in a new photo book. When I try to add the last two pages, I get an error message: "Unable to Add Page" "This book already contains 100 pages. Additional pages cannot be added until an existing page is removed." This is the fi

  • Does Numbers support Excel functions CELL, SUBSTITUTE, and REDIRECT?

    Been trying to find the list of Excel-compatible functions but did not succeed. I would like to use Numbers to edit my Excel files in iPad. I often generate reports by pulling data out from a seperate sheet using Excel functions like CELL, SUBSTITUTE

  • Getting problem in binding DropDown List with table data in visual JSF

    Hi All, I am new to visual JSF. I am getting few problems while working over components. I have succeeded in binding data of Person table in a drop down list . By just drag drop ..it worked. But while connecting to external DB this drag drop mechanis