Controller and view problem

When I call a Controller from a View there is any way to get in the controller the name of the View who calls the controller?

How about
<bsp:call url="sms.do" comp_id="SMSSUB">
   <bsp:parameter name="VIEW" value="sms_bop.htm"/>
</bsp:call>
view is a public attribute type string in the controller.

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

  • 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

  • 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.

  • Document upload and view problem in easy dms

    Dear Friend
    When i upload or view documnet in easy dms it is show ftp erro and when right click on document only one time open this document thru sap and all opration is done from easy dms please guide us where is proble
    Nainesh

    Dear Nainesh,
    as far as I know you raised also an OSS message on this question and I provided you the following reply based on your attachments:
    based on your latest screenshot I think that the information at
    http://wiki.sdn.sap.com/wiki/display/PLM/I001Win32error2+
    could help to get this issue solved.
    Best regards,
    Christoph

  • Windows driver for "Multimedia Controller" and sound problem

    Hi
    I installed Windows 8.1 using Bootcamp on my Macbook Air (Early 2014, Intel i5).
    Then I downloaded Bootcamp drivers from http://support.apple.com/kb/dl1720 and installed couple of them (wifi, intel chipset).
    When I check the Device Managmer I still get "Multimedia Controller" in "Other devices" without drivers.
    Beside that I think the sound is not working. I installed the Realtek sound driver. When I play sound file the volume bar in taskbar mixer is blinking but no sound is coming out : ).
    Please help.

    for multimedia controller if its onboard sound card use this drivers:
    http://download.nvidia.com/Windows/nForce/4.62/4.62_nforce_audio_winxp2k_international_whql.exe
    but based on both:
    multimedia controller
    multimedia video controller
    think its external PCI device like TV tuner.
    get this one to ID the device: http://www.zhangduo.com/UnknownDeviceIdentifier.exe

  • Controller for View, Window, Interface, and Configuration Cannot Be Created

    Hi All,
      In our  Web Dynpro ABAP applicaton we  have a window and when we edit the conent of window and try to press "Cancel" button we are getting below error.
    Controller for View, Window, Interface, and Configuration Cannot Be Created
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: GET_CONTROLLER of program CL_WDR_COMPONENT==============CP
    Method: GET_ACTION_FROM_EVENT of program CL_WDR_WINDOW_PHASE_MODEL=====CP
    Method: DO_HANDLE_ACTION_EVENT of program CL_WDR_WINDOW_PHASE_MODEL=====CP
    Method: PROCESS_REQUEST of program CL_WDR_WINDOW_PHASE_MODEL=====CP
    Method: PROCESS_REQUEST of program CL_WDR_WINDOW=================CP
    Method: EXECUTE of program CL_WDR_MAIN_TASK==============CP
    Method: IF_WDR_RUNTIME~EXECUTE of program CL_WDR_MAIN_TASK==============CP
    Method: HANDLE_REQUEST of program CL_WDR_CLIENT_ABSTRACT_HTTP===CP
    Method: IF_HTTP_EXTENSION~HANDLE_REQUEST of program CL_WDR_MAIN_TASK==============CP
    Method: EXECUTE_REQUEST_FROM_MEMORY of program CL_HTTP_SERVER================
    Do any one have idea regarding this error.
    Regards
    CB

    Hi,
    Sounds bit strange to me, if you edit your window and do not want to save your changes then i would not expect this error. assuming that the component does not have activation problem.
    Just for making sure.
    I assume that your problem is on design time and not runtime.
    If it is a design time and problem still exists, try to delete this window, save ,activate and then recreate this window,embed your view(s).
    If it is runtime problem then i would suggest you to do debugging and find out where it is getting this error.

  • Remote Control and Remote View Problem

    Hi,
    I work at a High School running Netware 6.0 SP5 and Zen works 4.01 ir7.
    Remote Control and Remote View works great but I noticed one problem.
    We have a logo of the school that is forced down on to the desktop when a
    user logs in through group policies. This logo works perfect for the
    desktop wall paper and loads every time a user logs in.
    When I Remote Control or Remote View a computer the users desktop wall
    paper turns from the logo being forced down through group policies to the
    desktop to a blue desktop wall paper.
    I would prefer the desktop wall paper staying the schools logo when I
    Remote Control or Remote View because if the desktop wall paper changes to
    the blue color I mentioned above when I Remote Control or Remote View the
    users computer, they will know that someone is taking over their computer
    which sometimes we dont want them knowing.
    We have Windows 98SE computer running Novell Client 3.4 and we have some
    computers running Windows XP Professional SP1 and Windows XP Professional
    SP2 both running Novell Client 4.91 SP2.
    The Remote Control and Remote View problem of the desktop wall paper
    changing on the users computer occurs on all operating systems mentioned
    above.
    Is there a solution to my above problem? When Remote Controlling and
    Remote Viewing someone's computer I don't want the desktop wall paper to
    change.
    Thanks!

    Bpilon,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Do a search of our knowledgebase at http://support.novell.com/search/kb_index.jsp
    - Check all of the other support tools and options available at
    http://support.novell.com.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://support.novell.com/forums)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://support.novell.com/forums/faq_general.html
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://support.novell.com/forums/

  • Internet access problems and viewing video on internet

    I have very limited interet access most of the time.  I get a message: "You are not currently in an area that can handle data communication.  ..."  I have no problem with email and other features of the phone during this time.  The signal at the top of my phone says "GSM".  When I am able access the internet, it give me a different signal (can't remember what that is, however).  Even then, I cannot view most video clips, such as YouTube clips.  They will not load all the way.  It states, "Error has occurred in attempting to play media."  Help!

    I have unlimited internet access, so that's not the problem.  Right when I got the phone, I replaced the original data card with a 4G card and enabled mass storage.  I have (since my first post) had more access capability by enabling the WiFi (da) which finds my wireless connection at home.  I've also been able to view a video clip, not successfully all the way through, however.  During viewing, the phone appears to crash, i.e. the screen goes white and then it takes 3-5 minutes for it to reboot.  This has also happened when the phone has not even been being used.   Also, as I was surfing the net, the phone asked if I wanted to enable Javascript which I did.  Is there anything else that I need to enable or do to the phone in order to have a more pleasant experience using the internet and viewing video clips? 

  • I can't open and view my document to print. I get an error message that says. " There is a problem w

    I can't get my document to open and view. I keep getting an error message that says. "There is a problem with Adobe Acrobat Reader. If it is running, please exit and retry again." (507:507) I have closed and got back in and it keeps giving me the same message.

    Hi Robertfrom Denver.
    Did you try the solution given, and if yes, did it work?
    I have done several "attempted downloads, and see the full file download, typically taking 30 minutes to complete, and then something goes wrong.
    I am happy to suspend AV and FW software, but would like to know if it is a good fix or not first?
    HelenfromBroughton Astley

  • I have a Panasonic FZ38 HD camera. I can load and view my hd movies onto iMovie with no problems via my camera or a card reader.  When I try to copy my hd videos from my old Windows pc to my new iMac, the picture speed has doubled but the sound is normal.

    I have a Panasonic DMC-FZ38 HD camera and have lots of hd movie clips stored on my old Windows Pc using Photofun software supplied by Panasonic, which I want to transfer to my new Imac computer.   I am able to copy my most recent movies that are still on the memory card from my camera onto Imovie and view them with no problems at all.  When it comes to copying my old existing hd movies stored on my Windows Pc (and which are no longer stored on a memory card), I discover that when I view them on the Imovie, the speed has doubled but the sound is normal.   In order to transfer my old movies I have copied them back  onto a memory card (SDHC - the same card as previously used) and then put the card back into my camera and then copied them onto my Imac via the camera USB.   I have also used a card reader but get the same result.     If I view the same movie through my camera, or look at it on my old pc, it plays at normal speed.    Does anyone have any ideas as to why this is happening please?

    have you read and watch the Tutorials..? :
    http://www.apple.com/ilife/tutorials/#imovie
    iM is a bit.. iffy, when it comes to the definition, what a 'camera' is. historically, only tape based machines were a movie-camera. nowadays still-cams allow movin' images too..
    but, as mentioned above: the intended workflow is: material from photo cameras (even when they move) => import via iPhoto; material from video cameras (even when they don't move.. ) => iMovie
    when the import is done, you'll notice in all iLife apps the 'media browser' - in iM09, on the very right, the icon with a camera on.. click it, presto, all (incl. your 'videos') your iPhoto Library at hand for usage in iMovie.
    watch this:
    http://www.apple.com/findouthow/movies/imovie08.html#tutorial=otherimport
    (about from midths of tutorial...)

  • Problems with Ethernet controller and PCI device driver on Satellite L30-10X

    Hellow!
    Sorry for my bad English, I'm from Russia.
    Just few days ago I bought Satellite L30-10X with W Vista on board. My opinion, that this OS does't very good on this computer, so I install W XP.
    I have some problems with drivers. At first, I dont know what model I have:PSL30 or PSL33? I download all drivers for both models. But, after installation, computer doen't find drivers for Ethernet controller and PCI device...

    Hi
    Satellite L30-10X belongs to the PSL33E series. This number can be found on the label placed on the bottom of the unit!
    You have to choose this number from the driver download form to get the compatible XP drivers.
    I dont know why you are not able to install the LAN driver. Ive got the same notebook with Vista and Ive installed the XP and all drivers run fine.
    I assume you have installed the drivers in wrong order. Please take the look in the Toshiba installation instruction txt file. In this order you have to install the driver! Its important.
    I think you should install the XP again to ensure the clean registry and then download and install the compatible XP drivers like mentioned in the installation instruction file.
    Good luck

  • Problems between a Wireless Controller and a Switch.

    I have a Wireless Controller 4402 connected to one sw2960G.
    I configured the controller with LAG and the switch (sw2960G) with etherchanel.
    I connected the controller 2 distribution ports to the 2 ports of the switch (configured with etherchanel).
    It worked like it should work.
    But the problem is like this: if I take one cable that is connected to the switch and unplugged that cable from the switch (if that cable is the one connected to controllers port one) I have connectivity between both machines.
    If I plug in the switch the cable connected to controller port one and take the other cable and unplugged that cable from the switch I stop the connectivity between the two machines.
    I think that was not supposed to happen… because the LAG in the controller should put every AP in the second controller's port, and the connectivity between the machines should not end.
    Can any one help me?
    Can any one tell me what I am doing wrong?
    Thanks in advance,
    Rui

    With LAG enabled in the controller I think I can have only one ap-manager interface.
    The LAG will (it is supposed to) do the load balance automatically.
    I mean, if one of the interfaces is “down” the other will have to coupe with all the AP's.
    I should have always connection between the controller and the switch.
    The STP of the controller is configured by default (STP Mode = OFF).
    In the case of etherchannel load balance… I saw the Cisco documentation and I did not saw any thing about that. I think that The LAG as to do that for the controller… I'm right about that?
    I will see the link that you advised…
    Can you help me?
    Thanks,
    Rui

  • I just downloaded the new Firefox 4, rebooted, and viewed you videos re the new look and new features. Problem is, my toolbars look no different than before. The new icons you talk about do not appear on my screen. Please advise. Thank you.

    I just downloaded the new Firefox 4, rebooted, and viewed your videos re the new look and new features. Problem is, my toolbars look no different than before. The new icons you talk about do not appear on my screen. Please advise. Thank you.

    The Firefox icon is the default feature for Windows Vista and 7 only, it does not apply to Windows XP users.
    To have the Firefox icon instead of the Menu Bar:
    View > Toolbars and UNCHECK the Menu Bar.
    After that, click on the Firefox icon and you'll have the Menu Bar appear again.
    http://support.mozilla.com/en-US/kb/Menu%20bar%20is%20missing

  • Safari is having problem loading messages in gmail. When using other browsers, there is no problem loading and viewing the messages. What is going on? please help!

    safari is having problem loading messages in gmail. When using other browsers, there is no problem loading and viewing the messages. What is going on? please help!

    I should have explained further. The game opens in a new window over to the upper left of my screen, leaving the original page underneath. I tried minimizing it so that I could get to my toolbar and did the View > Zoom > Reset. This has no effect. The lower portion of the game is still not showing. Using other browsers the window or frame of the game is much larger, therefore everything shows.

Maybe you are looking for

  • How to delete audio and photos from my ipad and export to ITunes?

    I've read about this issue extensively and still can't figure out how to export my audio, picts, etc., to I Tunes and then delete the files on my I Pad. Firstly, all of my audio files don't show up when I sync, only some. These are files I've created

  • Availability of Speaker Stand in India

    Can anyone tell me if rear-speaker stand for Inspire 5200 5.1 system is available in India? I have searched a lot of place, no one has been able to help me. I think the model number would be MT1200 or MT1100. It would be great if you could tell me a

  • Dual pairing in OS X and Windows

    If I understand the bluetooth pairing process correctly, the MAC addresses of a bluetooth receiving device (the bluetooth adapter itself) and a bluetooth emitting device (in this case, the Magic Trackpad) are paired shared a randomly selected 16-bit

  • I7 in 15 inch or 17?  for photography. . . .

    So my problem is I am trying to decide which to order, a 15 or 17 inch in the i7. I have had a PowerBook G4 for about 4 years and need to upgrade as this is too slow with the larger files I now work with. I use Leica, which uses the SD card and my Ca

  • How to reinstall the Premiere ProCC in my computer??

    for some reason I can't reinstall the Premiere ProCC in my computer. I did delete days ago. and today I did pay for the creative cloud but then it says UP TO DATE instead of download the program