How to avoid JS Error in the status bar when report doesnt contain value.

Hi
Whenever the tabular report doesnt show any records for the given input parameter (parameter passed using select list item).
We are displaying error message in APex. But at the status bar, it is showing "Error" (unspecified
error).
Kindly let me know how to avoid this kind of error at status bar.
Thanks
Vijay

Hi Vijay,
Your javascript is probably trying to access one or more of the items within a displayed tabular form - the "f01", "f02" etc named items.
If your script does something like:
var x = document.getElementsByName("f01");
..rest of your code for f01 items..you can test if there are any "f01" items by doing:
var x = document.getElementsByName("f01");
if (x){
..rest of your code for f01 items..
}If there are no items, x is null, so the "..rest of your.." script will not get executed and no errors will occur.
Andy

Similar Messages

  • Error in the status bar while using t:jscookMenu

    I have implemented t:jscookmenu in my source code like this
    <t:jscookMenu imageLocation="../css/themeIE" javascriptLocation="../css/themeIE" layout="hbr styleLocation="../css/themeIE" theme="ThemeIE">
    <t:navigationMenuItems value="#{MenuBean.menu}"/>
    </t:jscookMenu>
    The error shown in the status bar is
    Error: unterminated string literal
    Source File: "Filename"
    Line: 54, Column: 14
    Source Code:
    myThemeIEBase='../css/themeIE/
    The html source code is given below:-
    <script src="../css/themeIE/JSCookMenu.js" type="text/javascript"><!--//--></script>
    <script src="../css/themeIE/MyFacesHack.js" type="text/javascript"><!--//--></script>
    <script type="text/javascript"><!--myThemeIEBase='../css/themeIE///--></script>
    <script src="../css/themeIE/theme.js" type="text/javascript"><!--//--></script>
    Please help to locate the error

    Hi Vijay,
    Your javascript is probably trying to access one or more of the items within a displayed tabular form - the "f01", "f02" etc named items.
    If your script does something like:
    var x = document.getElementsByName("f01");
    ..rest of your code for f01 items..you can test if there are any "f01" items by doing:
    var x = document.getElementsByName("f01");
    if (x){
    ..rest of your code for f01 items..
    }If there are no items, x is null, so the "..rest of your.." script will not get executed and no errors will occur.
    Andy

  • In 4.1, how can I get rid of the Status bar (bottom left or right corners)?...It is very annoying in some pogo games I play.

    The status bar appears at the bottom corner of the page, covering up ongoing info at the bottom of my pogo game page. If I hover the cursor over top of it, it moves to the other bottom corner....very annoying to have it pop up like that.

    * Status-4-Evar: https://addons.mozilla.org/firefox/addon/status-4-evar/

  • Problem w Plug-in Check page: the "Update" button for my outdated version of the WMP plugin does not do anything, and no link is indicated in the status bar when I mouse over the button.

    In Firefox, I select Tools > Add-ons > Find Updates. The Plugin Check page comes up in the browser. The entry for the WMP Plugin indicates it is out of date. I click on the "Update" button and nothing happens. When I mouse over the button, no link is indicated in the status bar (it continues to read "Done").
    The entries for the other plugins indicate they are current. When I mouse over the "Up to date" button for each of those entries, a link is indicated in the status bar.
    I am running Windows XP SP2 on a 2005 Dell Inspiron 6000 (1.6 GHz Pentium M processor, 590 MHz bus, 504 MB RAM). I have Norton Internet Security 2010 installed and running.

    See:
    * http://kb.mozillazine.org/Windows_Media_Player#Missing_plugin
    * http://windows.microsoft.com/en-US/windows/downloads/windows-media-player (see Firefox)
    * http://port25.technet.com/pages/windows-media-player-firefox-plugin-download.aspx

  • What is the name in the status bar when we activate a webdynpro??

    hi all,
    When we activate the webdynpro,in the status bar its displayin some name like 1BCWDY/*********==CP.
    I got it is the include program.
    The name getting displayed in status bar and the name in the table WDY_WB_SOURCEMAP differs.
    If i give the component name in the table WDY_WB_SOURCEMAP it displayin all the includes but not the one displayed in status bar.
    Kindly tell me why it differs.

    Hi,
    Check the tables WDY_WB* you can find the relevant ones in these tables.
    These includes can be for the views/components....
    Are you activating the view/component.
    Regards,
    Lekha.

  • Is there a way to hide the status bar when reading a book in iBooks?

    Every other ereader app seems to hide the status bar (at the top of the screen, with battery etc) automatically, or there is a setting to do so. I can't seem to be able to do this in iBooks. What am I missing?

    Nothing - afaik iBook can't do that trick

  • How to avoid extended checks for the events used in ALV.

    Hii,
    I hav delvpd an alv report in which i hav used events for which i haven't declared PERFORM for the same. but when i had checkd in the Extended program checks it says that form interface is not called directly.. check for dynamic PERFORMS...
    how to avoid this error in the extended check program.

    Another option can be calling the routine from the program itself with a check that never satisfies.
    like:
    if 1 = 2.
    perform top_of_page.
    endif.
    form top_of_page.
    endform.
    Regards,
    Joy.

  • Pages that are shown in the status bar are docked to the right instead of the left..how can I make them go back to the left again?

    A couple weeks ago my computer did an automatic update to a newer version of Firefox (it is now 3.6.8). Since this update, every time I open a window, it is docked to the right side of the status bar, when it used to be on the lleft side of the status bar. Also, several windows opened do not all show-instead only one window is shown and it will say how ever many windows I have opened (such as "3 firefox windows" instead of just showing those 3 different windows when it was docked to the left side). I have looked through the help section but cannot find an answer to this. I have looked through the "tools", then "options" section and compared my computer to another computer running the same firefox that has the windows opened docked to the left, and they both have the same exact settings, so it doesn't appear to be an issue with my "options" in firefox. Any help would be appreciated.

    See: http://windows.microsoft.com/en-US/windows-vista/Taskbar-recommended-links

  • Icon on the status bar

    Hello,
    How can place an image on the status bar?
    Also is possible to place it at any position on the status bar?
    -Kathik

    It's like BullJ says, if it's a JLabel you sure can. A status bar is not a Swing feature, you would have to implement it your self (e.g. using a JLabel). So it all depends on the component you're using.
    Rene'

  • How to show message on selection screen  status bar if alv is empty.

    Hi,
            Can anyone tell me how to show message on selection screen status bar when our final internal table or alv is empty .
           i am getting message on alv status bar, where no data is in alv but i want to stop it to selection screen and show message there only.
    Regards,
    Ranu

    Hi,
    After populating the final internal table do this check,
    if it_final [] is initial.
    message 'No data available' TYPE 'S' DISPLAY LIKE 'E'.
    exit.
    endif.
    This will be displayed in the selection screen itself
    Regards,
    Vikranth

  • Domain masking in the status bar?

    Hi, I setup my domain forwarding and masking on Godaddy but when I checked out the website....I noticed the web.mac.com/username was coming up in the statusbar. Is there a way to mask that as well? I just don't really see the point of masking if people are gonna see your web.com address in the status bar when the page loads, haha. Any help would be appreciated!!

    ..I
    noticed the web.mac.com/username was coming up in the
    statusbar. Is there a way to mask that as well?
    I think the only way to do that is to add some kind of script to your page to hide the status bar. A google search on those terms should give you something.

  • Can I use the status bar in my app?

    I want to put a icon symbol in the status bar,when my app is in foreground ?
    Is it possible? If so help me with some code...

    You should be posting this question in the developer forums...

  • How to control an error message to display at the status bar or in a popup?

    Hi experts,
    I find that one of the error message in an user exit display at the status bar in some conditions while
    display in a pop up window in other conditions. Is there some way to control its display style as I want
    it? Thanks in advance.

    Hi,
      Use the below code....
    CALL FUNCTION 'PTRM_UTIL_MESSAGE_APPEND
    EXPORTING
    i_msgtype = 'I' or 'W' <because you want message to display otherthan error>
    i_msgid = <Your message id which you are using in user exit>
    i_msgnumber = <Your messge number>
    Or
    If you want to display the text in a pop up window instead of the above process then use 'POPUP_TO_DISPLAY_TEXT' to display the message text in the popup.
    Rgds,
    Bujji

  • How do I enable some scripts to run in some programs/websites and what happened to the status bar of my Mozilla Firefox 4?

    Well, first of all, I was tying to create a web-based computer game in Notepad in H.T.M.L., C++, and JavaScript codes. But when I tried to open the completed product, Firefox only came up with a blank page. What do I do with this? And also, I unwittingly removed the "Status Bar" on the bottom side of my browser(the one that always says "Transferring data from/to..."), and when I tried to bring it back up, I couldn't because I don't know how, since I'm new to Mozilla Firefox 4. If you could help me with these problems, Then I would greatly appreciate it.

    You can install the Status-4-Evar extension to regain some functionality from previous Firefox versions that was lost with the removal of the Status bar.
    Open the Customize window via "View > Toolbars > Customize" or via "Firefox > Options > Toolbar Layout" after you have installed the Status-4-Evar extension and drag the items (Status Text, Progress Meter, Download Status) upon the Add-ons Bar (View > Toolbars > [X] Add-on Bar)<br />
    Also check the Options of Status-4-Evar in Firefox (or Tools) > Add-ons
    * Status-4-Evar: https://addons.mozilla.org/firefox/addon/235283/

  • How to fix this error message The backup disk image "/Volumes/AirPort Disk/FARES DEL VALLE's iMac.sparsebundle" could not be accessed (error -1).

    how to fix this error message The backup disk image “/Volumes/AirPort Disk/FARES DEL VALLE’s iMac.sparsebundle” could not be accessed (error -1).

    The troubleshooting C17 is the specific article.
    http://pondini.org/TM/Troubleshooting.html
    This is generally a Lion error.. and you will need 5.6 utility to get access to the disk area.
    So download the real utility. Run it instead of v6 toy version.
    http://support.apple.com/kb/DL1482
    Go to the manual setup, disk page and click on disconnect all users.. that will unmount all users connected to the disk and allow it to start working. But there are a number of other issues that are possible cause. Pondini lists some of them.

Maybe you are looking for