• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Folder Directory Create

Guest
Oct 01, 2013 Oct 01, 2013

Copy link to clipboard

Copied

I recently Migrated our sharepoint from windows 2003 to 2008. In doing so I lost Cold fusion and a directory Wizard, This wizard was put in place to create a folder directory out on our network drive when used. Now I have Coldfusion 10 installed on my new sharepoint server, I have brought over all of these directory wizard files but it still does not work. Its like I am missing a certain link in the chain here. Can anyone shed some light on the topic?

The wizard opens up to the first page, which it says next to continue. You would select a company which the code is written to pull a companies list from the network drive, then it creates a folder directory with files in the on that network drive. Now when you lick the initital next button it buttons and takes us to a The website cannot display the page. I still have all the original code files, placed into the same exact directory on the sharepoint server. The sharepoint server is an identical match, but its like somewhere something isnt lined up correctly.

I also have downloaded Coldfusion builder also.

Views

12.3K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Oct 01, 2013 Oct 01, 2013

Copy link to clipboard

Copied

Without knowing what this wizard is, I don't know how we could help.  Are you able to execute a CFM page with code on it to see if the service running CF has rights to create the directory?

<cfset directoryCreate( expandPath( '/path/to/new/directory' ) ) />

or

<cfset directoryCreate( 'C:\path\to\new\directory' ) />

I think ColdFusion 10 has a code analyzer built into it that you can run on the wizard files to see if it finds a problem with the code used in those files compared to the functionality that is available in CF10.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Oct 01, 2013 Oct 01, 2013

Copy link to clipboard

Copied

Im sorry im still new to coldfusion. What do you mean by execute a CFM page? I am sitting here looking at my Coldfusion administration page and my Coldfusion builder, and for what you asked I feel I am not looking at the right thing.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Oct 01, 2013 Oct 01, 2013

Copy link to clipboard

Copied

Where do I input

<cfset directoryCreate( expandPath( '/path/to/new/directory' ) ) />

or

<cfset directoryCreate( 'C:\path\to\new\directory' ) />

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Oct 01, 2013 Oct 01, 2013

Copy link to clipboard

Copied

This requires a level of familiarity with the basics of ColdFusion; the solution here will not be through the CF Admin.

What I wanted you to check was to create a ColdFusion page, such as 'test.cfm'.  Place it within the web root of your ColdFusion server, and ensure that the code I provided above is in it (but modify the paths to your local filesystem).

Then, simply navigate to the file in a browser; it will execute the page.  You can put a <cfoutput>All done!</cfoutput> at the end of the code so you have some visual indicator that the page executed, and then go check the directory you specified, and it should be created.

Sorry, I'm not familiar with Sharepoint, so I'm not sure what role it's playing in all this.  You said you have CF 10 installed, so I assume it's up and running and ready to serve CFM pages.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Oct 01, 2013 Oct 01, 2013

Copy link to clipboard

Copied

Yeah I should of been more clear. Sharepoint doesnt have anything to do with this. What I am trying to do is migrate a WORKING Coldfusion 7 page into Coldfusion 10 which is running on a seperate server. I thought just copying and pasting it into the same directory path would work but it does not.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Oct 01, 2013 Oct 01, 2013

Copy link to clipboard

Copied

Oh, dang.

CF10's Code Analyzer (available from CF Admin > Debugging & Logging > Code Analyzer) actually only goes back as far as CF8 to determine if there are deprecated content in the CFM.

I'd say chances are, this is the issue.  That's quite a bit of time between versions.  These wizard files which are failing; do you remember where you got them?  Maybe they can provide a CF10-compatible version.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Oct 02, 2013 Oct 02, 2013

Copy link to clipboard

Copied

These files were already in place and running when I took the position, being access by our sharepoint, I recently migrated our sharepoint to a better server unaware it needed Coldfusion to operate a part of the webpage. Well we couldnt reinstall coldfusion 7 because its no longer supported so I had to purchase Coldfusion 10. So I now have 2 windows servers, one with Coldfusion 7 which runs the CFM pages fine, and on another server coldfusion 10 with the exact same Coldfusion files just moved over that are not working. Now I dont know if there if there is a setting in coldfusion I need to change as far as mapping or setting the directory?

The files themselves look hand coded. It operates in the way where it pulls a group of names from our network server, the user then selects one of those group names, then in the box below the user gives it a new project name which they would click next to complete it. This creates a folder inside that first selected group, and inside of that folder which also has folders and files inside of that. Its hard to explain over the forum but hopefully this draws a better picture.

                                                                 >Created folder>word document

