How to call iview on button action?

Hi all,
I developed a report in WDA.I have a button on this .if i click on this ineed to call anthoer application which is developed in WDj.
so i used CALL METHOD lo_window_manager->CREATE_EXTERNAL_WINDOW
  EXPORTING
    URL            = ' '
    MODAL          = ABAP_FALSE
    HAS_MENUBAR    = ABAP_TRUE
    IS_RESIZABLE   = ABAP_TRUE
    HAS_SCROLLBARS = ABAP_TRUE
    HAS_STATUSBAR  = ABAP_TRUE
    HAS_TOOLBAR    = ABAP_TRUE
    HAS_LOCATION   = ABAP_TRUE
  RECEIVING
    WINDOW         = lo_window.lo_window->open( ).
I need to give dynamic url based on login client .How can i give?
Thanks in Advance
Ravi

Hi Abhi,
I already gone through this document.But i didn't get anything clear.
Here to construct a url i need to get the port number & client  at runtime.(dynamic)
How should i get those.is there any methods to get those parameters.
Regards,
Ravi

Similar Messages

  • How show popup on filedownload button action

    Hi Experts,
    Working on jdev 11.1.1.3.0, ADF BC with rich faces.
    I have requirement in my application like i need to show popup and at the same time need to download file. like on selected rows in the table i have validation on each row, if the validation failed rows i need to show in popup to user at the same time i have validation success rows also those rows i need to generate a file and that file i need to download.
    i have written logic in the command button which has fileDownload, here remaing logic is working fine except showing popup. can any one tell me how to solve this issue.
    Edited by: user5802014 on Aug 19, 2010 5:57 PM

    Hi Frank,
    After chaning actionEvent.forceFullSubmit(); now everything is working fine, but now the problem is if i came from another jsff page to the current page then my file download is not happening i am getting on my browers like error on ....
    javascript:
    function customHandler(event) {
    var exportCmd = AdfPage.PAGE.findComponentByAbsoluteId("pt1:pt_region0:1:cb1")
    var actionEvent = new AdfActionEvent(exportCmd);
    actionEvent.noResponseExpected();
    actionEvent.queue();
    Bean:
    if(downloadFile!=null){
    System.out.println("invoking downloads...............................");
    erks.addScript(context, "customHandler();");
    } if (requestClause != null){
    System.out.println("invoke popup");
    executeSactionCheckVO(requestClause);
    //erks.addScript(context, "showPopup();");
    ADFUtils.invokePopup(this.getP2().getClientId(FacesContext.getCurrentInstance()));
    can you please how to avoid this error or can you please tell me how to call filedownload method in another button action.

  • How to Call smart form in Action

    Hi All,
    Could some one tell me how to call the smart form in action.
    Eg. PB40 - Offer Contract Action.
    Appreciate your respnse.
    Regards
    Raj

    Hi ,
    attached you find  some  abap code to call a smartform with some comments in it. Hope that helps:
    DATA: l_fn_name               TYPE rs38l_fnam
          , l_devtype               TYPE rspoptype
          , ls_output_options       TYPE ssfcompop
          , ls_control_parameters   TYPE ssfctrlop
          , ls_job_output_info      TYPE ssfcrescl
          , l_pdf_fsize             TYPE i                      "#EC NEEDED
          , lt_otf_tab              TYPE tsfotf
          , lt_pdf_lines            TYPE TABLE OF tline
    To do
       The mapping from the UI structure to the Smortform structure has to be
       implemented here or in a pirvate method.....
    Call function module u201CSSF_FUNCTION_MODULE_NAMEu201D to get the name of the smartform.
      CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
        EXPORTING
          formname           = zh38tm_cl_zz_2gen_bl_constants=>c_smartforms_hipo
        IMPORTING
          fm_name            = l_fn_name
        EXCEPTIONS
          no_form            = 1
          no_function_module = 2
          OTHERS             = 3.
      IF sy-subrc = 0.
       Call function module u201CSSF_GET_DEVICE_TYPEu201D to get the print parameter
        CALL FUNCTION 'SSF_GET_DEVICE_TYPE'
          EXPORTING
            i_language             = sy-langu
          IMPORTING
            e_devtype              = l_devtype
          EXCEPTIONS
            no_language            = 1
            language_not_installed = 2
            no_devtype_found       = 3
            system_error           = 4
            OTHERS                 = 5.
        IF sy-subrc = 0.
        Fill label structure to smartform
         ls_labels = zh38pm_cl_zz_bl_perf_plan=>set_sf_label( ).
         Set output parameters u201CLANGUAGEu201D, u201CNO_DIALOGu201D and u201CGETOTFu201D
          ls_output_options-tdprinter     = l_devtype.
          ls_control_parameters-no_dialog = abap_true.
          ls_control_parameters-getotf    = abap_true.
          ls_control_parameters-langu     = sy-langu.
         Call smartform with the structures u201CIMP_S_PERF_PLANu201D, u201CCHG_S_PRINT_PLAN
          CALL FUNCTION l_fn_name
            EXPORTING
              control_parameters      = ls_control_parameters
              output_options          = ls_output_options
              s_doc_processing        = gs_doc-s_doc_processing
              s_header_display        = gs_doc-s_header_display
              s_header_texts          = gs_doc-s_header_texts
              s_header_status         = gs_doc-s_header_status
              t_header_appraiser      = gs_doc-t_header_appraiser
              t_header_appraisee      = gs_doc-t_header_appraisee
              t_header_part_appraiser = gs_doc-t_header_part_appraisers
              t_header_other          = gs_doc-t_header_others
              s_header_dates          = gs_doc-s_header_dates
              t_header_add_data       = gs_doc-t_header_add_data
              t_body_columns          = gs_doc-t_body_columns
              t_body_element_descr    = gs_doc-t_body_element_descr
              t_body_elements         = gs_doc-t_body_elements
              t_body_cells            = gs_doc-t_body_cells
              t_body_cell_notes       = gs_doc-t_body_cell_notes
              t_body_cell_val_values  = gs_doc-t_body_cell_val_values
              t_body_cell_val_ranges  = gs_doc-t_body_cell_val_ranges
              t_body_cell_val_c_like  = gs_doc-t_body_cell_val_c_like
              t_body_cell_val_descr   = gs_doc-t_body_cell_val_descr
            IMPORTING
              job_output_info         = ls_job_output_info
            EXCEPTIONS
              formattinl_error        = 1
              internal_error          = 2
              send_error              = 3
              user_canceled           = 4.
          IF sy-subrc = 0.
            APPEND LINES OF ls_job_output_info-otfdata TO lt_otf_tab.
            exp_t_otf = lt_otf_tab.
           Call function module u201CCONVERT_OTFu201D to convert the smartform data
          to exporting parameter u201CEXP_PDF_XSTRING
            CALL FUNCTION 'CONVERT_OTF'
              EXPORTING
                format                = 'PDF'
              IMPORTING
                bin_filesize          = l_pdf_fsize
                bin_file              = exp_pdf_xstring
              TABLES
                otf                   = lt_otf_tab
                lines                 = lt_pdf_lines
              EXCEPTIONS
                err_max_linewidth     = 1
                err_format            = 2
                err_conv_not_possible = 3
                OTHERS                = 4.
            IF sy-subrc ne 0.
              CLEAR exp_pdf_xstring.
            ENDIF.
          ENDIF.
        ENDIF.
      ENDIF.
    First you have to determine the smartforms function modules name the wxecute it.

  • How to call particular method in action class from Portlets StrutsContent

    I am developing a web application which uses weblogic portlets and struts. This is what I have for now in the .portlet file.
    +<netuix:strutsContent action="getStudentList" module = "people/students"+
    refreshAction = "getStudentList" reqestAttrpersistence="none"/>
    I want it to change something like this:
    +<netuix:strutsContent action="getStudentList.do?method=allGrads" module = "people/students"+
    refreshAction = "getStudentLis.do?method=allGrads" reqestAttrpersistence="none"/>
    But this is not working. So how can I achieve something like that?
    Thanks
    Edited by: user13634949 on Jun 23, 2011 1:22 PM
    Edited by: user13634949 on Jun 23, 2011 1:22 PM

    No, i dont know how to call other than main methods from other classes
    And one more doubt i have i.e. Like in C can we see the execution of the program like how the code is being compiled step by step and how the value of the variable changes from step to step like(Add Watch).........

  • SAP Cloud Marketing Lead How to Hide the Standard button action

    Hi Experts,
    In Marketing Lead TI screen button action event have 3 options
    1) Convert to Sales Lead
    2) Convert to Opportunity.
    3) Convert to Account or Contact
    I want to hide 2 option 1) Convert to Sales Lead and 2) Convert to Account and Contact from the Action button.
    I have try to enhance the standard BO as shown below.
    and when open the COD_Marketinglead_TI screen then i can not able to see 3 option under Action button.
    Please anyone have idea about how to get these 3 options 1) Convert to Sales Lead 2) Convert to Opportunity. 3) Convert to Account or Contact under Action button.
    Many Thanks,
    Mithun

    Thanks Dan for your reply.
    I have few question
    1) AP.CRM.Global:Lead is Marketing Lead BO or Sales Lead BO? if Not Marketing Lead BO then what is the correct path to extend the Marketing Lead?
    2) I have extend the AP.CRM.Global:Lead BO when we enhance the screen it give the below options and i have selected the highlighted screen is it correct or not ?
    After select the screen and click OK there are 4 screen comes automatically as shown below.
    3) When i Open the COD_MarketingLead.TI screen in UI designer i can able to see this screen as shown below.
    Here in this screen point 1 we can see that its COD_MarketingLead screen but in point 2 Screen Header Label is "Sales Lead" and point 3 under this Action button no 3 option available  1) Convert to Sales Lead 2) Convert to Opportunity. 3) Convert to Account or Contact. But when you open Marketing Lead we can able to see these option under the action event as shown below.
    Help me how to get Marketing Lead Screen with above actions in UI Designer.
    Many Thanks,
    Mithun

  • How to read URL by button action event

    Hi,
    Can some one please show me how to add a ...... I call it URL reader to the action of a button of another class?
    Lets say I have a url reader class and the following code
    public void uRLReader() throws Exception {
             // URL concatenation
             String url1 = "http://";
             String url2 = "";
             String url3 = ".google.com";
             URL google = new URL(url1+url2+url3);
             BufferedReader in = new BufferedReader(
                            new InputStreamReader(
                            google.openStream()));
             String inputLine;
             while ((inputLine = in.readLine()) != null)
                 System.out.println(inputLine);
             in.close();
            }Now I also got another class in the same package "class2", it has a button. Similarly, another class which has a JTextField. Now when some one writes 1 and hit the button I want "1" to get inserted into url in "url2" position. In other words any thing that is entered in the JTextField should be inserted into "url2" position.
    I am not very much familiar with java so this is all I could write. I used a string concatenation to break the url. Can some please show me how do I add this to the button of another class and the button to JTextFiled of another class?
    Thank you

    First of all, change your method so that url2 is an argument of the method:
    public void uRLReader(String url2) throws Exception {and remove the declaration of url2 from the body of the method.
    Then, write and ActionListener class (it could be an anonymous inner class) to read the textfield you want, then invoke uRLReader, passing that text as an argument.
    That's basically it.

  • How to call Function through Soap Action

    Hi all,
    I have a Receiver communication channel in PI that sends data to from the interface to Oracle Webservice.
    At that moment a function should be called with two constant parameters and the third one is the xml with all the data.
    updateExchangeRates("CJV", "connector", ratesXML)
    xml schema:
    Anyone knows if it is possible to call that function in PI soap action and how should I do it?
    I've tested soap action with
    updateExchangeRates("CJV", "connector", list_wrapper)
    and got the error:
    invalid content type for SOAP: TEXT/HTML; HTTP 401 Unauthorized
    Thnaks in advance,
    Regards

    Hi,
    Please refer the below blogs for dynammic soap action
    How to set soap action in soap adapter during configuration when there are multiple operations in a web service?
    Dynamically providing URL and action values to receiver SOAP communication channe
    regards,
    Harish

  • How to call a struts action from a JSF page

    I am working on a small POC that has to do with struts-faces. I need to know how to call a struts ".do" action from a JSF page..
    Sameer Jaffer

    is it not possible to call a action from the faces submit button and/or the navigation?
    This a simple POC using struts-faces exmaples.
    Here is my struts-config and faces-config file.
    <struts-config>
    <data-sources/>
    <form-beans>
      <form-bean name="GetNameForm" type="demo.GetNameForm"/>
    </form-beans>
    <global-exceptions/>
    <global-forwards>
      <forward name="getName" path="/pages/inputname.jsp"/>
    </global-forwards>
    <action-mappings>
      <action name="GetNameForm" path="/greeting" scope="request" type="demo.GreetingAction">
       <forward name="sayhello" path="/pages/greeting.jsp"/>
      </action>
    </action-mappings>
    <controller>
        <set-property property="inputForward" value="true"/>
        <set-property property="processorClass"
                value="org.apache.struts.faces.application.FacesRequestProcessor"/>
    </controller>
    </struts-config>faces-config
    <faces-config>
    <managed-bean>
      <managed-bean-name>calculate</managed-bean-name>
      <managed-bean-class>com.jsftest.Calculate</managed-bean-class>
      <managed-bean-scope>request</managed-bean-scope>
    </managed-bean>
    <managed-bean>
      <managed-bean-name>GetNameForm</managed-bean-name>
      <managed-bean-class>demo.GetNameForm</managed-bean-class>
      <managed-bean-scope>request</managed-bean-scope>
    </managed-bean>
    <navigation-rule>
      <from-view-id>/calculate.jsp</from-view-id>
      <navigation-case>
       <from-outcome>success</from-outcome>
       <to-view-id>/success.jsp</to-view-id>
      </navigation-case>
      <navigation-case>
       <from-outcome>failure</from-outcome>
       <to-view-id>/failure.jsp</to-view-id>
      </navigation-case>
    </navigation-rule>
    <navigation-rule>
      <from-view-id>/inputNameJSF.jsp</from-view-id>
      <navigation-case>
       <to-view-id>/pages/greeting.jsp</to-view-id>
      </navigation-case>
    </navigation-rule>
    </faces-config>in my inputNameJSF.jsp (faces page)
    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
    <%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
    <%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
    <%@ taglib prefix="s" uri="http://struts.apache.org/tags-faces" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Say Hello!!</title>
    </head>
    <body>
    Input Name
    <f:view>
         <h:form >
              <h:inputText value="#{GetNameForm.name}" id = "name" />
              <br>
              <h:commandButton id="submit"  action="/greeting.do" value="   Say Hello!   " />
         </h:form>
    </f:view>
    </body>
    </html>I want to be able to call the struts action invoking the Action method in the that returns the name
    package demo;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import org.apache.struts.action.ActionForm;
    import org.apache.struts.action.ActionForward;
    import org.apache.struts.action.ActionMapping;
    public class GreetingAction extends org.apache.struts.action.Action {
        // Global Forwards
        public static final String GLOBAL_FORWARD_getName = "getName";
        // Local Forwards
        private static final String FORWARD_sayhello = "sayhello";
        public GreetingAction() {
        public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
            String name = ((demo.GetNameForm)form).getName();
            String greeting = "Hello, "+name+"!";
            request.setAttribute("greeting", greeting);
            return mapping.findForward(FORWARD_sayhello);
    }Edited by: sijaffer on Aug 11, 2009 12:03 PM

  • Call an URL on Button action

    How to call an URL on action of Button

    Hi Poonam,
    Use this code inside the action of the Button.
    String linkToBeOpen = "https://www.sdn.sap.com/irj/sdn";
    IWDWindow window =
    wdComponentAPI.getWindowManager().createNonModalExternalWindow(
                        linkToBeOpen,
                        "My window title");
    window.show();
    Regards,
    Mithu

  • Jsf command button action bean method call from text fox

    Hai Friends,
    I want call the command button action bean method from textbox entry time.
    because i develop login form that time user enter user name and password if he press enter from password component that time i want to use the commandbutton action

    What's the problem exactly? Won't the commandbutton action be invoked when you press [enter] in the textbox?

  • How to call method of Component A in Component B

    Hi Friends,
    I want to use Method A of Component A in Component B. Can some one tell me how to call method A on action of a button in component B.
    Regards
    Sankar

    Hi,
      DATA lo_cmp_usage TYPE REF TO if_wd_component_usage.
      lo_cmp_usage =   wd_this->wd_cpuse_method( ).
      IF lo_cmp_usage->has_active_component( ) IS INITIAL.
        lo_cmp_usage->create_component( ).
      ENDIF.
    DATA lo_interfacecontroller TYPE REF TO yiwci_sg_method .
    lo_interfacecontroller =   wd_this->wd_cpifc_method( ).
      lo_interfacecontroller->execute_method(
           i was able to do the above process successfully but how to bind data to the node of component 2.
    In the component 1 : method A i defiend to get records upto 25 rows. now i tried using same method . but how to bind data using this method
    Regards
    sankar

  • Button action listener in jsp

    Hi,
    I want to know, how we can do the button action listener in jsp pages. i have 3 buttons in same jsp page. each button action have separate taks in the same page. how to do this. please suggest me.
    Regards
    Chinna

    Or, I think you have to use JSF (Java Server Faces) to use action Listeners.
    visit this link:
    http://72.5.124.55/javaee/5/docs/tutorial/doc/JSFDevelop5.html

  • PopUp Dialog default button action

    Hi All ,
    I am Using the JDeveloper 11.1.2.0
    in the pop up Dialog Yes No Cancle in this ADF Default Action Showing Yes only in my Senario need to No button .please Help me How to change the Default Button Action .
    thanks ,
    Ala .
    Edited by: ARm on Aug 31, 2012 3:19 AM

    In my way Dialog mesage Using the 'Yes' ,'No' ,'Cancle' in three button in ADF Default Focus setting the Yes Button only .But I need to Set the Default Focus Is 'No' button
    Edited by: ARm on Aug 31, 2012 4:14 AM

  • Remote call to a button

    Is it possible to call button click event remotely from a change in the text input?
            <![CDATA[
                import spark.events.TextOperationEvent;
                import mx.controls.Alert
                protected function button1_clickHandler(event:MouseEvent):void
                    Alert.show ("Hello World")
                protected function textarea1_changeHandler(event:TextOperationEvent):void
                    // HOW TO CALL THE ABOVE BUTTON CLICK FROM HERE?
            ]]>
        </fx:Script>
    Thank you,
    GT

    *This works! *
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://
    ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/halo"
    minWidth="1024" minHeight="768">
    <fx:Script>
    <![CDATA[
    import spark.events.TextOperationEvent;
    import mx.controls.Alert
    protected function button1_clickHandler(event:MouseEvent):void
    Alert.show ("Hello World")
    protected function textarea1_changeHandler(event:TextOperationEvent):void
    // Call the above button click
    button1.dispatchEvent(new MouseEvent(MouseEvent.CLICK));
    ]]>
    </fx:Script>
    <s:Button x="155" y="138" label="Button"
    click="button1_clickHandler(event)" id="button1"/>
    <s:TextArea x="101" y="184" change="textarea1_changeHandler(event)"/>
    </s:Application

  • How to use a back button in action pages?

    Hi all,
    I have created a user login page,home page and user profile page.
    If the user provide correct username and password in the login page he will be taken to home page.
    In the home page he will be having his username and a link to view his profile.
    When the user click on the link "My Profile(user profile)" he wil be taken to that page.
    In my profile page the user can edit only his firstname,lastname and password .
    On the user profile page i have placed a Back Button(using javascript: on onclick event i have used history.back()) to go back to home page after editing his profile.
    If the user edit his profile for n-number of times then atlast if he wants to go back to home page-then he wil cilck the back button.
    Now the problem occurs like the back button not going to home page and it simply going back with the edited history.
    How to use a back button in action pages; without repeating the actions done on the page; how to redirect to the users home page?
    I simply used the hyperlink in userprofile page to go to home page but when i click onit it is displaying blank home page.
    I'm using hibernate orm mapping; cflogin and cflogout tags.
    Any help appreciated,
    Chandru P

    chandrup wrote:
    Hi Dan,
    Dan Bracuk wrote:
    Use an anchor tag.
    I simply used the hyperlink(<a href="home.cfm">Home</a>) in userprofile page to go to home page but when i click onit it is displaying blank home page.
    I can see your problem. You may use javascript:history.go(-1), javascript:history.go(-2), ..., to go back one page, two pages, and so on. But how does one go back an arbitrary n pages? The link href="home.cfm" isn't a good solution for the browser. It makes a new call to the server which, as you may have discovered, can overwrite all the changes made at the browser. 
    You should use the Javascript variable history.length. If you open n links in succession, starting from page0.cfm, then the browser holds the value of history.length as n. So, experiment with something like
    <a href="javascript:history.go(-history.length)">Go home</a>
    or
    <a href="javascript:history.go(-history.length+1)">Go home</a>

Maybe you are looking for

  • Unable to install Creative Cloud in Windows 8.1

    I've also tryed installing Adobe Applications Manager as part of a potential fix, however get the same to responses. One is that some of the files can;t be opened due to sucurity issues The other tells me I need to run it as an Administrator, which I

  • FEP 2010 with Reporting Services in Clsster

    1) It¡s not supported reporting services clustering (2 nodes), but i can install reporting in both nodes sharing report database. This ReportDatabase is installed in a instance (Instance1) onto the same cluster  2) I've create teow SCCM Reportin serv

  • Acrobat 9: Editing Bookmark Actions Globally

    Acrobat 9 Pro; MacBook Pro I'm working with Bookmarks, and I want to change the 'fit page' to 'fit width'. I'm aware that I am able to right click on a bookmark I have created to change the action properties for each individual bookmark, but is this

  • Remove header by XSLT Mapping

    Hello Experts, I have an incoming XML coming through HTTP protocol which consiste of Header and the data is like below. <?xml version="1.0" encoding="utf-8"?> <soapenv:Envelope xsi:schemaLocation="http://schemas.xmlsoap.org/soap/envelope/ <?xml versi

  • More than maximum 5 filtered album lists trying to register. This will fail,Why i am getting this error when i pick video from Photo library.

    I am able to pick 4 videos from the Photo library in my iPhoneAPP but when i try to pick 5th one it throws an error: "More than maximum 5 filtered album lists trying to register. This will fail,Why i am getting this error when i pick video from Photo