How to create two respone for one request

Hi
is there any way for us to create two response for one request
the scenario is as below
1. user click on update button for particular record in the datatable (
after its get updated and status get updated = 'UPDATED' it will remove the object from ObjectListDataProvider and clear the tablePhaseListener ).
2. After it gets updated successfuly , i want to prompt the user with generateExcel function which using response.getOutputStream() using Apache POI.
How can we combine 1 and 2 together
Here what i have tried and didnt work
1. i tried to put the generateExcel function in destroy() method after page is rendered but it gives me Exception
2. i tried to put the generateExcel function in prerender() method
but the page will only execute the generateExcel function
- the data still get updated to the database but it doesnt refresh the page ( i meant the removing object and tablephaseListener.clear() doesnt work )
3 . i tried to put generateExcel Function after it process the data
public String updateData()
       //update data
       if(success){
            // prompt user to save excell sheet
        return null;
     }This one also doesnt work and gives the same behaviour as number 2
The Prompt to save excel sheet still gets popped up
but the page just doesnt get refreshed
Thanks
is anybody know the workaround?

yea i did set some alert message and clear the table by calling
provider.removeRow and commitChanges
it just doesnt reflected in the page that we see
by actually is already removing the row from the provider
Thanks

Similar Messages

  • Can we create two Filters for one cube

    Hi all,
    I created two filters for one cube (in 11v), I assigned this filters to one user in shared services , so which filter work,
    I think ,We have to assign only one filter for one user , please i need clarification....
    Thanks
    Edited by: user98631 on 12 mars 2010 05:13

    You can create many filters for one cube. I usually associate one group per filter and a user can have one or more groups assigned to them. Can't remember what happens when a user has access to conflicting filters (i.e. the order of preference). It is in the DBAG I am sure though.

  • Creating two users for one desktop Address Book

    I apologize for posting this more than once but I haven't received a response and I think perhaps the first post was not in the right place.
    Why is it not easier to create two Groups under the common AB rather than creating two users and exporting/importing files? I read an earlier question from someone who needed two ABs for two users but didn't want to do two Groups yet it seems so easy to do.
    I created a Group called 'Dedo'; highlighted, dragged and dropped, the entire All listing in AB. I then edited out the names I don't need by Remove From Group (under AB, Edit). The Group-edited names still remain in the ALL listing on the desktop AB. I then synced only the selected groups I wanted to my iPhone, including 'Dedo'. It created a new All Contacts and all the groups I selected.
    I can create a second group called 'Speedo' for the other user, drag & drop All from the desktop AB, and they can edit from 'Speedo' the names they don't want, and sync their groups to their iPhone. Again, the All Contacts are still intact on the desktop AB for reference to info we might want occasionally but don't need on our phones.
    So .............. what's the downside to what otherwise seems like an easy fix? What am I not seeing?
    Thanks for any insight I'm missing.

    No one responded. However, dividing the names of interest to each of us into two groups seems to be working well. We sync the particular group we want to our individual iPhone and don't bear the burden of having many, many names we don't want in our own personal contacts.

  • How to create "package name" for transport request

    Hi experts
    I am trying to create transport request for infopackage/data source/dtp etc...
    but system is asking package name in object directory entery.
    Could you pl. share the information step by step, how to create the "package name"
    Thanks in advance and you can get valuble points pl.
    Chandu

    Hi,
    Go to transaction SE21 and give the package name as ZAPO or any thing starts with Z.
    click on create button.
    give a short description
    in the Package properties block- allowed object types list box - select No restrictions.
    in the transport attributes block- specify the transport layer
    give software component as HOME
    select the check box for changes recorded.
    save the package.
    or
    Go to SE80
    select package from the list box
    give your package name and hit enter button
    the popup asks you for input.
    give the appropriate values and press create button.
    Note: You should be registered as a developer in the system where you are creating the package.
    Hope this solves your problem, Good luck
    Srini

  • Two invoices for one sales order

    I want to create two invoices for one sales order
    Scenario is like to create sales order for value of 100 $, and I want to send order reference billing after saving the sales order for 10% of order amount
    I would say 10% of 100 $
    And after delivery I want to issue a invoice for 90 %( rest of the amount) which is delivery relevant invoice.
    Both invoices will be relevant of accounting.
    Would any body suggest this, how it would be mapped it in to SAP.

    Hi Suresh,
    It is possible in Partial billing. Maintain the Billing plan and create a plan with the inputs as u specified.
    Go to IMG-SD-Billing-Billing plan.   Do ur own configuration for Billing plan.
    Now in Sales document creation mode....header details-Billing plan, U block the billing schedules and as per ur requirement , remove the billing block and create billing document.
    If u configured Account detrmination procedure, U wld get the accounting document wrt billing document.
    Hope this wld help U.
    Regards,
    Praveen

  • Subtype creating two indexes for Profile

    Hi all,
    For CSC 9.2..
    We have subtypes for User.
    Its creating two indexes for one profile.
    Thanks,
    Sameer

    We are getting issues while searching customers....
    userProfile has subtype user and member...
    whenever we create a profile
    duplicate results are coming whenever we search customers.
    In ProfileOutputConfig... i added a property memberId which will come from user subtype..
    Thanks,
    Sameer

  • Two sids for One instance

    Hi All,
    I have to create two sids for one database. I am using Oracle 9i on Windows machine as well as linux machine. Is there any possible to assign two sid's for one database.
    Give me the suggestions...
    Cheers,
    Moorthy.GS

    I think you need to define your term 'database' here
    In Oracle world, database is usually referred to as instance.
    a SID is one database instance, that's why, people will tell you that you can't have two SID for one database (instance)
    However, if your 'database' means the schema and data, then yes, you can run two instances (with two SID of course) to host the same schema and data.

  • HT2204 I created two iTunes accounts:  one for business purchases and one for personal.  However, when I try to purchase an iBook on my personal account only the business account information appears, and my business password is requested.  How can I selec

    I created two iTunes accounts:  one for business purchases and one for personal.  However, when I try to purchase an iBook on my personal account only the business account information appears, and my business password is requested.  How can I select a different account depending on the type of purchase I am making?

    You would have to sign out of the store with that AppleID and sign in with the alternate AppleID.
    Settings -> iTunes & App Stores -> tap the Apple ID showing, logout, then login.
    Beware thought that you can only change a device's AppleID association once every 90 days.
    http://support.apple.com/kb/ht4627
    So if you do this, you will not be able to use the other AppleID on that device for 90 days.

  • I have created two tables for my new  report under one transport request.

    Unwanted table transported
    I have created two tables for my new  report under one transport request.
    But I only need one table and the second table I was supposed to delete.
    However by mistake, with out deleting the second tableu2026 the transport request is released and moved to quality system.
    how to handle this issue. 
    I am not sure any additional changes for this program.
    Could you please suggest me an idea.
    Thanks in adv

    >
    sam kumar wrote:
    > Unwanted table transported
    > I have created two tables for my new  report under one transport request.
    > But I only need one table and the second table I was supposed to delete.
    > However by mistake, with out deleting the second tableu2026 the transport request is released and moved to quality system.
    >
    > how to handle this issue. 
    >
    > I am not sure any additional changes for this program.
    > Could you please suggest me an idea.
    >
    > Thanks in adv
    Does one custom table more or less really matter?  If you really want delete it, delete the table in DEV which will put it into a new transport and get that transport moved to TEST.

  • How to create a substitute for requester in SRM 7.0

    Hi,
    do you know how to create a substitute for requester?
    we have groups of 2 people and we want that they can see and edit shopping carts one of each other. Do you know how is it possible? it will be necessary for all SCs.
    Thanks.
    Regards,
    Nelson

    You can use the "Team Cart" feature introduced in SRM 7 for your requirement.
    Take a look at this wiki page for more information http://wiki.sdn.sap.com/wiki/display/SRM/Team+purchasing
    Edited by: Jay Yang on Mar 31, 2011 10:47 AM

  • How to create a calendar for two years in GL

    how to create a calendar for two years in GL

    Hi,
    - Login into Oracle EBS and select a responsiblity with GL Superuser drants (e.g. General Ledger Super User)
    - Navigate to Setup + Financials + Calendars and open the GUI Accounting (Navigation for R12)
    - Query the used calendard (used from jour Set of Books/ Ledger via the GUI
    - Enter for each Period (= Period Type 13, 16, 18,...) one Record, have a look to the existing data, used the same logic.
    In the GUI, defined the calendar for 2 Years
    Dirk

  • I have two users with different music on each itunes and i can only use one library, how do i use both for one iTouch?

    i have two users with different music on each itunes and i can only use one library, how do i use both for one iTouch?

    Chris, I believe this link may have the information you're looking for. Welcome to discussions!
    http://docs.info.apple.com/article.html?artnum=300432

  • What is the prerequisite for creating two hierarchies from one fact table i

    Hi,
    what is the prerequisite for creating two hierarchies from one a single fact table.
    Rgds,
    Amit

    create global temporary table t1 as select * from trn_ordbase on commit preserve rows;You CANNOT use this syntax.
    http://download-east.oracle.com/docs/cd/B19188_01/doc/B15917/sqcmd.htm
    http://download-east.oracle.com/docs/cd/B19188_01/doc/B15917/glob_tab.gif
    http://download-east.oracle.com/docs/cd/B19188_01/doc/B15917/cre_tabl.gif

  • How to create a Index for KM documents

    Hi Experts.......
    I have two queries .
    1,How to create a Index for the KM Server documents so that when ever i am in need of particular document,i can be able to retrive the exact document within short time......
    2,What Is TREX? Need of TREX ?
    If any one have documents for the above said queries kindly send it to [email protected]
    Thanks in Advance,
    Jasmine

    Hi Jasmine,
    1.In the EP 6.0 you can create index System Administration -> System Configuration -> Knowledge Management -> Index Administration
    2.TREX is search engine that will proccess the documents that you have specified in the index Data sources when you have created the index.
    The status of TREX you can see in System Administration -> Monitoring -> Knowledge Management -> TREX Monitor or Index Monitor for indexing monitoring.
    If you don't have connected any TREX engine to J2EE, just start the visual administrator and configure the TREX service.
    To install the TREX you can follow the instguides for TREX service.sap.com/instguides SAP Netweaver->Release 04 or 2004s -> Installation -> Cross-NW
    I hope that it helps.
    Bye
    Dan

  • How to create Activex object for my Visual C++ object

    Hi,
    I am working on development on Acrobat 9.0 SDK. I am facing problem is that I can compiled Visual C++ source code to an api. I can test functions on this api on Acrobat 9.0 windows, but I could not test it on IE web browser, because I don't know how to create Activex object from my Visual C++ source code or its api.
    I read Acrobat 9 SDK document and found under C:\Acrobat 9 SDK\Version 1\PluginSupport\Tools\Visual Studio App Wizard has two files: Acro9PIWizInstaller.msi and setup.exe. I am not very sure those file are the key to help me to create Activex objects for my api.  Are they the one I need to create Activex object? If not, could you please advise me how to create Activex object for my api or C++ codes.
    Thanks a lot for any of your comments or advices.
    Thai

    Hi lrosenth,
    Thanks a lot for your information.
    My question is, on Javascript how do I call a function from .api. Below is my very simple test.
    I got a function on BasicPlugin.cpp under C:\Acrobat 9 SDK\Version 1\PluginSupport\Samples\BasicPlugin. See below.
    I added BasicPlugin.api on C:\Program Files\Adobe\Acrobat 9.0\Acrobat\plug_ins
         ACCB1 int ACCB2 MyPluginCommand() {
              int num = 5;
              return num;
    On my HTML file, I create an <Object> below:
        <OBJECT id="acrobatapp"
                classid="clsid:85DE1C45-2C66-101B-B02E-04021C009402">
        </OBJECT>
        <OBJECT id="acrobatpdf"
                classid="clsid:CA8A9780-280D-11CF-A24D-444553540000"   >
            <Param name="SRC" value="http://www.adobe.com/devnet/acrobat/pdfs/acrobat_digital_signature_appearances_v9.pdf">
       </OBJECT>
    On my Javascript. I call function MyPluginCommand() as below, but it is not working. How do I call function MyPluginCommand() on Javascript?
         var acrobatapp= document.getElementById("acrobatapp");
         var num= acrobatapp.MyPluginCommand();
         alert(num);
    Thanks for your support,
    Thai

Maybe you are looking for

  • Problems obtaining .rxe with labview 8.5 professional

    Hello everyone! I am starting with labview for nxt, and I have some problems during the compilation.  I have installed all what it is said in instructions for labview 8.5 professional, then I have  done the "mass compiled" but I have obtanied lots of

  • How is the Zen Sleek Pho

    I got one as a gift for a buddy, and was wondering if there were any common problems associated with the player. I've been following Creative for some time now, but it didn't seem like they really pushed this player much at all when it first came out

  • DVD/CD Disc Drive Installed, But Doesn't Recognize Disc In Tray

    I've spent hours and hours trying to fix it, and have found nothing really worthwhile online. I'm coming here in the outside chance someone else may have experienced something similar. Basically, my Windows 7 laptop will no longer allow me to play dv

  • How do I uninstall adobe send?

    I need to uninstall adobe send and get the SN so I can return the product. I have NOT downloaded it and it shows available for download now. I am unable to return it unless I complete the SN and uninstall and I have NO IDEA how to find the SN or unin

  • Change language in creative cloud

    I initially installed creative cloud in Danish, but now I've learned that my teacher will be using the english version, so I'd really like to have that one too. Problem is I can't seem to figure out where I change that setting. I've now uninstalled e