Show hide columns generates error on the page if not found data

Hello

Has anyone ever encountered a situation where a page error when using the feature show hide column and no data is returned.

My region to report is based on SQL and when calling at the start page or when restrictions are no match all all the data that appears is the message "No data found" by default. The method used, I pulled Carl Backstrom (RIP) application.

< script type = "text/javascript" >
function html_HideBasedOnCheckBox (pThis, pThat) {}
if(pThis.Checked == true) {}
html_ShowCellColumn (pThat);
} else {}
html_HideCellColumn (pThat);
}
}

function getCellIndex (pRow, pCell) {}
If (document.all) {}
for (var i = 0; i < pRow.cells.length; i ++) {}
If (pRow.cells [i] == pCell) {l_Count = i}
}
} else {}
l_Count = pCell.cellIndex;
}
Return l_Count;
}

function html_HideCellColumn (pId) {}
var l_Cell = $x (pId);
var l_Table = html_CascadeUpTill (l_Cell, 'TABLE');
var l_Rows = l_Table.rows;
l_CellI = getCellIndex (l_Cell.parentNode, l_Cell);

for (var i = 0; i < l_Rows.length - 1; i ++) {}
html_HideElement (l_Rows.cells [l_CellI]);
}
return;
}

function html_ShowCellColumn (pId) {}
var l_Cell = $x (pId);
var l_Table = html_CascadeUpTill (l_Cell, 'TABLE');
var l_Rows = l_Table.rows;
l_CellI = getCellIndex (l_Cell.parentNode, l_Cell);

for (var i = 0; i < l_Rows.length - 1; i ++) {}
html_ShowElement (l_Rows [i]. Cells [l_CellI]);
}
return;
}

< /script >

The attributes of HTML form elements is: onclick = "html_HideBasedOnCheckBox (this, this.value)" "

The LoV for this box is static for a column.

This set works very well if the data is returned. It must have something to do with the topics defined in the SQL code and therefore are not displayed when no data is returned. The code is then try to hide or something that does not exist.

The part where he falls is during the setting of the variables:

function html_HideCellColumn (pId) {}
var l_Cell = $x (pId);
var l_Table = html_CascadeUpTill (l_Cell, 'TABLE');
var l_Rows = l_Table.rows;
l_CellI = getCellIndex (l_Cell.parentNode, l_Cell);

... and more specifically the last variable setting: l_CellI = getCellIndex (l_Cell.parentNode, l_Cell);

Does anyone know how I can get around this by using the method of SQL report i.e. Select col1 col2 "Column 1", "column 2" From myTable etc. or if it is possible to make up for it at the beginning that is

If NO_DATA
then
dont_hide/display_any_columns that_dont_exist
on the other
var l_Cell = $x (pId);
var l_Table = html_CascadeUpTill (l_Cell, 'TABLE');
var l_Rows = l_Table.rows;
l_CellI = getCellIndex (l_Cell.parentNode, l_Cell);

for (var i = 0; i < l_Rows.length - 1; i ++) {}
html_ShowElement (l_Rows [i]. Cells [l_CellI]);
}
return; ........

???

See you soon,.

Mike

Hi Mike,.

In fact, you can check the existence of the cell:

var l_Cell = $x(pId);
if (l_Cell)
{
 rest of the code to hide the column
}

As long as l_Cell makes reference to a valid page element, then the if test passes and the rest of your code can work.

Andy

Tags: Database

