Thanks Jeff, see my responses to your questions/comments below prefaced with
===>
I believe I found something, via the help of your questions on what to look
for.  See my comments towards the end of your reply below.

Dan


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jeff
Fleitz
Sent: Wednesday, May 18, 2005 9:57 PM
To: [email protected]
Subject: Re: [plum] Cannot add Control to PlumUserEditForm

Hi Dan,

Dan wrote:
> I have added a field to the PlumUser table called ParentUserID (int, 4)
> 

What are you using for a database?  Is this a manual add or via
synchronization?


===>I manually added the field/column and then ran "Synchronize with
database"

>  
> 
> In the Plum IDE, I expand Modules, expand Plum User, expand 
> PluUserEditForm.cfm, select Edit Form: Plum User
> 

Where is the path pointing to?  Are you pointing back into the users folder
in the admin directory, or is your module 
path outside of admin?


===> ??? I'm not sure what you mean. The only path shown when selecting the
PlumUserEditForm.cfm from the folder tree in the IDE is in Pages that link
to this page:
/admin/PlumUser/PlumUserList.cfm


One thing I would recommend: You might want to get into the habit of
eliminating spaces in folder names and templates, 
because the web doesn't like spaces in links, and if you don't URLEncode()
all your links, you are bound to run into 
problems down the road.


===> I agree with that habit and follow it. If I use a "space" in a filename
I use the _ , for example:  BCC_qry_GetQuote.cfm
All of my folder names are single words, no underscores.

>  
> 
> My new field PlumUser.ParentUserID shows in the "Controls not on this 
> form" box. I select if and click the arrow to move it to "Controls on 
> this form". And then move it up to the top under the existing UserID 
> control.
> 
>  
> 
> I then run Generate Code, then Save.
> 
>  
> 
> I then go to my browser and login to the Admin site. I select Users, and 
> then Edit a User. The ParentUserID does NOT appear on the Edit form.
> 

Did you open the template in your code editor to confirm the generated
template has the ParentUserID in it?

===> Yes. In /admin/PlumUser/PlumUserEditForm.cfm this line appears in the
file: <cf_DisplayTextInput column="ParentUserID" label="Parent User ID"
type="integer" required="No" size="10">


>  
> 
> I then select Database and select Plum Users, get a list of users and 
> select my user to Edit, AND THERE IT IS, ParentUserID is showing on this 
> form-which appears to be the same PlumUserEditFrom, but contains the 
> filed, when if I select Users and Edit it does not show.

Check your module path and make sure it is pointing to where you think it
is. If your Plum User module is not pointing 
at the admin/users directory.  Look at the path in the status bar when you
move your mouse over the link in the Database 
navbar and confirm whether it is pointing to admin/users. It sounds like you
may have your module outside of admin.

===> Ahh, here's a clue, the path from the Edit link from
Admin/Database/PlumUser/Edit is:

http://localhost:8500/dev.buyerscreditcoach.com/admin/PlumUser/PlumUserEditF
orm.cfm?UserID=10

and the path from Admin/Users/Edit is:
http://localhost:8500/dev.buyerscreditcoach.com/admin/users/PlumUserEditForm
.cfm?UserID=11

One is looking to the PlumUser folder, the other is looking to the users
folder. 

??? Where did this "users" folder come from? Vs. the PlumUser folder? I
don't recall creating it. But I guess I could have.

So question: why do I have two folders: PlumUser and users.  The users
folder has "a full set" of Plum files just like the PlumUser folder, but
actually has a few more.

This is the spot to fix, I need to understand what's going on here.  Any
ideas?





I like to open a newly generated template in my Homesite or (whatever you
use) to look at the code and confirm I got 
what I expected. This also helps to confirm it was generated where you
expect it to be.


v/r,

Jeff




> 
>  
> 
> Dan Kaufman
> 
>  
> 
>  
> 
>  
> 
> //An Elephant Never Forgets//
> 
> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
> 
>  
> 

**********************************************************************
You can subscribe to and unsubscribe from lists, and you can change
your subscriptions between normal and digest modes here:

http://www.productivityenhancement.com/support/DiscussionListsForm.cfm
**********************************************************************




**********************************************************************
You can subscribe to and unsubscribe from lists, and you can change
your subscriptions between normal and digest modes here:

http://www.productivityenhancement.com/support/DiscussionListsForm.cfm
**********************************************************************

Reply via email to