NixMarl
Posts: 12
|
| Posted: 08/26/2004, 3:30 PM |
|
Hep me! Hep me!
Ok, first a little background on my problem.
(1) when I changed from the InternetDB to a local one, a big problem came up. Seems the CodeCharge software does not change the line in the events files which reads:
$db = new clsDBInternetDB();
to
$db = new clsDB{database name}();
--fixed, manual search and replace--
(2) when I go into the Admin-->Editorial Categories menu I did not have the ability to ADD or DELETE Editorial Categories.
Now I got one of these fixed, the Delete function, but I have tried for many hours now and cannot get the ADD button to even appear. I'm fairly sure it's something simple that I'm missing, but I can't find it. It is enabled in the properties, and I've even been through the code and I cannot see what's wrong.
Again, I scream: HEP ME! HEP ME!
If you need any additional info, just ask, I'm flustered and I'm sure I forgot something here also...
|
 |
 |
NixMarl
Posts: 12
|
| Posted: 08/26/2004, 5:27 PM |
|
Ok, I'm ready to start pulling hair out again. I've already pulled all mine, I'm looking now for volunteers...
Oh, forgot to mention ^above^ that I'm -trying- to use the solution book "store" project. I've got everything working (I think) except the INSERT (ADD) button showing. It just ain't happening...
Ok, full headed or long haired volunteers ONLY please... No, really, this is driving me crazy now, someone HELP!
|
 |
 |
peterr
Posts: 5971
|
| Posted: 08/26/2004, 5:59 PM |
|
Nix,
Re: 1
A connection name is not related to the database, and renaming a connection will not change anything in the code. You should never need to change the connection name, but you could change the connection configuration and point it to a different database.
Re: 2
The system was designed in such a way. Adding a new category would not have any effect because the store uses exactly 4 categories at http://examples.codecharge.com/Store/Default.php
There is simply no reason to add more editorial categories because there is no place defined to show them anywhere on the main page of the store. They would never be shown.
Keep in mind that this is a sample online store, and you can modify the main page to utilize additional editorial categories, and you can modify the administration to provide additional features, as you may like.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
 |
 |
NixMarl
Posts: 12
|
| Posted: 08/26/2004, 6:22 PM |
|
Quote peterr:
Re: 1
A connection name is not related to the database, and renaming a connection will not change anything in the code. You should never need to change the connection name, but you could change the connection configuration and point it to a different database.
With my version of PHP that I'm using, I would constantly get an error about non-existant class ID. That was, until I changed the line
$db = new clsDBInternetDB();
to
$db = new clsDBStoreDB();
(my database's name is 'Store' and the connection to the DB is named 'StoreDB'.
|
 |
 |
NixMarl
Posts: 12
|
| Posted: 08/26/2004, 6:27 PM |
|
Quote peterr:
Re: 2
The system was designed in such a way. Adding a new category would not have any effect because the store uses exactly 4 categories at http://examples.codecharge.com/Store/Default.php
There is simply no reason to add more editorial categories because there is no place defined to show them anywhere on the main page of the store. They would never be shown.
Keep in mind that this is a sample online store, and you can modify the main page to utilize additional editorial categories, and you can modify the administration to provide additional features, as you may like.
I found the simple solution to getting the DELETE button to show was to simply turn it's setting (DeleteAllowed) to = true. I wish it were that easy to turn on the InsertAllowed. The function is there, but non-functioning. I've deleted 2 Editorial Categories, and would really like this function to work so I could add in 2 different ones. And as I stated previously, I'm sure it's something simple, but it's got me really flustered.
Thanks in Adv.
John
|
 |
 |
NixMarl
Posts: 12
|
| Posted: 08/26/2004, 8:03 PM |
|
allllrighty, I'm hoping this is my last stupid post. 
I got the Editorial Categories re-added by viewing the INSERT (ADD) code in CCS in "Live Page" view. Worked beautiful. However, this leaves me with a problem. I don't know where to link these "new" categories to get them to show on the 'default.php' page. If someone could tell me what I need to add or change, either to the code or the database. I was under the impression they were enumerated, but this does not seem to be the case.
|
 |
 |
peterr
Posts: 5971
|
| Posted: 08/26/2004, 8:26 PM |
|
You would have to create a new grid on the default page, and then filter the grid to show only the records for one specific category.
You can view the Data Source for the other grids on that page to see how they are configured.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
 |
 |
NixMarl
Posts: 12
|
| Posted: 08/26/2004, 10:18 PM |
|
Quote peterr:
You would have to create a new grid on the default page, and then filter the grid to show only the records for one specific category.
You can view the Data Source for the other grids on that page to see how they are configured.
I read your answer, yes, that seems to be what I needed to do. However, I checked the Data Source for the other grids, then I adjusted them. For some reason, the item was deleted from the database, but it's enumeration is still in use. I simply changed the Data Source configuration until the I found the proper one that I wanted in each position. (in my case 5 and 6 respectively for the missing ones.) DataSource was my answer, and yes, it was simple. THANKS! If you hadn't of said something about examining those, I would have never thought to look at and/or change those.
|
 |
 |
DonB
|
| Posted: 08/27/2004, 5:52 AM |
|
Insert "mode" is established by opening the page without providing the URL
parameters which define the primary key of that page. Providing them
establishes update mode.
Having said that, the underlying table must have the primary key fields
defined in its definition AND those fields must be Where parameters declared
in the Data Source properties.
Once the database, the page and the Data Source all agree - the
insert/update mechanism will work.
--
DonB
http://www.gotodon.com/ccbth
"NixMarl" <NixMarl@forum.codecharge> wrote in message
news:5412e8debf08e2@news.codecharge.com...
> Quote peterr:
> Re: 2
> The system was designed in such a way. Adding a new category would not
have any
> effect because the store uses exactly 4 categories at
> http://examples.codecharge.com/Store/Default.php
> There is simply no reason to add more editorial categories because there
is no
> place defined to show them anywhere on the main page of the store. They
would
> never be shown.
> Keep in mind that this is a sample online store, and you can modify the
main
> page to utilize additional editorial categories, and you can modify the
> administration to provide additional features, as you may like.
>
>
> I found the simple solution to getting the DELETE button to show was to
simply
> turn it's setting (DeleteAllowed) to = true. I wish it were that easy to
turn
> on the InsertAllowed. The function is there, but non-functioning. I've
> deleted 2 Editorial Categories, and would really like this function to
work so
> I could add in 2 different ones. And as I stated previously, I'm sure
it's
> something simple, but it's got me really flustered.
>
> Thanks in Adv.
> John
>
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
Damian
|
| Posted: 08/27/2004, 7:28 AM |
|
It was good of you to wait a whole 2 hours before asking again!
"NixMarl" <NixMarl@forum.codecharge> wrote in message
news:5412e800ba9615@news.codecharge.com...
> Ok, I'm ready to start pulling hair out again. I've already pulled all
mine,
> I'm looking now for volunteers...
>
> Oh, forgot to mention ^above^ that I'm -trying- to use the solution book
> "store" project. I've got everything working (I think) except the INSERT
(ADD)
> button showing. It just ain't happening...
>
> Ok, full headed or long haired volunteers ONLY please... No, really, this
is
> driving me crazy now, someone HELP!
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
Damian
|
| Posted: 08/27/2004, 7:37 AM |
|
I find when I set up my DB connection that I create exactly the same db name
and user on my local/test server as I do on the live/published server - then
I can just change the Publishing settings between FTP and Local/Network and
not have to modify the ODBC or DB connection settings in any way.
"NixMarl" <NixMarl@forum.codecharge> wrote in message
news:5412e800ba9615@news.codecharge.com...
> Ok, I'm ready to start pulling hair out again. I've already pulled all
mine,
> I'm looking now for volunteers...
>
> Oh, forgot to mention ^above^ that I'm -trying- to use the solution book
> "store" project. I've got everything working (I think) except the INSERT
(ADD)
> button showing. It just ain't happening...
>
> Ok, full headed or long haired volunteers ONLY please... No, really, this
is
> driving me crazy now, someone HELP!
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
|