Dynamic lists and Searches

Hiya,
more than likely im being a bit simple about this but im
pretty new to asp/sql so please forgive me!
Im making a search page for the database im working on which
is fine if i want to search single fields or two fields but where
im stuck is if i want to search accross all fields but be able to
leave some blank, ie search by author and company but not project
name. At the momment i have to select something from each.
The other problem i have is that im using dynamic lists to
populate the search fields (a couple of the fields have about 300
items in them) but when i come to view it everythings ok except it
displays the last item in the list. How would i go about making it
so that it displays blank or "please Select" as the default?
hope someone can help and thanks in advance! My code for one
of the simple pages is below but i need to apply the same
principles to much bigger projects.
Regards
Si

That doesnt work, it just inserts it into the list (if static
then at the top) or dynamic then at the correct alphabetical place,
either way the default value is set at the last entry in the list
ie one beginning with z
Si

Similar Messages

  • Dynamic List and Security Issue

    Hi
    I have a Dynamic List Wizard for orders, which the user can click on edit to edit or modify the order and if the user choose "Yes" to submit ( the order form has a submit filed which has Yes / No Values)then the EDIT button disappear and the user has no more control on the record(using show if conditional Region server behavior).
    - Now i noticed that when i click on the edit the address bar includes the (www.mysite.com/form.php?order_id=1) now say the order Number 2 is already submitted (still on the list but no Edit button for it) if i write 3 or 4 or any other number instead of 1 at the address bar (www.mysite.com/form.php?order_id=3) the record which has the order number 3 displays on the screen and then you can edit it and when click update the Edit Button becomes Active which destroy the whole concept.
    so, how to fix that?

    Hi Lorie,
    Taking it a step further
    interesting that you´re mentioning this -- because I was just in the middle of finding a workaround for the very same issue ;-)
    I actually did find a pretty easy solution, which basically goes like this:
    1) wrap the whole table *plus* any possibly added hidden fields located below this table in a "Show IF conditional region" behaviour -- but make sure to *not* include the buttons within the "KT_bottombuttons" div in here.
    2) as I assume that your "supplier_name" column holds a numeric value which equals the user´s "kt_login_id" Session Variable (which it should !), define the following conditions for the "Show IF conditional region" behaviour:
    Expression 1: choose "supplier_name" from the tNG recordset
    Condition: ==
    Expression 2: choose Session -> kt_login_id
    3) tick the Has ELSE option
    4) confirm with OK
    5) replace the default "has Else" message with something meaningful like "you can´t edit this record !"
    Switching to Code view and navigating to the very start of your "Show IF conditional region" should display something like this:
    if (@$row_rsqueryname['supplier_name'] == @$_SESSION['kt_login_id']) {
    When viewing the modified Dynamic Form in a browser, you´ll note that this solution will indeed display the form instances for all "authorized" records, whereas those form instances which don´t match the required credentials will be replaced with that "has else" message.
    BUT !! This solution has one major drawback which I haven´t been able to resolve yet :: when the Dynamic Form goes into Insert Record mode
    (means when you click the "add new" link in the Dynamic List), all inner form instances will display that "has else" message.
    The only workaround I currently can come up with is to have the List´s "add new" link point to a separate "add_new.php" page that´s going to insert a single record.
    Cheers,
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • How do I add a time field to a dynamic list and form?

    I'm trying to create an update form that logs when an action was taken. Among the fields are one for the date and one for the time, but I've not been able to get the time field to display or enter data correctly.
    I've set the time format in the ADDT preferences (database date and time format is yyyy-mm-dd and HH:mm:ss and screen format is dd/mm/yyyy and HH:mm). When I create the list or the form using the wizard, there is no option to display the field as a time.
    In step 3 of 4 in the Dynamic List Wizard, the 'Display as' options are: text, numeric, double and date. Choosing date for the time field gives me a display as though it was a date (I get '00/00/0000'). I have the same problem with generating a Dynamic Form in that there is no option to display a time, only a date.
    Am I able to do this using the wizard, or is there another way that I'm, missing? Thanks for any help.

    If those date/time fields are only needed for logging purposes then follow Günter's instructions.
    If you need to be able to edit those two fields and have their values displayed properly then there are several steps you should take.
    First open the page that uses the Dynamic List behavior and make sure that all date and time fields are configured to display as dates. Then open the page with the dynamic form and click on "Manage Dynamic Form Wizard" in the Developer Toolbox. Configure your date and time fields to submit as dates. Then go to the Server Behaviors panel and double click on "Validate Form". You should now have 3 date/time options available under Validation Format: Date, Datetime, and Time. Configure each field as needed.
    This will ensure that date and time fields are saved in the proper format so that when you view their values they will be displayed properly, that is dates will be displayed as dates and times as times.
    There are also several additional server formats available that are accessible through the Bindings panel that you might want to experiment with.

  • Dynamic list and thumb loops

    hello I try to create a dynamique list with thums loops associates (to describe a stuff to sell) and it work fine when I select from a list (URL parametre)
    But I would like to navigate in my detail page (with the loop thumb) whit the next or last link and I cant do it because the thumbs doesnt works
    Some help ? thanks you all and sorry for my french

    Hi Lorie,
    Taking it a step further
    interesting that you´re mentioning this -- because I was just in the middle of finding a workaround for the very same issue ;-)
    I actually did find a pretty easy solution, which basically goes like this:
    1) wrap the whole table *plus* any possibly added hidden fields located below this table in a "Show IF conditional region" behaviour -- but make sure to *not* include the buttons within the "KT_bottombuttons" div in here.
    2) as I assume that your "supplier_name" column holds a numeric value which equals the user´s "kt_login_id" Session Variable (which it should !), define the following conditions for the "Show IF conditional region" behaviour:
    Expression 1: choose "supplier_name" from the tNG recordset
    Condition: ==
    Expression 2: choose Session -> kt_login_id
    3) tick the Has ELSE option
    4) confirm with OK
    5) replace the default "has Else" message with something meaningful like "you can´t edit this record !"
    Switching to Code view and navigating to the very start of your "Show IF conditional region" should display something like this:
    if (@$row_rsqueryname['supplier_name'] == @$_SESSION['kt_login_id']) {
    When viewing the modified Dynamic Form in a browser, you´ll note that this solution will indeed display the form instances for all "authorized" records, whereas those form instances which don´t match the required credentials will be replaced with that "has else" message.
    BUT !! This solution has one major drawback which I haven´t been able to resolve yet :: when the Dynamic Form goes into Insert Record mode
    (means when you click the "add new" link in the Dynamic List), all inner form instances will display that "has else" message.
    The only workaround I currently can come up with is to have the List´s "add new" link point to a separate "add_new.php" page that´s going to insert a single record.
    Cheers,
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • Mail rules, edit header list and search full content?

    I'm deserately trying to filter my emails.
    within the raw source of my emails I want to filter the emails that contain file:/// this is in the body of the email or the html part.
    Under
    Preferences > Rules > in the drop down menu edit header list, but what should I use to make it search this deep in the mail?
    This is an example of the email, and highlighted in BOLD is the area I wish to filter out into a separate email
    Many Thanks in advance
    Matt
    X-MimeOLE: Produced By Microsoft Exchange V6.5
    Received: by $$$$$.$$$.$$$
              id <01CCCAFD.69599D8F@$$$$$.$$$$$$.$$$>; Wed, 4 Jan 2012 16:25:02 -0000
    MIME-Version: 1.0
    Content-Type: multipart/alternative;
              boundary="----_=_NextPart_001_01CCCAFD.69599D8F"
    Content-class: urn:content-classes:message
    Subject: Bulletin Week 19
    Date: Wed, 4 Jan 2012 16:25:02 -0000
    Message-ID: <0F0A41CBB8261044A318554AA36AAD9C1641760E@$$$$$.$$$$$$.$$$>
    X-MS-Has-Attach:
    X-MS-TNEF-Correlator:
    Thread-Topic: Bulletin Week 19
    Thread-Index: AczK/Vmg71BiSfYQRrusUkYifKAcjQ==
    From: "Their Name" <[email protected]>
    To: "Everyone Else" <[email protected]>,
    This is a multi-part message in MIME format.
    ------_=_NextPart_001_01CCCAFD.69599D8F
    Content-Type: text/plain;
              charset="iso-8859-1"
    Content-Transfer-Encoding: quoted-printable
    Hi All
    =20
    Please click on the link below to see the latest news.
    =20
    G:\Retail Ops Public\BULLETIN\2011-2012\Week 19\Bulletin - All Docs.doc =
    <file:///\\uranus\here\Retail%20Ops%20Public\BULLETIN\2011-2012\Week%20=
    19\Bulletin%20-%20All%20Docs.doc>=20
    =20
    Many thanks,
    =20
    Kind Regards,
    Their Name
    =20
    fashion =FC footprint=20
    Please do not print this email unless absolutely necessary=20
    =20
    ------_=_NextPart_001_01CCCAFD.69599D8F
    Content-Type: text/html;
              charset="iso-8859-1"
    Content-Transfer-Encoding: quoted-printable
    <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
    charset=3Diso-8859-1">
    <html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
    xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
    xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
    xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
    xmlns=3D"http://www.w3.org/TR/REC-html40"><head><meta name=3DGenerator =
    content=3D"Microsoft Word 14 (filtered medium)"><style><!--
    /* Font Definitions */
    @font-face
              {font-family:Calibri;
              panose-1:2 15 5 2 2 2 4 3 2 4;}
    @font-face
              {font-family:"Comic Sans MS";
              panose-1:3 15 7 2 3 3 2 2 2 4;}
    @font-face
              {font-family:Webdings;
              panose-1:5 3 1 2 1 5 9 6 7 3;}
    /* Style Definitions */
    p.MsoNormal, li.MsoNormal, div.MsoNormal
              {margin:0cm;
              margin-bottom:.0001pt;
              font-size:12.0pt;
              font-family:"Times New Roman","serif";}
    a:link, span.MsoHyperlink
              {mso-style-priority:99;
              color:blue;
              text-decoration:underline;}
    a:visited, span.MsoHyperlinkFollowed
              {mso-style-priority:99;
              color:purple;
              text-decoration:underline;}
    span.emailstyle17
              {mso-style-name:emailstyle17;
              font-family:"Arial","sans-serif";
              color:windowtext;}
    span.emailstyle18
              {mso-style-name:emailstyle18;
              font-family:"Arial","sans-serif";
              color:navy;}
    span.emailstyle19
              {mso-style-name:emailstyle19;
              font-family:"Arial","sans-serif";
              color:navy;}
    span.emailstyle20
              {mso-style-name:emailstyle20;
              font-family:"Arial","sans-serif";
              color:navy;}
    span.emailstyle21
              {mso-style-name:emailstyle21;
              font-family:"Arial","sans-serif";
              color:navy;}
    span.EmailStyle22
              {mso-style-type:personal-reply;
              font-family:"Calibri","sans-serif";
              color:#1F497D;}
    .MsoChpDefault
              {mso-style-type:export-only;
              font-size:10.0pt;}
    @page WordSection1
              {size:595.3pt 841.9pt;
              margin:72.0pt 90.0pt 72.0pt 90.0pt;}
    div.WordSection1
              {page:WordSection1;}
    --></style><!--[if gte mso 9]><xml>
    <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
    </xml><![endif]--><!--[if gte mso 9]><xml>
    <o:shapelayout v:ext=3D"edit">
    <o:idmap v:ext=3D"edit" data=3D"1" />
    </o:shapelayout></xml><![endif]--></head><body lang=3DEN-GB link=3Dblue =
    vlink=3Dpurple><div class="3DWordSection1"><p class="3DMsoNormal"><span =
    style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif"'>Hi =
    All</span><span lang=3DEN-US =
    style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif"'><o:p></o:p>=
    </span></p><p class="3DMsoNormal" style=3D'margin-left:144.0pt'><span =
    style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif"'> </spa=
    n><span lang=3DEN-US =
    style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif"'><o:p></o:p>=
    </span></p><p class="3DMsoNormal"><span =
    style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif"'>Please =
    click on the link below to see the latest news <o:p></o:p></span></p><p class="3DMsoNormal"><span =
    style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif"'><o:p> =
    </o:p></span></p><p class="3DMsoNormal"><span =
    style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
    D'><a =
    href=3D"file:///\\uranus\here\Retail%20Ops%20Public\BULLETIN\2011-2012\=
    Week%2019\Bulletin%20-%20All%20Docs.doc">G:\Retail Ops =
    Public\BULLETIN\2011-2012\Week 19\Bulletin - All =
    Docs.doc</a></span><span =
    style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif"'><o:p></o:p>=
    </span></p><p class="3DMsoNormal"><span =
    style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif"'><o:p> =
    </o:p></span></p><p class="3DMsoNormal"><span =
    style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif"'>Many =
    thanks,<o:p></o:p></span></p><p class="3DMsoNormal"><span =
    style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
    D'><o:p> </o:p></span></p><div><p class="3DMsoNormal"><span =
    style=3D'font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D'=
    >Kind Regards,</span><span =
    style=3D'color:#1F497D'><o:p></o:p></span></p><p class="3DMsoNormal"><span =
    style=3D'font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D'=
    >Their Name</span><span =
    style=3D'color:#1F497D'><o:p></o:p></span></p><p class="3DMsoNormal"><span =
    style=3D'font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D'=
    >Communications Co-ordinator<o:p></o:p></span></p><p =
    class=3DMsoNormal><span =
    style=3D'font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D'=
    >§§§</span><span =
    style=3D'color:#1F497D'><o:p></o:p></span></p><p class="3DMsoNormal"><span =
    style=3D'font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D'=
    >01277 844429<o:p></o:p></span></p><p class="3DMsoNormal"><span =
    style=3D'font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D'=
    ><o:p> </o:p></span></p><p class="3DMsoNormal"><b><span lang=3DEN-US =
    style=3D'font-size:10.0pt;font-family:"Comic Sans =
    MS";color:green'>fashion </span></b><span lang=3DEN-US =
    style=3D'font-size:13.5pt;font-family:Webdings;color:green'>=FC</span><b>=
    <span lang=3DEN-US style=3D'font-size:10.0pt;font-family:"Comic Sans =
    MS";color:green'> footprint</span></b><span lang=3DEN-US =
    style=3D'font-size:10.0pt;font-family:"Comic Sans MS";color:green'> =
    </span><span style=3D'color:#1F497D'><o:p></o:p></span></p><p =
    class=3DMsoNormal><span lang=3DEN-US =
    style=3D'font-size:10.0pt;font-family:"Comic Sans =
    MS";color:green'>Please do not print this email unless absolutely =
    necessary</span><span lang=3DEN-US style=3D'color:black'> </span><span =
    style=3D'color:#1F497D'><o:p></o:p></span></p></div><p class="3DMsoNormal" =
    style=3D'margin-left:144.0pt'> <span =
    lang=3DEN-US><o:p></o:p></span></p></div></body></html>
    ------_=_NextPart_001_01CCCAFD.69599D8F--

    You need to copy the XSL files from
    /usr/share/wikid/lib/apple_templates
    to
    /Library/Application Support /Apple/WikiServer/Themes/custom theme
    and then modify default.xsl in your theme folder.
    Message was edited by: onisama

  • IMAP message list and search missing messages

    I access an IMAP server from my MacBook and iPad. When I look in folders on the server other than the inbox, the MacBook shows all the messages but the iPad is missing many. When I compare the two, the iPad has all, one-for-one, for the past four days or so. Before that, the list on the iPad is spotty. I have touched the update and download more messages buttons.
    Searching on the iPad also misses messages, but different ones. I can search on the iPad for messages I see on the Mac, and sometimes find them, although they don't show up in the message list (for example, the message from about five days ago, immediately before the last message which shows up consistently on both the Mac and iPad). In other cases, I can do a search on the Mac and iPad, and the Mac will show more hits from the search than the iPad.
    So, mail on the iPad, at least with an IMAP server, is unreliable. Is this well-known? Will this improve on iOS 4.2?
    Thanks for your help,
    ==Leonard

    I did an experiment with the IMAP server I have which stores the mail in mbox format in the home directory of the Linux server I have a login to. I can drag messages in any order I want from the inbox to a folder, and can verify that in the mbox file, they are stored in the order I dragged them in. Yes, those messages are shown in the iPad message list in chronological order, regardless of the order I dragged them into the folder.
    But, earlier messages are not shown in the iPad message list in the order they are in the mbox file or chronological order. Well, they are in chronological order, but with big time gaps. For example, the iPad shows a message from April 6 followed by April 1. But, I can see on my Mac that I have many messages between April 1 and 6. They do not appear on the iPad.
    Ah, I think I see something. Some of the messages in this mailbox are log files with timestamps at the beginning of the line. The iPad mail program appears to be taking the time from the first line in the body of the message rather than the timestamp in the mail message envelope.
    No, it just got stranger. I selected another mailbox, and then went back to the mailbox with the log files I was looking at before and the order of messages has changed! Now there are messages from May where there were messages from April. Still might be the timestamps in the body of the message because those are the first messages shown in the list after the last non-log-file messages.
    Now there are messages missing between April 30 and May 4, where I can see that the messages exist by looking in the Mac mail program. I can see that all the missing messages on the iPad are the ones for which the body starts with a timestamp.
    Perhaps the iPad has trouble with an IMAP server using mbox format.
    Another complication in my case is that the messages in the mbox file are not stored in the order they were received. I suspect this is because I copied them there, using Apple Mail, from previously being stored on my Mac. That is, I had all my mail On My Mac, and then selected all the messages in the folder and dragged them to the IMAP server folder. That put them into the mbox file in an unusual order. But, on the Mac, they show chronologically, regardless of the order stored in the file.
    The iPad also does this, for recent messages (which don't contain those log files with timestamps), but the timestamps in the body of the message may be confusing it.

  • 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;
    }

  • Bug? - Dynamic lists, Apex 4.1

    I'm attempting to create a dynamic list (Apex 4.1/Oracle 11.2.0.1) that will ultimately serve as a hierarchical menu structure for a site.
    For those that have dealt with this you probably know that there are two main parts, the query against the source table and the associated list template. I'm pretty sure I've got my query correct but would appreciate any comments/feedback on what I've got so far. Here's my query:
    select
    level,
    entry_text label,
    entry_target target,
    null is_current
    from custom_menus
    where list_name = 'main menu'
    start with list_entry_parent_id is null
    connect by prior list_entry_id = list_entry_parent_id
    order siblings by display_sequenceThis produces the following output from my table, which looks pretty comparable to the static list I've been using:
    LEVEL     LABEL     TARGET     IS_CURRENT
    1     My Home     f?p=myApp:HOME:&SESSION.::&DEBUG.::::      -
    1     My Dashboard      -      -
    2     My Year to Date     f?p=myApp:20:&SESSION.::&DEBUG.::::      -
    2     My Contest     f?p=myApp:26:&SESSION.::&DEBUG.::::      -
    2     My Claims     f?p=myApp:24:&SESSION.::&DEBUG.::::      -
    2     My Current Business     f?p=myApp:22:&SESSION.::&DEBUG.::::      -
    1     My Search     f?p=myApp:810:&SESSION.::&DEBUG.::::      -
    1     My Reports      -      -
    2     My Contact Summary     f?p=myApp:830:&SESSION.::&DEBUG.::::      -
    2     My Production Support Report     f?p=EXT_REP:PROD_SUPPORT:&APP_SESSION.::::G_REGION_ID,G_AGENCY_ID,G_AGENT_ID:&P1_REGION_LOV.,&      -
    2     My Commission Report     f?p=myApp:680:&SESSION.      -
    2     My Chargeback Report     f?p=EXT_REP:CHARGEBACK:&APP_SESSION.::::G_REGION_ID,G_AGENCY_ID,G_AGENT_ID:&P1_REGION_LOV.,&P1_AGENCY_LOV.,&P1_AGENT_LOV.:      -
    1     My myApp&trade;     f?p=EXAPP:HOME:&SESSION.      -
    1     My Online Store     f?p=OLS:HOME:&SESSION.      -
    1     My Marketing     f?p=myApp:710:&SESSION.      -So the first question is: does this look correct, from the point of view of what Apex is expecting a dynamic list to look like? It looks like what I would expect, based on the data in my table, but not sure about how the dynamic list is handling the ordering of the list elements.
    Assuming this is "correct" and Apex just takes the input in the order it's provided then I'm going to move on the list template. I already have a list template that works with my static list, but when I try to use it with the dynamic list it all falls apart. The nesting of the &lt;ul&gt; and &lt;li&gt; elements gets messed up. The problem seems to be getting the right &lt;ul&gt; and &lt;li&gt; elements in the right areas of the template definition.
    If the query above and the output look like what Apex is expecting (I'd appreciate feedback on this) then I'll post some example HTML that's being emitted from my template and see if anyone can see where I might be going wrong. Thanks for any help you might have.
    Earl
    Edited by: Earl Lewis on Dec 25, 2011 1:25 PM

    Paul,
    That is interesting. Thanks for that pointer. Most interesting part about it is that my list template works just fine for my static list and it goes wonky when I try to apply it to the dynamic list. I think this might actually be getting to the root of the problem.
    Perhaps some things are being assumed with the new dynamic lists and maybe stepping on my template design? Guess I need to devise a good test to see if I can better hone in on the problem.
    For any others out there that might be reading, this is not resolved so any additional thoughts or feedback will still be greatly appreciated.
    Thanks again Paul.
    Earl

  • How to add a column to a list created with the Dynamic List Wizard to display the values of the fiel

    Hi,
    ADDT, Vista, WAMP5.0
    We have 2 tables: clients_cli (id_cli, name_cli, tel_cli, and several more fields) and cases_cas (id_cas, idcli_cas, court_cas, and a lot of other fields).
    Clients may have many cases, so table cases_cas have a foreign key named idcli_cas, just to determine which case belongs to which client.
    We designed the lists of the two tables with the Dynamic List Wizard and the corresponding forms with Dynamic Form Wizard.
    These two forms are linked with the Convert Dynamic List and Form Wizards, which added a button to clients list named "add case".
    We add a client and then the system returns to the clients list displaying all clients, we look for the new client just added and then press "add case", which opens the Dynamic Form for cases, enter all case details and everything processes ok.
    However, when we view the cases list it display all the details of the case, including the column and values for the foreign key idcli_cas. As you can image, it is quite difficult for a human to remember the clients ids.
    So, in the cases list we added a another column, named it Name, to display the names of the clients along with cases details. We also created another recordset rsCli, selected the clients_cli table, displaying all columns, set filter id_cli = Form Variable = idcli_cas then press the Test button and everything displays perfect. Press ok.
    Then, we position the cursor inside the corresponding cell of the new Name column, go to Bindings, click on name_cli and then click on insert. The dynamic field is inserted into the table cell as expected, Save the page, and test in browser.
    The browser call the cases list but fails to display the values of the Name column. The Name column is simply empty.
    This issue creates a huge problem that makes our application too difficult to use.
    What are we doing wrong?
    Please help.
    Charles

    1.     Start transaction PM01, Create Infotype, by entering the transaction code.
    You access the Create Infotype screen.
    2.     Choose List Screen.
    3.     In the Infotype no. field, enter the four-digit number of the infotype you want to create.
    When you specify the infotype number, please remember to enter any leading zeros.
    4.     In the Screen Number field, enter the screen number of the list screen you want to enhance.
    5.     Choose Create.
    The Dictionary: Initial screen appears:
    6.     Create the list screen structure.
    7.     Choose Activate.
    8.     Return to the Enhance List Screen in the Enhance Infotypes transaction (PM01).
    9.     Choose Create All.
    The additional fields are displayed on the list screen, however, they contain no data.
    The fields can be filled in the FORM routine FILL-LISTSTRUCT in the generated program ZPnnnn00. The FORM routine is called for each data record in the list.
    Structure ZPLIS is identified when it is generated with a TABLES statement in the program ZPnnnn00.
    The fields can be filled from the Pnnnn structure or by reading text tables.

  • Dynamic List filter not refreshing - suggestions?

    Dynamic list filtering problems...
    Any suggestions for how to begin trouble shooting this ussue?
    (Apache, MySql, php) I have to click multiple times on the column header for a sort to occur and the filter text field drops any entered value when you click the filter button. If you click on the specific filtered column header later, the filter value re-appears and filtering occurs.
    The dynamic lists I have been testing are created with the list wizard, with no modifications to any settings, made from recordset or straight from data table. In either case the lists and filtering work with one click in my testing server (same setup) but have these oddities if in the production server.
    Any suggestions of what to look for to get it working in the production server for my client...filtering would be wonderful for them!
    Thank you anyone for suggestions,
    Steve

    Thanks Günter Schenk for the reply however...
    So you can see what's happening I created a seperate mysql database with one table and four fields. ID, date, and 2 varchar 50. I then created a dynamic list and form, both made without any hand coding using the wizards.
    I made sure all relavent files from the includes folder are up-to-date with 1.0.0 version files.
    You are welcome to go to http://www.sunkistkids.org/mmtest/listtest.php to test this.
    Also you will find info.php in the root directory of the site just in case you spot any part of the general configuration that might be causing this.
    Any further suggestions are very welcome and will be implemented quickly so I can make the filter feature work for the client.
    Thank you very much for your time,
    Steve

  • Dynamic list... select list with submit

    Hi,
    I am trying to create a dynamic list and based on the selection I want to pass the parameters… Here is what I’ve done so far
    Step 1… created a list of values (through shared components) using a query
    Step 2… created an item… used option to select list with submit…
    Here is the challenge: How to update my P1_Value based on the value from Select list…
    Thanks in advance

    I've created a page process by following these steps
    Create Page Process:
    Category of the process: Session State
    Session State process type: Set Preference to value of Item (PreferenceName:ITEM)
    Point: On Submit after computation and validation
    Preference Item: P1_Value
    Getting an error message:
    Invalid PL/SQL expression condition: ORA-06550: line 1, column 29: PLS-00306: wrong number or types of arguments in call to 'NVL' ORA-06550: line 1, column 7: PL/SQL: Statement ignored

  • Paramform dynamic list can not show in browser

    In report builder I build two user parameter by Parameter Form builder.
    one is the search_mouth in which we type the month, the other is department_name
    which is selected by dynamic list and we can not type the name only select a name from the list.
    Everything is ok when I run it in report environment, but when I call it in browser the search_mouth field is ok, but the department_name change to a common textfield not a dynamic list,and all department_name is shown below the textfield.
    command line is http://10.20.8.102:8888/reports/rwservlet?destype=cache&desformat=PDF&report=myrep&userid=scott/tiger@a&paramform=yes
    I do not know how to show the dynamic list in browser.

    I just tried and it works for me. The LOV value of the parameter is shown in browser as pulldown list.
    I created a group above reports based on select * from emp where deptno = :p_deptno.
    user parameter p_deptno is defined as sql select unique deptno from emp. In the parameter form builder, I selected desformat and p_deptno to show in the parameter form. When I run it through rwservlet, I get a text edit box for desformat, and pulldown list for deptno.
    Thanks,
    -Shaun

  • [PHP-MYSQL] tutorial on using ADDT and dynamic list/form with self-foreign keys?

    Hi all,
    I have a 3 levels catagoris product catalog and would like to manage it
    using dynamic list/forms.
    I'm searching info about using self-foreign keys on dynamic list/forms.
    Is there any tutorial on how to manage this kind of tables using addt?
    tia
    tony

    Hello Tom,
    You were offered the solution on the InterAKT forums, I am not sure why you are posting this problem again. There's also another thread here that presents the same issue and solution:
    http://www.adobeforums.com/cgi-bin/webx/.3bc42a90/0
    Regards,
    Ionut

  • Content search web part to display only lists and libraries

    Hi,
    I want to configure Content Search Web Part to display only the names of lists and libraries inside my site collection. I tried adding Keyword filter "Only return lists and libraries", however it is also returning list items. Any idea on this issue?

    Hi John,
    Thanks.
    Agree with your point. I can't use any code (that is client requirement). Also, still I use, I can't use it in this scenario. I want to display most visited lists and libraries (in last month or lifetime). I can use managed properties such as ViewsLifeTime
    and ViewsRecent to sort it If i get the names of lists and libraries. Let me know if this clarifies the question more and you have an idea about it.

  • How to create two level dynamic list using JSP , Java Script and Oracle

    I am new in JSP. And i am facing problem in creating two level dynamic list using JSP ,Java Script where the listdata will come from Oracle 10g express edition database. Is there any easy way in JSP that is available on in ASP.NET.
    Plz response with details.

    1) Learn JDBC API [http://java.sun.com/docs/books/tutorial/jdbc/index.html].
    2) Create DAO class which contains JDBC code and do all SQL queries and returns or takes ID's or DTO objects.
    3) Learn Servlet API [http://java.sun.com/javaee/5/docs/tutorial/doc/].
    4) Create Servlet class which calls the DAO class, gets the list of DTO's as result, puts it as a request attribute and forwards the request to a JSP page.
    5) Learn JSP and JSTL [http://java.sun.com/javaee/5/docs/tutorial/doc/]. Also learn HTML if you even don't know it.
    6) Create JSP page which uses the JSTL c:forEach tag to access the list of DTO's and iterate over it and prints a HTML list out.
    You don't need Javascript for this.

Maybe you are looking for

  • How do you get your foot in the door?

    Hello! So I feel that I've done everything right so far. I've been using Java for over a year now. I got the SCJA cert and have an active secret clearance. I live in Jacksonville FL and the market is a little bit tough right now but seems like senior

  • Forms 10.1.2.0.2

    Does anyone know the release date of Oracle Forms 10.1.2.0.2? I saw messages saying that it would be released in June. Will WebUtil be available with that Forms version? Also, is there any suggestion of how to upgrade Oracle JInitiator on clients' PC

  • Network Devices not able to connect to the Internet, but local network has no issues.

    Hello All, I have been having this problem for the past 4 months or so(ever since I got the server).  I have a Windows Server 2012 R2 machine running a DHCP server.  I have 2 network devices installed on it.  One hardwired to the motherboard and one

  • Waiting in WDA

    Hello Friends, I am developing a WDA application wherein I need to perform and RFC call to check some information on other system. If that information is not yet updated on the remote system. I have to wait for sometime and then again call RFC. So th

  • Audio levels in fcpx

    My audio levels are acting a little funny, I dont know if this is normal if you see I have 4 cuts and in one of the cuts the levels are normal and the other 3 the levels go off the charts which is strange when I recorded everything the same way for e