Showing the same page after savin

hi!!! i m creating website ...i m using ajax.When the page loads..there are 2 combo box one for state and other for city.on select of state city will get populated and on select of city my age will dynamically generate textbox along with combo box.This dynamically generated textbox will contain all the pincode for a particular selected city. and the combo box will contain all the username .
My problem starts here...
1.Once i click on save the data is saved but the dynamically created textbox and combo box goes off leaving behind only the 2 static combo box.
2.While saving if the user selects the state as maharashtra and city and mumbai.he will get to see..list of pincodes available for mumbai.from that list if he selects the pincode ans 400706 and some "xyz" user from the username(combo).and clicks on save.data is saved.but next if he selects the same state and city then the previoulsy saved data ie for pincode 400706 the respective combo shld hav "xyz" as selected..
for showing the selection i have used some thing like this ...but this dosen't seemd to work<%ArrayList userlist=(ArrayList)request.getAttribute("USERLIST");
object.operations.UserObject obj=new object.operations.UserObject();
int size=userlist.size();
System.out.println("Size is :-->jsp of userlist"+size);%>
    function processRequest()
          document.getElementById(ele).options.length = 0;
document.getElementById(ele).options[0] = new Option("Select "+ ele,"0");          
        if (req.readyState == 4)
            if(req.status == 200)
                //get the text send by the servlet
                textToSplit = req.responseText;
                     //Split the document
                returnElements=textToSplit.split("||")
                    for ( var i=0; i<returnElements.length; i++ )
                         valueLabelPair = returnElements.split(";")
                         if(valueLabelPair[0]=="") break;
                         document.getElementById(ele).options[i+1] = new
Option(valueLabelPair[1], valueLabelPair[0]);
var ct=valueLabelPair[1];
                         var rows=document.getElementById("pinTabel").rows.length;
                         var oCell.innerHTML=<input type='text' name='pincode'
value='+valueLabelPair[0]+'>;
                         var oCell.innerHTML=<select><option value=''>Select
user</option><%for(int j=0;j<size;j++)
obj=(object.operations.UserObject)userlist.get(j);%><option
value='<%=obj1.getUserId()%>' if(<%=obj1.getUserId()%>==ct){selected}><%=obj1.getfirstName()%></option>%></select>;
else
alert("Error loading page\n"+ req.status +":"+ req.statusText);
3.is there any way out for showing  the values saved by the user along with the static combobox.so that i would be helpful for the users.
[/i]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Onur - Why not just set a package variable or an item in session state to indicate that there was an error and have the page branch back to itself using a Branch to Page branch (one that does not redirect)? The page would then show the error message if the package variable or item were set.
Scott

