Newbie in JAVA - Psuedocode needed, please!

I'm addicted. I want to create my own applications.

I'm an experienced programmer, but not in Java.

My first self-appointed task to change the Hello World program (of course). What I want to do is, when you click Close, a dialog box appears asking you to confirm (I've successfully done this).

If so, you are brought to a different screen. Thus, my road-block.

Please help me with my psuedocode and tell me where I'm wrong. OBJECT-oriented programming is new to me btw, I'm a PHP guy long write simple classes.

Here is my code (does not, but with integrated questions):

[code]

I'm addicted. I want to create my own applications.

I'm an experienced programmer, but not in Java.

My first self-appointed task to change the Hello World program (of course). What I want to do is, when you click Close, a dialog box appears asking you to confirm (I've successfully done this).

If so, you are brought to a different screen. Thus, my road-block.

Please help me with my psuedocode and tell me where I'm wrong. OBJECT-oriented programming is new to me btw, I'm a PHP guy long write simple classes.

[code]

//--------------------
Spevify package
//--------------------

This means the "package" of files (classes)
must be in the folder:
//
com/rim/samples/device/multiplescreendemo?

If so, why this root starts at the 'com '?
package com.rim.samples.device.multiplescreendemo;

//---------------------
Import dependencies
//---------------------
Import net.rim.device.api.ui.UiApplication;
Import net.rim.device.api.ui.container.MainScreen;
Import net.rim.device.api.ui.Field;
Import net.rim.device.api.ui.component.Dialog;
Import net.rim.device.api.ui.component.LabelField;
Import net.rim.device.api.ui.component.RichTextField;
 
We must extend 'UiApplication' order to: _ ([your great answer here!])

SerializableAttribute public class MultipleScreenDemo extends UiApplication {}

/**
* Entry point for application MultipleScreenDemo.
*/

Public Shared Sub main (String [] args)
{
Create a new instance of the application.
PAP MultipleScreenDemo = new MultipleScreenDemo();
        
To apply to enter the event thread and the beginning of message processing,
We invoke the enterEventDispatcher() method.
// --------------------------------------------
//
Why are we doing this? Given that this seems to be a single
threaded applications, why we bother with
event listeners?
//
[Your great answer here!]
theApp.enterEventDispatcher ();
}

/**
* The constructor
*/
public MultipleScreenDemo()
{
Push the first screen
pushScreen (new ScreenNumberOne());
}

OK, it is clear that we must extend screen to have
access to its properties and methods.
//
But why the keyword "final"?
final ScreenNumberOne class extends form {}

Constructor
public ScreenNumberOne() {}

Add a title
LabelField title = new LabelField ("Several demo screens", LabelField.ELLIPSIS |) LabelField.USE_ALL_WIDTH);
setTitle (title);

Add text
Add (new RichTextField ("it's a screen. There is more! ((', Field.NON_FOCUSABLE));

}

/**
Display a dialog box
*/

public void close()
{
        
If (Dialog.ask (Dialog.D_YES_NO, "you will see another screen?") == Dialog.YES) {}

// --------------------------------------
HOW CAN I DISPLAY ANOTHER SCREEN HERE?
// --------------------------------------

} else {}

System.Exit (0);
        
Great screen, right?
Super.Close ();

}

}

}

}

[/ code]

[/ code]

Get a good understanding of the technology architecture and application Blackberry-look carefully the links I gave above.

Partial understanding leads to strange errors and unexpected application behavior.

And you will spend more time on fixing these bugs you would spend on learning.

Tags: BlackBerry Developers

