Bugs in the ColdFusion.navigate CF example?

The pages which I reproduce double lines below, who are both on page 622 of ColdFusion developer and Guide in a simpler form on page 127 of the ColdFusion online reference manual online, appear to contain one or more bugs. First, when clicked on the link in the No. 1 window to run the javacript code: ColdFusion.navigate('windowsource.cfm','w2',mycallBack,myerrorhandler), Javascript complains "mycallBack is undefined". To work around this problem, you can put "mycallBack" in quotes. Same story with myerrorhandler, which should also be placed in quotes. But we're getting the message "function expected". But what function? The function mycallBack is duly defined at the top of the page...

(Note to beginners Javascript: If you try this and you do not see the error messages, look in the lower left corner of the page; it will say "Error on page".) "You need to click the little exclamation point in yellow triangle to open the window for error.)

As a relative beginner myself after 5 years of programming it would help me greatly to understand AJAX (and steal code that works!) If a person could not understand what is wrong with the example code below.

And a second important question: when you receive Javascript errors, how can we ever find the line where it occurred? For details of all understand them do not appear in "View source", we has no idea where the problem is even when you said the line number. In this case the line number is 892 - which is VERY strange since it's the same line becomes number one, if you run the version Developers Guide or reference manual. But how could it be, as the Developers Guide version contains a previous section (illustration cfpod) not present in the version of the reference manual?

On the other hand, it might be this line 892 is somewhere in one of includes? But where are they? There is a long list at the top of the resulting page (which can be seen in "View source"), for example,

"< script type =" text/javascript"src="/CFIDE/scripts/ajax/messages/cfmessage.js "> < / script >
"< script type =" text/javascript"src="/CFIDE/scripts/ajax/package/cfajax.js "> < / script >

... and 13 additional lines of includes which look like. But my CFIDE directory contains only the file wddx.js and nothing else. The above files are hidden? And even if we could find and insert them into the page "View Source", there MUST be a better way to know what call the Javascript line error messages! DOES ANYONE KNOW WHAT THIS COULD BE?

I placed the simpler version (the one in the reference manual) following the double lines below. Note that there is a main page and a second page, names windowsource.cfm. This second page load in the window 2, as it should. We see the line "It's the markup of the"windowsource.cfm"" it contains, and if you write a few words within the < div > tag, they appear just where they should be. If of course the error does not happen until the function mycallback. I don't know why, but if I put a simple alert ('mycallBack now is') just inside that work, it never appears.

Help, please!

Peyton
================================================================================
«"" "HOME PAGE:»»"»

< html >
< head >
<!--> Reminder Manager puts text in the div. reminder window.cfm
< script language = "javascript" >
var = function() {mycallBack
document.getElementById("callback").innerHTML = "< br > < br > < b > it is printed by the.
Reminder Manager. < /b > ';
}
<!-the error handler opens an alert with the error code and message. ->
var myerrorhandler = {function (errorCode, errorMessage)}
Alert ("[In Error Handler]" + "\n\n" + "error Code:" + "\n\n" + error code "error)
Message: '+ errorMessage);
}
< /script >
< / head >
< body >
< name cfwindow = "w1" title = "CF window 1" initShow = true
x = 10, y = 10 width = "200" >
It's a cfwindow control. < br > < br >
< a href = "javascript:ColdFusion.navigate ('windowsource.cfm', 'w2', 'mycallBack', 'myerrorhandler'); ">
One click to navigate in the window 2 < /a > < /a >
< / cfwindow >
< name cfwindow = "w2" title = 'CF window 2' initShow = true
x = 250 = 10 width = "200" >
It is a second cfwindow control.
< / cfwindow >
< / body >
< / html >

SECOND PAGE (named windowsource.cfm):

It's markup of the "windowsource.cfm".
<!-Reminder Manager puts its output to the next div block. ->
< div id = "reminder" > < / div >

