Help me check 2 fields and then show final number

I'm very new to JavaScript and need a little help with a function.
I need to have JS check to make sure 'Equipment Description' and 'Equipment Serial' are filled out before showing a field named 'Incentive'. My hope is that if the fields are NOT filled out that it will then give an app.alert('Please enter an equipment serial number').
I had originally started a different way and this was as far as I got if that helps anyone. (the first 2 lines are used because there are many rows of information that can be gathered - this was from a previous developer who is no longer on our team ) The issue is that they are seperate and I need it to check for both and obviously it doesn't tell the incentive field to do anything as far as visibility goes. I am file starting from scratch and not using this code.
function getcheck() {
var rowName = event.target.name;
var rowNum = rowName.substr(rowName.length-5,5);
if (this.getField("Equipment Description"+ rowNum).value == " ") {
     app.alert('Please enter an equipment description');
if (this.getField("Equipment Serial"+ rowNum).value == " ") {
     app.alert('Please enter an equipment serial number');
Any help is appreciated.

In case clicking over to the original thread is too much work...
And your question is...?
Are you asking someone to just do your homework for you? If not, then what particular part are you having trouble with? We're not going to read your mind.
You should be able to at least make a start on this assignment. If you can't, then either you haven't been paying attention in class, or you don't have much ability in this area or your instructor is giving assignments that are way beyond the level of what he's teaching. Whichever of these it is, it's beyond the scope of this forum to address it--you'll have to deal with it.
If you've done some work, then post it (in and tags) and explain specifically what troubles you're having.

Similar Messages

  • How to add search help in Ztable fields and how to make filelad as check bo

    Hello Friends,
    I have one table named ZAUDIT with 5 fields.
    1 . I want to put search help for each field but it shows tht Inactive message.
    Sujjest me steps to create search help.
    2.. In my table I want to display content as check boxes in my last field.
    How to make it?
    Points awarded soon.
    Regards,
    NVM

    Hi,
    steps to create search help:
    Step1 : Go to Se11 and Select Search Help and Enter One Name and Click Create
    Step2 : Enter your Table name in 'Selection Method' Field.
    Step3 : Enter the field Name and tick the Flags Imp and Exp and Type 1 and 2 in Lpos,
    Spos fields.
    Step4 : Save and activate it.
    Goto the table, select the field which u want search help and press button search help, give the search help name which u created.
    To add check box for particular field,
    make use of data element <b>check_box</b>

  • Downloaded Mt Lion Yesterday and my Tool bar has disappeared. I can still access the individual tools but cannot see my header.  I used 'help' and did what it suggested. slected 'hide tool bar' and then 'show toolbar'.  I also restarted etc.

    Downloaded Mt Lion Yesterday and my Tool bar has disappeared. I can still access the individual tools but cannot see my header.  I used 'help' and did what it suggested. slected 'hide tool bar' and then 'show toolbar'.  I also restarted etc.

    Good point BDAqua, the Escape key helps get me back to reality in Lion.
    While I've only dabbled around a little in Lion since it's release (I upgraded a 10.6 Clone to Lion on one of my FireWire Drives) now I'm currently downloading Mountain Lion (to upgrade a Clone of that Lion Clone) so that now I can continue to move forward in madness.
    P.S. Trust me, I'm not laughing. 

  • Checking of database table field and then update that field

    hello there,
    In my program I want to check the field 'XRUEM' of  database table MARV, If that field is check i.e. 'X' in table then I want to clear that field and then I have to proceed can anyone please guide  me in this.

    Chetan,
    Do you have to clear the field XRUEM from database table MARV if it is 'X'   ???
    or you just want to clear this field in the report?? Please do specify.
    To clear field from database table MARV us UPDATE command (Please be careful... one should not make changes in master tables using reports)
    To clear runtime contents of a filed in the report use CLEAR command.
    Let me know if this doesnt clear your doubt.
    Thanks.

  • My phone is switched off and then shows a blue screen, then yellow then white, can u help me?

    Iphone 5s is switched off and then shows a blue screen, then yellow then white

    I just experienced this exact same issue with my early 2011 15" macbook pro. Since like a month after purchasing it I had issues with the screen randomly going dark on me. I sent it in for repair inder waranty they replaced the gpu and logic board but I continued to have the same issues with the screen randomly going black sometimes I would need to reboot it in order to get the screen to go back on but it happened so infrequently and I used the computer for school so disnt find the time to resend it in to apple. Just last night the screen started to display the blue screen with black verticle lines on it. I called apple and explained to them  the issues that had been ongoing since I purchased the laptop but they said because I was now outside of warantee that any repairs at thia point wouldn't be covered. Fml so glad I spent 2200 on this future proof macbook pro what a joke my sister purchased a toshiba laptop for 300 4 years ago and it still running like a champ. I loved my macbook but at the price I paid I expect it to last longer than 2 years before leaving me high and dry. *** apple??

  • How can i hide a JFrame and then Show it again in runtime

    How can i hide a JFrame and then Show it again in runtime??
    Please, please help me
    Its URGENT

    Here's even an example:
    import javax.swing.*;
    public class HideAndShow extends JFrame
         public HideAndShow()
              super("Hello");
              setSize(200, 200);
              setVisible(true);
              try
                   Thread.sleep(2000);
              } catch(InterruptedException e) {}
              setVisible(false);
              try
                   Thread.sleep(2000);
              } catch(InterruptedException e) {}
              setVisible(true);
         public static void main(String[] args)
              new HideAndShow();
    The JFrame will show, then hide, then show again. This is at runtime.

  • How do I get the Questions to show in the 'View Responses' TAB, and then show up in the Summary Report?

    How do I get the Questions to show in the 'View Responses' TAB, and then show up in the Summary Report?

    There are more than one Applications folders. At the root level of your system is an Applications folder for all users, where most installations go. Every user, including you, also has a separat Applications folder.
    Check all of them.

  • My phone keeps resetting and then shows the icon to plug into itunes but when i do itunes tells me that it can't connect to my phone because it has a passcode and wants me to unlock it to connect. My phone only gives me the option to make emergency calls.

    My phone started resetting today over and over and then shows the icon to plug into itunes. When I tried plugging in, a message pops up saying that itunes can't connect because my phone has a passcode and i need to unlock it to connect. my phone won't let me do anything more than make an emergency call. it wont give me the option to enter my passcode to unlock the phone. What can I do?

    After a visit to the apple store, they were able to get through my pass code but unfortunately I found out that is was a problem with the logic board. Since Apple only wants to sell and not fix, I was able to locate an iphone repair near me that deals with logic boards and they are currently working on it right now. i should be getting it back soon. Im not sure if the problem you are experiencing is the same as i went through but it does sound like it may be also a hardware issue and would suggest searching online for an iphone repair place that can diagnose what exactly is wrong. Hope this helps.

  • My ipod touch will not charge or register in itunes.  It keeps turning off and then showing the apple logo?

    My ipod touch will not charge or register in itunes.  It keeps turning off and then shows the apple logo.  I have tried holding down the button and plugging it in.  It will show the red battery for a second and then turn off?  Any other suggestions?

    I have checked for problems with the connections, but from what i can see with the naked eye, nothing appears abnormal. It is very strange, and very sudden. It just stopped in the middle of a charge. The apple store is my next step. I just wanted to see if anyone on here had some extremely eye-opening solution or check. thanks though!
    I'm also within warranty, so it's not a huge problem.

  • I'm running Lion on a Late 2008 MacBook Air.  With no other applications running, I can no longer Check for Software Updates.  It gets abut half way through the checking process and then freezes.  The MBA passes Disk Utility. Thoughts?

    I'm running Lion on a Late 2008 MacBook Air. 
    With no other applications running, I can no longer Check for Software Updates.  It gets about half way through the checking process and then freezes. 
    The MBA passes Disk Utility. Thoughts?
    Thanks
    Jim Taylor

    How long do you leave it?
    Mine can sometimes sit for quite a while (maybe 10 minutes??) before it finally finishes.
    You could look at the relevant logs via Console (Utilities folder) to see if Software Update is complaining about anything.
    charlie

  • My iphone 4S only start whit cable plug in and then show battery very low (with red line end) then try to turn on but show searching in operator name command and not connecting and no work properly and when I plug out it turn off!!! what should I do?

    My iphone 4S only start whit cable plug in and then show battery very low (with red line end) then try to turn on but show searching in operator name command and not connecting and no work properly and when I plug out it turn off!!! what should I do?

    I'm afraid you'll have to get the phone serviced, dropping the phone must have damaged additional parts inside the phone.
    But Apple will not service the phone anymore, opening the phone and replacing the battery should only be done by authorized personal, not by users.
    You'll have to look for a 3rd party repair shop and see if they can fix this, sorry.

  • Is it possible to export a slideshow in 1080p format and then show it on a projection TV in 1080? if so, how - what conversions are necessaryw on a projection TV, if so how

    is it possible to export a slideshow in 1080p format and then show it on a projection TV in 1080? if so, how - what conversions are necessary

    Getting it out of Aperture is not a problem. When you export the slide show select 1080p as the export format.
    What happens then gets tricky. To create a true high def 1080p DVD requires Blu-Ray. So you will need an external Blu-Ray recoreder and software to create the DVD.
    If you're hooking your computer up to the TV then you'll have better luck.

  • Can I download a free exercise video to my computer (not from Itunes)and then  to my ipod nano, and then show it on my tv, and if so how?

    Can I download a free exercie video (not from Itunes) to my computer, then to my ipod nano, and then show it on my tv?

    If you have a compatible video file, you can add it to your iTunes library by dragging it to the iTunes window, or by using the command
    iTunes menu bar -> File -> Add to Library...
    If the video is in a format that iTunes can play, it should be imported and appear as a new item in the iTunes Movies library.
    It may not be playable on the nano directly, because of its format.  For example, if it's "HD," the resolution is too high for a nano's screen.  If it plays in iTunes, but not on the nano, you can use the command to covert it. Select the item in a list and then
    iTunes menu bar -> File -> Create New Version -> Create iPod or iPhone Version
    That version should play on an iPod nano.  NOTE:  Some videos downloaded from the iTunes Store cannot be converted to a lower resolution format, because they have DRM (copy protection).

  • HT1414 ipad is locked and now not restoring in the itunes process it goes to 20 mb and then shows a error..

    my ipad 2 is locked shows in recovery mode ut when it is connected to iyunes so it recovers only to 20mb and then shows a error tell me what to do??

    maybe try this
    http://support.apple.com/kb/HT1808?viewlocale=en_US

  • I would like to compare two field and then is it's true then the output will be the 2nd one

    Hello All,
    I am doing a mappong where i need to compare two field and then if there are equal the 2nd one should be the output and 2nd value will be using multiple segment.
    It's for shipment.
    Regards
    Rituparna

    Not sure if i understand correctly. But you are trying to compare one field with multiple occurrences of another field.
    You can make use of the node function "Use One as Many" and repeat the first value as many times as the second value.
    Please refer to below wiki.
    Explain node functions - Process Integration - SCN Wiki

Maybe you are looking for

  • How do I set the same DNS for both Extreme and Express?

    I have an Airport Express that is configured to extend the network created and routed through my AirPort Extreme. However, when I connect to the network from the room where the Extreme is, I need to have the automatic DNS in place in order to connect

  • Mail 3.6 (on MacOS 10.5.7) doesn't display 'Save' and 'Quick Look' buttons

    I have recently updated to MacOS 10.5.7 and discovered a strange glitch in viewing certain emails with attachments. For a small minority of emails with attachments, the 'paperclip' icon appears in the mail list, indicating the presence of an attachme

  • Camera inquiry

    Recently I have installed the CS5 standard suit into my laptop, and it seems to cause problem to my camera. Whenever I have my skype open with safari or other application (such as photoshop, indesign...), skype will tell me that there is other applic

  • How can I capture a video clip streaming on VLC?

    I need to get a capture of a video that is playing in VLC. The video streams fine on my monitor but when I use Captivate to capture it all I get is a black screen. I am using Captivate 4 and using VLC 0.8.6i. I have tried the Automatic Recoring and F

  • TAF with RAC

    Hello everyone, We have configured a two node RAC on Windows servers (Oracle 11G). Our goal is to test TAF. We have these entries in the TNSNAMES.ORA file: GRAC1.WORLD = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(Host = GRAC1)(Port =