How do I prevent null being shown in the field

Hi Everyone,
I do have a form I am done with designing using the Adobe LiveCycle 7.0, but is having problem with the backend code. Whenever you delete the value, null gets written in it and it even appears on the printout. Please, can anyone help me out with this code and tell me what I need to do to get rid of this problem.
if (EMPLNAME.rawValue.rawValue == "" || EMPLNAME.rawValue.rawValue == null)
EMPLNAME.rawValue.rawValue == "";
// xfa.host.messageBox(EMPLNAME.rawValue);
EMPNAME.rawValue = String(EMPFNAME.rawValue) + " " + String(EMPMI.rawValue) + "." + " " + String(EMPLNAME.rawValue);
if (EMPFNAME.rawValue != "" || EMPMI.rawValue != "" || EMPLNAME.rawValue != "")
EMPNAME.rawValue = String(EMPFNAME.rawValue) + " " + String(EMPMI.rawValue) + "." + " " + String(EMPLNAME.rawValue);
var s = EMPMI.rawValue;
EMPMI.rawValue = s.toUpperCase();
Thanks
Lucky Pianwi

You need to check the values to see if they are null before you concatenate them:
>FIELD.rawValue != null
Some example code which should do what you are trying to do above:
    var lName = EMPLNAME.rawValue;
    var fName = EMPFNAME.rawValue;
    var initialName = EMPMI.rawValue;
    var result = "";
    if(fName != null && fName.length > 0) {
        result = fName + " ";
    if(initialName != null && initialName.length > 0) {
        result += initialName + ". ";
    if(lName != null && lName.length > 0) {
        result += lName
    EMPNAME.rawValue = result;
(There are shorter ways of doing this, but this way, it's pretty clear what is going on)
You should probably also check out some Javascript tutorials. I use http://www.w3schools.com/js/ as a reference all the time but there are many others around.
Regards
Anthony Jereley
Indigo Pacific
www.indigopacific.com

Similar Messages

  • How to change Labels of Fields being shown in the search help as F0001 etc.

    Dear All,
    For one of my fields of screen I have been calling a search help configured using F4IF_INT_TABLE_VALUE_REQUEST.
    In this function I am returning the field in dynfields. Let me know please how to change the Labels of Field Names being shown in the search help as F0001, F0002 etc....
    Regards,
    Alok.

    Hi Alok,
    You can change the Field Label by going to the Data Element and changing the Field Label .
    Hope this helps
    Regards
    Sunil

  • HT2905 How can I prevent from being billed twice?

    My download was interrupted. When it resumed, it resulted in a double download. How can I prevent from being billed twice?

    If your phone is locked with a passode, photos & videos, in your camera roll, cannot be imported to a computer, unless that computer was previously used with the phone, while the passcode was in effect.

  • I have checked around the internet, but still can't find any answers. How can I prevent incoming mail from interrupting the music I am listening to on my iPhone? That 1-second muting function drives me insane, especially when a lot of mail is coming in.

    I have checked around the internet, but still can't find any answers. How can I prevent incoming mail from interrupting the music I am listening to on my iPhone? That 1-second muting function drives me insane, especially when a lot of mail is coming in.

    If you want to hear your music on iPhone without interruption, switch Settings > Airplane Mode: ON.

  • Music videos being shown within the album list

    is it just me, or are music videos now being shown within the music section as well ?
    for example.
    a video for a single is correctly being shown in the "music videos" section within "my music".
    however when i go into "my music" > "artists" > "single" - it is showing the video in there along with the music tracks.
    now i'm pretty sure that they weren't being shown there before, but they are now and it makes is confusing when looking for play 1 track and it is now listed twice, 1 track and 1 video.

    They have always been there on mine, same as Front Row on my Mac. The thing that bugs me is they are listed as 'Unknown Album' unless you assign an album name for the video track. This is true for all the music vids from iTunes. It doesn't look very professional. I might just add the album name 'Video' to them all so it looks a bit better.

  • How do I prevent Ipad mini to play the next title automaticly of a play list?

    Hi there
    I'm using the ipad mini for my dance classes. I have all the songs in playlists and would like to be able to choose which ever song will be next. How can I prevent ipad-mini to play the next title of the playlist automaticly? I can't find any check/uncheck boxes (as in itunes).
    Any help would be highly appreciated.
    Cheers, Marisa

    Hey arodriiguez,
    I recommend that we delete this purchase and re-download from your purchase history:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    http://support.apple.com/kb/HT2519
    Thanks,
    Matt M.

  • How can I know in which Tables are the fields stored

    Hi,
    In transaction FSE3 Display Financial Version
    Statement Version, if I drilldown in details, I can
    see Item No, Chart of Acc, From Accountm To Account D,
    C.
    when I do a F1 on the fields, I can see that it is a
    structure. How can I know in which Tables are the
    fields store?

    Hi Ankit,
    There are no rules or guidelines for finding the table but i will share some of the tips used generally.........but i am not sure if we can do it for a tree structure..but try anyways....
    Double click on the structure name seen on the F1 pop up window...
    in the structure screen, try to analyse the field which is very important something like a key in that set of fields or do the same for the fields which we feel are more important,then click on the domain for that field....once in the domain..click on the "where used list for the domain" on the top...
    it will display a pop up -> select only "table" and then press "Tick/OK"..A list will be displayed with the data element and table name ..from this we need to find out the right one we need either by going for text of the table or going through each and every one
    It takes time but does the job.....
    Regards
    Byju

  • How to update Tr code FB02   and update the field reference key1 (bseg-xref

    Can any body
    help me how to update   Tr code   fb02
    and  update the field  reference  key1 (bseg-xref1)  with the interest amount
    calculated.
    Below i have  written My  program  flow logic
    The program should read the open items i.e debit items in the customer account,
    Based on the  invoice date and customer payment terms  calculate the due date and then the  interest should be  calculated on that item based on the due date.
    Use the  transaction  fb02  and update the field  reference  key 1 (BSEG-xref1)
    with the interest amount calculated
    Only  consider  customers whose  interest indicator  knb1-vzskz = 'vk'.
    Interest is to be  calculated for every  30  days
    at the rate of  1% .please see example below.
    Document date is 01.01.2007
    for amount  1000SGD   payment  term  7  days
    It becomes  due  on  08.01.2007
    until  06.02.2007 you should not  consider  for calculation of interest
    SGD  on   7.02.2007 run you can consider this  item for interest calculation

    Hi Robert,
    Thanks for answering.
    I am looking at Ref 2 should flow automatically to clearing document from the accounitng document for billing.
    Ex: Billing document is created and accounted. Ref 2 is AB
    Now when receipt is accounted for this biling document this AB should flow automatically to Ref 2 field.
    Thanks
    NNS.

  • The Curspr doesn't shown in the fields , using Jinitiator ! PLEASE HELP

    Hi firends
    fro shwing forms in the client's browser , when i use
    Oracle JInitiator my big problem is that the cursor doesn't shown
    in the fields and i don't have clipboard action like Selection ,
    Copy , and Paste on the fields !

    RoboHelp does not support Chrome, even the current version. You could see if your help works with the current version by using the trial but do not load it on your production machine as you will likely encounter problems if you revert to X5. If it does not work, you're out of luck.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • How can I prevent NULLs from appearing in my HyperTrend graph when restarting DSC engine?

    I am continuously logging data to a citadel database using DSC 7.0. Occasionally I need to restart the DSC engine because of a computer reboot, changes to SCF file, etc. Whenever I do this, and then review the data in HDV or with a HyperTrend graph in LV, there is a discontinuity in the traces during the time the DSC engine was not running. Using the cursors, you can see the value during this time is NULL. Generally this is desirable behavior since it indicates that no data was collected during this time period. However, I would like to know if there's setting to just "connect the points" instead of having a NULL in between. The reason is that some memory tags are updated very
    infrequently, so the discontinuity appears much longer than just the time the DSC engine was not running. I want to connect the line to make the graph look nicer.

    I assume that you mean pop-up windows that might be left unnoticed when they are opened behind the current Firefox window.
    You can modify the behavior and change these prefs to open all links in tabs:
    *http://kb.mozillazine.org/browser.link.open_newwindow<br />1: current tab; 2:new window; 3:new tab;
    You can change the value of the browser.link.open_newwindow.restriction pref to 0 to open all JavaScript window.open() calls in a tab
    *http://kb.mozillazine.org/browser.link.open_newwindow.restriction
    You can open the <b>about:config</b> page via the location bar and accept the warning and click "I'll be careful" to continue.
    *http://kb.mozillazine.org/about:config

  • How to increase record nos being shown thru Search Help

    Dear All,
    I have enabled 'Search Help' on one of the fields of my table-view (table control) on my screen but this search help, shows only first 100 records only. How to increase them to 200 or more?
    Regards,
    Alok.

    HI Alok
      Irrespective of our setting in Data Browser, the
    initial selection for search help is always 500 as itz a
    hard coded value for F4 help. This can be changed after
    the intial values display.
      You can check line no: 49 in include: LSDSDTOP for the
    same or even package SDSH which is for F4 values.
      Hope this info helps you.
    Kind Regards
    Eswar

  • How to see values (null, 0) instead of blank fields

    Hi.
    I search the forum but only found messages about users who want to show fields blank, when value is null.
    I have the problem other way around. I work with DevSuite 10g and have a xml-Report.
    I have fields and for some the query returns null (no value). Than the report shows nothing for this fields. Neither a blank line nor a value like 0.
    The problem is, that the other values afterwards the blank ones, slip above.
    For Example:
    field 1
    field 2
    field 3
    field 4
    The Query returns null for field 2 and 3.
    Then on the report I see:
    field 1
    field 4
    But what I want to see is:
    field 1
    field 4
    or:
    field 1
    0
    0
    field 4
    But all I tested doesn´t work. I set a value for "when null" in the attribute inspector and the horizontal elasticity of "fix" (I thought it maybe it "slip together" so it is not shown).
    Has anyone a idea how I can show a (blank or 0 value) instead of nothing, so that fields afterwards doesn´t slips up?
    Thanks for your suggestions
    Message was edited by:
    ulfk

    Hej MLA.
    I think it was from query, but it is anyway if it is from query or from form (it´s not from column).
    @Brad
    Thanks for your suggestion.
    We solve this problem in a similar way.
    We put a field under/over the other. We give the field we want to show a white background. So it is "sitting" over the other and the underlaying one is not shown (because the overlaying one has a white background).
    If the overlaying one is blank it is not shown (so it can´t has a white background) and we see the underlaying field.
    But to use triggers is a better solution.
    I solve it on the same way as explained above but using triggers also.
    But I have to leave a statement about Oracles Report Builder. Sorry but it is more than horrible program. I never have seen such a (also new and) bad programmed program. It is more than hard to work with it ... it cost me every hour I use it more and more power to stay quite ...
    Here are the things I really wish to change at reports bulder directly:
    - more than one step back (undo)
    - there is a difference between the output in reports bulder on the paper output, what is shown when you print it on a paper (from reports bulder) and from what is shown in a PDF file produced with a reports server (that is really annoying, you never now if it is correct what you see in reports builder!)
    - better editing and better selectable of the text-boxes and fields
    - a way to hierarchically objects that are on the same layer (frame) so that you can really bank on it, that one object is ever behind another one
    - not only moving and scaling of fields and boxes on a fix gutter (free transforming and moving would be great) because sometimes a text or a box with line around is not on the right place (out of order; above another object/text a.s.o.) and when it is (why I don´t really know) is not on the right place and the distance to the other object is less than the fix gutter-distance you can´t move it in such a way, that the two objects are flush with/on a fix line/place. It´s because the fix gutter. The distance is lower than the gutter, if you move it, it is not makeable to move it this less-than-the-gutter-distance to be flush with the other object. You can only move it in the fix gutter-distance and than it can´t be flush with the other objects.
    It looked really bad and amateurish!
    - a tool (a button or something) where you can marked object to flush all together on the same line, so that all objects for example are flush together on one start-line or ends (horizontal or vertical flush).
    It would be great and would the work so really easier and better.

  • How do I keep an object shown for the rest of the project in its position?

    This sounds like a question for Lilybiri. I have a object that I want shown for the rest of the project ...
    On this slide, the object I want shown (big black rectangle) for the rest of the project is in the right position in the timeline and it covers the master background as it should. As you see, the only things (correctly) covering it are the blue video and the click to continue button.  In run time, however, it's a different story  -- the widget is suddenly visible over the object as well as the background from the master slide (but not the main master.)
    Can anyone help me out?

    The stacking order is not working for objects timed for the rest of the project. You have only two choices:
    if you don't check the option 'always on top' it will be always at the bottom
    if you check that option, it will always be on top.
    Lilybiri

  • APERTURE TETHERING: How do I prevent Aperture from going to the most recent shot.

    I'm planning on a photo day (kinda like a school portrait) for my company and will be using a D700 tethered to a Mac running Aperture.
    Currently when I take a photo, the person at the computer doesn't have enough time to enter the name of the subject in the metadata window before I've moved on and taken a photo of the next subject. Once I've captured the image a new image, Aperture quickly jumps to the new photo, interupting the naming process. Is there a setting I can change in Aperture 3.1.2 that prevents Aperture from jumping to the most recent shot.
    Thanks in advance.

    I think what spikeyjonze was trying to say is you deselect Auto Select , not that you blow up Aperture
    Succinctness is a virtue but some times we can have to much of a good thing

  • TS3899 How do I prevent mail from deleting on the server after deleting on the phone?

    When I delete mail from my iphone when using apple mail, the e-mail deletes on my phone but remains on my computer.  When my co-worker deletes mail from her iphone it is getting deleted from her work computer (and the server).  I have compared settings on our phone and everything appears the same.  How do we stop mail from deleting from the server when she deletes mail from her phone?
    Thanks!

    POP or IMAP?
    With POP, this is the conventional way to use it. You download messages and doing so deletes them. Alternatively you can arrange to leave copies on the server for other email clients to be able to see them. The setting to do this can be found under '''Tools|Account Settings|{select account}|Server Settings'''.
    With IMAP, you're supposed to store messages on the server. If you want to remove them from the server, move them to the Local Folders account in Thunderbird.

Maybe you are looking for