Thanks a lot, as well Daverms and you, cf_dev2, for helping solve me this problem. In fact, there was a citation error in the version of the code I was working mostly with - version of the developer's Guide (p. 622, based on figures at the top of the page, but p. 635 in doc PDF itself). It was a mistake of quotation mark double and may have indirectly led to the problems I encountered. The code that I copied it to my post was drawn from the reference manual (in fact, it was p. 127 x, where x is a digit - I said p. 127, because I read the number at the top of the PDF page, chops out the last digit - an error from Adobe, PDF manufacturers very! (Tsk, tsk). I guess the only mistake of the quote you are referring to is online:

JavaScript:ColdFusion.Navigate ('windowsource.cfm', 'w2', 'mycallBack', 'myerrorHandler'),

which I have single quotes on the javascript function names; I put those there because I get errors when I did, as I explained above. Again the code you sent me and code in the reference manual, has obviously no single quotes here, and it works for me, as he has done for you. I was sure that the version of the reference manual is no longer works, but maybe I was mistaken. I don't know why I had to put single quotes around the function names, but maybe it was an indirect consequence of the quotation mark missing in the error message, which, as you can see below, it was missing the double quotes to start the expression "Error Message:" the end of the line:

Alert ("[In Error Handler]" + "\n\n" + "error Code:" errorCode + "\n\n" + Error Message: "+ errorMessage);

Anyway, thanks again for you help, especially for pointing me FoxFire and its debugger, which will make my life easier in the future!

Peyton

Tags: ColdFusion

Similar Questions

  • You can toggle open/close javascript:ColdFusion.navigate?

    I am looking for a way to toggle open/close a table row in a search query.  I have a table of results and a link to more detailed information. I would like this page to stay within the current page.  I have the ColdFusion.navigate works fine, but I was wondering if there is a way to shut it down?

    Here are some of the code I use...

    < td > < a href = "javascript:ColdFusion.navigate ('details.cfm? ID = #ID #',' detail #q.CurrentRow #')" > #q.sl n #, #q.sfn # < /a > < table > ' "

    < td > < cfdiv id = "detail #q.CurrentRow #" > < / cfdiv >

    Post edited by: Catherine Lesniewski

    I found this one.  I found the answer doing more looking around, so maybe that I was asking the wrong question first. There as hide/show a table row.  So what I found is a JS and little code in the table of query results.  Here is the solution or for me in any case.

    Then add in the parent row of this

    Then for the line you want to show/hide you wrap a tag and everything just...

    Here is the link where I found the answer... EasyCFM.COM-ColdFusion Forums - show/hide lines

  • Are you aware of a possible bug in the version 3.6.23? In the browser, for example, "two /" appears with the slash through the 'o'. Is this a known bug? Thank you

    Are you aware of a possible bug in the version 3.6.23? In the browser, for example, "two /" appears with the slash through the 'o'. Is this a known bug?

    When the same text is seen in another browser, it is displayed correctly as "two."

    The same question is displayed on another computer.

    Thank you.

    Sounds that you use a font that supports ligatures (Palatino?).

  • Coldfusion.Navigate works do not with vbox cflayoutarea

    Hi all.

    I don't understand why Coldfusion.Navigate does not work with a cflayoutarea type vBox.  The code is below (page1.cfm and page2.cfm are simple test pages).  For some reason, it works if the provision is of type border, but not on vbox or hbox.

    When you look at the generated HTML, you see that the div representing the layoutare doesn't have the correct id (should be "myContent", but is "cflayoutareamyContent")

    Someone at - he understands why?

    Thank you

    Scott

    <

    HTML >

    < head >

    < title > Example of page layout </ title >

    </ head >

    < body >

    < cflayout name="myVBox" type="vbox" >

    < cflayoutarea name="myHeader">

    < " a href= 'javascript:ColdFusion.navigate ('page1.cfm', 'myContent'); " > Page 1 </ a > |

    < " a href= 'javascript:ColdFusion.navigate ('page2.cfm', 'myContent'); " > Page 2 </ a >

    < / cflayoutarea >

    < cflayoutarea name="myContent" bindonload='true' source='page1.cfm'>

    < / cflayoutarea >

    < / cflayout >

    </ body >

    < /.

    HTML >

    You are not alone. I pointed out that as a bug in CF9 beta, as it worked until the last release candidate.

    From what I understood, the devs don't have to recognize it as a bug first, but rather just a feature not taken in charge more.

    However, a recent bug report response I got says this can be corrected in the next update. So cross your fingers.

    Solution 1: place cfdivs inside your cflayoutareas with matching names.

    Solution 2 (preferred): prefix your name layoutarea with 'cf_layoutarea '. To make the "xyz" comes from "cf_layoutareaxyz"

    I would like to do the conditional fix for the current version of CF9. (use the server variable. ColdFusion.ProductVersion)

    Cheers, - Ari

  • ColdFusion.Navigate works do not CF8

    Trying to figure out how to get the pages linked in the menu to fill the second area of provision.  What I read the code must be in the proper syntax to make it work, but when I click on a menu button, I get a lot of nothing happens.  I used ticket entries to play with different solutions, but all without success.  Is there some sort of javascript that I need to get over this to make it work or something?  Any help is appreciated.

    < cfajaximport tags = "cfgrid, cfform, cfdiv, cfpod" >
    < cflayout type = "vbox" align = "center" >
    < name cflayoutarea = 'menu' overflow 'visible' = align = "center" style = "width: 100%" >
    < cfmenu type = "horizontal" bgColor = "# c0c0c0" selecteditemcolor = "# C8CED6" >
    < cfmenuitem display = 'Index' href = "javascript:Coldfusion.navigate ('index.cfm', 'mainArea')" > < / cfmenuitem >
    < cfmenuitem display = 'Tickets' >
    < name cfmenuitem = 'open' display = "View open Tickets" href = "javaScript:Coldfusion.navigate ('openTicket.cfm', 'mainArea')" / > "
    < name cfmenuitem = 'Search' display = 'Search old Tickets' href = "searchTicket.cfm" target = "mainArea" / > "
    < / cfmenuitem >
    < cfmenuitem display = 'Alerts' >
    < name cfmenuitem = 'New' display = "New alert" href = "javascript:Coldfusion.navigate ('alerts.cfm', 'main')" / > "
    < name cfmenuitem = 'Active' display = "Active alerts" href = "javascript:Coldfusion.navigate ('alertsFollowUp.cfm', 'main')" / > "
    < name cfmenuitem = "History" display = 'Alerts history' href = "javascript:Coldfusion.navigate ('alertHistory.cfm', 'main')" / > "
    < / cfmenuitem >
    < cfmenuitem display = 'Inventory' >
    < cfmenuitem = 'pc' display name = "PC inventory" href = "javascript:Coldfusion.navigate ('pc.cfm', 'mainArea')" / > "
    < name cfmenuitem = "searchpc" display = "Search PC inventory" href = "javascript:Coldfusion.navigate ('pcSearch.cfm', 'mainArea')" / > "
    < name cfmenuitem = 'license' display = "License" href = "javascript:Coldfusion.navigate ('license.cfm', 'mainArea')" / > "
    < name cfmenuitem = "room" display = "Inventory" href = "javascript:Coldfusion.navigate ('roomSelect.cfm', 'mainArea')" / > "
    < name cfmenuitem = "notebook" display = "Administration of the laptop" href = "javascript:Coldfusion.navigate ('laptopAdmin.cfm', 'mainArea')" / > "
    < / cfmenuitem >
    < cfmenuitem display = "RACF" >
    "< name cfmenuitem ="RACFAdd"display =" RACF - add"href =" javascript:Coldfusion.navigate ('racfSearch.cfm', 'maiArean') "/ >
    < name cfmenuitem = "RACFSearch" display = "RACF search" href = "javascript:Coldfusion.navigate ('racfADD.cfm', 'mainArea')" / > "
    < / cfmenuitem >
    < cfmenuitem = "Tasks" view >
    < name cfmenuitem = "taskLog" display = "Task log" href = "javascript:Coldfusion.navigate ('taskLog.cfm', 'mainArea')" / > "
    < name cfmenuitem = "taskClosed" display = "Closed tasks" href = "javascript:Coldfusion.navigate ('taskLogClosed.cfm', 'mainArea')" / > "
    < / cfmenuitem >
    < display cfmenuitem = 'Change log' >
    < name cfmenuitem = "modificationAjoutez" display = "Add a new change" href = "javascript:Coldfusion.navigate ('changeAdd.cfm', 'mainArea')" / > "
    < name cfmenuitem = "recentChange" display = "Recent changes" href = "javascript:Coldfusion.navigate ('changeLog.cfm', 'mainArea')" / > "
    < name cfmenuitem = "changeArchive" display = "Change Archives" href = "javascript:Coldfusion.navigate ('changeArchive.cfm', 'mainArea')" / > "
    < / cfmenuitem >
    < cfmenuitem display = "Logout" href = "logout.cfm" > < / cfmenuitem >
    < / cfmenu >
    < / cflayoutarea >
    < name cflayoutarea = "mainArea" align = "center" style = "background-color: ##CCDBEF;" "height: 100%" >

    bla

    bla

    default bla stuff

    < / cflayoutarea >

    < / cflayout >

    There are 3 things that should fix it.

    (1) in the absence of at least one spelling: mainArea instead of maiArean in

    (2) respect for case-sensitive: use coldFusion.navigate instead of Coldfusion.navigate;

    (3) (this is probably a bug): Javascript in Coldfusion unit precede the name of the container of an element of cflayoutarea with cf_layoutarea. So, you have to replace all occurrences of 'mainArea' in the tags by 'cfmenuitemcf_layoutareamainArea'.

    Edit added: first make a test without the fix I suggested to 3). You do not have the fix in CF8, but it is certainly in CF9, where there is certainly a bug.

  • ColdFusion.navigate presentation CFFORM

    ColdFusion.navigate is supposed to submit a form to a specified target of ajax (for example cfdiv or cfwindow).
    In the code example Coldfusion.navigate function works if remove the name of the shape and the 'POST', but it returns a javascript "unhandled exception" error when you include the form name or id I tried many combinations cfdiv, cfwindow, specifying the name of the form, ID, Post, Get, etc... Still the same error...

    Oops, I had two arguments reversed...

    Should have been...
    ColdFusion.navigate('/cf8/text.cfm','myDiv',mycallBack,myerrorHandler,'POST','form1')

  • How to fix Firefox 31, 0-1 crashing on the Audio-Api - for example on quizlet.

    Dear Firefox team,

    Since yesterday (after the updates), Firefox hangs when it tries to play a sound. I think because of the Audio Api? It crashes on Google-Mail and Quizlet.

    For quizlet, I found a site where they describe how their sound: http://quizlet.com/help/how-does-audio-work-on-quizlet

    When I opened the file audio-test firefox crashes instantly without an errormessage. Here you get the example file: http://a.s.quizlet.com/en.mp3?v=5 & b = SWYgeW91IGNhbiBoZWFyIHRoaXMsIGF1ZGlvIGlzIG5vdCBiZWluZyBibG9ja2VkLg & s = LAhrMA-0

    Can I do something about it? Its really hard for me to understand why it crashes.

    Hey again once, unfortunately I can't reproduce the problem on a windows pc and the console log is not very descriptive (at least for my level of knowledge).

    If you can reproduce the same breaks down while you use firefox in safe mode, I would recommend filing a bug to the bugzilla.mozilla.org of this regression, so that developers have a closer look.

  • x 64 (64-bit) bug in the C API

    I try to get the C API of 64-bit running.  I have the 32-bit running API, and it is not working properly.  It seems that no API call in the 64-bit environment, which returns more than a single data type replaces a box of memory it does not.

    I work in VB.NET and enveloping with a marshaling calls.  The simplest example of a call that is not working properly is querying the active channels on the scope:

    C header:

    niVB_Status NIVB_DECL (niVB_MSO_QueryEnabledAnalogChannels)
    niVB_MSO_InstrumentHandle instrumentHandle,
    char * channels.
    size_t channelsSize,
    size_t * channelsSizeOut);

    There are several different ways to encode a managed, unmanaged for this translation.  First is to use an allocation to build a pointer on a buffer zone:

    Pointer = Marshal.AllocHGlobal (MAX_CSTRING_LENGTH)

    Then, the declaration looks like this:

    _
    Public Shared Function niVB_MSO_QueryEnabledAnalogChannels_64 (ByVal instrumentHandle As Integer, ByVal channel As Integer, ByVal channelsSize As UInteger, ByRef channelsSizeOut As UInteger) as niVB_Status
    End Function

    When the call is made, the call to channelsSizeOut returns 23 characters (which is correct).  Channels IntPtr is however cancelled (this should never happen, he suggests that the battery is getting damaged.)  If I put a very wide range locally around the pointer, sometimes it is not damaged.

    Or you can call the function by using a call to stringbuilder.  Basically, it replaces the IntPtr parameter with a string generator using marshaling for a pointer:

    Dim bufChannels As New StringBuilder (MAX_CSTRING_LENGTH)

    then the call looks like this:

    _
    Public Shared Function niVB_MSO_QueryEnabledAnalogChannels_64 (ByVal instrumentHandle As IntPtr, ByVal channel As StringBuilder, ByVal channelsSize As UInteger, ByRef channelsSizeOut As UInteger) as niVB_Status
    End Function

    Yet once, calling this function causes the stringbuilder class being together (Nothing), which is essentially showing that stack space where is the pointer to the StringBuilder is getting damaged.

    It is important to note that this code works perfectly with the 32-bit version of the DLL (with a programming construct).

    I don't think it's a bug in the C API; I can do the following for both x 86 and x 64 without triggering of MSVC stack Canaries. (Note that for brevity, it does no checking error in this code snippet.)

    #include
    #include
    #include ' nivirtualbench/nivirtualbench.h '.

    int main (int argc, char * argv)

    {

    niVB_LibraryHandle libHandle = NULL;

    niVB_MSO_InstrumentHandle msoHandle = NULL;

    size_t channelsSizeOut = 0;

    char * enabledChannels = NULL;

    niVB_Initialize (NIVB_LIBRARY_VERSION & libHandle);

    niVB_MSO_Initialize (libHandle, "brandonbench", false, & msoHandle);

    niVB_MSO_QueryEnabledAnalogChannels (msoHandle, NULL, 0, & channelsSizeOut);

    enabledChannels = (char *) calloc (channelsSizeOut, sizeof;

    niVB_MSO_QueryEnabledAnalogChannels (msoHandle, enabledChannels, channelsSizeOut, & channelsSizeOut);

    printf ("permit to channels: %s\n", enabledChannels);

    Free (enabledChannels);

    niVB_MSO_Close (msoHandle);

    niVB_Finalize (libHandle);

    }

    I suspect that the problem is in your marshaling. Size_t parameters are probably better represented using System.UIntPtr and not the type UInteger; size_t is 32-bit on 32-bit platform and 64 bits on 64-bit platforms, but UIntegers are 32-bit at a time. Try to write channelsSizeOut, it's probably what is triggering the corruption of the stack.

  • I think that there is a bug in the function RT Set CPU pool assignments (SMP)

    I'm trying to configure Symmetric multi Processing on a PXI controller which has 2 CPUs.  I check the number of processors using RT get number of processors (it gives me 2).  I have a constant matrix of wire to the RT Set CPU pool allocations function and create an array of 2 elements with system and reserved as the two values (to assign a single processor for my timed loop and the other for "everything else").

    It works, which means it seems to do the assignment.  But if I look at the assignments of Pool Set CPU error line, it returns-2231, "invalid CPU pool settings. Each pool must contain at least 1 CPU. »

    I do not know what that means, or why I am getting the error (I might just "ignore it", but if the error is 'real', which is not supposed to do).  The entrance to the Pool Set CPU assignment is described in the documentation as "an array of enumerations, with an entry for each CPU.  For me, this means 2 entries, which is what I have.

    Does anyone have a rational explanation of what's going on?  Is this a bug?  The documentation is the problem?  I have attached the front (showing the number of processors and the error output) and the (very simple) block diagram.

    Bob Schor

    Thank you, Bobby.

    I reread carefully the Note help "Specifies the Set of processors available for automatic load balancing".  Now that I know the 'right answer', I can interpret what is written as planned, but it's not easy!

    It is also curious that, although the previous example has generated error-2231, if we deleted the error (or wired never error line), function has, in fact, affect the system and Timed Structures pool to CPU0 (I have a few 'real' testing code that shows CPU0 with Structures Timed cycles).  Given that the function "does the right thing" even if you specify parameters of 'bad', perhaps it should be treated as a warning, not an error (or otherwise make a mistake of 'real' not assigned to a pool - it also wouldn't hurt to have a less obscure the Error Message, or more explicit "be sure to have at least a CPU explicitly assigned to each system and Timed Structures pools") , maybe in "BOLD".

    This code has no error:

    Hereby I give you credit for the 'Solution', but I'll mark my answer as the Solution because it has a photo to help readers who are intrigued by the question and our responses.

  • Is this a bug in the xy-Graph?

    Hi Forum,

    I came across this problem while working on this thread (http://forums.ni.com/ni/board/message?board.id=170&message.id=478607#M478607).

    I add values from 0 to 1 to a graph XY-like in the image below. (And only in this way!)

    When the user presses print a chart reference is managed by a subvi.

    In this sub - VI, there is another graph XY.

    Now, I copy all the important properties of the MainVI-XY-Graph to the Sub-VI-XY-graph.

    What is happening inside an another sub - VI, but it's not bad. The copy process may also occur within the first Subvi. Just a space saver.

    Then the Image of the Sub-VI-XY-Graph is printed via a method node.

    What I found is:

    Run the MainVI (Subvi SHOULD NOT BE OPENED)

    Change the scale of the x axis (for example, the scale of the x-axis of 0.0 to 0.1)

    Press on print

    The c:\pic.bmp file contains the chart, but the scale won't be 0-1 0.0 to 0.1!

    If you run with the Subvi is showing, it won't happen.

    And if you set the graphic content xy like this:the error does not occur.

    For those who follow me here:

    What's in my mind or IS THIS a BUG?

    Thanks for reading

    Christian

    Properties applied to hidden objects (or objects on the screens that are not open) are usually "noops" for performance reasons. If you think that I misread your description please post back.

    Ben

  • Api scripting flaw or bug in the code?

    I have a custom action and the workflow to save output settings to the last step in a workflow, so I don't know what data is passed. However the script statement that I use is null rather than the types of right back.

    Can someone tell me if there is a problem with scripting api or a bug in their code?

    Attach the workflow actions and example

    The action of the problem is logOutputParams.

    It uses 2 other actions for printing actually log files that I've also attached for reference.

    Yes, output parameters are available in the attributesStack property, which contains the attributes + input + output.

    An example of code to iterate over them:

    var attStack = workflow.attributesStack;
    for (var i in attStack) {
      var elem = attStack[i];
      for (var j in elem) {
         var att = elem[j];
         System.log(" name " + att.name);
         System.log(" type " + att.type);
         System.log(" value " + att.value);
      }
    }
    
  • Reader XI - bug in the "View" menu

    A bug in the view menu - don't say it's a feature!

    I tried to use keyboard shortcuts to navigate the menu of reader XI View - carefully Show / Hide-> Tbar Items (until I find that you can accomplish this with a right-click on the toolbar).

    To find View menu there are two submenus with the same "assigned keyboard shortcut: Fill & Sand Sign how / Hide." Obviously pressing on the of ' key the first time opens the pane fill & Sign, then View menu closes, so cannot use the of ' key open Show / Hide for more options.


    Why could not the devs of design chose a separate letter for all submenus in View? Where was their spirit? Is Adobe, outsourcing of design, too (for me it "feels" Asian).

    PS: couldn't find a 'suggest a feature' for Acrobat/Reader on the Adobe site, I get redirected to this forum instead.

    Adobe - feature request/Bug Report Form

  • Could not find the ColdFusion component or interface

    I get an error 'Could not find the ColdFusion component or interface' when I try to call CF feed or http methods, for example:

    localtest.httpService = new http();

    Results in the error, 'Cold not find the ColdFusion component or interface http'

    I have two CF 9 instances that are running on the same machine (Windows Server 2008), both running the latest patch (patch 2). The two cases raise the same error. I have another separate server running CF 9 (does not have the hotfix 2 installed) and it can run code very well. I guess feed() and http() are defined in an Adobe ColdFusion cfc in the CFIDE directory somewhere, but I don't know which because they are encrypted.

    When you say "mapped" do you mean "with a CF mapping? If Yes, what is the mapping and where?

    On my install CF9, I've got a custom tag path defined, that points to the cfusion/customTags directory, which in turn contains the com/adobe/coldfusion dir, which is where the CFC is. It's the out-of-the-box config.

    Due to the track being defined custom tag, all files within this subdirectory structure can be treated without any other path, such as:

    new http()

    A mapping to CFIDE won't help you, because the files are not in the dir of CFIDE. And even then, say you had a map to cfusion/customtags called "/ foo", you would need the path access to the CFCS in your code:

    new foo.com.adobe.coldfusion.http)

    (or have an import statement that precedes the new statement)

    --

    Adam

  • Bug in the Migration of SQL Developer

    I don't know that this is the right place to report this bug, let me know what is the right place

    During the migration from MySQL to Oracle, the string "NULL" is discharged from MySQL in the same representation as NULL (NULL value). Thus, the "NULL" strings are converted to NULL values

    Is there a work around for this problem? (other than the update in the source database :)) MySQL

    Thanks in advance
    Concerning
    Alfonso

    Hi Alfonso,.
    I reproduced the problem using this table MySQL with the following content:
    drop table alfonso;
    create table alfonso (int col1, col2 varchar (20));
    insert into alfonso values (1,' ');
    insert into alfonso values (2, NULL);
    insert into alfonso values (3, 'NULL');
    Select * from alfonso.

    When I now use SQL Dev to migrate the content using the script method of MySQL database offline are unloaded at:
    123NULL NULL

    -online the discharge of line 2 is similar to the line 3 that the original content is not.
    I filed a bug for the follow-up of your problem.

    In the meantime, you have 2 options to work around this problem:
    -You can use the online data migration method - here the content is migrated correctly
    -you need to change the scripts of unloading
    -online root cause is the script of discharge containing fields escaped by = ""-online you could for example replace with fields escaped by '\' and then NULL is discharged as \N. "

    The discharge now looks like this:
    123\N NULL

    Modify this script to unloading will also need to change the SQL * Loader - especially the CTL file scripts:

    The file generated by SQL Developer for loading data offline using the table in the above example looks like:

    load data
    INFILE 'alfonso.txt '.
    « str "' »
    in the gateway.alfonso table
    fields terminated by ''.
    trailing nullcols
    (
    col1 col1 = 'NULL, NULLIF
    col2 "DECODE (: col2, 'NULL ', NULL, NULL,' ',: col2).
    )

    You must make sure that \N is now correctly mapped to NULL and therefore you have to rewrite the DECODE function:
    col2 "DECODE (: col2, '\\N ', NULL, NULL,' ',: col2).

  • cfmenuitems no longer work after coldfusion.navigate

    There are times when you want to change slightly based on what a user menus.  It would be nice to simply "Refresh" menu (probably a cfdiv containing a cfmenu) using ColdFusion.navigate (.).  However, if your menu contains some cfmenuitems, they no longer appear ('dropdown') after completing the Navigate. If this is the intended behavior I think this is a major limitation.  (CF9 and CF8)

    code for my_test.cfm:

    < cfajaximport / >

    < cfdiv id="myDiv">

    < cfmenu ="my_menu" the name of type='horizontal'>

    < cfmenuitem ='options' from the name of display='My Options'>

    < cfmenuitem ='option1' from the name of display="Option 1" href="javascript:ColdFusion.navigate ('my_test.cfm', 'myDiv')" / > .

    < cfmenuitem ='option 2' from the name of display="Option 2" href="javascript:ColdFusion.navigate ('my_test.cfm', 'myDiv')" / > .

    < cfmenuitem ='option3' from the name of display="Option 3" href="javascript:ColdFusion.navigate ('my_test.cfm', 'myDiv')" / > .

    < / cfmenuitem >

    < / cfmenu >

    < / cfdiv >

    It turns out that if you remove one of these cfmenuitem before making the navigation the cfmenuitems works correctly...

Maybe you are looking for