Similar Questions

  • How can I show visitors without Java "You need java script enabled to view this site?

    I use Firefox as my browser and by the use of NoScript generally do not have Java script active. Although often just by the behavior of a page I visit I need to activate some Javascripts I know, I get often a clear message on the Web site itself - something like "we see that you have no Java script active, please do" or maybe "without Javascript you can not display this site correctly."

    Now, I can just put a general message about the 'splash' page, saying "this site requires Java script to be enabled ' for all visitors to see, but I'd rather have the message just for those that need to see because Java script is disabled.  How do I do that?

    Thanks in advance.

    Karen

    You really need the NOSCRIPT section.

    Or a bit of style:

    This site works best with JavaScript active.

  • I need assistance in the import of certain vectors, watercolor color chart and other creative market (step by step instructions).  Im a newbie to Illustrator and need help.

    I need assistance in the import of certain vectors, watercolor color chart and other creative market (step by step instructions).  Im a newbie to Illustrator and need help.

    Should be the subject of the file > open.  After the download.  The swatches will come with the file.

  • Satellite A30 213: Internet Wi - Fi, USB and Touchpad drivers needed please

    Hello

    Recently, I restarted my pc, but have not used the application supplied with the pc CD. Now my internet connection is not installed, then the light does not illuminate, and my Touchpad is not scrolling features. My USB 2.0 speed is also slow.

    If someone could possibly help me get these drivers it would be greatly appreciated. Also if the pilots were not a simple install (setup) icon could you please let me know what I need to know to install.
    Thank you all in advance and any help would be great.

    Hello Loyan

    Sorry, but your ad is not understandable to me. Do you mean that you have installed the own operating system?

    If so, please install the necessary drivers. Each of them you can find on Toshiba supports the page. If it please the first chipset driver installation and continue with display, audio, driver and so on.

  • Can not install Java SE 6 - Please help

    I got the latest version of Java installed, and with my Apps from the Adobe CS5 I need Java SE 6. I uninstalled Java and pref, but when I try to install SE 6 it will not me, saying a newer version of this package is already installed... which is false. Any ideas?

    Download Java for OS X 2015-001

  • Jet Office NP 2542: help needed please

    Hi there and thanks for reading.
    I do a university course and stay in student accommodation which benefits from a wireless network. I do my work on an iPad, so today, I went out and bought a hp office jet 2542 so I can print the course.
    I can't get the * beep * thing connected at all. The blue light continues to blink at me. The iPad is the printer ok and I printed a test page but I am puzzled any advice would be appreciated. Thank you
    Jen x

    Hello @jross6988,

    I understand that you are having problems when you try to connect the all-in-one printer HP Deskjet 2542 to your university network to enable wireless printing. I would like to help you today to this question. Now, just if you are aware, because it is a quality consumer printer it is supported only on home networks and is home to the office. The printer responds better on a core network with just a router and up to 10 devices connected to this network. You are in a University in the network is going to be much more advanced. He'll also probably switches and installation of network servers that can cause problems with communication with consumer products. Printers require some ports to open and compensation on the network so that the printer should not be considered a threat attempts to access the network. Therefore, a large part of the network of troubleshooting is to powercycle the router and ensure that certain ports and settings are configured to enable a printer communication. Chances are, you will not be able to follow these steps because COMPUTING at school will have control over this vast network. That being said, I have a few things for you to try.

    Step 1: Confirm network settings:

    When you run the Setup wireless using the USB cable on your computer, the program installation will usually gather information your computer network to set up the wireless on your printer. This means that your computer must be connected to the University network.

    • Make sure that the network is 2 GHz and 5 GHz not. Printers are not supported on 5 GHz networks
    • Make sure that your computer is not connected to a network of comments
    • Network password is case-sensitive. If you are prompted to type to ensure what you type into it exactly.
    • Needs to be disabled on the router MAC filtering
    • The multicast must be turned on on the router
    • Hello must be enabled on the router
    • The following ports must be open:
    • The incoming Ports (UDP): 137, 138, 161, 427, 80, 443
    • Coming out of Ports (TCP): 137, 139, 427, 9100, 9220, 9500, 5222 5223

    These parameters will have to be confirmed by the IT Department, if you do not have access to the router.

    Step 2: Configure the wireless:

    Because it is a base model printer, it doesn't have a front panel wireless configuration option. Therefore, you rely on a Windows or Mac computer to configure the wireless. You will need to have a USB cable for the wireless configuration.

    Because I don't know what operating system you use on your computer, can please click you here. Once the support document opens, please select your operating system and follow the instructions to set up your wireless network.

    Once the wireless is configured on your printer, you check simply that your iPad is connected to the same network that your printer is connected to the and which will allow your printer to print from your iPad.

    If the wireless configuration is always a failure, due to the network, the other alternative would be to use Direct wireless.

    Step 3: Direct Wireless Configuration:

    Direct Wireless will allow you to print wireless from your printer without having to connect to a network. Enable you wireless directly on your printer. By doing so, your printer will now broadcast its own network name. At this point up to 5 computers, tablets, phones can connect to the network printers and can print directly to the printer. However, you will not be able to access the internet on your iPad and print on your printer at the same time as your iPad has only 1 card network which will be connected directly to the printer.

    If you want to use Direct wireless, you must install a print on your iPad application. Please click here for the application.

    After loading the application, touch button Wireless directly on your printer is able to walk. Once the Direct wireless is enabled on your iPad select to connect to a new network. Under the list of available networks, you will see your HP Deskjet. To connect to this network, and now you'll be able to print. Yet once, this function will not work unless you are connected to the network printers which means that you are not able to go on the internet at the same time.

    This is the button wireless directly on your device:

    Unfortunately, printing on large networks, as this university network, is almost impossible because the school most likely won't be unwilling to give to your permissions to print to the network printer.

    Please reply to this message with the result of your troubleshooting. Good luck!

  • Urgent assistance needed, please! (Virus)

    Hi, about 20 minutes ago, I got a LOT of messages saying that various programs were running malicious processes on my computer... programs that I can remember are:

    CMD. EXE

    Spoolsv.exe

    There were about five messages altogether.

    About 10 minutes ago my bar start and the desktop icons disappeared. I tried from explorer.exe, but he said he could not be found.

    I wonder if there's a way to fix my computer VERY quickly that it's gradually slower and I don't know it will stop working altogether soon.

    I am running Windows XP, Service Pack 3.

    If you need more information PLEASE ask! I really need help.

    I use Rising Antivirus for the Protection in real time (this gave me messages) and MalwareByte Anti Malware for scanning (I'm scanning for the moment).

    Thank you in advance!

    You are welcome.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Spybot S & D is NOT an anti-virus.

    For an AV:

    http://www.avast.com/eng/download-avast-home.html

    Avast anti-virus is XP, Vista and Windows 7 compatible (32-bit and 64-bit Versions), FREE, auto update and a user of low resources from your computer.

    And, don't have 1 (one) anti-virus installed / running on your computer at any time.

    Conflicts, crash and freezing may occur if you have more than 1 (one).

    Thi is one of the best AVs with a resident shield, etc.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Spybot S & D News:

    http://www.safer-networking.org/en/index.html

    http://www.safer-networking.org/en/tutorial/index.html

    Check section 8 of the tutorial...

    All the info on its protection in real-time and much more are in the links above.

    See you soon.

    Mick Murphy - Microsoft partner

  • help needed please HP officiate 7500E on iMac

    Hi can someone please help, I have an officejet 7500 large format (all-in-one printer scanner fax) it works ok on my imac for some time now.

    Today I updated my software to Yosemite, I got the computer connected by usb directly to the printer and also a wireless to my network, so my imac, iPad and iphone can link to it.

    Now, whenever I try to scan print from the HP utility it does not find the printer or when he finds it nothing happens. What software can I download to run spring ter, I think the HP utility that I have is for windows, not the Imac. Regards Allan

    Hi @AllanPar ,

    I see that you experience printing problems, since the upgrade to Yosemite. I can help you with this.

    What is the name and the product number of your printer? How can I find my model number or product number?

    There are 4 models Officejet 7500.

    Unplug the printer from the Mac.

    Remove the printer in printers and Scanners. (old drivers) Click on the Apple menu and then click on System Preferences.
    Click on Printers & Scanners, highlight the printer on the left column and click on the sign - to remove this driver.

    Then connect the printer to the Mac again and to automatically add the printer in printers and Scanners.

    If it doesn't, run the Apple updates. Go to Apple, about this Mac, click on the "View" tab at the top of the window and click on software updates.

    Then, check the name of the installed driver, highlight the name of the printer on the left side of printers and Scanners window and on the right side of the screen, it should show the name of the printer. (Officejet 7500)

    If it is not properly, remove and add it again. (you may need to click the drop down to select the name of the printer)

    Test the printer.

    If you're still having problems, try the following:

    Fix permissions of the drive on the Mac:

    Close all applications.

    In the Apple menu, click OK, click Applications, and then click utilities.

    Double-click disk utility.

    Highlight your hard drive / partition on the left.

    Click on check and then repair disk permissions.

    Restart the computer...

    Reset the printing system:

    Note: This will remove all printers in the print and Fax/Scan, any printer deleted can be re-added later by clicking the sign plus (+) symbol.

    Click the Apple icon, and then click System Preferences.

    Click on Printers & Scanners.

    Make a right click (or Ctrl + click) in the left white side panel, and then click Reset printing system.

    Click OK to confirm the reset.

    Type the name and the correct password.

    Click OK to reset the printing system.

    Then click the + to add the driver, you may need to click the drop-down menu to select the name of the printer, and then click the Add button. (it could automatically default to a different name of the driver)

    Try to print.

    If you need help, let me know.

    Have a wonderful day!
    Thank you.

  • Email help needed please!

    I bought a new computer with Vista in April.  Occaionally I (within a website) try to send an email, or request information.  A screen lights up on Windows Mail... I want to send through Yahoo or Hotmail where I get my mail.  My ISP had Outlook Express on my old computer... but did not get my email through the ISP and Outlook Express.  Please let me know how I can disable outlook or Windows Mail and use Yahoo and Hotmail where I have accounts.  Please give directions or explanation in detail because I am a novice to this... Thank you!

    Yahoo and Hotmail are some e-mail services based on the web, which you can access via Internet Explorer
    Vista's Windows Mail, but you can download and upgrade to Windows Live Mail - it is not Outlook Express under Vista.

    If you want to send an email via a web site, you need to configure Windows Mail or Windows Live Mail with your Hotmail account / accounts Yahoo

  • SATA drivers for XP AMD Chipset 785GX help needed please

    Hello well I tried to find the drivers for my compaq persario cq61-405ey VJ503EA #ACB sata

    PCI\VEN_1002 & DEV_4391 & SUBSYS_363F103C & REV_00
    PCI\VEN_1002 & DEV_4391 & SUBSYS_363F103C
    PCI\VEN_1002 & DEV_4391 & CC_010601
    PCI\VEN_1002 & DEV_4391 & CC_0106

    Also im interested to install, the cause of my usb my cd/dvd-rom is not reading any cd or dvd. Please help me find the drivers for this type of laptop and it is possible to install from usb? How should I do? For the most part, I know what to do, but some advice of professionals and people how to do these things would be apreciated

    More info on this subject is that, clearly, that the pc as stock is not intended for windows 7 cause win 7 perfomance dragged down and cannot find a way to install xp. Like I said im using usb to install but whenever I have try it can't find the drivers, even though I've added with nlite and I tried to use windows xp 64 sp 1 that could be the problem too. But anyway I have driver SATA used32bit_ATI_SB7xx_RAID & AHCI_driver_v9-4_WHQL and sp43839 and could not get to work cause they said that I have to insert Perrine everything I did or however I tried. So please I need help cause im trying to dual boot with xp and 7.

    Hello

    Good SATA driver for laptop you get here.

    In the link below, you will find information how to install XP from a USB flash drive:

    How to install Windows XP from a USB key.

  • 2 blackBerry Smartphones newbie questions: do I need it, and how I spoil my phone?

    Sorry for the newbie questions:

    My IT has already set up my phone to receive email from their Blackberry Enterprise Server.

    (1) do I still need to install the desktop software?  Given that I can transfer files via Bluetooth from my laptop and my contacts/calendar/notes are stored on the Exchange Server, is there any point?

    (2) if I do not need to install it, given that my email is already working with BES, and the Office installation configures email settings, how do I keep the new Desktop install to mess up the current configuration of e-mail?

    Of all the notes of support on the software, looks like more trouble whereas at this stage.  I really need to treat it?

    Thank you.

    Janimal

    Hi and welcome to the Forums!

    Janimal wrote:

    (1) do I still need to install the desktop software?  Given that I can transfer files via Bluetooth from my laptop and my contacts/calendar/notes are stored on the Exchange Server, is there any point?

    There is not much need of DTM, but it is convenient to update the OS of your BB. Sometimes there will be releases of minor bugs corrections and such to your BB - DTM will be meaningless and install them, while updating wireless could not detect them. For a major OS update, you want DTM, as it will do a backup/complete restoration of your BB, including configuration settings, and others so that you don't have to redo those. But, to your e-mail, calendar, contacts, etc. - you are right, it is useless given that your Exchange Server is actually your master with your BB being actually a backup of that (in a sense).

    In addition, USB drivers (which are part of the package DTM) are necessary in order to charge your BB via your laptop USB. You can download and install all the USB drivers if this is the only part of the DTM you want.

    Janimal wrote:

    (2) if I do not need to install it, given that my email is already working with BES, and the Office installation configures email settings, how do I keep the new Desktop install to mess up the current configuration of e-mail?

    When you install it, it will ask if you are in a company - say Yes and it will install properly. Installation when your PC is connected to your corporate network and your Outlook is open. Who will get the best and fastest configuration. When you install, do not let it select the functions of auto-launch... If you wish, attach your BB and manually run the DTM.

    Of all the notes of support on the software, looks like more trouble whereas at this stage.  I really need to treat it?

    Thank you.

    Janimal

    Basically, on the whole, I vote 'YES'. You get the USB charging. You can save if you wish. You get the device OS and other updates. Most of the reported problems are people using it to synchronize via USB things - you won't do that because most of your stuff will be syncing via BES OTA. Other things, you can simply drag-and - drop (music, videos, etc.). .. .follow these instructions (use the latest 5.0 DTM):

    http://supportforums.BlackBerry.com/Rim/Board/message?board.ID=BlackBerryDesktopSoftware&thread.ID=3...

    DL the latest version here:

    http://NA.BlackBerry.com/eng/services/desktop/

    Good luck!

  • I HAVE WIN 7 64-BIT, MOZILLA FIREFOX IS MY BROWSER HASVING PROBLEMS WITH JAVA CAN HELP PLEASE

    I HAVE WINDOWS 7 64 BIT LAP TOP, I'M WITH MOZILLA FIRE FOX AS MY BROWSER, HAVING PROBLEMS WITH JAVA... WHICH SHOULD I USE? ALSO CAN I HAVE THE WINDOWS PHOTO VIEWER TO OPEN FILES

    First; There, please do not type in uppercase.  It is considered rude and make your post less readable.

    The version of Java to use depends on the browser.  Firefox is a 32-bit browser therefore uses the 32-bit version of Java.
    Internet Explorer, for example, has a 32-bit and 64-bit version in Windows 7, the two versions of Java may apply depending on whether you are using.

    The Windows Photo Viewer can open different types of graphic files, what is the problem?

  • Form of the iPad... help needed please.  Clear form after email read only and sequential numbering

    Hello

    I am a complete newbie at this but that's what I want to achieve.

    I have a sheet of paper in double report I want to get electronically, I want to be able to add sequential numbers to each report and be able to send the report to the client of an email field in the form

    so far, I have so I created the pdf form, I have a button that runs a JavaScript script that will hide the button send and then send the email from customers and to bcc myself so I have a copy of the report also. This has been tested and works

    I'm fighting with sequential numbering and once the form has been sent by e-mail it is the Nations United-ditable JavaScript has converted to read only for emailing that is good because it cannot be changed. But is it possible my send button to send the report read-only and then disable all form fields in the report ready for filling with the sequential number next?

    I had a good look of resolution for this but I'm bad

    Thank you very much in advance for any comments

    Paul

    Hi Paul,.

    I assume you are using the desktop version of Acrobat Pro to create the form.

    I will move this discussion to the forum of PDF forms so that experts in the forum can answer your question.

    Please note that the Reader/Acrobat DC of mobile applications (iOS, Android, Windows Phone, etc.) have limited support for JavaScript.

    JavaScript for QAnywhere Player Mobile (iOS)

    You may be able to make the shape you want in the desktop version of Adobe Reader/Acrobat Reader DC.  However, some features (for example, adding a sequence number to each PDF) will not work in mobile applications because of the limited support of JavaScript.  Sorry for the inconvenience.

  • Code to add to display the results I need please take a look

    Help, please

    Here is my code:
    SELECT l.location_no,
      l.zone_code,
      la.area_code,
      DECODE (la.area_code, 'WA-60', 'NODA', 'WA-61', 'NODA', 'WA-62', 'NODA', 'WA-63', 'NODA', 'WA-64', 'NODA', 'WA-65', 'NODA', 'WA-66', 'NODA', 'WA-67', 'NODA', 'WA-68', 'NODA', 'WA-69', 'NODA', 'WA-70', 'NODA', 'WA-71', 'NODA', 'WA-72', 'NODA', 'WA-73', 'NODA', 'WA-74', 'NODA', 'WA-74', 'NODA', 'WA-75', 'NODA', 'WA-76', 'NODA', 'WA-77', 'NODA', 'WA-78', 'NODA', 'WA-79', 'NODA', 'WA-80', 'NODA', 'WA-81', 'NODA', 'WA-82', 'NODA', 'WA-83', 'NODA', 'WA-84', 'NODA', 'WA-REED', 'NODA', 'WA-R2', 'NODA', 'WA-R1', 'NODA', 'WA-BIN', 'NODA', 'PA-CDK', 'NODA', 'WA-PALLET', 'NODA', 'WA-BINRESV', 'NODA', 'DA-REPL', 'GOOD') DAREPL
    FROM MOVE.LOCATION L,
      MOVE.LOCATION_AREA LA
    WHERE l.location_no   = la.location_no
    AND l.zone_code NOT  IN ('Z-BINRES', 'Z-LARGE', 'Z-SMALL', 'Z-HVYOVR', 'Z-ENDCAP', 'Z-LOOSE', 'Z-BRKPAK', 'Z-STRLINE', 'Z-FLAT', 'Z-BULKRES', 'Z-GENERAL', 'Z-2PC', 'Z-BULK', 'Z-SSP', 'Z-RUG', 'Z-LOAD', 'Z-SSPBRK', 'Z-HOLD', 'Z-REC-SSP' )
    AND la.area_code NOT IN ('DA-BULK', 'DA-CANREPL', 'WA-TIER', 'WA-OVRFLOW', 'WA-PALLET2', 'WA-SPRING', 'WA-TIER2', 'WA-DOKPIK', 'WA-DP', 'WA-HOLD', 'PA-OSDHOLD', 'PA-REED', 'RA-REC-CDK', 'WA-PALLET2', 'RECEIVING', 'RECEIVING2', 'WA-BINHOT', 'WA-CANDLE', 'WA-REED', 'WA-BIN2', 'WA-BINCOLD', 'PA-CDK', 'PA-HAZMAT', 'PA-HWR', 'PA-XMASCP', 'WA-PALLET', 'WA-BINRESV', 'WA-BIN', 'WA-BULK', 'WA-BRKPAK', 'PA-BRKPRES', 'PA-CANDLES', 'PA-BIN', 'PA-LOOSE', 'PA-HVYOVR', 'PA-BULKRES', 'PA-BRKPAK', 'WA-01', 'WA-02', 'WA-03', 'WA-04', 'WA-05', 'WA-06', 'WA-07', 'WA-08', 'WA-09', 'WA-10', 'WA-11', 'WA-12', 'WA-13', 'WA-14', 'WA-15', 'WA-16', 'WA-17', 'WA-18', 'WA-19', 'WA-20', 'WA-21', 'WA-22', 'WA-23', 'WA-24', 'WA-25', 'WA-26', 'WA-27', 'WA-28', 'WA-29', 'WA-30', 'WA-31', 'WA-32', 'WA-33', 'WA-34', 'WA-35', 'WA-36', 'WA-37', 'WA-60', 'WA-61', 'WA-62', 'WA-63', 'WA-64', 'WA-65', 'WA-66', 'WA-67', 'WA-68', 'WA-69', 'WA-70', 'WA-71', 'WA-72', 'WA-73', 'WA-74', 'WA-75', 'WA-76', 'WA-77', 'WA-78', 'WA-79',
      'WA-80', 'WA-81', 'WA-82', 'WA-83', 'WA-84', 'WA-R1', 'WA-R2')
    ORDER BY 1
    and here are some of my outputs / results:
    LOCATION_NO          ZONE_CODE  AREA_CODE  DAREPL                           
    -------------------- ---------- ---------- -------------------------------- 
    60-02-101            Z-BIN      DA-REPL    GOOD
    60-02-102            Z-BIN      DA-REPL    GOOD
    60-02-201            Z-BIN      DA-REPL    GOOD
    60-02-202            Z-BIN      DA-REPL    GOOD                       
    60-04-101            Z-BIN      DA-REPL    GOOD                             
    60-04-102            Z-BIN      DA-REPL    GOOD                             
    60-04-201            Z-BIN      DA-REPL    GOOD                             
    60-06-101            Z-BIN      DA-REPL    GOOD                             
    60-06-201            Z-BIN      DA-REPL    GOOD                             
    60-06-202            Z-BIN      DA-REPL    GOOD                             
    60-08-101            Z-BIN      DA-REPL    GOOD                             
    60-08-201            Z-BIN      DA-REPL    GOOD                             
    60-08-202            Z-BIN      DA-REPL    GOOD                             
    60-10-201            Z-BIN      DA-REPL    GOOD                             
    60-10-202            Z-BIN      DA-REPL    GOOD                             
    60-12-102            Z-BIN      DA-REPL    GOOD                             
    60-12-202            Z-BIN      DA-REPL    GOOD  
    As you can see the first results for 60-02 there are 4 results, which means they all have the DA-REPL AREA_CODE column:
    02-60-101
    02-60-102
    02-60-201
    02-60-202

    As you can see with results for 60-04(results 5, 6, and 7) there are only 3 places with DA-REPL in AREA_CODE column. 60 04-202 has a DA-REPL in the column AREA_CODE, and that is the real result, that I'm looking. Short to manually search through 2-5 000 results and manually find results with less than 4 is there any code I can add to help here?
    60. 04-101
    60. 04-102
    60. 04-201

    I already tried a much simpler as code THE. AREA_CODE! = DA-REPL, but as you can see above there are so THE > AREA_CODE of to take care of each who has several so although I rul is just one gives me this site with another THE. AREA_CODE

    Hello

    As I said before:

    You can replace the part in brackets after the "with your_query" with your query
    

    Therefore, this:

    with your_query as  (
      select '60-02-101' location_no, 'Z-BIN' zone_code, 'DA-REPL' area_code, 'GOOD' darepl from dual union all
      select '60-02-102', 'Z-BIN', 'DA-REPL', 'GOOD' from dual union all
      select '60-02-201', 'Z-BIN', 'DA-REPL', 'GOOD' from dual union all
      select '60-02-202', 'Z-BIN', 'DA-REPL', 'GOOD' from dual union all
      select '60-04-101', 'Z-BIN', 'DA-REPL', 'GOOD' from dual union all
      select '60-04-102', 'Z-BIN', 'DA-REPL', 'GOOD' from dual union all
      select '60-04-201', 'Z-BIN', 'DA-REPL', 'GOOD' from dual union all
      select '60-06-101', 'Z-BIN', 'DA-REPL', 'GOOD' from dual union all
      select '60-06-201', 'Z-BIN', 'DA-REPL', 'GOOD' from dual union all
      select '60-06-202', 'Z-BIN', 'DA-REPL', 'GOOD' from dual union all
      select '60-08-101', 'Z-BIN', 'DA-REPL', 'GOOD' from dual union all
      select '60-08-201', 'Z-BIN', 'DA-REPL', 'GOOD' from dual union all
      select '60-08-202', 'Z-BIN', 'DA-REPL', 'GOOD' from dual union all
      select '60-10-201', 'Z-BIN', 'DA-REPL', 'GOOD' from dual union all
      select '60-10-202', 'Z-BIN', 'DA-REPL', 'GOOD' from dual union all
      select '60-12-102', 'Z-BIN', 'DA-REPL', 'GOOD' from dual union all
      select '60-12-202', 'Z-BIN', 'DA-REPL', 'GOOD' from dual
      )
    
    ,pos_loc_no as
    (select '101' pos_loc_no from dual union all
    select '102' pos_loc_no from dual union all
    select '201' pos_loc_no from dual union all
    select '202' pos_loc_no from dual
    )
    
    ,group_with_missing_loc_no as
    (select
      substr(location_no,1,5) loc_no
    
    from
      your_query
    group by
      substr(location_no,1,5)
    
    having
      count(*) < 4
    
    --order by
    --  substr(location_no,1,5)
    )
    
    select
      a.loc_no || '-' || b.pos_loc_no   LOCATION_NO
    
      ,'Z-BIN'                          ZONE_CODE
      ,'DA-REPL'                        AREA_CODE
      ,'MISSING'                        DAREPL
    
    from
      group_with_missing_loc_no   a
      ,pos_loc_no                 b
    
    where
      not exists
            (select
              *
            from
              your_query
            where
              location_no = a.loc_no || '-' || b.pos_loc_no
            )
    order by
      1
    ;
    

    Becomes this:

    with your_query as  (
    
    SELECT l.location_no,
      l.zone_code,
      la.area_code,
      DECODE (la.area_code, 'WA-60', 'NODA', 'WA-61', 'NODA', 'WA-62', 'NODA', 'WA-63', 'NODA', 'WA-64', 'NODA', 'WA-65', 'NODA', 'WA-66', 'NODA', 'WA-67', 'NODA', 'WA-68', 'NODA', 'WA-69', 'NODA', 'WA-70', 'NODA', 'WA-71', 'NODA', 'WA-72', 'NODA', 'WA-73', 'NODA', 'WA-74', 'NODA', 'WA-74', 'NODA', 'WA-75', 'NODA', 'WA-76', 'NODA', 'WA-77', 'NODA', 'WA-78', 'NODA', 'WA-79', 'NODA', 'WA-80', 'NODA', 'WA-81', 'NODA', 'WA-82', 'NODA', 'WA-83', 'NODA', 'WA-84', 'NODA', 'WA-REED', 'NODA', 'WA-R2', 'NODA', 'WA-R1', 'NODA', 'WA-BIN', 'NODA', 'PA-CDK', 'NODA', 'WA-PALLET', 'NODA', 'WA-BINRESV', 'NODA', 'DA-REPL', 'GOOD') DAREPL
    FROM MOVE.LOCATION L,
      MOVE.LOCATION_AREA LA
    WHERE l.location_no   = la.location_no
    AND l.zone_code NOT  IN ('Z-BINRES', 'Z-LARGE', 'Z-SMALL', 'Z-HVYOVR', 'Z-ENDCAP', 'Z-LOOSE', 'Z-BRKPAK', 'Z-STRLINE', 'Z-FLAT', 'Z-BULKRES', 'Z-GENERAL', 'Z-2PC', 'Z-BULK', 'Z-SSP', 'Z-RUG', 'Z-LOAD', 'Z-SSPBRK', 'Z-HOLD', 'Z-REC-SSP' )
    AND la.area_code NOT IN ('DA-BULK', 'DA-CANREPL', 'WA-TIER', 'WA-OVRFLOW', 'WA-PALLET2', 'WA-SPRING', 'WA-TIER2', 'WA-DOKPIK', 'WA-DP', 'WA-HOLD', 'PA-OSDHOLD', 'PA-REED', 'RA-REC-CDK', 'WA-PALLET2', 'RECEIVING', 'RECEIVING2', 'WA-BINHOT', 'WA-CANDLE', 'WA-REED', 'WA-BIN2', 'WA-BINCOLD', 'PA-CDK', 'PA-HAZMAT', 'PA-HWR', 'PA-XMASCP', 'WA-PALLET', 'WA-BINRESV', 'WA-BIN', 'WA-BULK', 'WA-BRKPAK', 'PA-BRKPRES', 'PA-CANDLES', 'PA-BIN', 'PA-LOOSE', 'PA-HVYOVR', 'PA-BULKRES', 'PA-BRKPAK', 'WA-01', 'WA-02', 'WA-03', 'WA-04', 'WA-05', 'WA-06', 'WA-07', 'WA-08', 'WA-09', 'WA-10', 'WA-11', 'WA-12', 'WA-13', 'WA-14', 'WA-15', 'WA-16', 'WA-17', 'WA-18', 'WA-19', 'WA-20', 'WA-21', 'WA-22', 'WA-23', 'WA-24', 'WA-25', 'WA-26', 'WA-27', 'WA-28', 'WA-29', 'WA-30', 'WA-31', 'WA-32', 'WA-33', 'WA-34', 'WA-35', 'WA-36', 'WA-37', 'WA-60', 'WA-61', 'WA-62', 'WA-63', 'WA-64', 'WA-65', 'WA-66', 'WA-67', 'WA-68', 'WA-69', 'WA-70', 'WA-71', 'WA-72', 'WA-73', 'WA-74', 'WA-75', 'WA-76', 'WA-77', 'WA-78', 'WA-79',
      'WA-80', 'WA-81', 'WA-82', 'WA-83', 'WA-84', 'WA-R1', 'WA-R2')
    
    --ORDER BY 1 -- the order by is not needed
    
    )
    
    ,pos_loc_no as
    (select '101' pos_loc_no from dual union all
    select '102' pos_loc_no from dual union all
    select '201' pos_loc_no from dual union all
    select '202' pos_loc_no from dual
    )
    
    ,group_with_missing_loc_no as
    (select
      substr(location_no,1,5) loc_no
    
    from
      your_query
    group by
      substr(location_no,1,5)
    
    having
      count(*) < 4
    
    --order by
    --  substr(location_no,1,5)
    )
    
    select
      a.loc_no || '-' || b.pos_loc_no   LOCATION_NO
    
      ,'Z-BIN'                          ZONE_CODE
      ,'DA-REPL'                        AREA_CODE
      ,'MISSING'                        DAREPL
    
    from
      group_with_missing_loc_no   a
      ,pos_loc_no                 b
    
    where
      not exists
            (select
              *
            from
              your_query
            where
              location_no = a.loc_no || '-' || b.pos_loc_no
            )
    order by
      1
    ;
    

    Kind regards

    Peter

  • Help for newbie with ul CSS Navbar please

    Hi, I followed a tutorial and everything on my site worked fine so far except for one thing. When I go to a different screen resolutions page changes as I want it, but the buttons on my horizontal navigation bar remains fixed relative to the page. Any help would be welcome

    Code is pasted below for HTML and CSS

    Thank you

    HTML

    < ! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > ""
    " < html xmlns =" http://www.w3.org/1999/xhtml ">
    < head >
    < meta http-equiv = "Content-Type" content = text/html"; charset = utf-8 "/ >"
    < title > Untitled Document < /title >
    < link href = "thrColLiqHdr.css" rel = "stylesheet" type = "text/css" / > <!-[if IE] > "
    < style type = "text/css" >
    / * place patches css for all versions of Internet Explorer in this conditional comment * /.
    .thrColLiqHdr #sidebar2, .thrColLiqHdr #sidebar1 {padding-top: 30px ;}}
    .thrColLiqHdr #mainContent {zoom: 1; padding-top: 15px ;}}
    / * the owner above zoom gives IE the hasLayout property, avoid several bugs * /.
    < / style >
    <! [endif]-->
    < / head >

    < body >

    < div id = "container" >
    < div id = "header" >
    <!-end #header->
    < img src = "images/logo combined.jpg" width = "800" height = "139" / >
    < ul >
    < li > < a href = "#" > home < /a > < /li >
    < li > < a href = "#" > about us < /a > < /li >
    < li > < a href = "#" > food < /a > < /li >
    < li > < a href = "#" > beer & amp; Wine < /a > < /li >
    < li > < a href = "#" > contact us < /a > < /li >
    < li > < a href = "#" > links < /a > < /li >
    < /ul >
    < / div >
    < div id = "sidebar1″" >
    Sidebar1″ < h3 > < / h3 >
    < p > the background color on this div will only show for the length of the content. If you want a line instead, place a border on the left side of the #mainContent div if div #mainContent will contain more content than the div. of #sidebar1 < /p >
    < p > Donec EU mi sed turpis feugiat feugiat. Integer turpis arcu, pellentesque eget, cursus and fermentum ut, sapien. < /p >
    <!-end # sidebar1″--> < / div >
    < div id = 'sidebar2' >
    < p > < img src = "images/logo blue.jpg" width = "104" height = "125" / > < / p >
    < p > welcome on the site of the Wheatsheaf Inn Brading.
    The building has been approved for consumption of alcohol since the beginning of the 18th century and today it is still an attention of the local community, as suitable for a traditional pub. < br / >
    In addition, we strive to provide a wide range of beers and wines, including all three time English beers and a diverse but significantly to the price of the wines, as well as freshly cooked food that moves with the seasons and, as much as possible, produce uses are grown or high on the island. < /p >
    < p > < / p >
    <!-end #sidebar2-> < / div >
    < div id = "mainContent" >
    The Wheatsheaf Inn, Brading < H1 > < / h1 >
    < p > Lorem ipsum dolor sit amet, adipiscing elit our. Praesent aliquam, justo convallis luctus rutrum, erat nulla fermentum diam, at nonummy quam ante ac quam. Maecenas urna purus, fermentum id, molestie in, commodo porttitor, felis. Nam blandit quam ut lacus. Amongst ornare risus quis ligula. Phasellus tristique purus a augue condimentum adipiscing. Aenean restore. Etiam leo queer, venenatis lectus tristique in, fitness at, odio. Donec and ipsum and vehicula nonummy sapien. Suspendisse potentialit. < /p >
    Heading level H2
    < p > Lorem ipsum dolor sit amet, adipiscing elit our. Praesent aliquam, justo convallis luctus rutrum, erat nulla fermentum diam, at nonummy quam ante ac quam. Maecenas urna purus, fermentum id, molestie in, commodo porttitor, felis. Nam blandit quam ut lacus. Amongst ornare risus quis ligula. Phasellus tristique purus a augue condimentum adipiscing. Aenean restore. Etiam leo queer, venenatis lectus tristique in, fitness at, odio. < /p >
    <!-end #mainContent--> < / div >
    <!-this element of compensation should immediately follow the #mainContent div in order to force the #container div to contain all the child floats--> < br class = 'clearfloat' / >
    < div id = "footer" >
    footer < p > < /p >
    <!-end #footer--> < / div >
    <!-end #container--> < / div >
    < / body >
    < / html >

    CSS

    @charset "utf-8";
    {body
    margin: 0; / * It is advisable to zero, the margin and the filling of the body to hold element has a different default browser * /.
    padding: 0;
    text-align: center; / * This centers the container in IE 5 * browsers. The text is then set left aligned by default in the #container selector * /.
    Color: #000000;
    do-family: Arial, Helvetica, without serif.
    do-size: 100%;
    background-color: #660000;
    }
    UL {}
    margin: 0px;
    padding: 0px;
    float: none;
    }

    #container {}
    Width: 100%;
    text-align: center;
    do-size: 80%;
    background-color: #FF9;
    }

    / * MainContent tips:
    1. the space between the mainContent and framed is created with the left and right margins on the mainContent div.
    2. to avoid falling of float at a resolution of 800 x 600 minimum supported, within the mainContent div elements must be 300px or smaller (including images).
    3. in the Internet Explorer conditional comment below, the zoom property is used to give the mainContent "hasLayout". This avoids several specific IE bugs.
    */
    #mainContent {}
    margin: 0 24 0 23.5%; / * left and right margins on this div element creates the two outside columns on the sides of the page. No matter the amount of content contain the sidebar divs, the space of the columns will remain. You can remove this line if you want the #mainContent div text to fill in the spaces of the sidebar when the content in each side bar ends. */
    }
    #header {}
    background-color: #660000;
    padding-top: 0;
    padding-right: 0px;
    padding-bottom: 0;
    padding-left: 0px;
    background-repeat: no-repeat;
    background-position: right top;
    }
    #header ul {}
    background-color: #036;
    background-image: url(images/Nav%20Bar%20Top.jpg);
    background-repeat: repeat-x;
    border-bottom-color: #FF0;
    border-bottom-style: solid;
    border-bottom-width: thin;
    padding-left: 155px;
    list-style-type: none;
    overflow: auto;
    margin: 0px;
    }
    #header li {}
    float: left;
    do-size: 120%;
    }
    #header Li a {}
    display: block;
    text-decoration: none;
    padding-top: 8px;
    padding-right: 25px;
    padding-bottom: 8px;
    padding-left: 25px;
    left margin: 0px;
    }

    / * Tips for sidebars:
    1. as we work in percentages, it is best do not use the lateral pads on the side bars. It will be added to the width for browsers compatible standards creating a real unknown width.
    2. the space between the wall of the div and the items it contains can be created by placing a margin left and right on these items as seen in the rule "#sidebar1 p".
    3. Because Explorer calculates the width after that the parent element is rendered, you can sometimes run into unexplained bugs with percentages of columns. If you need more predictable results, you can choose to change the columns of pixels in size.
    */
    {#sidebar1}
    float: left; / * This item must precede in the source order of any element you want it positioned next to * /.
    Width: 22%; / * because this element is floating, it takes a width * /.
    Background: #660000; / * the background color will be displayed for the length of the content of the column, but no further * /.
    Padding: 15px 0; / * upper and lower padding create a Visual space within this div * /.
    }
    {#sidebar2}
    float: right; / * This item must precede in the source order of any element you want it positioned next to * /.
    Width: 23%; / * because this element is floating, it takes a width * /.
    Background: #036; / * the background color will be displayed for the length of the content of the column, but no further * /.
    Padding: 15px 0; / * upper and lower padding create a Visual space within this div * /.
    }
    #sidebar1 p. #sidebar1 h3, #sidebar2, #sidebar2 h3 {}
    margin-left: 10px; / * the left and right margins should be to all of the items that will be placed in the side columns * /.
    margin-right: 10px;
    color: #FF0;
    make-weight: bold;
    }

    #footer {}
    padding: 0 10px; / * This filling is the alignment to the left of the items in the div that appear above him. */
    Background: #660000;
    }
    #footer p {}
    margin: 0; / * zero setting the margins of the first element in the footer will avoid the possibility of the collapse of the margin - a space between the div tags * /.
    padding: 10px 0; / * padding on that element will create space, just as it would the margin, free margin collapse question * /.
    }

    / * Various classes for reuse * /.
    .fltrt {/ * this class can be used to float right to the item in your page.} The floating element must precede the element it should be next to the page. */
    float: right;
    left margin: 8px;
    }
    .fltlft {/ * this class can be used to float an element in your page, the floating element must precede the element it should be next to the page left. * /}
    float: left;
    right margin: 8px;
    }
    .clearfloat {/ * this class must be placed on an element div or break and should be the last item before the closing of a container must contain its child floats entirely * /}
    Clear: both;
    height: 0;
    font size: 1px;
    line-height: 0px;
    }
    a {}
    color #FF0;
    color: #FF0;
    make-weight: bold;
    }
    H1 {}
    color: #036;
    font size: 250%;
    }

    I also did what did Martin, wrap the list in a new div with an ID of #navbar.  If you give it a width in px and auto margins, the Center navigation bar.

    Here's what has worked, however, it is very difficult to see without having access to the images you used as background images called via the stylesheet.

    CSS:

    {#navbar}

    Width: 980px;    / * change width as needed * /.

    margin: 0 auto;

    }

    Another option would be to take the navigation bar of the header div and create its own container under the header div and try that style instead.  At the moment he is forced by the rules in the #header.

    If you cannot fix it, please download the files to a server and provide a link - it is the only way that people can help troubleshoot, especially if the images are involved in the design.

Maybe you are looking for