Call Controller on valueHelp

Hi,
I have written a bsp-application with 2 views and 2 Controller.
One of these views includes an inputfield with a f4-help.
If the f4-help is clicked, the 2. controller shall be called, which is responsible for
showing the other view.
How can I call a controller when the f4-help of the inputfield is clicked?
I tried this, but it doesn't work:
      <htmlb:inputField id          = "flight"
                        visible     = "TRUE"
                        size        = "12"
                        maxlength   = "12"
                        showHelp    = "X"
                        onValueHelp = "<bsp:goto url="controller_data.do"></bsp:goto>" />
Can you help me?
Best regards
Alberto

Ok,
thanks a lot!!
It works now.
Best regards
Alberto

Similar Messages

  • Call controller with javascript

    Hi,
    I have a short question:
    If I called this function several times in my program, will always the same controller be called or will for each call an instance of the controller be created? :
    child = window.open("controller_data.do","Test","width=183px height=216px left=" + x + " top=" + y + " status=no")
    Best regards
    Alberto

    Hi Alberto,
    that depends mainly on the settings of your application and of the controller.
    stateless:
    Each call creates a new instance which only lives for the lifetime of the request processing (i.e. until the response is sent back to the browser).
    statefull:
    dependent on the setting of the lifetime attribute in the status section:
    "request": new instance for each request as in case of stateless (while the application object remains existing)
    "session": until you end the session
    "until page change": until you use a method of the navigation interface to perform a redirect to a different controller/page. Navigation triggered by links or javascript on the frontend will not kill the instance.
    The "Test" in your javascript just has the effect that for each call the same window is reused meaning that in case you have already opened the popup executing the script just will reload the controller into the already opened window. This has no influence onto the lifetime of the controller object in the backend.
    In case you want to check which objects are loaded switch to the memory use in the debugger an check the list of objects there. Here you can see whether multiple instances of your controller class available.
    Hope that helps.
    Best Regards
    Michael

  • Calling controller methods in view.

    Hi Friends,
         I am created two methods in component controller, while i am accessing those two methods in view, i am not getting
         wdGet<Controller_name>Controler() method in the view.
         How can i get that?
    Thanks & Regards,
    Murali

    Hi Murali,
    This is because you didt add the componet controller under Required Controllers for the view.
    For that, take the view, and take its properties. There you will see a option called Required Controllers. Click Add and add your  component controller (carefully select component controller).
    Now try to access the method by the code you mentioned.
    Regards,
    Jithin

  • Call controller from popup

    Hi all !
    I have a form where I have a button that opens a popup window.
    Instead of that popup get its page directly from a JSP ( window.open(<MY_JSP>,...) ),
    I want to call a method in a controller that will return the JSP to use in the popup.
    Anyone knows how this can be done ?
    thanks in advance.

    Do you mean, dynamically choosing which JSP to load in that new window?
    If thats the case, just call the controller from the window.open("controller servlet", ...) and in the servlet, just forward (dispatch) to the apporiate jsp.

  • [MVC] Call controller with Javascript - How to pass model?

    Hi,
    In one of my requirement, I have to pass the main model to a controller that I simply create through Javascript (let's say I call it with : window.open( 'http://.../popup.do '); )
    How sould I proceed to set an existing model to this controller?
    Many thanks in advance.
    Best regards,
    Guillaume

    Hi
    u might be having  a model class for your model,
    just insert that model class in the attributes and then u can use that model class for your controller.
    a easy example of creating it is as in this link...
    [creating controllers with model|http://wiki.sdn.sap.com/wiki/x/-YL8B ]
    Give the page attributes of the view. in the page attribute define the model class there that u have created.
    in the view u can use the model class as...
    SELECT_model is the name of the object refering to the model class.
    i_vbak have been defined in the attributes of the model class.
    we are accessing it here in teh view calling it as below.
    and in the model we had fetched the data for the below fields .
      <htmlb:tableView id="TV_VBAK" table="//SELECT_model/I_VBAK">
    <htmlb:tableViewColumn columnName="vbeln"></htmlb:tableViewColumn>
    <htmlb:tableViewColumn columnName="ERDAT"></htmlb:tableViewColumn>
    <htmlb:tableViewColumn columnName="ERZET"></htmlb:tableViewColumn>
    <htmlb:tableViewColumn columnName="ERNAM"></htmlb:tableViewColumn>
    <htmlb:tableViewColumn columnName="ANGDT"></htmlb:tableViewColumn>  
      </htmlb:tableView>
    i hope it is clear.
    Thanks
    kalyan

  • How I can call controller's functions from another component?

    Hi again!
    I make a few web Dynpro components, for example first for user-data processing, second - for project-data processing. In the controller of 1-st controller there is a function getUserById(). In the controller of 2-nd component I need such function. And I don't want to make a dublicate for this function in the controller of 2-nd component. Is there a way to call function in one component from another?

    Hi,
         Yes, you can reuse the component. There are two basic types of component communication. 1. Intra Component communication 2.Inter Component communication.
    1. Intra Component  communication: The two components must be in same DC(project).
    Procedure:Say there are C1,C2 components in a DC.
    Open C2, Open interface controller, create a similar (_parameters and return type_) method to the method C2. Call C2's method in this Interface method.   
    Open C1, select and right click  Used Web Dynpro Components -> Add Used Component. In the wizard, you can browse and select the C2 component,and enter a name to the usage. Then the usage of the interface <b>must </b>be added in properties required controllers of a view/component controller.
    Now we can use the method that is available in the C1 interface controller.     
    You must define method before declaring usage
    <b>2.Inter Component  communication:</b> The two components are in different DCs
    Open DC metadata of C2. Right click on Public part-> create new Public Part.Enter name-> Next -> Select entity type as Web Dynpro Component in wizard,in Select Entities  select the component ,Finish.
    A structure for public part is created.
    Open C1, Open DC metadata of C1. Right click on Used Dcs-> AddUsed DC. Browse to C2's public part.
    Select Finish.
    regards,
    Siva
    Edited by: Siva Rama Krushna on Dec 19, 2007 10:07 AM

  • How to call Controller from a Flow Logic Page

    Hii
        I am trying to call a controller from a flow logic page all in the same application.
    I have done this by calling CREATE_CONTROLLER from the flow logic Event .
    This is working fine,but the flow logic page appears even when the Contoller gets called & the controller view gets loaded.
    I want to Navigate to the Controllers  View .I tried this using NAVIGATE->next_page( ).But this is not working
    Regards
    Ajitabh.

    Hi Ajitabh,
    I don't think that is right to call a controller using the flow-logic programing-model. You have to use the MVC programing-model. There it is possible an right to work with controller.
    In flow-logic you just have to use pages you create in your bsp-application. Then you can navigate with the code:
    CASE event_id.
    WHEN 'button1'. navigate->goto_page( 'page2.htm' ).
    ENDCASE.
    The code in your layout should be like this for a button:
    <input type="submit" name="OnInputProcessing(button1)" value="to-page-2">
    Maybe this can help you

  • Calling controller action from an iframe

    I am not able to call an action command in the page flow controller from an iframe.
    Currently, it just skips it. Is there a way to do it or it is a bug.
    I am using portal 8.1.
    Thanks,
    SB.

    Hi Uma,
    Please follow the below steps :
    1. Create a viewuielement container at the first view and place it where you want.
    2. Then create one attribute with the type of string and bind this attribute to youe viewuielement property "Visible".
    3. Then double click the window -> go to the first view -> Here your viewuielemnt name will displayed. Just right click it -> embed view -> select your second view.
    4. Then go to your method of the link to action and write the following code.
    data:
          Elem_Context                        type ref to If_Wd_Context_Element,
          Stru_Context                        type If_Firstview=>Element_Context ,
          Item_VISIBLE                        like Stru_Context-VISIBLE.
    *   get element via lead selection
        Elem_Context = wd_Context->get_Element(  ).
    *   get single attribute
        Elem_Context->get_Attribute(
          exporting
            Name =  `VISIBLE`
          importing
            Value = Item_Visible ).
    IF Item_VISIBLE IS INITIAL.
      Item_VISIBLE = 'X'.
      ENDIF.
    Elem_Context->Set_Attribute(
          exporting
            Name =  `VISIBLE`
            Value = Item_Visible ).
    So when ever you click the link to action it will shows your second view elements in your first view.
    Thanks.

  • Calling Controller method before page render

    Hi All,
    I have created menu in my web application using DHTML Tabber where each menu item is a link.
    I am using Facelets with JSF 1.2 .
    I want on click of each menu item a page should load in the body section of my template but before that I want a controllers method to be executed which would do some initializations. I cannot change the links in my menu to be <h:commandLink> since the menu is created using javascript (it cannot have <h:commandLink> in it) .
    How do I achieve this ?

    I think the issue here is generating the action on the server side when the link is selected.
    You might want to look into the solutions people have devised for so-called pretty URLs in JSF. Scales, a component library companion to Mojarra, the Sun RI, contains some support for these.
    Solutions that spring to mind off the top of my head are using a PhaseListener to detect the links and queue the event or using a placeholder component which processes the links in the decode (similar to how commandLink works).

  • It is not working when jsp is outside of the Controller(.jpf) directory

    Hello,
    I am new to Portal. I am using Weblogic 8.1SP2. The problem is when there is a general jsp I want to put it common directory. It is working fine when I run starting from individual Controller but When I put its portlet in Portal, then the action is NOT falling into its caller's Controller but into the root Controller. Is this normal ? Is there a way to have the action call back to its caller Controller ? The director structure is :
    ../portalWeb
    + flowControllers
    + common
    search.jsp
    + portlet1
    Portlet1Controller.jpf
    Portlet1Controller.portlet
    + portlet2
    Portlet2Controller.jpf
    Portlet2Controller.portlet
    Controller.jpf
    And in the search.jsp file I have javascript snippet code like :
    if ( <%= type%> == 1 ){
    document.forms0].action="startPersonSearch.do"; //Portlet1Controller action
    if ( <%= type %> == 2) {
    document.forms[0].action="startCompanySearch.do"; //Portlet2Controller action
    document.forms[0].submit();
    Please help. Any thought will be greatly appreciated.
    Christina
    Thanks in advance.

    Yes. I did try to put directory path in front of the action to tell which Controller it should go. It didn't throw exception but It acted like called directly from that Controller. It is not under portal.
    Does anyone think the approach to have the common used jsp outside the Controller feasible ?

  • How to call Function Module from webdynpro application ,up on click url in

    Hi Experts,
    I need your help for the following scenario.
    In my WebDynpro application , I am displaying the sales orders in a table.
    one of the column in table  i.e. sales order number is displayed with hyper link, up on click the sales order number column, i have to pass the  po number to the a remotefunction with as one parameter and  enjoy = 'x' as another parameter  that should call me23n transaction and the transaction screen should be displayed in the webdynpro application with po details.
    Thanks In Advance.
    your help is rewarded.
    Best Regards.
    Rao.

    Hi Rao,
              1.Create binding to view to Controller.
              2.Create table->Add column->Add table cell Editor(select LinkToAction UI Element in options).
              3. Bind the property <i>text ->sales order number</i> (Output/<model node>)
              4. Create an Event <salesOrder>
                                       // do null check
                                       // set your input parameters
                                       // input sales order number = current output sales order number
                                       // enjoy="x"
                                       // call controller's method() that executes RFC
              5. Bind this event    LinkToAction  property action-> <salesOrder>  
    To execute RFC, the code is available in sample tutorials.
    Hope this helps
    regards,
    Siva

  • Call a view without Model ?

    Hello All,
    My application is a Page with flow logic BSP.
    I need to view a jsp file from this BSP .
    So i created a MIME Object and imported the JSP as a MIME.
    I converted that Mime Object into a VIew.
    Now I want to viewthe output of  that View.
    But as per the concepts we can't execute the view directly.
    So  I created a Controller class and attached my View to it .
    Here I don't need a model as there is no need for the Bus.Logic.
    Now my Qn is : How to call the view from my Page ?
    Regards,
    Deepu.K

    Use this simple code in layout to call controller, calling controller will call your view.
    <%@ extension name="bsp" prefix="bsp" %>
    <bsp:call url="your_controller.do" />
    *Reward each useful answer
    Raja T

  • How to talk between Customand Conponent  controller

    Hi,
    Can any one tell me how to talk between two controller.....
    Help will be awarded.
    Regards,
    Gurprit Bhatia
    Message was edited by:
            GURPRIT BHATIA

    Hi Gurprit,
    If you need to exchange data between 2 controllers, you need to specify a context mapping between the contexts of the 2 controllers in use. You can do so by creating a Data link between them by using The Data Modeler.
    In addition, if you want to call certain methods which are defined in another controller, you can do so by specifying the "Called" controller as a Required controller in the "Calling" controller.
    For e.g If i have to communicate between the Component controller and the Custom controller and in the custom controller i have a method getDetails() defined, i can access this method in the Component controller as follows:
    In the Component controller Properties Tab, add the Custom controller as a Required Controller.
    In the Component controller implementation, i can then call the getDetails() as follows:
    wdThis.wdGetXYZCustomController().getDetails();
    Likewise you can also access the context and other properties/functionalites of the Custom controller.
    Hope this helps.

  • OLC Reject for audio codec in a H.323-SIP B2B call involving CUCM & Expressways

    In the setup, CUCM is the centralized call controller and expressways are used for firewall traversal.  CUCM & expressways are correctly as per the Cisco document.  A SIP call from a public internet endpoint to CUCM registered MX300 G2 is successfully connected with video & audio.  But a H.323 call from public internet endpoint to the MX300 G2 in CUCM is failing.  It is seen in the logs that there is a OpenLogicalChannel reject for the audio codec.  I tried with both G711 & G729 from the public endpoint, but the result is the same.  Has anyone here faced similar problems.  Is there anything that I have look at.  Thanks in advance.
     

    Hi Martin,
    Thanks for the response.  I can look at the firewall.  But I would like to understand how does firewall can be a factor here when there is a clear OLC Reject.  Is it not confirms that the packets are indeed received and there are some issues in opening the logical channel. 
    As firewall is not in my scope, I need to make clear reason for the other team to look at.
    Thanks.

  • XY controller assignment

    I want to automate a graphpoint in a plug-in (antares throat, and want to control the length and width of the section of throat at the same time) I have an XY pad on my controller surface, I usually just use automation quick access but I need to assign one parameter to the X axis and one to the Y axis. Does anyone have a suggestion? Is there a window I can go to and just assign a midi CC# to these parameters?

    Hi Balie,
    You're controller probably does transmit a CC for each axe. So try "learning" with quick access or watching incoming data.
    There is a window called "controller assignments" accessible through QAccess
    Cheers, J

Maybe you are looking for

  • Nokia 2652 - How to switch off automatic answering

    Hi, Does anybody know if it is possible to switch off the automatic answering a few seconds after you open up the phone to see who's calling?

  • Help with adding a date in ADDT

    Not sure what's going on here, but its probably something simple, and me missing something obvious... Basically I have a form to add a record to a database table. I have two date fields in the table, of the type, Date. This is my code for adding the

  • Is it possible to create an accessible text record of the bookmarks in a pdf

    I am using Adobe 9.0 0.  My pdf has a large number of bookmarks, which I want to check against other sources.  I wish to create a list that I can copy and paste elsewhere.

  • Error 53 PID Autotune with Real-time fieldpoint control

    Hi! I cannot perform the autotuning PID parameters in fieldpoint cFP-2000 (Real-time control). It gives me the error 53 as you see in the attachment file. It seems to be because of the autotune wizard vi...??? How can i solve this problem? Thanks for

  • Error in SDM-deploy Step

    <h5>Good Morning Gentleman,</h5> <h5>"When i'm trying to import a transport order to our productive system the import fails in step SDM-deploy with the following error:</h5> <h5>20120228122646 Info   :Starting Step SDM-deploy at 2012-02-28 12:26:46.0