Richard Gutery
|
| Posted: 12/18/2004, 6:41 AM |
|
Good day to all.
Having gone through the tutorials and on line help, I've convinced myself
that there is a lot more to CCS than meets the eye.
Having said that, I have a aquestion regarding the Tutorials.
In the Order/Entry example (and others), there are refferences to "Add code
as shown in the examples". I cannot find the code the tutes are referring
to. Here is an excerpt from the .chm and online tutes.
1.. Add code for the Before Show, Before Delete and the After Insert
events of the 'Add/Edit Order' record form as shown in the example.
2.. Add code for the Before Show Row and the Before Build Insert events of
the 'Order Items' editable grid as shown in the example.
3.. Add code for the Before Show event of the 'PriceArray' Label control
as shown in the example
Can anyone help me locate these examples?
Thanks
RG
|
|
|
 |
peterr
Posts: 5971
|
| Posted: 12/18/2004, 7:59 AM |
|
The custom code is in the events and can be seen when you click on the "Code" tab to see the code. It's the same place where you'd view the generated code. You may also take a look at the tutorial at http://docs.codecharge.com/studio/html/QuickStart/Creat...rTextColor.html , which explains how to add your own custom code to an application.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
 |
 |
Richard Gutery
|
| Posted: 12/18/2004, 8:19 AM |
|
Yup I understand your comments. In step 50, it says to switch to HTML mode
and add the code (...) shown in the example. Same thing for steps 52-54.
I've printed the Code and HTML and can't find any Before Show event code, or
any of the other coded events that the tute referrs to as 'Shown in the
Example'. The link you sent is one of the ones I reviewed to understand
this, so I understand the process etc.
In Design Mode, I've clicked on the item (Add Button) then clicked on
Events, then Before Events, then the Code Tab. Nada. I looked at the Drop
Down lists as well and there is no example code.
My question is, where is the Code? What am I missing?
Thanks for the assist.
RG
"peterr" <peterr@forum.codecharge> wrote in message
news:241c453e847ad0@news.codecharge.com...
> The custom code is in the events and can be seen when you click on the
> "Code"
> tab to see the code. It's the same place where you'd view the generated
> code.
> You may also take a look at the tutorial at
> http://docs.codecharge.com/studio/html/QuickStart/Creat...rTextColor.html
> , which explains how to add your own custom code to an application.
> _________________
> Peter R.
> YesSoftware Support Representative
> http://support.yessoftware.com
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
peterr
Posts: 5971
|
| Posted: 12/18/2004, 8:29 AM |
|
I suspect that possibly you opened an example rather than createing new project based on it? Please see the description at http://docs.codecharge.com/studio/html/ProgrammingTechn...xamplePack.html .
If so, then what do you see when you click on the "Code" tab? There must be the generated code at least...
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
 |
 |
Richard Gutery
|
| Posted: 12/18/2004, 8:57 AM |
|
Here's the steps I performed:
1) File, New, Project, Solutions, CCS Example,
2) Opened OrderEntry,
3) Clicked on the Add Item button in Order Items,
4) Clicked (once) on Events, then Before Show,
5) Clicked on the Ccode tab,
No code anywhere regarding a "BeforeShow" Event or any of the other events
the tute referrs to.
So my suspision is that I'm doing this wrong. All I want to do is to look at
the code that the Tute referrs to. In the meanwhile, I've printed every Tute
page, on-line examples (demo material) and still can't find any referrence
to the 'Code the Tute' referrs to.
I think this is just one of my dumb days, after all my optics were wrong
with regard to "Importing" - ha.
Maybe just go back to bed :).
Thanks
RG
btw: I've noticed a rather interesting thing with CCS. For the parts of our
existing project that we've moved to CC2, the code (i.e. the app) loads and
runs about 15% faster than , and FP did. Pretty tight
code. Okay, FP is a pig, but prior to using FP with the previous projectc,
CCS still runs faster! On the subject of FP, have you run into any issues
with CC2 and FP?
"peterr" <peterr@forum.codecharge> wrote in message
news:241c45af727a80@news.codecharge.com...
>I suspect that possibly you opened an example rather than createing new
>project
> based on it? Please see the description at
> http://docs.codecharge.com/studio/html/ProgrammingTechn...xamplePack.html
> .
> If so, then what do you see when you click on the "Code" tab? There must
> be the
> generated code at least...
> _________________
> Peter R.
> YesSoftware Support Representative
> http://support.yessoftware.com
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
Richard Gutery
|
| Posted: 12/18/2004, 8:59 AM |
|
maybe what I should be wondering is 'What is the Code Supposed to do?".
Maybe that would help, then I could move on to actually trying to create the
code.
RG
"peterr" <peterr@forum.codecharge> wrote in message
news:241c45af727a80@news.codecharge.com...
>I suspect that possibly you opened an example rather than createing new
>project
> based on it? Please see the description at
> http://docs.codecharge.com/studio/html/ProgrammingTechn...xamplePack.html
> .
> If so, then what do you see when you click on the "Code" tab? There must
> be the
> generated code at least...
> _________________
> Peter R.
> YesSoftware Support Representative
> http://support.yessoftware.com
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
peterr
Posts: 5971
|
| Posted: 12/18/2004, 9:19 AM |
|
Well, I cannot tell right now what that code does, but it is commented once you see it.
When you're in Order Entry and click on "Code" you should see the generated code with 2 additional tabs at the top: "OrderEntry.asp" and "OrderEntry_events.asp". If you click on "OrderEntry_events.asp" then all the code there is custom code belonging to events. Thus if you see any code - that's it.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
 |
 |
Richard Gutery
|
| Posted: 12/18/2004, 9:26 AM |
|
Well I'll be go to hell!!! There it is.
And Low and Behold, the CODE Dropdown works just like Visual Studio and
viola, there ieverything is.
See, Optics again.
Thanks Peterr.
"peterr" <peterr@forum.codecharge> wrote in message
news:241c466a70a615@news.codecharge.com...
> Well, I cannot tell right now what that code does, but it is commented
> once you
> see it.
> When you're in Order Entry and click on "Code" you should see the
> generated
> code with 2 additional tabs at the top: "OrderEntry.asp" and
> "OrderEntry_events.asp". If you click on "OrderEntry_events.asp" then all
> the
> code there is custom code belonging to events. Thus if you see any code -
> that's it.
> _________________
> Peter R.
> YesSoftware Support Representative
> http://support.yessoftware.com
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
|