Hi, How to stop the open new view when i click button in OnClick event

Hi,
I have the popup window[window.showodelDialog] with one button called confirm.and table control values
Actual requirement: when i click confirm button it saves the tablecontrol value in the internal table. it is fine.It saves.
Currently working is : When i click the confirm button in the onClick event ,the new view is opening with empty tablecontrol popupin the new window.I don't want that one.
my requirement is: When i click the confirm button through onclick event ,i want to close the currently showing popupwindow and it should come to main page.How to do that?
view1.htm
=======
   <htmlb:button id            = "sub1"
        onClick =""
        text          = "Confirm" />
Do_handle_data
============
  LOOP AT lt_form_fields INTO lw_form_field WHERE name CS
                                          't_confirm' .
    CALL METHOD /ds1/cl_mdm_tablecontrol=>populate_table(
                   EXPORTING
                     im_id      = 't_confirm'
                     im_request = me->request
                   CHANGING
                   ch_table   = me->r_asset_data->t_maintain ).
    EXIT.
    ENDLOOP.
t_maintain it stores the changed values.. It is fine..

Hi raja,
1.I have a main page like req_asset_create.htm. In this page one button called maintain. If i click the maintain button the popup window is opening using window.showModelDialog. 
2. In this popup i have a Editable tableview and one button called confirm. User can edit the values. After editing he is clicking the confirm button.
3.when he click the confirm button two things should happen a)Popup should vanish and it should go to main page ie req_asset_create.htm.The editrd values should store in to the internal table (t_maintain).it is in model class.
What heppenings for me using this code
=============================
<%----
confirm -
--%>
    <htmlb:button id            = "con"
        onClientClick = "self.close();"
        text          = "confirm"
        onClick       = "confirm"/>
When i click the confirm button ->popup is closing ->thats 100% fine and again one new view is coming with popupdisplay values.This should not happen.
a)The server event is not happening.It should happen.
b) The edited values are not stored in the internal table..
Do_handle_data : for storing the edited tableview values
===========   
confirm
  LOOP AT lt_form_fields INTO lw_form_field WHERE name CS
                                          'con' .
    CALL METHOD /ds1/cl_mdm_tablecontrol=>populate_table(
                   EXPORTING
                     im_id      = 'tv1'
                     im_request = me->request
                   CHANGING
                   ch_table   = me->r_asset_data->t_maintain ).
    EXIT.
    ENDLOOP.
What should i do to happen for the server event to update the edited records.
How can i achieve? ow to control the new opening view?

