Down excel file in managed bean, no response?

Hi,
I used JDev 11.1.2
I want to download an excel file by click one button, and I want to implement this function in the managed bean, but after I click the button, no file download, and just refresh the page.
JSP snippet code:
<af:commandToolbarButton text="View Report" id="ctb1" actionListener="#{reportBean.viewReport}">
Method of managed bean(not show exception process ):
public void viewReport(ActionEvent actionEvent) {
// some validation here
FacesContext facesContext = FacesContext.getCurrentInstance();
ExternalContext externalContext = facesContext.getExternalContext();
HttpServletResponse response = (HttpServletResponse)externalContext.getResponse();
BufferedInputStream input = null;
BufferedOutputStream output = null;
String filePath = "c:/a.xls";
File file = new File(filePath);
try {
input = new BufferedInputStream(new FileInputStream(file), 1024);
response.reset();
response.setHeader("Content-Disposition", "attachment; filename=\"" + filePath + "\"");
response.setContentType("application/ms-excel");
output = new BufferedOutputStream(response.getOutputStream(), 10240);
byte[] buffer = new byte[10240];
int length;
while ((length = input.read(buffer)) > 0) {
output.write(buffer, 0, length);
output.flush();
}catch(Exception e){
} finally {
//close output and input
facesContext.responseComplete();
BTW: I can implement the download function by using fileDownloadActionListener, but our requirement needs to validate some information before download(such as status validation, file existence), and I add those validation to fileDownloadActionListener method, but seems no useful.
Any advices?
Thanks,
zeroxin

Timo,
I used the solution mentioned in your blog, and it really can enter into fileDownloadActionListener method, but still not display download file dialog, just seems no useful, I test it using Firefox4 and IE9, the same result.
JSP snippet code:
<af:commandToolbarButton text="View Report" id="ctb1"
actionListener="#{reportBean.viewReport}"/>
<af:commandToolbarButton text="Export..." id="ctb2" visible="false"
binding="#{reportBean.exportReportButton}">
<af:fileDownloadActionListener contentType="application/vnd.ms-excel" filename="Report.xls" method="#{reportBean.reportFileDownload}" />
</af:commandToolbarButton>
Bean method(Snippet code)
private RichCommandToolbarButton exportReportButton;
public void viewReport(ActionEvent actionEvent) {
// validate code here
ActionEvent ae = new ActionEvent(exportReportButton);
ae.queue();
public void reportFileDownload(FacesContext facesContext, java.io.OutputStream outputStream) throws Exception {
DCIteratorBinding dciter = (DCIteratorBinding)getBindings().get("SReportView1Iterator");
Object outputLoc = dciter.getCurrentRow().getAttribute("OutputLoc");
BufferedInputStream input = null;
try {
input = new BufferedInputStream(new FileInputStream((String)outputLoc), 1024);
byte[] buf = new byte[1024];
int count=0;
while ((count = input.read(buf)) >= 0) {
outputStream.write(buf, 0, count);
input.close();
outputStream.flush();
outputStream.close();
} catch (Exception e) {
e.printStackTrace();
thanks,
zeroxin

Similar Messages

  • Customize faces managed bean loading in ADF ( in JDev 11.1.2.1)

    Hi there,
    I am trying to use Spring with ADF. The intention is to use Spring context managed beans to use as backing beans in ADF.
    I created a simple bean class. Created Data control based on it and tried to look at factoryClass, which is responsible for instantiating the bean class, oracle.adf.model.adapter.DataControlFactoryImpl.
    Where in ADF it creates the instances of backing beans? What is the best approach to solve this puzzle?
    With regards,
    - Manoj
    ----------

    Manoj
    I don't think your version of Jdeveloper supports CDI beans. It is my understanding that CDI beans will be supported next year in Jdeveloper.
    So for now, if you are using Jdeveloper, you are stuck with only JSF managed beans that need to go in the faces-config.xml files or managed beans annotations .....
    Yesh

  • Sharing managed beans

    Ok �. This is driving me nuts. I�m relatively new to JSF (2 week profession &#61514; ), and I may not have grasped the concept of Managed Beans. The problem is detailed below:
    Development Environment:
    WebSphere Studio 1.5.2 � This creates a backing bean for each respective JSP page that is created, including setters and getters for each managed bean. The two backing beans I�ll talk about whilst specifying the problem are stored in session scope.
    The Problem:
    I can�t share data between two pages. On the first page I create managed bean in session scope and make this reusable (let�s say person). On the second page I add the reusable Person bean. The resulting entry in the faces.config file is:
    <managed-bean>
    <managed-bean-name>person</managed-bean-name>
    <managed-bean-class>ibm.wlrs.model.PersonVO</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
    </managed-bean>
    Both pages however maintain an independent copy of the managed bean instead of JSF maintaining a shared one. I�ve looked at several documents, and too me it seems as though this bean should be shared between the two pages�� HELP!
    On the first page I create a new Person object with the relevant details. This person is created upon a button click added to the backing beans managed bean.
    //Page 1 add person from button click
    public String doLnkInsertEntryAction() {
    System.out.println("Insert");
         Person p1 = new Person();
         p1.setName("Duncan");
         setPerson(p1);
    System.out.println(getPerson().getName());
    //This prints the person�s name
         return "insert";
    I have also setup a page load event to test that the person object stays in the session
    //Page 1 page load
    public void onPageLoadBegin(FacesContext facescontext) {
         System.out.println(getPerson().getName());
    //Prints the person name that was added during the button click event� on Postback or even after going from page1 � page2 and back again.
    On Page two if I try and access the managedBean contained within the session, the �name� will always print out as null.
    //Page 2 page load
    public void onPageLoadBegin(FacesContext facescontext) {
         System.out.println(getPerson().getName());
    If I add an any information to the managed bean on page two i.e. person.setName(�Another�), this data stays in the session, only for page two though.
    Is this how JSF is supposed to work? I though if a managed bean was stored in the session, the object (and it�s data) should be reusable between pages.
    Sorry for the long post�. I though it would be worth while to try and be as specific as possible.
    Thanks
    Duncan

    And� I still don�t understand why two independent
    copies are kept by the pages�Because YOU create the copy.
    JSF (exactly speaking the default VariableResolver) at first searches for an attribute in
    request scope, then session scope, then application scope with the matching name.
    Only when no attribute is found, it examines faces-config.xml, creates an instance of
    the specified class, and stores the instance in the specified scope.
    It never creates two instances with a same name.
    I.E� On Page 1�. Several Person objects are stored in
    a DataTable. The Vector containing the Person objects
    is a managed bean bound to this data table. Upon a
    button click I require to extract a person from the
    data table and place it into the managed bean session
    scope for person. Humm, I guess you misunderstand what the managed bean is.
    h:dataTable has the "var" attribute which is used to refer each Person object.
    JSF implements the "var" variable as a request scope attribute and re-binds it
    to each Person object in the iteration. So, it is not a managed bean but is simply an attribute.
    The entry of faces-config.xml is not required.
    To know how to pass the selected row data to the next page, please see some
    example using h:dataTable and javax.faces.model.DataModel.

  • How to automate managed beans.xml update

    I am using JSC 2.0 ea and am trying to add a "loginBean" based on the example in java studio creator field guide. The process explained in the book, ie right-click "source package" add java package, right-click newly created package and add "managed bean" - this does not exist in jsc 2.0, so when you add a class file the managed-beans.xml file is not updated - is their an automated process to add a managed bean in jsc 2.0?

    Hi,
    Please post messages related to Creator 2 EA at the feedbacks programs portal. The URL is:
    https://feedbackprograms.sun.com/login.html
    Thanks,
    Creator Team

  • Create key mapping using import manager for lookup table FROM EXCEL file

    hello,
    i would like create key mapping while importing the values via excel file.
    the source file containing the key, but how do i map it to the lookup table?
    the properties of the table has enable the creation of mapping key. but during the mapping in import manager, i cant find any way to map the key mapping..
    eg
    lookup table contains:
    Material Group
    Code
    excel file contain
    MatGroup1  Code   System
    Thanks!
    Shanti

    Hi Shanti,
    Assuming you have already defined below listed points
    1)  Key Mapping "Yes" to your lookup table in MDM Console
    2) Created a New Remote System in MDM console
    3) proper rights for your account for updating the remote key values in to data manager through import manager.
    Your sample file can have Material Group and Code alone which can be exported from Data Manager by File-> Export To -> Excel, if you have  data already in Data Manager.
    Open your sample file through Import Manager by selecting  the remote system for which you want to import the Key mapping.
    (Do Not select MDM as Remote System, which do not allows you to maintain key mapping values) and also the file type as Excel
    Now select your Soruce and Destination tables, under the destination fields you will be seeing a new field called [Remote Key]
    Map you source and destination fields correspondingly and Clone your source field code by right clicking on code in the source hierarchy and map it to Remote Key if you want the code to be in the remote key values.
    And in the matching criteria select destination field code as a Matching field and change the default import action to Update NULL fields or UPDATED MAPPED FIELDS as required,
    After sucessfull import you can check the Remote Key values in Data Manager.
    Hope this helps
    Thanks
    Sowseel

  • I am unable to save my form responses as a pdf or excel file.

    I am unable to save my form responses as a pdf or excel file.  The error message states: Acrobat.com could not save this file. The file might be open in another application and cannot be overwritten.

    Did saving ever work or did it fail the first time you tried?
    Have you tried to save to multiple locations?  Maybe it has something to do with permissions on the directory you are trying to save to.
    Have you tried saving something from another web site to the same location?  Try creating and saving a file in/from https://workspaces.acrobat.com/app.html#o and see if that has the same result.
    Thanks,
    Josh

  • [Load data from excel file [1]] Error: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The AcquireConnection method call to the connection manager "Excel Connection Manager" failed with error code 0xC0202009. There may be error messa

    Error
    [Load data from excel file [1]] Error: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.  The AcquireConnection method call to the connection manager "Excel Connection Manager" failed with error code 0xC0202009.  There
    may be error message
    I am using BIDS Microsoft Visual Studio 2008 and running the package to load the data from excel .
    My machine has 32 bit excel hence have set property to RUN64BITRUNTIME AS FALSE.
    But the error still occurs .
    I checked on Google and  many have used Delay validation property at Data flow task level to true but even using it at both excel connection manager and DFT level it doesnt work
    Mudassar

    Thats my connection string
    Provider=Microsoft.ACE.OLEDB.12.0;Data Source=E:\SrcData\Feeds\Utilization.xlsx;Extended Properties="Excel 12.0;HDR=NO";
    Excel 2010 installed and its 32 bit edition
    Are you referring to install this component -AccessDatabaseEngine_x64.exe?
    http://www.microsoft.com/en-us/download/details.aspx?id=13255
    Mudassar
    You can try an OLEDB provider in that case
    see
    http://dataintegrity.wordpress.com/2009/10/16/xlsx/
    you might need to download and install ms access redistributable
    http://www.microsoft.com/en-in/download/details.aspx?id=13255
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Password Protection to the Excel File that was down loaded

    Hi Friends,
    I had an requirement regarding the excel file.whenever the excel file is down loaded on the desktop it should be password protected.i..e, no one should be able to open the file unless they have the password.

    REPORT ZWMI_TRUCK_DOWNLOAD no standard page heading.
    ======================================================================
    Program Name : ZWMI_TRUCK_DOWNLOAD                                   *
    Description  : This Program is used to get all truck load status     *
                   and download into XLS File and fields are Route #,    *
                   Dispatch time ,Closing time ,Scan Details.            *
    Author       : Seshu                                                 *
    Date         : 02/15/2007                                            *
    MODIFICATION HISTORY                                                 *
    DATE    | AUTHOR   | CHANGE #   | DESCRIPTION OF MODIFICATION        *
    --|||--
    02/15/07| Seshu    | DEVK922058 | Initial                            *
    02/20/07| Seshu    | DEVK922068 | Changed the name as per Naming     *
                                      Convention                         *
    03/14/07| Seshu    | DEVK922126 | Included date as Range             *
    ======================================================================
    Tables
    tables : zsdcarton,
             ztruck,
             ztruckstatus.
    Constants
    constants: c_werks(4) type c value '1000'.
    Internal table for Ztruck
    data : begin of i_ztruck occurs 0,
           werks  like ztruck-werks," Plant
           vdatu like ztruck-vdatu, " Delivery date
           ZZTRKNO like ztruck-ZZTRKNO, " Route #
           ZZSHIPTIME like ztruck-ZZSHIPTIME, " Dispatch time
           ZCLTIME like ztruck-ZCLTIME, " Truck close time
           end of i_ztruck.
    Internal table for ZSDCARTON
    data : begin of i_zsdcarton occurs 0,
           lateflag like zsdcarton-lateflag,
           zzslot like zsdcarton-zzslot,
           status like zsdcarton-status,
           end of i_zsdcarton.
    Internal table for Final output
    data : begin of i_final occurs 0,
           vdatu like ztruck-vdatu, " Delivery Date
           ZZTRKNO like ztruck-ZZTRKNO, " Route #
           ZZSHIPTIME like ztruck-ZZSHIPTIME, " Dispatch time
           ZCLTIME like ztruck-ZCLTIME, " Truck close time
           load_compl_c(5)     type n , " Load Complted Time
           status_s_total(5) type n,  " No Scan/Load
           status_l_total(5) type n,  " Late Scan
           end of i_final.
    Internal Table XLS File Header
    DATA: BEGIN OF i_head OCCURS 0,
          field(30) TYPE c,
          END OF i_head.
    Variables
      status couter
    data: status_total(5)   type n,
      no scan / no load
          status_s(3)       type n,
          status_s_total(5) type n,
      good
          status_g(3)       type n,
          status_g_total(5) type n,
      late
          status_l(3)       type n,
          status_l_total(5) type n,
      manual
          status_m(3)       type n,
          status_m_total(5) type n,
      alternative
          status_a(3)       type n,
          status_a_total(5) type n.
    S E L E C T I O N    -   S C R E E N *************************
    selection-screen : begin of block blk with frame title text-001.
    select-options : p_vdatu for zsdcarton-vdatu obligatory
                    default sy-datum.
    selection-screen : end of block blk .
    S T A R T  -  O F  - S E L E C T I O N  ******************
    start-of-selection.
    Get the data from ZTRUCK and
      perform get_data_tables.
    Down load the data into XLS file
      perform get_download.
    S T A R T  -  O F  - S E L E C T I O N  ******************
    end-of-selection.
    *&      Form  get_data_tables
    FORM get_data_tables.
      data : lv_time like sy-uzeit.
      select werks
             vdatu
             zztrkno
             zzshiptime
             zcltime from ztruck into table i_ztruck
                                 where werks = c_werks
                                 and   vdatu in p_vdatu.
      if sy-subrc ne 0.
        message e000(zwave) with 'No data found for given current date'.
      endif.
      loop at i_ztruck.
        refresh : i_zsdcarton.
        clear :   i_zsdcarton,
                  lv_time.
    Get the Scan Status for Every route
        select lateflag zzslot status from zsdcarton into table i_zsdcarton
                               where werks =  i_ztruck-werks
                               and   vdatu = i_ztruck-vdatu
                               and   zztrkno = i_ztruck-zztrkno.
        if sy-subrc eq 0.
          loop at i_zsdcarton.
            case  i_zsdcarton-lateflag.
    late cartons
              when  'X'.
    late and never loaded
                if i_zsdcarton-zzslot = space.
                  add 1 to status_s.
                else.
                  add 1 to status_l.
                endif.
    all other exceptions
              when  space.
    check if scanned
                case i_zsdcarton-zzslot.
    good scan
                  when 'S'.
                    add 1 to status_g.
    never scanned
                  when space.
                    if i_zsdcarton-status = space.
    no scan
                      add 1 to status_s.
                    else.
    no load -> no scan
                      add 1 to status_s.
                    endif.
    manual scanned
                  when 'M'.
                    if i_zsdcarton-status = 'M'.
                      add 1 to status_g.
                    elseif i_zsdcarton-status = 'E'.
    exceprtion -> manual
                      add 1 to status_g.
                    endif.
                endcase.
            endcase.
    add totals
            add status_g   to  status_g_total.
          Late Scan
            add status_l   to  status_l_total.
            add status_a   to  status_a_total.
          No Scan and Load
            add status_s   to  status_s_total.
            clear : status_g,
                    status_l,
                    status_a,
                    status_s.
          endloop.
        else.
          continue.
        endif.
    Get the Load Complete Time
        select single uzeit from ztruckstatus into lv_time
                                       where   werks = i_ztruck-werks
                                       and     lgnum = '100'
                                       and     vdatu = i_ztruck-vdatu
                                       and     zztrkno = i_ztruck-zztrkno
                                       and     tstat = 'L'.
        if sy-subrc eq 0.
          write: lv_time(5)
                  to i_final-load_compl_c     using edit mask '__:__'.
        endif.
    Delivery Date
        i_final-vdatu = i_ztruck-vdatu.
    Route #
        i_final-zztrkno = i_ztruck-zztrkno.
    Dispach time
        i_final-zzshiptime = i_ztruck-zzshiptime.
    Truck Close Time
        i_final-zcltime = i_ztruck-zcltime.
    No Scan/ Load
        i_final-status_s_total = status_s_total .
    Late Scan
        i_final-status_l_total = status_l_total.
        append i_final.
        clear : status_g_total,
                status_l_total,
                status_a_total,
                status_s_total,
                lv_time,
                i_final.
      endloop.
    ENDFORM.                    " get_data_tables
    *&      Form  get_download
          Download the data
    FORM get_download.
      data : lv_file like rlgrap-filename,
             lv_date(8) type c.
      lv_date = sy-datum.
      concatenate 'C:/Truckload'  lv_date into lv_file.
    Fill the Header Values
    Delivery Date
      i_head-field = 'Delivery Date'.
      append i_head.
    Route #
      i_head-field = 'Route'.
      APPEND i_head.
    Dispatch Time
      i_head-field = 'Dispatch Time'.
      append i_head.
    Closing Time
      i_head-field = 'Closing Time'.
      append i_head.
    Load Completed Time
      i_head-field = 'Load Completed Time'.
      append i_head.
    No Scan/Load
      i_head-field = 'No Scan/Load'.
      append i_head.
    Late Scan
      i_head-field = 'Late Scan'.
      append i_head.
      CALL FUNCTION 'EXCEL_OLE_STANDARD_DAT'
        EXPORTING
          FILE_NAME                       = lv_file
      CREATE_PIVOT                    = 0
          DATA_SHEET_NAME                 = 'TruckLoad'
      PIVOT_SHEET_NAME                = ' '
      PASSWORD                        = ' '
      PASSWORD_OPTION                 = 0
       TABLES
      PIVOT_FIELD_TAB                 =
          DATA_TAB                        = i_final
          FIELDNAMES                      = i_head
       EXCEPTIONS
         FILE_NOT_EXIST                  = 1
         FILENAME_EXPECTED               = 2
         COMMUNICATION_ERROR             = 3
         OLE_OBJECT_METHOD_ERROR         = 4
         OLE_OBJECT_PROPERTY_ERROR       = 5
         INVALID_FILENAME                = 6
         INVALID_PIVOT_FIELDS            = 7
         DOWNLOAD_PROBLEM                = 8
         OTHERS                          = 9
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    " get_download
    In function module you have option like password protect..

  • The Managed Bean in the faces-config.xml File

    I am still very new to JSF. I am confused about the managed bean.
    For example, I have a button in my web page. A click on this button invokes an action; say, ListAction.java.
    In this ListAction class, I instantiate a business delegate; say, ListPersonnel.java and call a method in this business delegate to return an ArrayList: personnel. Of course, this business delegate goes through facade, DAO, etc. to populate the ArrayList. This ArrayList is a collecation of a JavaBean called PersonnelBean that gets and sets a number of personnel information; such as ssn, name, etc.
    Upon this ArrayList is successfully populated and received by the ListAction class, I am going to display a web page with a table. In JSF, it is <h:dataTable ...>.
    My questions are regarding the managed bean in the faces-config.xml file.
    1. Which one is my <managed-bean-class>? packageName.ListAction? or packageName.PersonnelBean? or something else?
    2. What should be my <managed-bean-name>? I guess that I can give a name I like. Is it right? What about xyz?
    3. Then, how do I specify the "value" attribute of my <h:dataTable ...> tag when I display a web page to show the data table? Is it correct to specify value="#{xyz.personnel}"? What is the correct specification if it is wrong?
    4. I guess that I can give any name to the "var" attribute in the <h:dataTable ...> tag. Is it right?

    1. Which one is my <managed-bean-class>?
    packageName.ListAction? or
    packageName.PersonnelBean? or something else?ListAction
    2. What should be my <managed-bean-name>? I guess
    that I can give a name I like. Is it right? What
    about xyz?Anything you like. xyz is OK.
    3. Then, how do I specify the "value" attribute of my
    <h:dataTable ...> tag when I display a web page to
    show the data table? Is it correct to specify
    value="#{xyz.personnel}"? What is the correct
    specification if it is wrong?xyz.personnel is OK assuming that ListAction class has a public
    method getPersonnel() which returns the ArrayList of PersonnellBeans.
    4. I guess that I can give any name to the "var"
    attribute in the <h:dataTable ...> tag. Is it right?Yes, you can give any name you like.

  • Readily available bean in PI 7.1 to upload excel file

    Hi,
    Is there any readily available bean to upload excel file thru File adapter to PI. working on PI7.1 version. Please let me know if any.
    Thanks,
    Jogula Ramesh

    For developing Adapter module for same, please check the links below:
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c0b39e65-981e-2b10-1c9c-fc3f8e6747fa
    http://wiki.sdn.sap.com/wiki/display/stage/AdapterModuleToReadExcelFilewithMultipleRowsandMultiple+Columns

  • How to preform the auto extraction of the Excel file in Import Manager

    Hi Experts,
    I was performing an automatic import using the Import Manager.
    In the port, i defined the map name, file type and the automatic execution. But the import manager could not perform the mapping correctly after i putted the Excel file into the ready folder. And the error message in the exception log was "MS Excel is not supported on x64 platform." But when I imported the file in import manager manually, nothing wrong was happend duing this processing.
    How could I perform a correctly mapping in the Import Manager.

    Hi Wendrin,
    This is a limitation . The MDIS on 64-bit Windows cannot import from Excel . However manual imports are supported (as this doesnt need MDIS).
    XML is the best suited format for automating imports in MDM. Suggest you switch over to xml and setup auto import.
    Regards,
    Vinay M.S

  • Excel File Management Apache POI HSSF vs. jxl jar

    I've been reviewing Java technologies for managing Excel files, and I'm a little confused about the differences between Apache's POI HSSF implementation and JExcelApi, and utimately what technology it makes sense to use.
    They are both open source, although POI is backed by Apache, where JExcelApi seems to be open source developed by Andy Khan. It seem Apache has a little more weight, therefore may be a better option.
    Can someone who has exposure to these technologies please provide me with some insight.
    Thanks.

    Hi
    Thanks for your reply,
    Now I hav used an alternate approach of using Apache POI.
    But.......
    I have created simple table in jsp and set content type to
    <%@ page contentType="application/vnd.ms-excel" %>
    when i navigate to this jsp it is getting displayed in excel format.
    I wish if user clicks on to navigate for this jsp, he must get an option to either open, save or cancel the jsp.
    Then on selecting save a dialogue gets appeared where he can select path and file name.
    Please comment.
    Thanks.

  • Excel File Download and Drop downs at Column Level

    Hi All,
    I am able to download the excel file, but I want to include dropdowns for each column. So that using those values user can add new records using the drop down list values.
    I am thinking it is not possible. Can some one validate me..?
    I have another approach.
    I will download masterdata and the Filedata to the excel and later i will create the relation to show the listbox. But i am not able to download(add the tab) to the existing Excel file. In short is it possible download the multiple files into a single excel file, with different tabs.
    Thanks and Regards
    Vijay

    Hello,
    As you wanted to include dropdowns for each column, it is possible in two ways.
    Way1: Statically
    Create a View element with type Dropdown by key as one of the table column -->bind the property 'Selected Key' to the required attribute(Since attribute type will be specified to be the data element and within domain can have Fixed values --> The table column would be automatically displayed with dropdown entries.
    Way2: Dynamically
    In the WDDOINIT method of that view where you have dropdownkey element has located -->Write the following code
    DATA:    lo_node_info             TYPE REF TO    if_wd_context_node_info.
      lo_node_info->set_attribute_value_set(
        EXPORTING name      = 'Attribute_Name'
                  value_set = lt_value_set ).
    lt_value_set shall be populated with the data that you wanted to display in the dropdown.
    Thanks,
    Bharath.K

  • Managed bean in both adfc-config.xml and faces-config.xml file

    hi,
    i can see that it's possible to declare managed bean in both adfc-config.xml and faces-config.xml file.
    is there any difference? which one is recommended?
    read here - http://www.jaypillai.com/tag/adf/
    but still not clear.
    thanks.

    Hi.
    As you know ADF is a framework based on JSF.
    In faces-config.xml you define general application manage beans. It offers you define manage beans for all application using JSF default scopes (application, session, request).
    In adfc-config.xml you define general application manage beans using ADF Scopes. It means that you can use JSF default ones including "view, pageFlow and backing".
    My recommendation is use only one point entry for your general manage beans. Use adfc-config.xml because allow you to use more scopes.
    Regards.

  • Creating a drop down list and linking it to Excel files

    How to create a drop down list and when i select any row in the dropdown list, it must open designated MS- Excel file? Can anyone help me in this with an example code?
    Thanks
    Anu

    Try this in 7.0 format.
    Attachments:
    Listbox for excel files.vi ‏15 KB

Maybe you are looking for

  • Can't open CC apps on second mac

    Hi I'm having problems with my CC apps. I've tried contacting support twice but so far no solution has been offered. Basically whenever I try opening any CC app on my secondary mac the application manager pops up and says "Sign in required" and then

  • Unsupported Data Type (migration from Access 2000)

    Hi, I'm trying to convert an MS Access 2000 database, which contains a table with 2 'Binary' data type columns. The OMWB does not seem to know this Data Type, and the GUI does not allow me to add it. Is there any other way to add this Data Type ?? I

  • How do I purchase & download My Wish List?

    How do I purchase & download My Wish List?

  • InDesign line-work exporting

    Hello, I'm currently working on my student architecture portfolio through InDesign CC. Several sheets contain line-work PDFs from CAD/Illustrator file links. When exported, the lines become thick and muddy. Any advise on how to keep line weights thin

  • Script total in form

    Hi, Iam using standard print program for cheque prinitng, now i want to get total into one variable , how to do it in form. Example: &'$'REGUD-WRBTR(C)&,,&'$'REGUD-SWABZ(C)&,,&'$'REGUD-SWRBT(C)&. I want total of SWABZ AND  SWRBT into one variable pls