Group > Created folder inside that group >Created folder>word document

                                                                 >Created folder>excel document

Also I hate to overload this post, but when I use the webserver configuration tool and Add a new configuration. After it completes it kills my Coldfusion administration page. I can not navigate out to it, I get a webpage cannot be displayed, and if I removed that added configuration my Admin page will come right back.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Oct 02, 2013 Oct 02, 2013

Copy link to clipboard

Copied

When you were using the WSC tool, were you integrating ColdFusion into an IIS server, where it can capture requests off the default port of 80, or is ColdFusion running as standalone, where it usually runs off the default port of 8500?

What the WSC tool does is create a CFIDE and Jakarta folder in the sites you specify, and it creates Handler Mappings so that associated CFM/CFML/CFC/CFSWF/CFR files execute off the isapi_rewrite.dll located in the jakarta virtual directory.

Maybe if I understood a little more about your server setup I might be able to think of a thing you can check.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Oct 02, 2013 Oct 02, 2013

Copy link to clipboard

Copied

Yes the coldfusion is integrated into an IIS server where it captures requests off the default port of 80. My sharepoint is running on the 80 port, I go into the WSC tool and add my sharepoint IIS to the WSC tool. Thats how I was able get the Coldfusion 7 working with my old sharepoint. I then tried to do the same thing on my Coldfusion 10 but it does not work and also it knocks off my coldfusion admin page.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Oct 02, 2013 Oct 02, 2013

Copy link to clipboard

Copied

OK, I'm assuming IIS7+ or so here, but