Similar Messages

  • How to stop the prodution order creating when the product is not valued?

    Hi guyes:
    How to stop the prodution order creating when the product is not valued using CO01?
    I hope that when i create the production order,the system will check the product is valued or not,if not
    the system will show an error or warning message!
    How to config for this?
    Thank you!

    Dear Zhao Gang,
    Check with this user Exits mentioned in this link,
    Prevent Production Order from "Release" if there is no Cost Estimate
    Re: User Exit at Production Order Release
    Check and revert back.
    Regards
    Mangalraj.S

  • Missing options of "Enter Private Browsing" "Open new tab" and "Open new window" when right click (right context menu) firefox icon on taskbar

    Missing options of "Enter Private Browsing" "Open new tab" and "Open new window" when right click (right context menu) firefox icon on taskbar.
    i already tired complete uninstall and reinstall, but the options are still missing.
    print scr: http://www.freeimagehosting.net/9znkp
    Thank You in advance for help. Best regards

    Hello,
    ''jstavene wrote:''
    can find nothing under the tools menu for private browsing?
    Then it's not the same issue.
    If Firefox is set to '''Never remember history''', then you're in “permanent private browsing” mode, in which case the menu item ''Stop Private Browsing'' will be grayed out. Perhaps that's the case, and you don't find the menu item easy to see?
    * [[Settings for privacy, browsing history and do-not-track]]
    If that's not the case, then menu items can be hidden using the userChrome.css file. Check if it exists, and if it's there, rename it, then restart Firefox.
    * http://kb.mozillazine.org/UserChrome.css
    In Firefox Nightly (what will become Firefox 20), per-window private browsing has been added, so the menu item under the Tools menu is gone. It's been replaced by New Private Window under the File menu. I don't suppose it's very likely that you're using such a cutting-edge test version of Firefox though.
    If that doesn't solve the problem, since it's a different issue, it would be best if you would ask a new question.
    * https://support.mozilla.org/questions/new

  • How to stop the executable from starting when opened

    Hi Guys,
    I am building an exe with the application builder. I am not able to find a way to stop the exe from running when opened. I dont need the exe to run. I know I m missing a very basic step here but I m not able to do that.
    Could anyone explain me how to do this.
    Regards,
    Nitin

    Hello,
    This is Dominic L. from Applications Engineering at National Instruments. This was reported to R&D (CAR#41DAPUQU) and was fixed in LabVIEW 8.2.1. Here is a link to the current evaluation software download for LabVIEW:
    http://digital.ni.com/demo.nsf/websearch/14f9ce475127ade786256ac60070926c?opendocument
    This particular bug actually renders all the build options for source file settings unusable. While the other options can be set manually in the source VI properties, the start-up VI will always run when an executable is opened.
    Here are three different workarounds to this:
    Option 1 - Upgrade to 8.2.1. 
    Option 2 - Check "Enable debugging" and "Wait for debugger on launch" in the Advanced page of the build specification. One side effect is this will include the block diagrams of the VIs and extra code for debug tool support. Note that if you don't protect the source code (block diagram), it kind of defeats the purpose of creating an executable.
    Option 3 - Use a dummy startup VI to launch the desired startup VI.
    For the third workaround, the attached "Dummy Startup VI.vi" uses VI server to open the desired startup VI's front panel and then closes.  To use the Dummy Startup VI follow these steps:
    Add the Dummy Startup VI to the project.
    Open the Dummy Startup VI and change "Main VI.vi" to the VI you would like to open but not run in the project and save.
    In the source files page of the build, select the Dummy Startup VI as a startup VI and the VI you would like to open but not run as a support VI.
    Build and run.
    I hope this helps.
    Have a great evening!
    Best Regards,
    Dominic L.
    Attachments:
    Dummy Startup VI.vi ‏12 KB

  • Wont open new tab when I click on it

    When I click on the new tab it will not open at all. Right clicking on the new tab icon wont work either. I can open a new tab when I click on a link in a web page though.

    I uninstalled the Ask.com toolbar and the problem was resolved.

  • How to stop the searching on dashboard when one opens the dashboard...

    HI all,
    once user enters the dashboard the reports should not run immediately...
    is there any way to stop it?? the report should rather show some Default value....
    Actuall the req we are having is to call a procedure thru a function via report & i am displaying the return value column on screen as it indicate the running on of the procedure in backend....& on its click we are showing the updated report..having updated results for DB.
    Thanks..
    Pankaj
    Edited by: Pankaj Nakil on Feb 6, 2009 6:35 AM

    Thanks lot friends,,,
    As we have a requirement we need to call a backend procedure from the report...
    what i have done is.. i have placed a return value column of the procedure on the dashboaard...
    when the user gvies parameters & hits GO it starts searchign and only when the procedure finishes it stops & gives a link to see the result in new tab.
    This way we ensure the lnk is seen only when the procedure is completed & the user sees updated results only...
    Is there any way it should only start running when the user hits the go button till then it show the link as it is..
    THanks a lot
    Pankaj

  • How to change the blog posts view when navigating through categories?

    Hello, currently I've been struggling for a while with the following problem:
    In my SharePoint blog site I have the following default view of posts:
    http://s16.postimg.org/yvmu0j51x/Default_site.jpg
    When I click on a category, I get the following view of posts:
    http://s29.postimg.org/58lm8p993/Category_site.jpg
    Is there any possibility to get the same way of showing post as how it looks on the default site? So with Image, with body etc. But then only filtered based on category.
    Any help would be highly appreciated!
    Regards,
    Danny

    Hi Danny,
    No, my result is like:
    You can do as the followings:
    Edit the page
    Insert the Categories list into the page
    Insert the Posts list into the page
    Edit the Posts web part, and switch the current view to Summary view, click OK
    Click Connections->Get Filter Values from->Categories, like the screenshot below:
    Provide Field Name:Title, Consumer Field Name: Category
    Click Finish
    Then you can filter posts based on a category by clicking Select in the first screenshot.
    I hope this helps.
    Thanks,
    Wendy
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Wendy Li
    TechNet Community Support

  • How to stop the posting of documents when there is an error in record

    Hi,
    I have one issue with respect to posting of documents.
    In my Exl sheet there are 1900 records which would split into 950 records during run time.
    For each 950 records a document to be created.  Here the issue, during test run thers is no error where all the validations are done and records in xl sheet are correct.
    However when  posting, i am submitting to to standard program rfbibl01, where it is creating the session and output of the program is not showing any errors - report.
    During execution of  session, it is creating document for 1 set of 950 records and for 2 set it is finding some error and not creating any document.
    Now my requirment is as follows: since there is an error in second set, i don't want to post any record starting from the begining. No document should be created.
    In my program  once i have submitted to standard document i don't have any control over the progam in stopping the creation of session or document creation.
    Any solutions are most welcome.
    Thanks in advance.
    Regards
    Harikrishna
    Edited by: Harikrishna yoganarasimhaiah on Feb 1, 2008 7:45 AM
    Edited by: Harikrishna yoganarasimhaiah on Feb 1, 2008 7:48 AM
    Edited by: Harikrishna yoganarasimhaiah on Feb 1, 2008 7:50 AM

    Hi ,
    Use the FirstVisibleRow property of the table , bind with some attribute containing the index of the selected row...
    Regards
    Yash

  • Won't open new page when I click bookmark, instead changes pages EVEN THO PREFERENCES SET TO OPEN NEW PAGES

    Firefox keeps on changing pages, even yanking minimized pages back onto the screen and changing them, even though I have Firefox preferences set to always open new pages to accommodate links on a page or bookmarks.
    I don't want Firefox to tamper with any pages, period. If I have a pages minimized, no way should Firefox be yanking that page up back onto the screen because it's "too lazy" to open up a new page to accommodate a bookmark or link clicked on.
    It's extremely aggravating to click a link on a page, get a new page then, when I click the page to close it I find no page underneath, indicating that Firefox had changed the original page rather than open up a new page automatically to accommodate the link, etc.
    What's the point of me in Firefox preferences setting it up for Firefox to open up new pages automatically when afterwards it doesn't?

    Perhaps try the add-on Tab Mix Plus. It has a feature that you can force every link to open in a new tab if you like:
    * http://tmp.garyr.net/help/#Links (description of options - see "Force to open in new tab")
    * https://addons.mozilla.org/en-us/firefox/addon/tab-mix-plus/ (install page)
    I don't know whether it has any effect on bookmarks. You can open those in a new window by holding Shift or in a new tab by holding Ctrl when clicking.

  • Recently firefox started opening new tabs when I click on search results how do I get this to stop

    When I use Google and I click on a search result it opens a new tab where it used to just take me to a new page in the tab I was using I was looking in the tabs tab in options and saw I could choose it to open in a new window but I don't see an option to open it in the current tab. This started happening out of nowhere.

    Found a setting in Google that was telling it to open all result in a new Windows which I was guessing that Firefox was overriding and open it in a new tab like settings suggested unchecked the box in Google and now the behavior is back to normal.

  • How to 'Stop the Clock' for SLA when in customer action?

    Hi
    Does anyone know if the functionality exists so that when a support message goes into 'customer action' or 'solution proposed' status the SLA stops counting down until the message is put back into 'in process'?
    The SLA is out of your control when it is waiting for an action from the user so it should be possible for the clock to stop on the SLA automatically when this is the case and the SLA should re-start and re-calculate the new 'completion by' date.
    I know that this is standard in many other types of Helpdesk software but can't find the way to do this with Service Desk.  Can anyone help?
    We are on SM7 SP22. 
    Thanks very much for your help.
    Regards
    Ashley

    Hello Ashley,
    Have you seen this document [Advanced Quick Guide for VARs Service Desk (Jan 2010)|https://websmp101.sap-ag.de/~form/sapnet?_SHORTKEY=01100035870000722612&_OBJECT=011000358700000122472008E]   ?
    You might want to reference section 5. Service Level Agreements.
    Regards,
    Paul

  • I am having a problem opening new tabs, when I click the + sign, and ask to open in a new tab, the new location opens in the same tab, thereby deleting the open tab

    I reloaded an updated firefox, and this feature appears to have been inactivated.

    Uninstall the Ask toolbar and it should work again. There is a compatibility issue with the Ask toolbar and Firefox that prevents new tabs from being opened.

  • How to stop the keyboard from showing when checkbox is selected

    Whenever a user checks off a checkbox, the keyboard appears.
    How do I turn off this feature?

    This is likely a web-site-specific issue.  Can you share a link to the web page that behaves this way?

  • How to Stop the preview from jumping when  using .avi's??

    Hi
    Ive been having aproblem where the .avi file I have imported will just jump forward , making it impossible to edit.. I have try reconverting th.avi's to lower bitrate, and still it jumps ,, the avi files iam using having been converted from SUPER to .avi with h.264/AVC Video Codec, at 1280 * 720 and 29.97 Fps -> Bitrate 2208 kbs,, if anyone has any suggestions,,??

    DV won't handle John's frame size. He may be better off using Desktop mode with something like the Lagarith codec, though Premiere may not edit perfectly smooth with that one either.

  • How to avoid the "Save As" dialog when using "Close Button"

    Hello All,
    I am facing a problem while closing a pdf file.
    I am using the following code to Open a pdf file.
    CAcroApp objAcroApp = new AcroAppClass();
    CAcroAVDoc objAVDoc = new AcroAVDoc();
    objAVDoc.Open(C:\\new.pdf,Sample);
    objAcroApp.Show();
    After opening the document I am **** some changes (adding markup) in the file.
    Then I am closing the file using the Close Button and in YES for the save confirmation dialog.
    Here is the problem.
    After giving YES, I am getting a Save As dialog with "Sample.pdf" in the FileName box.
    I am getting this only in Acrobat 9.0.
    When I tried the same in Acrobat 8.0 I didnt get Save As dialog. It saved with out "Save As" dialog in "C:\\new.pdf".
    I need to give the same behavior in both Acrobat 9.0 and 8.0.
    Please help me out to fix this issue. Thanks in advance.
    Regards,
    Mohd Mustafa SK

    In what you have posted, there is no reason it shouldn't work the same way in Acrobat 9. I would recommend that you submit your complete application to developer support.

Maybe you are looking for

  • How can I stream video with Flash?

    Hi guys! I have a placeHolder MC in my main movie. Within the placeHolder is an external swf containing an mpg video. How can I code the preloader of the external swf to stream the mpg? Thank you very much and I hope to hear from you. All the best, M

  • Artifacting and low resolution in poster image

    Hi, I'm having real problems with poor quality poster image/final still of video front cover. I have an H.264 mp4 which I created in After Effects and inserted using the Media panel within DPS. As you see below, it plays on page load and I have chose

  • After removing and replacing a hyperlink why is the old one still in the html code?

    I'm using a tool tip in a master page, the hyperlink is used on the base image and on the roll-over tip. See here: both elements have the new link but the old link, shown above overides the new one??? I can' seem to get rid of it!

  • NIPathsDir NIPRODUCTCACHEDIR

    Hello i'am trying to install LabWindows 8.0 and got the following message before i can enter my name and CVI serail number. Fatal Error! Required NIPathsDir property NIPRODUCTCACHEDIR is undefined How can i solve this problem. Thanks in advance.

  • After Time Machine restore, Lion Server doesn't have services

    My poor old server finally died, so I replaced it with new hardware.  I wiped the hard drive, installed Lion fresh, and did a restore from Time Machine.  However, when I run the Server Admin app, it says it was unable to connect to the machine. I re-