Refresh BSP Page when button is clicked

Hello friends,
I am developing a BSP application in which on page1, when button is clicked, new popup window(page 2) for caculating one field is displayed.
At the same time I want to update value of the field(Calculated in page 2) to be updated in calling page(Page 1).
Your help would be appreciated.
Best regards,
Dharitree

I think it would be possible using javascript code.
Try following javascript code:
Write following 2 javascript functions in Page1.
function openPopup()
document.open(u2018page2.htmu2019, u2018page2u2019, "height=450 width=500 left=320 top=200 status=no")
function transf(calculatedvalue)
document.getElementById("<ID OF YOUR ELEMENT(INPUTFIELD)>").value = calculatedvale;
In Page1, onClientClick event of the Button call openPopup() function Javascript
Write following function in Page2.
function getCalcValue()
    opener.transf("<%=CALCULATEDVALUE%>");
    window.close();
    return true;     
In Page2, after the calculation, call getCalcValue Javascript function.
Let me know if you need any further clarification on this.
~Salil
Edited by: Salil Patel on Aug 8, 2008 2:51 PM

Similar Messages

  • When buttons are clicked (in pdf), they flash instead of remaining solid

    Page-turn buttons (mouse click action) with two appearances (white, and with mouse over, grey) flash from the grey back very briefly to white when clicked. Is there some way to avoid this? It's a bit nit-picky, but the flashing makes the buttons in an swf or pdf seem clunky and less smooth.

    Hello,
    I checked your file and I was able to preview it in Browser properly.
    However as I can see, you have Hyperlinked the Labels of Accordian which is why Accordian functionality does not work. When user clicks on it, before expanding it takes the user to the hyperlinked page.
    I would suggest you to Export it as HTML on your computer on a different location and then check if it works or not.
    Regards,
    Sachin

  • I have BSP Page.When i run it should open in new window .

    Hi friends,
    I have BSP Page.When i run it should open in new window .
    I want code also whatever i want i can able change  the height width .

    CLOSED

  • How to Refresh The Page When The Value of selectinputData Changes

    Hi;
    I have a select input date component and I want to refresh the page when the value of selectinputdate changes. What is the way to do it?
    Also what is the way to do the same thing with choosedate component?
    Thank you very much...

    Hi Turhan,
    You may want to read about the Partial Page Refresh (PPR) capabilities in ADF Faces. You can make the selectInputDate's partialSubmit property "true" and then cause the specific components you wish refreshed have their partialTriggers property set to the ID of the selectInputDate.
    Hope this helps,
    John

  • I have BSP Page.When i run this BSP my internet expolrer browser screen hei

    Hi friends,
    I have BSP Page.When i run this BSP my internet expolrer browser screen height =200 ,width =-200.
    How to code this layout in BSP and where i have to write?

    chk this
    http://www.codeave.com/javascript/code.asp?u_log=7065

  • Firefox was a good, but now it's slow and when I search google I have to refresh the page when I click the back button. This is driving me to other browsers.

    When searching in goole, If I click on a link and want to go back a page firefox does not load the previous google search without refreshing the page. Because I use google frequently this is very annoying. Firefox has also been freezing and crashing most frequently of any of the other browsers that I have been driven to use. I'm not sure why I should keep it on my computer at this point.

    Regarding the Google results page blanking out when you go back, this occurs when using a combination of three settings, which may be fairly common:
    * Zoom level higher than two steps (120%; the newest versions of Windows apparently default to 125%, which Firefox detects and adopts)
    * Google search set to instant prediction results (default on Google search, but can be disabled in Search settings, see [https://support.google.com/websearch/answer/186610 Google Instant Search Help])
    * Opening results in the same tab, then using the Back button to return to the results page (default on Google search, but can be changed in Search settings to open results in a new window/tab, see [https://support.google.com/websearch/answer/425 Google Search Help])
    Firefox's cache feature attempts to maximize speed for forward and back actions by storing the last rendering of the page. Something about the instant prediction results ''with zoom'' is causing Firefox to briefly display the results and then they blank out and you have to reload the page to get them back. The mystery is why this only occurs (so far as I have heard) on Google? Is one of Google's scripts blanking out the page? Does Google care that it's messing up Firefox users?
    For now, if you do not want to or cannot change any one of the three factors needed to experience this problem, you can disable the storage of the last rendering of the page. Then Firefox will skip the shortcut and lay it out fresh, which is known to work. As noted in earlier posts, you make this change using the about:config preferences editor.
    (1) In a new tab, type or paste '''about:config''' in the address bar and press Enter. Click the button promising to be careful.
    (2) In the search box above the list, type or paste '''sess''' and pause while the list is filtered.
    (3) Double-click the '''browser.sessionhistory.max_total_viewers''' preference and change it to 0 (that's a zero).
    This thread has a lengthy discussion: [https://support.mozilla.org/en-US/questions/970863 When I go back to Google search results page, it takes me to a blank Google screen].

  • Why does Safari refresh the page when using the back button?

    Safari didn't use to do this.
    Even on these forums, when you hit the back button to go back exactly where you were at, if there are new posts, the entire page may have changed. I knew exactly the next post I wanted to look at before the page was refreshed. Now, I can't even find the post I wanted to read unless I scroll through the entire list again.
    I need to be able to go back to the page I was just on and not have it refresh.
    I need to go back exactly where I was.
    Safari can't even go back properly as it wants to go back near the top of the last page I was on.
    I need it to go back exactly where I was at.
    I have no idea what the engineers are thinking about this one.
    FireFox works properly when going back to the prior page.
    I have long lists on pages I work with.
    For example:
    1. through 1,000.
    If I am on reference number 500 on the previous page, when I hit back, it goes all the way back up to around 20 in the list.
    I have to then scroll manually page down to 500 where I was at.
    This is tedious, cumbersome and unnessesary.
    Safari was much better before it was updated to this horrible behavior.
    I don't know of any preferences you can change to change this odd behavior.
    Anyone know of anyway to stop this horrible behavior in Safari?
    This is like reading a book, but when you go back a page, the entire page may have changed and I have no idea where I was at.
    Pretty $iss poor in my opinion.

    Yes, that is correct.
    However, you can also use the mouse or trackpad to swipe back a page and it still refreshes the last page.
    Safari never did this back in Snow Leopard and maybe some versions of Safari in Lion.
    However, Safari in Mountain Lion always does this.
    It is very cumbersome using the "open link in new window" or "open link in new tab".
    It was much better just being able to click the back button or swiping to get back exactly where you were on the prior page.
    Hopefully more people will send Apple feedback on this.
    Thanks for sharing.

  • Rendering differences when "go to last page" navigation button is clicked

    Hi All,
    Critical issue here, apparently a new rendering bug in the crystal report viewer:
    In a framework 3.5 sp1 application (vb.net) using the Crystal Report Viewer, ***. version 12.0.2000.0 , file version 12.3.2002.753 (i.e. 2008 with sp3 installed and fp3.2 installed over that), I have a report that will render differently depending on whether or not the user clicks the "go to last page" button, or whether they just print/export/use single page advance navigation.
    The difference in rendering is that "report footer a"  (there are "g" of these) is not displayed.  This footer contains essential summary information for the grouped data above. 
    Related, but subtly different, is that the last group header/detail/group footer is not displayed if the details section is empty, again, IFF the go to last page button is clicked.  It renders correctly if go to last page is not used.
    The unique thing about the reporting implemenation in this app is that the fields/headers are dynamically positioned at runtime (based on user settings).  Similarly, the fonts, heights and visibility (i.e. SectionFormat.EnableSuppress) of group sections are also dynamically set at run time.  The ReportDocument object manipulation is done entirely in memory and is not (at least by me) persisted to disk before rendering in the viewer. 
    Is there a work around, programmatic or otherwise, other than removing the navigation buttons?  What assumptions is the rendering engine making about section size as it (apparently) short circuits sequential rendering when the go to last page button is clicked?
    Any clues would be greatly appreciated.
    Best,
    _t

    Hi Don,
    Thanks for the response.
    It's a winforms app. 
    The data access is through typed datasets that are filled on the client using linq to objects (i.e. not a connection to a remote db).  There is one main ds (which has the report's detail data).  There are also 5 unrelated subreport ds's that are used to fill standard header/footer information.
    I can export the report to an rpt file through the app, but the data is never included.  Haven't found a way to get data to save with rpt file.  ReportOption save data with report is checked for the report, but the actual data never gets saved into the rpt file. 
    Formatting of report, post programattic manipulation, is as I expect and appears identical irrespective of clicking the "go to last page" nav button.
    I would hazard a guess that it's not a caching issue since the rendering bug occurs only if the go to last page (GTLP from now on)  button is clicked BEFORE the report has been navigated through sequentially or exported.  Once exported or single-page advanced through, the report renders correctly (i.e., the GTLP  appears to be reading from the cache, and not running it's own rendering scheme). 
    Is there a way to dump the cache manually?  At the very least I could dump the cache before printing/exporting to ensure that the export  function creates a fresh (and bug free) rendering.  It is the output to paper/pdf etc that is most critical.  If there's a bit of stupidity on screen, I can convince my clients to laugh this off as a bit of silly screen junk, but the externalization of the data (pdf or print) must be reliable.
    Cheers,
    T

  • Hay i found google page when ever i click new tab button , also i found click on one tab another will be closed .

    i found google page error . when ever i click on new tab button i found automatic google page load .

    This issue can be caused by an extension (McAfee SiteAdvisor) that isn't working properly.
    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]

  • Hide Textbox when buttons are clicked

    Hi all,
    Im trying to create a form for our customer service reps to make their lives easier. Which is a plus for me.
    I tried googling and playing with some Validation scripts and nothing seems to work.
    Here is what im trying to accomplish.
    There is 3 Radio buttons ( Credit, Repair, and Replacement), I need to have the ability to only have 1 of the three selected
    So if a button is clicked it would make a series of text and text boxes visible and Hide the others
    I am not quote sure how to do this.
    Found this article but im not sure if it applies. Im using Acrobat X Pro.

    So i found this thread
    http://forums.adobe.com/thread/908481?start=0&tstart=0
    var f = this.getField("c1");
    var g = this.getField("Text2");
    if (f.value==(Yes))
    g.display = display.hidden;
    else
    g.display = display.visible;
    it works but the box does not disappear when I uncheck. It mentions how to do it also in the thread but it doesnt seem to work?

  • Safari, always refreshes a page when opening

    When I have multiple pages open in safari and want to change back to a different page then it always refreshes that page. Can it be set to simply go back to that window and keep the page as it was? Pretty sure it doesn't work like that on the iPhone

    timp55 wrote:
    Thanks for that - will go take a look. I assume it's gonna be another app to sneak memory - which looks to be why the page refreshes in the first place. I'd struggle to believe it's a memory thing - my iPad is only hours old, has sync'd once, has very few apps, no music or videos but the refresh was the first thing I noticed about using Safari on the iPad.
    The memory being talked about is actually RAM memory of which all iPad models have 256 MBs. This is not referring to the flash memory size which varies between models, e.g. 16GB, 32GB, or 64GB. Applications use RAM memory to run in while flash memory is used more like a hard drive.
    However, I believe that it's not exactly the 256 MB RAM size that causes Safari to reload pages but rather the strategy it uses to manage memory utilization. It has been reported that some of the other browsers available on the iPad are much better at not reloading pages. You should check them out if this is a problem for you.
    Search the forum for this topic and you will see other posts on this subject.

  • Refresh the page when you enter, you load, or focuses

    Greetings to the community... 
    The question I have is like to refresh (update) a page when you enter...
    On the "results.php" page data received from a database I have and when I modify them from another page "modify.php" and return to the "results.php" changes are not seen until pulse update
    How can be so it is updated each time that is recharging, you enter, or focuses the page?
    Thanks in advance.

    Hi bregent,
    You can see what happens in the following link, so I think it will be best that you see it that I explain it to you
    I pass him the link, and if you press right on the arrow of any name, it will be forwarded to the page change, when you modify any data and press on "Actualizar Registro" (update record) will see what comment you.
    http://appiva.comyr.com/AppColegio/formularios/informe.php
    Thank you

  • How can I remove "click" sounds when buttons are clicked?

    I have created a Captivate project for an online tutorial.
    There is no audio in the project but Captivate has embedded a
    "click" audio which occurs when the user clicks on "Next", "Back"
    and "Menu" buttons.
    How can I remove these "click" sounds?

    Hi dyageme and welcome to our community
    Fellow Adobe Community Expert Paul Dewhurst offers up just
    such a fix.
    Click
    here to visit Paul's site.
    Cheers... Rick

  • Text blinking when buttons are clicked in Acrobat

    I have an interactive pdf that has buttons and layers. I am on a mac, and it works as it should. When an icon is clicked text changes out (shifts between layers) But my client is on a PC and is saying that when she clicks the icon, all the text on the page blinks off and then on and then changes. (even the text that is not associated with the button)
    Does anyone know what is causing this, and is there a solution?
    thank you!

    I have an interactive pdf that has buttons and layers. I am on a mac, and it works as it should. When an icon is clicked text changes out (shifts between layers) But my client is on a PC and is saying that when she clicks the icon, all the text on the page blinks off and then on and then changes. (even the text that is not associated with the button)
    Does anyone know what is causing this, and is there a solution?
    thank you!

  • Submit a page when ColumnLink is clicked

    I have a form and a report on the same page. The form contains details of a selected record and the report displays all comments specific to that record (master - detail).
    The report has a column link so that the comments can be edited. When I click on the column link, the page gets redirected (not submitted). As a result I lose all changes that I have made on the form. Is there a way to submit the page and then redirect via the column link?
    Thanks in advance,
    Ghazi

    Thanks Farhan.
    Like you pointed out, I had to use javascript to accomplish this.
    Below are the steps I did:
    1. Created a new button called EDIT2 and added branch that navigates to my desired page (instead of column link redirecting to the page it is now done via the branch).
    2. Created the below javascript
    function setCommentIDandSubmit(commentID){
    document.getElementById('P0_CID').value=commentID;
    doSubmit('EDIT2');
    This javascript assigns the ID of the selected row to a hidden variable in Page 0.
    It then submits the page with EDIT2 request.
    3. The pl/sql process that does my update was earlier tied to the APPLY_CHANGES button. I changed the condition to "Request is contained in Expression1" and the values in expression1 are APPLY_CHANGES,EDIT2
    4. Changed the column link to a URL i.e.
    javascript:setCommentIDandSubmit(#ID#)
    And it appears to work now. Every time I save the form or edit a comment, the data on the form is being saved. Can you think of any drawbacks to this approach?
    Regards.
    Ghazi

Maybe you are looking for