Similar Messages

  • How to stay on the same page after submitting the Page to commit the row.

    I have a page where I am accepting a ket column from the users , Now I want to have to buttons where user can enter one row and click 'Create & Exit' which would them to the menu. But another button would be 'Create' that would create the row in the table would keep user on the same page , so he/she can enter more rows.
    My 'Create & Exit' button has settings in 'Actions when Button Clicked'
    Action - Submit Page
    Execute Validation - Yes
    Database Action - SQL INSERT Action.
    My 'Create' button has settings in 'Actions when Button Clicked'
    Action - Redirect Page in this application
    Page - 9 (Same page)
    Database Action - SQL INSERT Action
    When this didn'tr work
    I changed
    Set This items - All the variable from the table
    With These Values - All the variable from the page
    Still this doesn't work.
    I very new to APEX application.

    Here's an approach:
    Delete your existing Create button and then redefine it as a copy of Create & Exit.
    Then create two Page Branches, one that branches back to your Menu when the Create & Exit is pressed and another Page Branch that remains on your current page when the Create button is pressed.
    Jeff

  • Everytime I try to pay with my cc on paypal, I enter all of my infor and after I press the "review and confirm" button the same page reopens but has erased only my cc #, exp date and security cvv number. What could be wrong?

    b.stats.paypal.com : server does not support RFC 5746, see CVE-2009-3555
    This appears on my error page everytime I try to use my credit card through paypal. I enter all of my info (billing, etc..) and after hitting the "review and confirm" button the same page reappears and has erased my cc number and leaving my name and billing info. What can I do to finish my transaction?

    The message about CVE-2009-3555 is meant for webmasters to make them aware that they need to fix their servers.<br />
    Firefox 3.6 versions can detect such a misconfiguration and displays a warning in the "Tools > Error Console".<br />
    * http://wiki.mozilla.org/Security:Renegotiation
    You may have a problem with the PayPal cookies.
    * "Remove the Cookies" from sites causing problems: Tools > Options > Privacy > Cookies: "Show Cookies"
    See also:
    * http://kb.mozillazine.org/Cookies#Removing_cookies
    * [[Cookies]]
    * [[Enabling and disabling cookies]]

  • When I click on my Yahoo bookmarks, I only get the download Yahoo toolbar page, I downloaded the toolbar again and I still get the same page when I hit bookmark icon - how do I get my bookmarks back - they still show on Microsoft Explorer

    Question
    When I click on my Yahoo bookmarks, I only get the download Yahoo toolbar page, I downloaded the toolbar again and I still get the same page when I hit bookmark icon - how do I get my bookmarks back - they still show on Microsoft Explorer

    julianscars wrote:
    I don't get a page, all I get is the player popping
    Click the green jelly button at the top left of the player.

  • Can I print before and after on the same page?

    Hi everyone.
    I'm really proud of my editing on a particular image.  I want to print the before and after on the same page, just like I can see the before and after side-by-side in the Develop mode.
    Is this possible?
    Thanks for your help.

    Yes but you will need to make a virtual copy by going to the menu:
    Photo >> Create Virtual Copy
    Then open copy 2 in the Develop module and from the history panel change the setting to the time of import (usually the bottom of the list) or use the re-set button to get back to the original file from camera.
    You can then select copy 1 & 2 and go to the Print module to set up your page with both images.

  • Create a tree node and show the report on the same page

    Hi,
    I have created a tree for our organization and each node represents a unit. The top one is office level and followed by division and brach.
    I have created a reprot on the same page as the tree node.
    What I want to do is:
    I would like to click a specific node and the report shows only that node and bellow. So, If I click division A and division A has two branch. my report shows only those two braches that bellong to division A.
    Can someone help me?
    Thank you

    The only way it could work is using iframes. Now OBIEE 11g would not allow iframes inside it's dashboard. It offers a dashboard object called "Embedded content" which is a restricted iframe kinda thing but unless you get this object's id from generated HTML you can change it's content dynamically. Besides, such an implementation may break with next patch. So here is an idea.
    Create a HTML page with two iframes, left one will hold all the reports with links (you can always generate a list of reports through catalog manager, open it in excel and make HTML links from it) that open report urls (in the format of ./saw.dll?GO&Path=....) in right iframe (using javascript open.window method). Once that page is working, call this page from dashboard using an action link. This is slightly twisted approach but at least it would give you what you asked for.
    About making the report list dynamic, I am afraid there are no easy answers. OBIEE provides web service that will allow the users to query catalog to get a list of reports. You can try some basic JSP to access the web service and generate the list dynamically. But that is not something I can provide here.

  • Iphoto showing the same picture for all my uploaded pictures after update, how do I get my old ones back so I can upload them to websites?

    After updating the new iPhoto software in the middle of December, I haven't been able to view all of my pictures that had been on my computer prior to the new software update, It shows the same photo for every single picture, how do I convert it back or reboot it?
    THANKS!!

    make a temporary backup of the library and launch iPhoto with the Command+Option keys depressed to rebuild the library. Select the options for rebuilding the thumbnails .
    OT

  • After sync my iphone4 to itunes i can't see the same apps on itunes that are on my phone.  How do i make them show the same?

    after sync my iphone4 to itunes i can't see the same apps on itunes that are on my phone.  How do i make them show the same?

    Hello Louise,
    There are a couple of ways that you can download your apps to iTunes on your computer. 
    First, you can transfer your purchases to from your iPhone to your computer using the steps in this article:
    iTunes Store: Transferring purchases from your iOS device or iPod to a computer
    http://support.apple.com/kb/HT1848
    Alternatively, you can download the apps directly from the iTunes Store using the steps in this article:
    iTunes 11 for Windows: Download previous purchases from the iTunes Store
    http://support.apple.com/kb/PH12491
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • Show another page in the same page

    Hello
    I have the following case :
    Trinidad Page it includes A trinidad table of urls and in the same page i have an iframe .when the user select a row from the table :
    - the screen is submitted and display the selected URL in the iframe.
    What is the best way to do that.
    Regards

    Hi, The following assumes that you are using 'single' as the selection strategy for the table.
    try the following:
    1. declare a global variable iframeSource with getter and setter methods.
    2. set the autoSubmit property of the table to true
    3. add a selectionListener method to the table; and in that write the following code
    RowKeySet keys = table.getSelectedRowKeys();
    Iterator iterator = keys.iterator();
    while(iterator.hasNext()){
    Your-RowObject-Containing-URL urlobject =(Your-RowObject-Containing-URL) iterator.next(); // may be the object is simple string in your case.
    iframeSource=urlobject.getURL();
    4. wrap your iframe in a trinidad's panelGroupLayout or any other container component to make use of PPR :
    &lt;tr:panelGroupLayout partialTriggers="table-id" &gt;
    &lt;iframe src="#{your-backing-bean.iframeSource}" .... .... .... /&gt;
    &lt;/tr:panelGroupLayout&gt;
    With that, when ever a row is clicked in the table the content of the iframe gets updated with the content from the selected url.
    Edited by: saasira on Feb 19, 2009 5:25 AM

  • Firefox 22 and higher shows fonts too big or too small, sometimes on the same page. How to "fix" this annoying 'improvement"?

    Since the update *every* website displays with the fonts too big or too small. On many websites, some of the fonts are too big and some are too small *on the same page*
    This makes for a horrible browsing experience.
    I've tried setting the layout.css.PixelsPerPx to a value of 1, but all it does is make most websites fonts too small, while leaving some websites fonts too large, with many web pages having fonts simultaneously too large and too small.
    The old behavior was quite acceptable and I'd really like to restore the behavior to what it was. How can I do that? Or do i just switch to Chrome and be done with it?

    Did you even bother to read the question?
    "I've tried setting the layout.css.PixelsPerPx to a value of 1, but all it does is make most websites fonts too small, while leaving some websites fonts too large, with many web pages having fonts simultaneously too large and too small."
    This "fix" doesn't work. Hundreds of people are complaining about how their browser was broken by this "improvement". Why not address the real problem instead of telling users to apply a useless hack to fix a programming error?

  • How to develp a subreport in the same page of the main report and processed when is called

    SSRS 2012
    Hi guys,
    I am developing a report that includes a subreport.
    therefore The report is made up by 2 sections:
    1) Show a grid (several rows - may be 100 or more - and some columns). It represent high level info  (Each row represent a specific item)
    2) The user click on a Row/column (eg: Item1, to see details that must be shown as graph.
    Here the problem: Searching info about SSRS reporting for subreports, drilldown, nested report and so on, no ones accomplish the requirements for the following reasons:
    1) Subreports: NOT open in the same page. The user must <go back> to see detail for other items, such as Item 2....
    2) Nested and DrillDown: Process data as the Main report (they are hidden and displayed after user action). In my case this leads to performance problem, because: if the main report has 200 objects (it means 200 graphs processed and hidden at the same time
    for the main reports).
    3) DrillThrough and Subreport: The detail data are processed only when the user select the interested item in the main report. Here the problem: the report is shown externally.
    Please, it there any possibility to have a subreport (or anything else) to be executed in the same report as the main report and processed only when the user make action?
    Thanks for your help.

    Hi Fasttrack2,
    According to your description, there is a main report with more than 100 rows of summary information, when users click the item of the row, the report need to jump to detail information shows as graph. The problem you are facing is that you are not sure
    subreport, drilldown or drillthrough report should be used? You hope to set display detail information in the main report and keep high performance of report.
    In Reporting Services, each subreport instance is a separate query execution and a separate report processing task. Subreports are recommended when there are just a few subreport instances. We should not use subreports inside a group when there are many
    group instances, instead, consider using drillthrough reports. Drilldown reports process all data even when the data is first hidden. In order to improve the performance of the report, we can split drilldown reports into parameterized drillthrough reports,
    because Drillthrough reports do not run until a user clicks the drillthrough link in the main report.
    In this case, we can consider using drilldown or drillthrough report. In drilldown report, when we click a plus or minus button to expand or collapse a section of a report, the detail data will be displayed in place. By using drillthrough report, when we
    click the link in the main report, the detail data will be displayed, we can come back to the main report by click return button in the drillthrough report.
    Reference:
    Troubleshooting Reports: Report Performance
    Drillthrough, Drilldown, Subreports, and Nested Data Regions
    If you have any more questions, please feel free to ask.
    Best Regards,
    Wendy Fu
    If you have any feedback on our support, please click
    here.

  • I have been trying to log onto the Wounded Warriors Program Portal.  I can Log in and then when I click on the rewards it tried to go to the page the just takes me back to the same page I was on.  This is very frustrating.

    I have been trying to log onto the Wounded Warriors Program Portal.  I can Log in and then when I click on the rewards it tried to go to the page the just takes me back to the same page I was on.  This is very frustrating.  I am new to the Mac World so please bare with me.  Please tell me there is help somewhere for this issue.  It seems it is blocked or not letting me through.  Can anyone please help me out.  Thanks 

    Both Mail and Safari have Activity Options that open a  screen that shows you just how the site or mail is loading.
    In Safari if you are having trouble with a site in activity you will see the count of items being downloaded - and if an error occurs it shows red.
    On the top is the number of items it is loading or trying to load and the count should be increasing.   If the count stops, and you don't have errors it may be that too many people are going after the same site and your request just timed out. Have had the time out on a news site when trying to load a most popular article.

  • How to share the same QUERY among report, chart on the same page? and more

    Dear HTMLDB experts,
    I am absolute rookie to this tool, so I have some questions need you all's help.
    (1)
    When I build a page with a spread sheet and a chart on the same page, they all use the same query to get the data. However, I have to type in the SQL twice in spread sheet(report region) and chart's attribute sections. It seems so dumb, does it really run the same query twice, is there a way to share the same query?
    i.e. SELECT name, timestamp, value FROM foo WHERE name = :P1_NAME? (by the way, is :P1_NAME case sensitive?)
    (2)
    In the same chart, if I have two series from two columns of the same table, I have to write 2 queries, one
    select null, timestamp, value1 from same_table
    and
    select null, timestamp, value2 from same_table
    Is it possible to use one query: select timestamp, value1, value2 from same_table and define the series on two value columns of this single query? It's really no point to run two queris.
    (3)
    In a chart, when the query has ORDER by clause, it seems the chart is not showing up.
    So instead of using the query below
    SELECT null, to_char(ts,'mmdd') ts, value
    FROM same_table
    WHERE ts >= TRUNC(SYSDATE) - :P2_DAYSAGO - 1
    AND name = :P1_NAME
    ORDER BY ts
    I have to use a walkaround query
    SELECT null, ts, used
    FROM
    SELECT null, to_char(ts,'mmdd') ts, value
    FROM same_table
    WHERE ts >= TRUNC(SYSDATE) - :P2_DAYSAGO - 1
    AND name = :P1_NAME
    ORDER BY ts
    Further more, it seems :P1_NAME in the same subquery is not working for the chart, i get xml parsing errors in SVGviewer, however the same query works for the spread sheet area, I am really puzzeled. Not sure whether it's dumb tool or dumb me :-)
    Appreciate your help!
    Jianhui

    <quote>
    Further more, it seems :P1_NAME in the same subquery is not working for the chart, i get xml parsing errors in SVGviewer, however the same query works for the spread sheet area, I am really puzzeled. Not sure whether it's dumb tool or dumb me :-)
    </quote>
    For this particular issue, I found out that neither is the tool dumb nor is me. It's SVGViewer messed up with the firefox browser, after I rebooted the computer this morning, problem is gone. I didnt reboot after I copied SVGViewer dll and zip file to firefox plugin directory yesterday. Never had that pain with IE and Netscape, oh well :-). So please ignore this section, however other questions are still unsolved puzzles for me. Thank you all if you can share some light on those questions.

  • Multiple branches to the same page

    A few questions about branches...
    1. Having a branch back to the same page with a 'when button pressed=Submit', another branch back to the same page with some other button-press condition, etc are all redundant, right?
    It is sufficient to have just one unconditional branch back to the same page, right?
    2. What is the difference between branch type 'branch to page or url' and simply 'branch to page'? Does the former cover the latter, so why do we need two types?
    3. Anyway, when I choose the latter, there is a checkbox below the page number for 'branch to page using redirect'. What does this mean?
    4. I have always seen the 'On submit: after processing' branch point being used. When would the other branch points be used?
    Thanks

    Vikas,
    1. No, they are not "all redundant" nor is any
    individual one. What if your page is submitted in
    some way other than by one of the buttons evaluated
    in the branch definitions?
    Right, thats why I said "It is sufficient to have just one unconditional branch back to the same page, right?". Why is it not sufficient to have just 1 unconditional branch? That would cover all the cases. Each page process can then check for whatever conditions it needs?Ummm, you say "Right" to my rebuttal and then you restate your original premise -- that logic eludes me. Let me offer this: Ponder my question, exactly as I wrote it, and consider self-submitting items, tabs, javascript, fields that submit the page when you hit Enter, etc., then it might make more sense. I don't think I can help you with that last part "Each page process..." even if it were an actual question.
    2. A Branch to Page (aka direct branch) calls the
    target page directly from accept processing without
    using a URL redirect. The other type redirects.
    Maybe this has nothing to do with HTMLDB, but whats the difference between "directly from accept processing" and "redirect"?Fair question. When you submit a page, wwv_flow.accept processes it. When it finishes, it evaluates the branching logic to determine what page you see next and then either redirects to that page (to f?p=...) or calls wwv_flow.show in the same database session (direct branch).
    3. That's a way of creating most branches as URL
    redirect branches when the developer isn't paying
    attention. Uncheck the box to "really" create a
    direct branch.
    You seem to be implying that a "direct branch" is not really desirable in most cases? Why? (I guess your answer to my question above will clear this up for me)Well, they're usually not the best choice. You end up with "wwv_flow.accept" in the browser location window after the branch and using the browser's back button to go back to those requests gives you that annoying "page contains POSTDATA" message. Those branches can be useful if you want to stay in the same database session for page processing (after submit) and the subsequent page view, such as in the case of inline validation errors where package state is maintained. The checkbox (default checked) technique is to require developers to really think about a choice that may have been reflexive.
    4. Please read the User's Guide.
    I did. Lets take them 1 by one
    a. On submit, before computation: The docs say this is to be used for a Cancel button. But wouldnt a javascript:document.form.reset() do the same thing?A Cancel button that submits the page does just that, it submits the page, allowing session state to be saved and any logic on the page to be performed before the correct branch is taken. You ask whether that javascript would do the same thing. The same thing as what, the Cancel button? No!
    b. on load before header: "...displays another page instead of the current page...". But then why wouldnt I just create a branch of some other branch point with that "another page number" in the first place?Because sometimes it's better for page X to decide to go to page Y before doing much of anything than for N callers of page X to make the same determination.
    I guess I am having difficulty understanding the concept of a "branch point". As you said elsewhere, a branch doesnt contain any logic, it doesnt call anything, it just branches to some page/url.Where did I say that?
    So, why have all these different branch points? What advantage does having this fine degree of control provide us? (as opposed to always 'on submit: after processing'?)Your proposal about reviewing various branch points was "Lets take them 1 by one", but then you skipped three of them. Please read the entire section on branching, create pages with all possible types of branches and a variety of buttons and conditions, experiment extensively with them and let us know if it's still unclear. I think you'll find, over time, that all features
    in HTML DB are there for a good reason. The developers found a need for them developing real applications. Where capabilities were missing, features were invented and added,
    where features seemed useless, they were dropped/deprecated. The tool you see today has been evolving for years. I think it's unreasonable to expect to be able to
    appreciate the value of every single feature until you've been using HTML DB for a couple of years.
    Scott

  • Table Link on the same page in Numbers '09

    I didn't word this correctly but I will try to explain what I'm trying to do.
    I have a sheet of birthdays, which is only 2 columns and its sorted by date. I want to have the table continue the sorted information on the same page. For example, There are 4 pages each with 2 columns, I want to put as much information on one page like 1/1 - 5/5 on the first half of the page then continue 5/6 - 8/30 on the second half of the page, maintaining it being sorted.
    I'm not sure if this made any sense, but an example would be in pages if I have 2 text boxes and link them the information will spill into the next text box.

    I came up with what may be a better idea after writing all this. But rather than delete it, here is my first idea:
    Numbers does not have page breaks and I can't think of a way to do what you want the way you are asking. But what you can do is use your original table as a master and have several other, smaller tables that break it up as you want. For instance, a table that has only birthdays in January 2009 could be constructed with the following formula in cell B2 (the date column) and A2 (which I am guessing is the person's name):
    B2=IF(AND(Table 1 :: B2>DATE(2008,12,31),Table 1 :: B2<DATE(2009,2,1)),Table 1 :: B2,"")
    A2=IF(B2="","",Table 1 :: A2)
    This table should be longer than your master table. It should be longer than you think your master table will get. Otherwise the dates at the bottom of your master table, as you add to it, will not be transferred over.
    After you have those formulas in columns A and B, go to the reorganize panel and choose to show rows where column B is not blank. That will hide all the blank rows. And you can sort it.
    Create other tables for your other groups of dates. You'll have to sort each table separately if you add more birthdays to your master table.
    You can arrange your tables on the page so several of these tables are side by side. I would not recommend arranging them with any above another.
    If you want to get fancier, you can use two header cells of each table to specify the start and end dates. Then, instead of hard coding the dates into the formula, you would reference those two cells.