Similar Questions

  • RoboHelp 2015 - the Page is not found

    I am trying to create a topic that links to a Web page in Robohelp 2015 using the sensitive HTML5 output; However, every time that I discovered the output and select the topic, I get the error below the screenshot of the properties of the Table of Contents Page. The link works if I paste it in a browser, however. Can someone help me understand what I am doing wrong? I often do this in Robohelp 10.

    More info: I want to this Web page to be displayed without opening a window separated.

    Thank you in advance for your help!

    Where I paste the web address

    ERROR

    The page is not found

    The page you are looking for has been removed, had its name changed, or is temporarily unavailable.

    Please, try the following:

    • Make sure that the Web site address displayed in the address bar of your browser is spelled and formatted correctly.
    • If you have reached this page by clicking a link, contact the Web site administrator to warn them that the link is badly formatted.
    • Click on the back button to try another link.

    Error HTTP 404 - file or directory not found.
    Internet Information Services (IIS)

  • Can not import a copy of the application to our workspace. The page is not found

    Hello
    We have an existing schema and workspace called track 2 and everything was fine. We could export a copy of the application of prod and import it under a different number, so we could test some changes.
    Then, we created a new workspace and schema called track3 and I tried to export a copy of prod and its import in track3 workspace.

    It gave the error:
    The page is not found
    The page you are looking for has been removed, had its name changed, or is temporarily unavailable.

    The URL, he found himself on after that the error was http://ourServer:7778/pls/apex/wwv_flow.accept

    In troubleshooting, we went back track 2 environment and cannot import copy of this old workspace more either.
    This has happened before on another post (contract), I was on and fixed it himself.
    Then we tried to bounce the server HTTP, did not work. I tried to bounce the database server has failed.
    What can do us?

    Please, any help is appreciated. Bill

    To debug the problem using SQL * Plus, you must connect as KMX2 in the production database. If the script fails, there will be no harm. You can remove the validation of the end of the script and replace it with a restore where the script is not and you want to ensure that there are no changes to your db prod.

    Don't you think that the version 3.2 upgrade would fix our problem?

    I do not know.

    Scott

  • Error "LoadLibrary failed with error 126: the module is not found ' at the launch of programs

    Original title:

    From some programs, the program starts partially, then a pop up message saying "LoadLibrary failed with error 126: the module is not found. When you click on the 'OK' button, the program stops. I had this problem with several graphics applications such as PSP and Rhinoceros 3D.

    Any suggestions what can be causing this "error 126"?

    type cmd and click the black box for it...

  • Satellite Pro M10 Hibernate - error message "the file is not found.

    I have the Satellite Pro M10. I have problem in the power of Eve v6.00.04. When I want to activate the Hibernate mode it give a massage: * the file is not found. Please confirm the name of the specified file *.

    I can't use the hibernation mode. I tried to uninstall the Toshiba power saver and install again but the massage even come. If anyone has experienced the same problem and have a solution? Please advice

    When you active hibernating the operating system creates a file named hiberfil.sys in the root of your system drive.
    Of course, this file is missing in your installation.
    You can activate and disable hibernation in the system control-> power options.
    Disable hibernation, restart and enable again. Is there an error message? Maybe your C drive has insufficient free space?
    The size of the hibernation file is different from your main memory size.

  • Error message "the 421 ordinal not found in the dynamic link library urlmon.dll" whenever I start my computer

    Original title: 421 ordinal could not be located in the dynamic link library urlmon.dll

    I get this error every time I start my computer: "the 421 ordinal not found in the dynamic link library urlmon.dll.

    In the control panel select Problem Reports and Solutions (problem of type in)
    The START searchbox), go to the history of the problem, your mistake right click and choose
    Check the Solution.
     
    In administrative tools, choose the reliability and performance monitor and
    Click on MonitoringTools then the reliability monitor (type of reliability in research
    at startup). This list is a chart of the software installs, uninstalls, Windows
    updates and crashes by date. See if your plant started to occur after
    you installed or uninstalled something.
     
    You can clean boot
    Troubleshooting http://support.microsoft.com/kb/331796
     
    Download http://www.nirsoft.net/utils/shexview.html
    Disable all non-microsoft shell extensions (to explore) and reactivate a
    by so this can help.
    --
    ..
    --
    "Mr_Xtatic" wrote in message news: 63562fcd-7837-420-b-84e0-854170dfae5c...
    > I get this message error everytime I start my computer: "the ordinal 421.
    "> could not be located in the dynamic link library urlmon.dll"
     
     
  • The use of password for show/hide forms - anyway to keep the setting "does not print?

    I have a George_Johnson script that allows me to enter a password to show/hide the fields selected (keys actually).  It works perfectly, but when I enter the password and buttons appear again, setting general/Common Properties amounts to 'visible' instead of ' visible but does not print ', and the buttons appear when I print the document.  I thought I could change these lines and print buttons...

    case 'password': / / your password goes here

    getField("x").readonly = readonly;

    getField("x").display = readonly? Display.Hidden: display.visible

    App.Alert ("level 1 support is now" + readonly_desc + "d", 3);

    break;

    .. .to change the 3rd line to read as follows: getField("x").display = readonly? display.hidden: display.visible but does not print  (or _but_doesn't_print;)

    but then I started to make syntax errors in the 4th line.  I don't know about Java, but I thought I might get lucky.  I get hot?  What is the "3" that needs to change?  Or is that I started quite wrong?

    Thanks for reading,

    Zac

    You can't guess correctly that the value can be and expect it to work... You should consult the documentation.

    In this case, what you're looking for is "display.noPrint".

  • I can't open any .exe (including regedit.exe) file - if I try to open any program, I gives me an error that the application is not found.

    I can not open all .exe files, including regedit.exe cited as a means to correct this type of error.  If I try to open any program gives me an error that there are no application or the 'Open with' window opens asking me to choose my program.  However, I can open the Word Document, although if I try to click on any shortcut to Microsoft Word it says application is not found.

    I had a virus on my PC and used Malwarebytes to remove it.  The deletion was successful, but he seems to have created this new problem.  I don't know if it is directly related to the kidnapping, or whether the virus changed anything while he was active?

    Thanks for your help.  :)

    Your ".exe" file association is probably damaged.
    To fix it, follow the instructions on this page for the attachment of .exe file associations.  Be sure to read the note at the top of the page specifically about the special considerations to fix .exe associations.

    'Windows XP file Association problems'
      <>http://www.dougknox.com/XP/file_assoc.htm >

    HTH,
    JW

  • When I click on the windows media player, I get a message saying that the page is not found or no longer exists. Why is this

    When I click on windows media player, I get the message, the page you requested could not be found or no longer exists.  Yet, I cannot go into the library for the albums, I copied on media and it opens when I put in a USB stick etc to see the pictures in the media player.  Can someone help please.  I am running Windows Vista Premium Homwe.

    Hello

    You did changes to the computer before the show?

    Method 1: Check the protocol settings and proxy such as mentioned in the article below, and then try to use the functionality of online stores and a Media Guide.

    What protocols use Windows Media Player for streaming?: http://Windows.Microsoft.com/en-us/Windows-Vista/which-protocols-does-Windows-Media-Player-use-for-streaming 

    Method 2: If the problem is uninstall and reinstall Windows Media Player.

    Step 1: Uninstall Windows Media Player:

    a. go to Start and in the search type "or turn off Windows features turn on."

    b. click on "turn Windows features on or off". ""

    c. find multimedia and uncheck the brand in front of Windows Media Player.

    d. restart the computer

    Step 2: Reinstall Windows Media Player:

    a. go to Start and in the search type "turn Windows features on or off". "

    b. click on "turn Windows features on or off". ""

    c. find the multimedia functions, and then place a check mark in front of Windows Media Player.

    d. restart the computer.

    For more information, see the article below:

    http://Windows.Microsoft.com/en-us/Windows-Vista/turn-Windows-features-on-or-off

  • Error "LoadLibrary failed with error 126: the module is not found" when run Minecraft

    I tried to load my Minecraft, Minecraft is everything to date and nothing wrong with it. I deleted and re-installed, and I still get this problem.

    Pitcher of the same technical does not work so he couldn't be just minecraft (Technic Modded = customer type of)
    I even made another account on my laptop and some files to another account just Minecraft and it still does not work, in browser game works perfectly, but on computer laptop, it is not, it allows to work but now is not.
    I did all of the things listed on that, and Minecraft still does not work.
    http://answers.Microsoft.com/en-us/Windows/Forum/windows_vista-windows_programs/error-LoadLibrary-failed-with-error-126-the-module/c5b67473-00f8-4E4A-b8a5-f7f9c619c3d9
    I am running Windows 8, Dell Inspiration M5040.

    I hope that you could solve my problem.

    Had this problem on my pro Win8

    Uninstalled 64-bit Java (7 update 17) and left the 32 bit one.

    Has started working without any other trix.

  • Error message: "The operating system not found" and the computer laptop (Windows 8) starts do not.

    Original title: computer laptop (Windows 8) starts do not

    Laptop: Sony Vaio

    Processor: core i3 with 4 GB of memory
    Operating system: Windows 8
    Before going to sleep, I was using my laptop & it did not work properly. then I download something, so I put on and fell asleep. When I woke up I found a message on the screen, operating system not found. I restarted. Now it starts and appearance of the new as usual Windows logo, but it does not move, I mean points keeps moving in a circle with the Windows Logo, but nothing happens.
    I tried in the BIOS and it detects the hard drive, it means that hard drive still works.
    How to solve this problem?

    Hi Sunil,

    Thanks for the reply.

    I suggest you to contact the manufacturer for activation. If you still have problems you can contact the customer support team, you can see the steps in the link below.

    Get help from Microsoft Windows activation

     

    https://support.Microsoft.com/kb/950929?WA=wsignin1.0

    Let us know if you need assistance.

  • Get the application is not found error when clicking on the URL is Microsoft Mail v.6.0.6000

    Whenever I click on a URL from an email from v.6.0.6000 Microsoft Mail. I get an error that the application is not found.  This happens only in email.  I can choose a URL from Yahoo Mail and it works properly.

    Any suggestions?

    Thank you.

    Whenever I click on a URL from an email from v.6.0.6000 Microsoft Mail. I get an error that the application is not found.  This happens only in email.  I can choose a URL from Yahoo Mail and it works properly.

    Any suggestions?

    Thank you.

    Start > default programs > set your default programs > select Internet Explorer. He said "this program has all its defults?
    If not, click on 'Choose defaults for this program' > check on all the entries in the list. > Economy

    Repeat the same procedure and check if your Windows Mail has its flaws.

    t-4-2

  • Error #2108: Homepage of scene not found.

    My project is a Web site and I created different movieclips for each webpage (history, Audio, Video, etc.). Now I need to insert some ActionScript in order to be able to return to the home page, when I click on a menu item in the movieclip. This error keeps showing up:

    ArgumentError: Error #2108: Homepage of scene not found.

    at flash.display::MovieClip/gotoAndStop()

    at rocknroll_HistoryofRock_fla::MainTimeline/goHome()

    The code I've written is:

    import flash.events.MouseEvent;

    homeH_btn.addEventListener (MouseEvent.CLICK, goHome);

    function goHome(evt:MouseEvent):void {}

    gotoAndStop(174,"HomePage");

    }

    Thanks for your help!

    Download your fla on a file server and post a link.

  • In the Amazon, I get error message that the page is not redirecting properly

    When I try to view the details of an item in the Amazon, for example, a book, I get an error saying that the problem loading page. The page is not redirecting properly Firefox has detected that the server redirects the request for this address in a way that will never end.

    Year example of the URL causing this problem is https://www.amazon.co.uk/gp/product/0692394028?redirect=true & redirect = true & redirect = true & redirect = true & redirect = true & redirect = true & redirect = true & redirect = true & redirect = true & ref_ = gb1h_img_m-3_4447_e77918ec & smid = A3P5ROKL5A1OLE

    I tried an update of Firefox, I tried to remove and reinstall it. I tried to delete cache and cookies, but I still get the same problem. I use v42.0.

    Any help would be appreciated.

    Thanks for your reply.

    However, now that I have a working stable system I will not even try 42.0 but will wait until a newer version is released. Back to 41.0.2 also stopped all site accidents I knew (and reported) with 42.0 - sort of IMO, there are certainly issues with v42.0

  • Sync to iphoto with Iphone hangs on during synchronization. In addition the google map can be charged when I click on the places of Mediathek. Error message: "this page has not loaded correctly Google Maps. See the JavaScript console for more technical de

    Sync to iphoto with Iphone hangs on during synchronization. In addition the google map can be charged when I click on the places of Mediathek. Error message: "this page has not loaded correctly Google Maps. See the JavaScript console for more technical details. »

    Perhaps the reason for the problem of synchronization is the problem with the loading of google map?

    Error message: "this page has not loaded correctly Google Maps. See the JavaScript console for more technical details. »

    Apple has not renewed the contract with Google to access Google servers.

    If the old version of iPhoto, which are still using Google's servers for the cards and places are either crashing or hanging.  Places are only work in iPhoto 9.5.1 or newer, who use places of Apple servers.

    There is more support for iPhoto from Apple.  You must update iPhoto 9.5.1 with the Mavericks. It would work well, only it is no longer buying this update to Apple.

    Perhaps the reason for the problem of synchronization is the problem with the loading of google map?

    It is very likely.  If iPhoto work very well when you are offline, then your problems will be caused by the connection failed to Googles servers.

    See this: Bug: iPhoto 9.4 crashing when viewing the scene

Maybe you are looking for

  • Apple TV &amp; multiple language tracks

    I have a video that has several tracks different languages (English, French, Japanese) in my iTunes library on my iMac. I watch this video via the home sharing on my Apple TV 4. When I watch the video in iTunes on my iMac, I can easily choose what la

  • Crashing. WoW. Legion.

    I currently use an Imac 2012 end with El Capitan installed and up to date.  I disable all the 'pigs-memory' before connect you. I use the settings recommended for WoW Blizzard.  There is screen tearing, and the game crashes whole system at least once

  • Question of reset for iPhone

    I can't reset the security issues for the iPhone 5, IOS 9.2.1. < email published by host >

  • disc eject external hard - it's in use

    I have a toshiba canvio external hard drive and whenever I go to eject it, I close all programs and it appears from the box that says that a program is used to close all programs and try again I don't want my hard drive corruption, so I don't want to

  • Windows live photo gallery error code

    When I try to open my Gallery of photos that I receive wlxphotolibrarymain.dll error 0x800736b1