Help with javabean List refresh.

I have a javabean Garage that loads a list of Car class using a 1 to many/ many to 1 relationship and works well when adding the cars to the garage using a JSP page. It displays the List<Car> on the jsp page no problem but when I delete the Car it doesn't seem to refresh even when I go to another page and go back the the original page. It definately deletes the car from the database, checking this in Oracle Express confirms this. When I stop close the browser and run the JSP again in JDev the Car is deleted from the list and shows correctly.
I'm using:
getBookingList().remove(car);
car.setGarage(null);
To remove the car from the list and also:
booking = em.find(Car.class, car.getCarno());
em.remove(car);
to remove it from the facade bean entity manager. This should work as displaying the list in the jsp simply loads in the list of cars from the garage class. Am I missing something?

well if you're really removing the car everywhere, then it must be a caching issue. Try adding this to the top of the page:
<%
   response.setHeader( "Pragma", "no-cache" );
   response.setHeader( "Cache-Control", "no-cache" );
   response.setDateHeader( "Expires", 0 );
%>Not as a permanent fix, but to see if it makes a difference. You will want to do this whenever you are invoking a dynamic resource (servlet, JSP), for example using a Filter.
If disabling the cache doesn't work then you are mistaken and you do not remove the car as you think you are doing.

Similar Messages

  • Help with linked lists and searching

    Hi guys I'm very new to java. I'm having a problem with linked lists. the program's driver needs to create game objects, store them, be able to search the linked list etc. etc. I've read the API but I am really having trouble understanding it.
    First problem is that when I make a new game object through the menu when running the program, and then print the entire schedule all the objects print out the same as the latest game object created
    Second problem is searching it. I just really have no idea.
    Here is the driver:
    import java.util.*;
    public class teamSchedule
         public static void main (String[]args)
              //variables
              boolean start;
              game game1;
              int selector;
              Scanner scanner1;
              String date = new String();
              String venue = new String();
              String time = new String();
              String dateSearch = new String();
              double price;
              String opponent = new String();
              int addindex;
              List teamSchedLL = new LinkedList();
              String dateIndex = new String();
              String removeYN = new String();
              String venueIndex = new String();
              String opponentIndex = new String();
              start = true; //start makes the menu run in a while loop.
              while (start == true)
                   System.out.println("Welcome to the Team Scheduling Program.");
                   System.out.println("To add a game to the schedule enter 1");
                   System.out.println("To search for a game by date enter 2");
                   System.out.println("To search for a game by venue enter 3");
                   System.out.println("To search for a game by opponent enter 4");
                   System.out.println("To display all tour information enter 5");
                   System.out.println("");
                   System.out.println("To remove a game from the schedule enter search for the game, then"
                                            + " remove it.");
                   System.out.println("");
                   System.out.println("Enter choice now:");
                   scanner1 = new Scanner (System.in);
                   selector = scanner1.nextInt();
                   System.out.println("");
                   if (selector == 1)
                        //add a game
                        scanner1.nextLine();
                        System.out.println("Adding a game...");
                        System.out.println("Enter game date:");
                        date = scanner1.nextLine();
                        System.out.println("Enter game venue:");
                        venue = scanner1.nextLine();
                        System.out.println("Enter game time:");
                        time = scanner1.nextLine();
                        System.out.println("Enter ticket price:");
                        price = scanner1.nextDouble();
                        scanner1.nextLine();
                        System.out.println("Enter opponent:");
                        opponent = scanner1.nextLine();
                        game1 = new game(date, venue, time, price, opponent);
                        teamSchedLL.add(game1);
                        System.out.println(teamSchedLL);
                        System.out.println("Game created, returning to main menu. \n");
                        start = true;
                   else if (selector == 2)
                        //search using date
                        scanner1.nextLine();
                        System.out.println("Enter the date to search for in the format that it was entered:");
                        dateIndex = scanner1.nextLine();
                        if (teamSchedLL.indexOf(dateIndex) == -1)
                             System.out.println("No matching date found.  Returning to main menu.");
                             start = true;
                        else
                             //give user option to remove game if they wish.
                             System.out.println(teamSchedLL.get(teamSchedLL.indexOf(dateIndex)));
                             System.out.println("Would you like to remove this game? Y/N");
                             removeYN = scanner1.nextLine();
                             if (removeYN == "Y" || removeYN == "y")
                                  teamSchedLL.remove(teamSchedLL.indexOf(dateIndex));
                                  System.out.println("Scheduled game removed.");
                        System.out.println("\n Returning to main menu. \n");
                        start = true;
                   else if (selector == 3)
                        //search using venue name
                        scanner1.nextLine();
                        System.out.println("Enter the venue to search for in the format that it was entered:");
                        venueIndex = scanner1.nextLine();
                        if (teamSchedLL.indexOf(venueIndex) == -1)
                             System.out.println("No matching venue found.  Returning to main menu.");
                             start = true;
                        else
                             //give user option to remove game
                             System.out.println(teamSchedLL.get(teamSchedLL.indexOf(venueIndex)));
                             System.out.println("Would you like to remove this game? Y/N");
                             removeYN = scanner1.nextLine();
                             if (removeYN == "Y" || removeYN == "y")
                                  teamSchedLL.remove(teamSchedLL.indexOf(venueIndex));
                                  System.out.println("Scheduled game removed.");
                        System.out.println("\n Returning to main menu. \n");
                        start = true;
                   else if (selector == 4)
                        //search using opponent name
                        scanner1.nextLine();
                        System.out.println("Enter the opponent to search for in the format that it was entered:");
                        opponentIndex = scanner1.nextLine();
                        if (teamSchedLL.indexOf(opponentIndex) == -1)
                             System.out.println("No matching opponent found.  Returning to main menu.");
                             start = true;
                        else
                             //give user option to remove game
                             System.out.println(teamSchedLL.get(teamSchedLL.indexOf(opponentIndex)));
                             System.out.println("Would you like to remove this game? Y/N");
                             removeYN = scanner1.nextLine();
                             if (removeYN == "Y" || removeYN == "y")
                                  teamSchedLL.remove(teamSchedLL.indexOf(opponentIndex));
                                  System.out.println("Scheduled game removed.");
                        System.out.println("\n Returning to main menu. \n");
                        start = true;
                   else if (selector == 5)
                        //display tour info
                        System.out.println("Tour Schedule:");
                        System.out.println(teamSchedLL + "\n");
                   else
                        System.out.println("Incorrect choice entered. Returning to menu");
                        System.out.println("");
                        System.out.println("");
                        System.out.println("");
    and here is the game class:
    public class game
         private static String gameDate;
         private static String gameVenue;
         private static String gameTime;
         private static double gamePrice;
         private static String gameOpponent;
         public static String gameString;
         //set local variables equal to parameters
         public game(String date, String venue, String time, double price, String opponent)
              gameDate = date;
              gameVenue = venue;
              gameTime = time;
              gamePrice = price;
              gameOpponent = opponent;
         //prints out info about the particular game
         public String toString()
              gameString = "\n --------------------------------------------------------";
              gameString += "\n Date: " + gameDate + " | ";
              gameString += "Venue: " + gameVenue + " | ";
              gameString += "Time: " + gameTime + " | ";
              gameString += "Price: " + gamePrice + " | ";
              gameString += "Opponent: " + gameOpponent + "\n";
              gameString += " --------------------------------------------------------";
              return gameString;
    }I'm sure the formatting/style and stuff is horrible but if I could just get it to work that would be amazing. Thanks in advance.
    Message was edited by:
    wdewind

    I don't understand your first problem.
    Your second problem:
    for (Iterator it=teamSchedLL.iterator(); it.hasNext(); ) {
    game game = (game)it.next();
    // do the comparation here, if this is the game want to be searched, then break;
    }

  • Help with numbering lists in Indesign CS5.5 for epub file

    I am working with a book in Indesign CS5.5 to export it as an epub file. I have been working on formatting the text and I have run into a small problem. Throughout the book there are multiple lists within the texts that need to be numbered. Each list, however, must start over at number 1 and not be continued on from the previous list. The lists are all unrelated and I need them to be completely separate. I used "Type", "Bullets and Numbering", then "Apply Numbering" to begin with. This had each list in the correct order. However, I also created a paragraph style with the correct font, size, indentation, and spacing that must be applied to all the lists before exporting. When I do this, everything keeps its correct formatting except that some of the lists continue their numbering from the previous list. For example, on page 1 I might have a list of four things all formatted correctly and number 1 through 4. On page 3, I have another list, of completely unrelated items. I therefore would like this list to be started over at number 1, but when I apply the paragraph style to it, it starts at 5, picking up where the last list left off. I need to keep these as the assigned paragraph style but it messes up the numbering. If anyone could help me figure out how to keep this from happening I would greatly appreciate it!

    If you don't mind cracking open the ePub and editing template.css, then adding rules like:
    h2 {
              page-break-before: always;
    should force each paragraph whose style is mapped to an h2 tag on to a new page. Whether or not it works will depend on how good the ePub reader is at implementing CSS. It seems to work for Digital Editions and also Kindle, if you convert ePub to Kindle format.
    This doesn't help at all if you are trying to force sections into separate XHTML files, though.

  • Help with Multiselect List Item

    Assuming one employee can work for multiple departments, I want to display the departments employee 7844 works for preselected in a multiselect list.
    I am using the following query statement in a report region.
    select htmldb_item.select_list_from_query_xl(1, deptno ,'select DEPTNO,DNAME from scott.dept ','MULTIPLE HEIGHT=25', 'Y',null,null,null,'Department',null) a from scott.emp where empno = 7844
    The result I am seeing is a multiple multiselect lists with one department selected in each list.
    How should I modify the query to get what I want?
    Thanks
    Mina

    Hi Carlos,
    I set up a test case in exactly the same way and it worked fine for me. I created a page item called P1_DA_DEMO and added some static select list values then added some help text. The settings I used are below, I suggest you try again but also make sure you have no other Javascript errors on the page. Use a tool like firebug to check.
    Name : Dynamic Action Demo
    Sequence: 10
    Even: Click
    Selection type: Item(s)
    Item(s): P1_DA_DEMO <- a selection list item
    Condtion: - No Condition -
    True Actions
    Sequence: 10
    Action : Execute JavaScript Code
    Fire when event result is :True
    Fire on page load: Not Ticked
    Code: javascript:popupFieldHelp('277938589795252851','1545903379570909')
    Event Scope set a s Bind.
    Thanks
    Paul

  • Need help with dependent lists boxes with ADF.

    Hello,
    I am doing a project that use tree dependent list boxes.
    Ex. State---->
    College---->
    List of courses of the college chosen above----->
    The way this should work is when I select the state automatically I want it to change to the correspondent list of colleges of that state and after i choose the colleges I want to be able to get all the courses that are given in that college.
    To implement the first two list boxes I create tree views on JDeveloper and and using SelectOneChoice for both State and Colleges. In the binding editor I bind the first View with the second and then the second view with the third and at this point if I execute the first SelectOneChoice would give me all the state and the second SelectOneChoice would give me the list of all the colleges that exist.
    Now on the third view that I create a binding variable and i put a Where state=:TheBindingVariable on the query.
    Also I set the first SelectOneChoice the outoSubmit property to true, id to StateId and PartialTrigger property to CollegeId.
    On pageDef.xml in the bindings I create action form where I select the third view from Date Collection and select Action as ExecuteWithParams. And I set the value under the parameters section to #{bindings.state.inputValue}.
    Under executables still in pageDef.xml I create a invokeAction and I set binds = ExecuteWithParams.
    On first SelectOneChoice on the ChangeValueListener i create a new ManageBeans which generate me a java class and I create a new method as well to use it to change the binding variable on the second SelectOneChoice.
    Here is the method:
    public void Change_StateId(ValueChangeEvent valueChangeEvent) {
    String StateId;
    valueChangeEvent.setPhaseId(PhaseId.INVOKE_APPLICATION);
    FacesContext adi = FacesContext.getCurrentInstance();
    ValueBinding vb = adi.getApplication().createValueBinding("#{bindings}");
    DCBindingContainer bc = (DCBindingContainer)vb.getValue(adi);
    if(valueChangeEvent.getNewValue().toString().equals("0")){
    StateId = "MA";
    OperationBinding opBindingCollegeLovIter = (OperationBinding) bc.get("ExecuteWithParams");
    opBindingCollegeLovIter.getParamsMap().put("TheState",StateId);
    opBindingCollegeLovIter.execute();
    }else{
    DCIteratorBinding statesLovIter = (DCIteratorBinding) bc.get("CollegeProvaView1Iterator");
    Row rw = statesLovIter.getRowAtRangeIndex(((Integer)valueChangeEvent.getNewValue()).intValue());
    StateId = (String) rw.getAttribute("State");
    OperationBinding opBindingCollegeLovIter = (OperationBinding) bc.get("ExecuteWithParams");
    opBindingCollegeLovIter.getParamsMap().put("TheState",StateId);
    opBindingCollegeLovIter.execute();
    I don't know what I have done wrong because I am new in this field and a little support would be really helpful.
    I am using JDeveloper 10.1.3.1.0 and Oracle SOA Suite 10.1.3.1.0.
    I would appreciate any help.
    Thanks a lot.

    user8116089 wrote:
    For some reason the first selectonechoice doesn't give me all the states that are in the database it gives me just the first 10.check the value of RangeSize for itarator in pageDef. in this case to show all items it must be set to -1
    Also there is a way to assign the first value of the first selectonechoice to null at the start.this is a problematic requirement since all items are bound to iterator and basically this should serve for navigation purpose so the first item is set as selected, but maybe some workaround exists...
    regards,
    Branislav

  • Help with contact list :(

    So I want to sync a phone number with a certain email account, right? I go to my list and only two of my emails is available. I check Default Services under Advanced Options and it's not there. The email in question is selectable when I want to choose which account to send a message from. I've gone through the host service business, deleted and undeleted, and no change. Thoughts?

    First, be sure that the contacts on the devices are in the "icloud" section and not the "On my iPhone" (or iPad) section of the contact listings/groups.
    Missing contacts:
    Here's a test to perform - using a computer's browser, log into icloud.com and go to the Contacts page.  If most of them are gone, then they are gone. 
    If they show up, then the problem is that your device is not connecting to the Contacts database on icloud. 
    On the device, go to Settings>icloud.  Be sure icloud is on and using the right ID.  If not, scroll to the bottom of the page and tap Delete Account - this just disconnects the device from that account, no data is lost.  Then log back in using the correct ID.  ALSO - be sure the Contacts are turned on (on the same screen).
    Note:  Contacts are not part of an iCloud backup, since they are part of contacts database on iCloud's servers.   So performing a restore will not help.
    Contacts are gone from icloud.com.
    Then they have been deleted.  There are many reasons for this.  One possibility is that someone else is using the same iCloud account (family member, etc.) and they deleted contacts, thinking they did want them on THEIR device.  How to get them back?  Unfortunately, an iCloud backup does not include any of the sync databases, like contacts, notes, calendars, reminders, etc. because the data is already stored in these databases.  Your only hope for restoring the data is if you had that data on a computer (like a mac's Contacts, Calendars, etc.) and that data was backed up using whatever backup software you typically use (e.g. Time Machine on a mac).  Just restore the data files back to the computer.  Other than that, I'm afraid the data is gone.

  • Help with an action refreshing script

    Hi,
    Ive been compiling a script to remove specific actions and load them up again. I work in a team where the action sets are updated regulary and this will make it easier to refresh. The script works great when run from the extendscript, but when called from a photoshop action it can remove the specified set but then does not load it up again. It throws no errors or anything.
    Below is the script, any help or ideas would be much appreciated!
    var checkstat = false;
    var w = new Window ("dialog", "Action Refresh");
    var stringOptions = [];
    stringOptions[0] = "EFFICIENCY";
    stringOptions[1] = "BANNERS & TEMPLATES";
    var imagename = w.add ("statictext", undefined, "Please select the action set you would like to refresh.");
    w.dropdownlist  = w.add("dropdownlist", undefined,"Baseline");
    var item
    for (var i=0,len=stringOptions.length;i<len;i++)
      {item = w.dropdownlist.add ('item', "" + stringOptions[i]);     
    w.dropdownlist.onChange = function() {
       //Save the selected value in a variable to be used later
       checkstat = stringOptions[parseInt(this.selection)];
    w.dropdownlist.selection = w.dropdownlist.items[0] ;
    w.buttonGrp = w.add ("group");
    var cancelbutton = w.buttonGrp.add ("button", undefined, "Cancel");
    cancelbutton.onClick = function() {   
       w.close(0);
        checkstat = false;
        return checkstat;
    w.buttonGrp.add ("button", undefined, "OK");
    w.show();
    if (checkstat == false){}
    else{
    try{
    delAction(checkstat); //Delete a specific action based on its name
    catch(e){}
    app.load(File("Z:/Editing/Actions & Templates/SITECORE/RETOUCHING ACTIONS/" + checkstat + ".atn")); //Load the action based on it's name from a pre-specified path
    function delAction(aName) {
        var idDlt = charIDToTypeID( "Dlt " );
        var desc1 = new ActionDescriptor();
        var idnull = charIDToTypeID( "null" );
        var ref1 = new ActionReference();
        var idASet = charIDToTypeID( "ASet" );
        ref1.putName( idASet, aName );
        desc1.putReference( idnull, ref1 );
        executeAction( idDlt, desc1, DialogModes.NO );

    So can you suggest what I should do to get the following outcome?  I am new to this...
    I need the fields for Listing Agent Commission and Selling Agent Commission.
    If Listing Agent is checked, need $35.00 deducted from Listing Commission Share to make the Listing Agent Commission.
    If Selling Agent is checked, but listing agent is not, I need the $35.00 deducted from Selling Commission Share to make the Selling Agent Commission.
    If Both are checked, I only need the $35.00 deducted from the Listing Commission Share, and the Selling Commission Share should Equal the Selling Agent Commission.
    If neither are checked, both fields should be 0.00.

  • Help with linked list code.

    Here's a basic linked list code that I need help on.
    What I need assistance with:
    1. How would I rewrite and delete words/phrases in the file IO section of my code?
    2. How would I make the code recognize all the words on each line of the linked list? Only the words on the first line of the file go into the linked list.
    import java.util.LinkedList;
    import java.io.*;
    import javax.swing.JOptionPane;
    public class LinkedLists {
        public static void delete (LinkedList test)
            int a = Integer.parseInt(JOptionPane.showInputDialog(null,
            "Enter a position to delete"));
            test.remove(a - 1);
            System.out.print(test);
        public static void add (LinkedList test)
            String user = JOptionPane.showInputDialog(null, "What to input?");
            int b = Integer.parseInt(JOptionPane.showInputDialog(null,
                    "What position to enter it in?"));
            test.add(b - 1, user);
            System.out.print(test);
        public static void fileRead(LinkedList test) throws IOException
            BufferedReader fileIn;
            String text;
            fileIn = new BufferedReader(new FileReader("z:/data.txt"));
            text = fileIn.readLine();
            fileIn.close();
            int b = Integer.parseInt(JOptionPane.showInputDialog(null,
                    "What position to enter it in?"));
            test.add(b - 1, text);
            System.out.print(test);
        public static void fileWrite(LinkedList test) throws IOException
            PrintWriter fileOut;
            fileOut = new PrintWriter(new FileWriter("z:/data.txt",true));
            String user = JOptionPane.showInputDialog(null, "What to input?");
            fileOut.println(user);
            fileOut.close();
            fileRead(test);
        public static void main(String[] args)  {
            LinkedList test = new LinkedList();
            test.addLast("Fly");
            test.addLast("money");
            test.addLast("awesome");
            test.addLast("woot");
            test.addLast("yay");
            System.out.print(test);
            System.out.println();
            int x = Integer.parseInt(JOptionPane.showInputDialog(null,
                    "Enter \n1 to Delete \n2 to Add \n3 to read data from file \n4 to write into the file and add to list"));
            if (x == 1) {
                delete(test);
            if (x == 2) {
                add(test);
            if (x == 3) {
                try {
                    fileRead(test);
                } catch (IOException e) {
                    e.printStackTrace();
            if(x==4)
                try {
                    fileWrite(test);
                } catch (IOException e) {
                    e.printStackTrace();
    }Edited by: Johnston on Sep 16, 2007 1:13 AM

    Hi,
    Johnston wrote:
    1. How would I rewrite and delete words/phrases in the file IO section of my code?You want to replace or remove in/from the file?
    First you have to define a file format. This is not a Java technical term, but a thing what you have to keep in mind. Simplest format is:
    - each ListItem is one line in the file closed with newline.
    Now you can read the file line by line and store the lines in a memory structure (LinkedList for ex ;-)). Then replace or remove the designated elements an write the file new by iterate over the list and write each item as line in the file.
    Johnston wrote:
    2. How would I make the code recognize all the words on each line of the linked list? Only the words on the first line of the file go into the linked list.You have to read the file line by line and then add each line as item of the list.
    Examples for reading/writing textfiles:
    http://www.exampledepot.com/egs/java.io/pkg.html#Reading%20and%20Writing
    Btw: Deal with Generics (see http://java.sun.com/docs/books/tutorial/extra/generics/index.html) an use this knowledge to declate your List better.
    greetings
    Axel

  • Help with Wish List / Favorites / Shopping (Cart) without the Shopping.

    I need to add a "Wish List" / "Favorites" that can be emailed to a Muse site that has already been created.  It's like a shopping cart without any need to actually check out and buy anything.  Google searches have not produced much help as of yet except for I did find something called simplecart.js that sounded promising because it uses JavaScript and as far as I can tell Muse can use JavaScript.  I am still struggling figuring out how to implement simplecart.js but at least it was a start.  Would anyone here have any alternative suggestions for me or be able to point me in a different or better direction.  I find it funny that is so hard to find something that says click this button to then add this info to this area.  I just need to keep a running list of items that can be emailed.
    I am using Muse because I am not a coder but any help or suggestions would be greatly appreciated.
    Sincerely,
    Ryan.

    It is not just CSS.
    CSS is only the style and presentation of it, you have HTML as well and layout of the product and store and the overall templates that wrap them. I can not see any changes to a pre-existing BC template, unfortunatly just replace with static images..
    There are guides on the guide section
    http://forums.adobe.com/community/business_catalyst/documents
    You got links to 3rd parties on the right there.
    You got your main help - http://helpx.adobe.com/business-catalyst.html
    If you are really struggling you can contact us at prettypollution.com.au or others if they are in your country. But you may need to pay someone to get things done.

  • Help with select list item and dynamics action

    G'Day Apex Gurus,
    I having problems trying to achieve to trigger the help window of a select item automatically. A help window is triggered when the select item label is clicked but my client would like to be triguered automatically as soon as the user click to see the options in the select list.
    I think that I should be able to do it with dynamic actions but I can not get it to work.
    I know when someone click on the label of the select list item trigger this JavaScript
    javascript:popupFieldHelp('277938589795252851','1545903379570909')
    So I want to trigger the javascript also when the user click of the select list item and pull down the options and for that I think that Dynamic actions is the way to go but I can't get it right.
    This is what I a doing:
    I created a Dynamic option as follow:
    Name : test
    Sequence: 30
    Even: Click
    Selection type: Item(s)
    Item(s): P1_RATING <- a selection list item
    Condtion: - No Condition -
    True Actions
    Sequence: 10
    Action : Execute JavaScript Code
    Fire when event result is :True
    Fire on page load: ticked
    Code: javascript:popupFieldHelp('277938589795252851','1545903379570909')
    I appreciate any one who can tell me what i am doing wrong here or provide a solution to my problem of achieving to trigger the help window of a select item automatically.
    Kind regards
    Carlos

    Hi Carlos,
    I set up a test case in exactly the same way and it worked fine for me. I created a page item called P1_DA_DEMO and added some static select list values then added some help text. The settings I used are below, I suggest you try again but also make sure you have no other Javascript errors on the page. Use a tool like firebug to check.
    Name : Dynamic Action Demo
    Sequence: 10
    Even: Click
    Selection type: Item(s)
    Item(s): P1_DA_DEMO <- a selection list item
    Condtion: - No Condition -
    True Actions
    Sequence: 10
    Action : Execute JavaScript Code
    Fire when event result is :True
    Fire on page load: Not Ticked
    Code: javascript:popupFieldHelp('277938589795252851','1545903379570909')
    Event Scope set a s Bind.
    Thanks
    Paul

  • Help with copy list item workflow in SPD 2013

    Hello
    i just can't find anywhere to help me on the web with workflows, I am very new to this.
    I have 2 custom lists.
    First list, 3 columns:
    'date received' (date)
    'student name' (text field)
    'hearing' (yes/no)
    When a new item is added, I enter text for student name and the date. Then I set 'hearing' to yes or no. 
    If yes, I would like a workflow to copy the student name for to the second list.
    In the second list, I have 2 columns (so far):
    'student name' (text field)
    'student number' (text field)
    I just have no idea where to start to do this. Could someone please help?
    Thanks.
    Mel

    Hi ,
    If you mean that you don't want to create duplicate items in list2 when you edit the item in list1 mutiple time, you can try adding another "if" condition contained within your above "if" block to determin if the current
    item "student name" equals to "student name" from list2, if yes then update the that item in list2, if no, then crate a new item in list2.
    Thanks
    Daniel Yang
    TechNet Community Support

  • Help with Select Lists

    Hello, Oracle community. I'm a new developer fresh out of school and I'm working on an issue tracker project on Apex 2.1. I have a page where we create cases that involve various issues called in by our clients through our support center. This app is supposed to replace what the support center currently has.
    My main problem is functionality. I have several select lists that redirect to the case creation page. I have conditions that allow several hidden fields to appear when certain values are chosen. We also have a couple of text areas for details and resolutions. The problem is that when we enter data into the text areas (CASE_DETAIL and CASE_RES) and escalate the case to a higher tier of support via redirecting select list, all text that was typed is cleared away when it redirects back to the page. All other select list values remain because they've already been redirected. How do I keep my text fields populated while preserving my select lists? The text areas are set to "Only when current..."
    If there's any links that you guys can provide with detailed info on how to handle these types or problems (the documentation is a bit general) I'd greatly appreciate it. I'm still learning this stuff. :)
    Dennis

    Wow, thanks.
    We had tried this before, but since we had email shooting off to our clients whenever the page was submitted, we went with the redirect. My brother (we're both working on this project) found the following topic while looking for this one:
    Select list with Redirect => other page items are reseted
    We had used the process to only send email when the CREATE button was pressed but completely missed the fact that we could do the same with the process row. The solution now is to switch all select lists to submit and make the process row conditional to only fire when the CREATE button is pressed. Now the page submits as much as it wants to, the text fields stay populated, and we don't get redundant emails and entries into the CASE table.
    Thanks for the help. I hope to return the favor some day. :)

  • Need Quick Help with Unordered List in Table (text too small)

    Hi,
    I have a table with 2 unordered lists and the font size is smaller than what I need.
    I'm using CSS and have checked all of my font sizes and I have all of what I consider my normal text set to 12.
    When my client views the page on his browser, the unordered lists appears to be about a size 8. I checked on my cell phone and I see what he's talking about.
    I set the <ul> and <li> to font size 12, but the problem still exists.
    It's almost like the table is scaling the text down.
    I worked all night trying to figure out what I've done wrong (newbie ) and I can't fix it and my client is waiting!
    Here's the page: http://www.precisioncleaning.com/expert_witness_services.html
    Please help!
    Thanks,
    Kathy

    I tried adding a new CSS rule to the table font, but it didn't work.
    I also edited the <tr> and <td> but still didn't work.
    I think something higher up is messing the table up. I don't know anything about specificity or how to see who has the power to overwrite the table.
    Do you?

  • Help with dialog list box(acrobat javascript)

    The following code is an example in the guide of acrobat. Now i want to list some names store in an array. So i did some changes.But it can't work.ther are errors with subl:{}. hope some help.
    var dialog3 = {
    name=new Array();
    name[1]=lucy;
    name[2]=lily;
    name[3]=han;
    // This dialog gets called when the dialog is created
    initialize: function(dialog) {
    this.loadDefaults(dialog);
    // This dialog gets called when the OK button is hit.
    commit: function(dialog) {
    // See the Dialog Object for a description of how dialog.load
    // and dialog.store work.
    var elements = dialog.store()["subl"];
    // do something with the data.
    // Callback for when the button "butn" is hit.
    butn: function(dialog) {
    var elements = dialog.store()["subl"]
    for(var i in elements) {
    if ( elements[i] > 0 ) {
    app.alert("You chose \"" + i
    + "\", which has a value of " + elements[i] );
    loadDefaults: function (dialog) {
    dialog.load({
    subl:
         for(i=1;i<4;i++)
              name[i]:+i
    // The Dialog Description
    description:
    name: "Adobe Acrobat Products", // Title of dialog
    elements: // Child Element Array
    type: "view",
    align_children: "align_left",
    elements: // Child Element Array
    type: "cluster",
    name: "Select",
    elements: // Child Element Array
    type: "static_text",
    name: "Select Acrobat you use",
    font: "default"
    type: "list_box",
    item_id: "subl",
    width: 200,
    height: 60
    type: "button",
    item_id: "butn",
    name: "Press Me"
    type: "ok_cancel"
    app.execDialog(dialog3);

    sorry ,the code is like this:
    name=new Array();
    name[1]='lucy';
    name[2]='lily';
    name[3]='han';
    var dialog3 = {
    // This dialog gets called when the dialog is created
    initialize: function(dialog) {
    this.loadDefaults(dialog);
    // This dialog gets called when the OK button is hit.
    commit: function(dialog) {
    // See the Dialog Object for a description of how dialog.load
    // and dialog.store work.
    var elements = dialog.store()["subl"];
    // do something with the data.
    // Callback for when the button "butn" is hit.
    butn: function(dialog) {
    var elements = dialog.store()["subl"]
    for(var i in elements) {
    if ( elements[i] > 0 ) {
    app.alert("You chose \"" + i
    + "\", which has a value of " + elements[i] );
    loadDefaults: function (dialog) {
    dialog.load({
    subl:
          for(i=1;i<4;i++)
            "name[i]":-i
    // The Dialog Description
    description:
    name: "Adobe Acrobat Products", // Title of dialog
    elements: // Child Element Array
    type: "view",
    align_children: "align_left",
    elements: // Child Element Array
    type: "cluster",
    name: "Select",
    elements: // Child Element Array
    type: "static_text",
    name: "Select Acrobat you use",
    font: "default"
    type: "list_box",
    item_id: "subl",
    width: 200,
    height: 60
    type: "button",
    item_id: "butn",
    name: "Press Me"
    type: "ok_cancel"
    app.execDialog(dialog3);

  • Help with Select Lists in Classic Report

    Hello,
    I working with APEX 4.1. Oracle 11.
    I have a simple classic report with 4 columns (Username, Role, Read, Update). The Read and Update columns are Select Lists with values of "Yes", "No".
    Report looks like this:
    Username Role Read Update
    JSmith Admin Yes Yes
    LJones Dev Yes No
    My requirement, is that when a user selects Yes from the Update select list, the value of the associated Read column needs to change to Yes as well for that particular Username. The change has to occur upon selection of Yes from the Update select list.
    Im not very strong with javascript, but for testing purposes I applied: onchange="alert('hi');" on the Update column. When I make a change to the Update select list, the alert does pop up.
    Can anyone suggest how I can implement the change to the associated Read value of Yes if the Update value chosen is Yes, for that particular row.
    Thank you,
    Laura

    LauraK wrote:
    I working with APEX 4.1. Oracle 11.
    I have a simple classic report with 4 columns (Username, Role, Read, Update). The Read and Update columns are Select Lists with values of "Yes", "No".
    Report looks like this:
    Username Role Read Update
    JSmith Admin Yes Yes
    LJones Dev Yes No
    My requirement, is that when a user selects Yes from the Update select list, the value of the associated Read column needs to change to Yes as well for that particular Username. The change has to occur upon selection of Yes from the Update select list.
    Im not very strong with javascript, but for testing purposes I applied: onchange="alert('hi');" on the Update column. When I make a change to the Update select list, the alert does pop up.
    Can anyone suggest how I can implement the change to the associated Read value of Yes if the Update value chosen is Yes, for that particular row.Should be possible to do this using a Dynamic Action without writing any (or much) JavaScript. The complexity in this case is that you're using items in a report rather than standard page items.

Maybe you are looking for

  • Will Lightroom 5.0 or 5.3 open raw files from my Canon 70d and will I subsequently be able to work on them in Photoshop CS 5?

    I don't want to convert to DNG files. I have have Lightroom 4 and Photoshop CS 5, neither of which will open my raw files from my new Canon 70d. Trying to decide between buying the education version of Lightroom 5 with update to 5.3 if that will do t

  • Can see it, can't get it

    I bought a new lap top so I saved all my songs (293 of them) on a thumb-drive. I loaded them onto my new laptop and it saved them as my documents (music). When I open I-tunes library, it has the list of all my songs but when I try to open them it say

  • Firefox mostly does not respond

    I bought and ran Registry Booster cause i had lots of errors and I was always getting the message below in troubleshooting info. (IT JUST POPPED UP AS I WAS TYPING THIS!). My computer ran like a charm for 1 day. Since then it became unstable and cras

  • RMI gcInterval - Does it invoke a Full GC?

    My query is with regard to the bug reported here: [http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6200091] The Bug description suggests that if the rmi gc interval is left at its default value of 1 minute (for JDK 1.5) it causes a Full Garbage Co

  • Web Serviices Authentication Settings

    Hello, I have created a Web Service based on a bespoke Function Module in ECC6. When I test this web service, I am prompted for logon details. This is ok while testing, but this web service which eventually be called from an external website so I nee