1. Goto the site where the CF is running off of.  Is there a CFIDE and jakarta virtual directory off the root of the site?  (If not, create one called CFIDE and map it to {CF-INSTALL-PATH}\cfusion\wwwroot\CFIDE.  Ensure there is a folder called jakarta (if not, create one and map it to {CF-INSTALL-PATH}\config\wsconfig\1

2. Open up the site and select HANDLER MAPPERS.  Ensure you have an entry for .cfm, .cfml, .cfc, .cfswf, .cfr and that they point to: {CF-INSTALL-PATH}\config\wsconfig\1\isapi_redirect.dll

3. Open up the site and select ISAPI FILTERS.  Ensure you have an entry for CF (It'll probably call itself Tomcat) and that it points to: {CF-INSTALL-PATH}\config\wsconfig\1\isapi_redirect.dll

4. Open up the SERVER and select ISAPI AND CGI RESTRICTIONS.  Make sure that your tomcat ISAPI filter is set to ALLOWED for restriction.

Confirm these for me if you can.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Oct 02, 2013 Oct 02, 2013

Copy link to clipboard

Copied

Okay now I feel were getting somewhere.

1. There was already a CFIDE folder in my cfusion directory. I did have to create the folder jakarta out under my C:\cfusion\config\wsconfig\1\jakarta.

2. All the HANDLERMAPPERS were added and pointing to the correct path.

3. ISAPI FILTERS are allowed and pointing to the correct path for Tomcat

4. There is nothing Restricted in my ISAPI AND CGI RESTRICTIONS. Tomcat is included along with ASP net

Now when I got out to my sharepoint and click the link I actually get the first page of my wizard. It shows up. It does say "welcome press next to continue" but when you press next the screen turns white, but i feel this is an improvement because before when I pressed next I would get " Webpage can not be displayed."

Also I dont know if these means anything but I was checking my old servers ISAPI AND CGI RESTRICTIONS and it has a macromedia server extentions which the path is pointed the Cfusion7 directory towards these .dlls. (Jrun_iis6.dll and Jrun_iis6_wildcard.dll) Their path was CfusionMX7\runtime\lib\wsconfig\

I cant seem to find those same .dll in my Cfusion10 directory

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Oct 02, 2013 Oct 02, 2013

Copy link to clipboard

Copied

CF10 does things differently; it has no need for the wildcard solution that previous versions of CF used.

OK, when you get to the website that displays a blank page, can you view the source through the browser and see if any code was actually generated?

Also, were there any other numerical folders in C:\cfusion\config\wsconfig ?  By default, each time you run the connector, it may create a new folder (2, 3, 4).  If the settings are internally set to a number other than 1, and we've pointed everything to '1', this could be a reason why things are not working.  CF relies on the jakarta virtual directory in order for CFML pages to generate.

Just for clarification on my side.  This isn't the CF wizard we're talking about, right?  Where after you install, the browser opens and you complete the rest of the installation setup process.  That's already been done, correct?  This "Sharepoint" is like you navigating out to a location like:

http://nameofServer/sharepointFilesFolder/file.cfm

Correct?

Also, can you goto START > CMD > services.msc and ensure that ll 5 CF services are running?  (At the least, The CF10 Application Server service needs to run, but let's just ensure those are correct as well).  Can you provide us with the URL of the page that is rendering for you?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Oct 02, 2013 Oct 02, 2013

Copy link to clipboard

Copied

Okay comparing the first page that actually displays something to the second blank white page, the source is not what it should be. Here it is, minus the (//\\) I didnt want to mess up the post:

//\\ <!DOCTYPE HTML PUBLIC

//\\"-//W3C//DTD HTML 4.0 Transitional//EN">

//\\ <HTML><HEAD>

//\\ <META content="text/html; charset=windows-1252" http-equiv=Content-Type></HEAD>

//\\ <BODY></BODY></HTML>

Yes there was the number 1. Now when you say settings internally set, is this a setting set in the original code of my files or something out on the coldfusion admin page? Now this is the same code ran in my coldfusion 7 its just been moved over to my coldfusion10 server. So the code is the same. Ive gone through a lot of the code and have not seen a directory path with the number 1 in it.

No this is not the CF wizard, coldfusion has been installed and the first initial log in wizard has already been ran.

Yes that URL is correct, But to be specific here is what I see: http://sharepoint13.com/Divisions/ENGTECH/ProjectDirectoryWizard/dir_startup.cfm

Where Divisions is a folder in my sharepoint folder, this is my first page of my wizard which works, then you click next and the page goes white: http://sharepoint13.com/Divisions/ENGTECH/ProjectDirectoryWizard/DIRECTORY.CFM

Yes all 5 Coldfusion processes are running.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Oct 02, 2013 Oct 02, 2013

Copy link to clipboard

Copied

So I have to ask now, Since the first page works, The source looks good, but then we go to the second page where we can see the source is clearly not what we need. What happens? What makes it go from reading that first .cfm file to attempting to read the next but it fails.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Oct 02, 2013 Oct 02, 2013

Copy link to clipboard

Copied

Is the contents of the directory.cfm code too long to post here?  If it's private, I can understand and respect that.  I'd just like to inspect it to see if I can see any code which may not be working in the CF10 environment.

CF has to be running just fine, because the first page is a CFM, and it functioned and rendered just fine.  Chances are, though, it may be using rather simple CF that functions the same in CF7 as it does in CF10.

You're saying this second page generates a white page and there is no source code generated from it, so it is either failing to generate output, or is encountering some type of processing error.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Oct 02, 2013 Oct 02, 2013

Copy link to clipboard

Copied

Here is the Code for the next page. Now from what I can tell this code has parts that it is recalling other pieces of code into it. Directory2 is another code file I have. But since nothing shows up there must be something wrong with this main piece. I dont think there is any sensitive information in any of them, but the information they pull from my network yes, which cant be seen unless its ran here.

<HTML>
<HEAD>
<TITLE>C&I Engineering - Project Directory Wizard</TITLE>
</HEAD>
<BODY>

<CENTER>


<CFINCLUDE TEMPLATE="HEADER.CFM">
<!---<CFINCLUDE TEMPLATE="BUTTONBAR.CFM"> --->
<CFINCLUDE TEMPLATE="MAINAREA.CFM">

<!---
Main Content
--->

<FORM ACTION="DIRECTORY2.CFM" METHOD="POST">

<TABLE WIDTH="100%" HEIGHT="100%" BGCOLOR="#D4D0C8">
<TR><TD>
Please select a company directory to place the new projects:<BR>

<CFDIRECTORY action="list" DIRECTORY="\\SERVERNAME\shared\PROJECTS"
    NAME="myDirectory"
    SORT="Name ASC">
<CFPARAM NAME="SELECTEDDIRECTORY" DEFAULT="">

<SELECT NAME="MAINDIRECTORY">
<OPTION>
<CFOUTPUT QUERY="myDirectory">
<CFIF TYPE IS "Dir">
<CFIF "#NAME#" IS "#UCASE(SELECTEDDIRECTORY)#">
  <OPTION VALUE="#NAME#" SELECTED>#Name#
<CFELSE>
</CFIF>
  <OPTION VALUE="#NAME#">#Name#

</CFIF>
</CFOUTPUT>
</SELECT>
<A HREF="./addnewclient.cfm">Add New Client</a> (if not listed)<br>
<BR>


<BR>
Project Name:<BR>
<INPUT TYPE="TEXT" MAXLENGTH="20" SIZE="20" NAME="DIRTOCREATE" VALUE="">

<BR><BR>

</TD></TR>
</TABLE>
<CFINCLUDE TEMPLATE="ACTIONBUTTONS.CFM">
</FORM>

</BODY>
</HTML>

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Oct 02, 2013 Oct 02, 2013

Copy link to clipboard

Copied

Well I see a lot of HTML errors here, but I'm going to go with the obvious.

Try wrapping the entire document (make a backup first) in <CFOUTPUT>

If the page is being requested and there is no error, but nothing is being generated, chances are, CF is not outputting it to the buffer.

And wow, is that a <center> tag I see?  That's a blast from the past!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Oct 02, 2013 Oct 02, 2013

Copy link to clipboard

Copied

Maybe something like this:

<cfparam name="selectedDirectory" default="" />

<cfoutput><!DOCTYPE html>

<html>

          <head>

                    <title>C&I Engineering - Project Directory Wizard</title>

          </head>

          <body>

                    <cfinclude template="header.cfm" />

                    <cfinclude template="mainarea.cfm" />

                    <form action="directory2.cfm" method="post" enctype="application/x-www-form-urlencoded">

                              <p>Please select a company directory to place the new projects:</p>

                              <hr>

                              <cfdirectory

                                        action="list"

                                        directory="\\servername\shared\projects"

                                        name="myDirectory"

                                        sort="name ASC" />

                              <select name="mainDirectory">

                                        <cfloop query="myDirectory">

                                                  <cfif type eq 'dir'

                                                            and name is uCase( VARIABLES.selectedDirectory )>

                                                            <option value="#name#" selected="selected">#name#</option>

                                                  <cfelse>

                                                            <option value="#name#">#name#</option>

                                                  </cfif>

                                        </cfloop>

                              </select>

                              <hr>

                              <p><a href="addnewclient.cfm" title="Add New Client">Add New Client</a> (if not listed)</p>

                              <hr>

                              <p>Project Name:</p>

                              <p><input type="text" maxlength="20" size="20" name="dirToCreate" value="" /></p>

                              <hr>

                              <cfinclude template="actionbuttons.cfm" />

                    </form>

          </body>

</html>

</cfoutput>

I couldn't understand the logic you're using for the select option list loop.  You default a variable called selectedDirectory to an empty string and then you loop over the list of files and folders from the specified value and check to see if they are a directory and have a name equal to the uppercase value of an empty string.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Oct 03, 2013 Oct 03, 2013

Copy link to clipboard

Copied

Yeah I wish I was the one who wrote this code maybe I would better understand it, This was put into place YEARS and YEARS ago. My network Admin was telling me he could still remember the day they had to purchase CF7 for the guy who originally wrote the code. Unfortunately once they got this thing working on CF7 I don't think it has ever been looked at and now its time to upgrade and several people down the Tech position here I am trying to keep this code alive so my end users can still work and use it. Hence the jump from CF7 to CF10.

Okay so heres what happened. I backed up my original, plugged the modified code in and I got nothing. Im thinking something in CF has to be restarted? I log into my CF10 server stop CF, start it back up again and try to run this again still nothing. Still takes you to a blank white page with this for the source code:

 

<!

DOCTYPE HTML PUBLIC

"-//W3C//DTD HTML 4.0 Transitional//EN">

Now just for a test I tried to plug in the same exact code as my first page into this code were looking at, in theory, I press next and it takes me to the next page that should look identical to the first, right? Well it still goes to the white page with that above code. Now maybe I dont know if there is a restart and load what has changed button in CF, maybe there is? Im also thinking that the code is written seperatley for these Action buttons (back, next, and cancel) Could the (Next) button be coded in a way to not bring up the next page properly? Or is that just a default CF command.

<HTML><HEAD

META content="text/html; charset=windows-1252" http-equiv=Content-Type></HEAD

BODY></BODY></HTML >

Okay I dont know why the code seperates like that, but all the code on this post should be together know that.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Oct 03, 2013 Oct 03, 2013

Copy link to clipboard

Copied

Okay so it looks like the code updates automatically when I change things in the back end. Since nothing comes up when I press next, could that mean my "Next" button is wrong? Im not sure how to open up this file directly as a CFM, so I saved it as an HTML and the page does come up, with errors of course but something actually comes up in IE. So im losing something inbetween clicking next on the first page to grabbing the code that we just worked on.

UPDATE

Okay So I decided to plug our code directly into the first page code file, just to bypass the next button entirely and I do get a page displayed. There is errors, The drop down bar that should be displaying all the company names is blank, so it seems to not be pulling anything which there is another code file also I can look at, this code looks to pull all the directoy names that are present on the network drive and display them in an array in this drop down box. The Add new client button works, it takes you to the next screen and has a blank box to type in your client and press next, but of course when you press next the screen goes to a white page like before.

This is the code I have for my "actionbuttons.cfm"

<!--

  BACK/NEXT/CANCEL Buttons

-->

</TR>

<TR BGCOLOR="#D4D0C8">

<TD COLSPAN="2">

<HR>

<TABLE BORDER="0" WIDTH="100%" BGCOLOR="#D4D0C8">

<TR>

  <TD WIDTH="80%"></TD>

  <TD><INPUT TYPE="BUTTON" DISABLED VALUE="  < Back  "></TD>

<cfif isdefined("FINALWIZPAGE")>

  <TD><INPUT TYPE="SUBMIT" VALUE="Finish"></TD>

<CFELSE>

  <TD><INPUT TYPE="SUBMIT" VALUE="  Next >  "></TD>

</CFIF>

  <TD></TD>

  <TD><INPUT TYPE="BUTTON" VALUE="  Cancel  "></TD>

</TR>

</TABLE>

</TR></TD>

And this is my first page that tries to Invoke the "actionbuttons.cfm"

<HTML>
<HEAD>
<TITLE>C&I Engineering - Directory Wizard</TITLE>
</HEAD>
<BODY>

<CENTER>


<CFINCLUDE TEMPLATE="HEADER.CFM">
<!---<CFINCLUDE TEMPLATE="BUTTONBAR.CFM"> --->
<CFINCLUDE TEMPLATE="MAINAREA.CFM">

<!---
Main Content
--->
<FORM METHOD="POST" ACTION="./DIRECTORY.CFM">

<TABLE WIDTH="100%" HEIGHT="100%" BGCOLOR="#D4D0C8">
<TR><TD>
<FONT SIZE="+2">
Welcome to the Project Directory setup program
</FONT><BR><BR>
This web-based wizard helps you to create the appropriate directories
for a particular project.<BR><BR>

Please click Next to continue<BR><BR>

</TD></TR>
</TABLE>

<CFINCLUDE TEMPLATE="ACTIONBUTTONS.CFM">

</FORM>

</BODY>
</HTML>

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Oct 03, 2013 Oct 03, 2013

Copy link to clipboard

Copied

How familiar are you with ColdFusion code and HTML?   Do me a favor...

1. If there is an application.cfc file in the main directory (or 'application.cfm') temporarily rename it as 'application.cfc.old' or 'application.cfm.old' so that its code does not execute.

2. Create a new page called 'test.cfm' and put this coded in it:

<cfset directoryPath = 'c:\windows' />

<cfdirectory

     action="list"

     directory="#directoryPath#"

     recurse="false"

     type="dir"

     name="directories" />

<cfoutput>

<select name="directory" id="directory">

     <cfloop query="directories">

          <option value="#directory#\#name#">#name#</option>

     </cfloop>

</select>

</cfoutput>

3. Put that file in the root of the site, but update the first line, where directory path is, to point the the location where you want to get a list of folders.

4. Open a browser and navigate out to this test.cfm page.  It should present you with a simple dropdown list, populated with folders from the specified directory path.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Oct 03, 2013 Oct 03, 2013

Copy link to clipboard

Copied

I know enough to identify what Im looking at but now enough to truly code my own and work with something. Especially as Im looking at outdated code.

I plugged that in and get a blank drop down box.

I feel like I am only giving you bits and pieces to what Im working worth and I cant explain it well enough for you to understand. Ive uploaded a small zip file that contains the couple files Im looking at.

http://www.filedropper.com/cf_1

The wizard starts with the file Dir_startup, then click next, the next window is Directory which calls to Directory2 and AddNewclient. This window pulls all the folder directories from my network server and shows them in a drop down, allows me to select one. Then in the bottom text box to give my new project a name, then click next to create the folders in the selected directory.

Hopefully this gives you a better image of what I am looking at.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Oct 03, 2013 Oct 03, 2013

Copy link to clipboard

Copied

OK, so dir_startup.cfm comes up, right.  You press NEXT to goto directory.cfm where you're expecting the dropdown to be populated with directories from the path you provided, no?

Are you getting to directory.cfm and is the dropdown populating with expected values?  Because directory.cfm has code on line 24 (the <cfdirectory> tag) which is looking for the path:

\\servername\shared\projects

That means, you have to have a server ON your network called servername, and the subsequent path (shared\projects) needs to exist as well.  Can you confirm this?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Oct 03, 2013 Oct 03, 2013

Copy link to clipboard

Copied

Yes dir_startup comes first, which just says welcome etc please press next. Once you press next it takes you to DIRECTORY. (this is when the white screen comes up and I get nothing)

So no I am not getting anything once I get to directory, but yes I do have a server on my network called \\Servername with the directory path to where it should look to as \\servername\shared\projects.

Now all of this code, all those files, work flawlessly in CF7. It works exactly how I am trying to describe it. When I bring those files over to my CF10 server, and try to run it is when all these problems come up. I thought initially it could be my CF10 server set up, but I feel all of the setup is done automatically and just relies on the code of my files. Second I feel maybe the code is just too outdated?

Would it help you in in this picture im trying to paint if I gave you the running source code of my DIRECTORY ran on CF7? Like run the page and pull the source straight from my IE? Because when I view the source it displays all the extra fill in information.

Im just going to add it. This is the Source pulled from my CF7 when I run the DIRECTORY PAGE. Theres more than 4 companies i just shortended it, but you see how it pulls the list of folders and would display them all in the drop down box.

<HTML>
<HEAD>
<TITLE>Project Directory Wizard</TITLE>
</HEAD>
<BODY>

<CENTER>


<STYLE>

<!--
BODY
{
    FONT: 8pt Arial;
}

.Title
{
    FONT: 9pt Arial;
    COLOR: WHITE;
}

-->
</STYLE>

<TABLE BORDER=".5" CELLPADDING="3" BGCOLOR="#D4D0C8" WIDTH="550">

<tr>


<td bgcolor=#0A246A align=left valign=top background="./images/topbarbg.jpg">

<font size="2" color="White" face="arial"><p class="title"><b> Project Directory Setup</b></font>
</td>
</tr>


<tr>
<td bgcolor=#D4D0C8>
<TABLE WIDTH="100%">
<TR>

<TD BGCOLOR="#000080" WIDTH="162">
<IMG SRC="./IMAGES/LEFTSIDE2.JPG">
</TD>
<TD BGCOLOR="#D4D0C8" WIDTH="100%">

<FORM ACTION="DIRECTORY2.CFM" METHOD="POST">

<TABLE WIDTH="100%" HEIGHT="100%" BGCOLOR="#D4D0C8">
<TR><TD>
Please select a company directory to place the new projects:<BR>

<SELECT NAME="MAINDIRECTORY">
<OPTION>

  <OPTION VALUE="Company1">Company1
  <OPTION VALUE="Company2">Company2
  <OPTION VALUE="Company3">Company3
  <OPTION VALUE="Company4">Company4
  <OPTION VALUE="Company5">Company5
</SELECT>
<A HREF="./addnewclient.cfm">Add New Client</a> (if not listed)<br>
<BR>


<BR>
Project Name:<BR>
<INPUT TYPE="TEXT" MAXLENGTH="20" SIZE="20" NAME="DIRTOCREATE" VALUE="">

<BR><BR>

</TD></TR>
</TABLE>
<!--
  BACK/NEXT/CANCEL Buttons
-->
</TR>
<TR BGCOLOR="#D4D0C8">
<TD COLSPAN="2">
<HR>
<TABLE BORDER="0" WIDTH="100%" BGCOLOR="#D4D0C8">
<TR>
  <TD WIDTH="80%"></TD>
  <TD><INPUT TYPE="BUTTON" DISABLED VALUE="  < Back  "></TD>

  <TD><INPUT TYPE="SUBMIT" VALUE="  Next >  "></TD>

  <TD></TD>
  <TD><INPUT TYPE="BUTTON" VALUE="  Cancel  "></TD>
</TR>
</TABLE>
</TR></TD>

</FORM>

</BODY>
</HTML>

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation