Clarion
Posts: 6
|
| Posted: 09/28/2008, 4:41 PM |
|
Hi,
Recently purchased CodeCharge, and now I have the time to have a go, but have some quick qiestions.:
1. grid/record Builders, works great but... I want to re-run the builder just making some minor changes , adding a field to the search, change the key so forth - can I do this and How?
I know I can do the builders all again, but if I have code in the embeds, or made a lot of changes to the properties what then ?
2. Record Locking, to my suprise there is not any? or is this a RTFM question ?
Cheers
Tor-Bjarne
Berghs Metall as Http://www.fakturaprogram.no
|
 |
 |
datadoit
|
| Posted: 09/29/2008, 8:07 AM |
|
> 1. grid/record Builders, works great but... I want to re-run the builder just
> making some minor changes , adding a field to the search, change the key so
> forth - can I do this and How?
>
Would be a nice feature, and requested often. I think some progress was
made towards this goal (hence the "Save Builder Options" checkbox that
seemingly does nothing), but just not there yet. You can bring more
urgency by submitting the request under the 'wishes' forum.
> 2. Record Locking, to my suprise there is not any? or is this a RTFM question
> ?
>
This is not a CCS issue. Recognize that CCS is just an IDE. Look at
your web server/scripting language/database/ODBC settings. Provide some
specs on your environment and I'm certain one of us can point you in a
more specific direction.
Welcome aboard.
|
|
|
 |
Clarion
Posts: 6
|
| Posted: 09/29/2008, 11:40 AM |
|
Hi,
Thank you for your reply 
And thank you for wishing me aboard 
So ... There you have it :) was searhing the manuals, in my Win32 IDE I`ve had the possibillity to regenerate templatecode (with embedcode) for 20 years, a bit spoiled probably when coming over to web.
IDE = Integrated Development Environment ?
May be a language problem, I`m Norwegian, so for me it simply means "a place I put "all my stuff", regardless of the underlying DB`s)
Actually I purchased CCS as it looked as they got the same idea about "Get the job done" (Bruce Barrington founder of Topspeed/Clarion saying) and "tedious tasks shoud not be repeated, but templated", but web is still young or what ?
I Made a Invoice application using my Win32 IDE (Clarion) MySQL db, and it put`s recordlocking on for me automaticly (I dont know how, and dont want to know how , it just works)
It was first using Native drivers (Topspeed), then converted to MySQL (Done withing 1 day using SQL Templates, recordlocking works here to), used 4-5 days trimming MySQL structure to fit, changing filestructure and so forth.
My plan is to put a couple of my Win32 applications to the web in PHP/ASP.NET, but without recordlocking it is Dangerous, and must I put a lot of effort in coding my own recordlocking, I`m lazy, and want to add new exiting webfeatures, not meddle with the basics.
My test`s show that in existing code, the last person pressing [save] will get the record saved, in my Booking application for example it shoud be the other way, ie the first person that made a booking shoud get the Room, ticket, cabin or what ever .
This is not a rant, I see some strenghts to CCS, but did never checked (for me) the basics.
Cheers
Tor-Bjarne
|
 |
 |
datadoit
|
| Posted: 09/29/2008, 12:17 PM |
|
I thought Clarion had some sort of web-enabled feature or third party
tool to convert your application to web?
I see what you mean by record locking. I don't know of any built-in
optimistic record locking feature in CCS (sounds like a wonderful
wishlist item!), but shouldn't be too difficult to create your own.
Ex:
BeforeShow event of the record form, take a snapshot of the record data
and toss it in a cookie/session/db table/wherever.
BeforeUpdate event of the record form, compare those values with the
values that are currently in the record for differences. If there are
differences, either throw an error or not allow the update.
|
|
|
 |
Clarion
Posts: 6
|
| Posted: 09/29/2008, 1:12 PM |
|
Hi,
Thank your for your reply again, will put it in the wishlist.
Yes, I know the theory behind, make a hash of the record, compare new record with one on disc, display warning, re-read record, show "Changed by another user" on screen, after update do the whole lot again , Cut & Paste this Code this in every little recordset , search and replace filetables
I Could do that ... 
Actually Clarion have several, "to web" things, starting from USD 350 (PHP Templates), then 395 ASP, ClarioNET 1099,- (Make app Thin client), Clarion.NET 1800.-, AppBroker 299.-
I was trying to save a buck , Also think the php templates is dependent of ado connections (not shure).
Cheers
Tor-Bjarne
|
 |
 |
|