Maybe you are looking for

  • Bcp import error numeric value out of range

    lo, I have table with columns of type int. I export this table by using bcp: bcp dbo.int_table out file.dat -q -CRAW -T -S localhost -E .  Now I want to import it to table with columns of type bigint. I use bcp command: bcp dbo.bigint_table in file.d

  • Why can't I play any of the online radio stations??

    I've always listened to the radio through my mac, but today when I tried it just says unable to play and that there is a mismatch between my computer and the player. Any ideas???

  • Moved 8.1 - Nodemanager starts but does not work... SSL problem..

    Hello! We moved our weblogic 8.1 installation to a new production machine (which used to be very easy with weblogic 5.1) but of course, it didn't work because of the SSL demo certificates which were tied to the old server name. It dumped the followin

  • ORA-01002: fetch out of sequence using multiple XA datasources

    Hi, I have a problem accessing multiple XA datasources : - launch an sql request on datasource 1 - rs.next() on the resultset - use the data to launch another sql request on datasource 2 After 10 iterations, the next() method throws an SQLException (

  • Poor performance in Repository mapping test tool (7.0.12)

    Hi, I'm just looking for some hints for performance tuning the Mapping tool in the Repository. This is our Development machine. Seems to be significantly worse since upgrade from sps 10 to sps 12. Every "display queue" / recompile of the map takes al