callmeknud
Posts: 4
|
| Posted: 02/19/2008, 4:11 AM |
|
Hello,
i'm currently making my first steps with asp an ccs and already don't know how to go on.
i created a Calendar based on a SQL Table using the Assistant , i then changed the EventDescription into a Link which redirects to a Page where the whole Record is shown.
Now i want to create a Link in every "DayCell" (for every DayNumber) which should redirect to a Page where a new Record can be inserted.
The Date Field / Texbox of the new Record should contain the Value of the DayNumber.
Can anybody help me?
I don't know how the value can be passed from the Calendar Page to the Insert Page.
Thanks!
|
 |
 |
wkempees
|
| Posted: 02/19/2008, 4:43 AM |
|
It is much easier to create a "InsertEvent" link on the Calendar.
Have that link call the Form RegisterEvent.
On that form have the fields from your table and have the datefield call the
calendar popup.
That way you can do things the easy way.
The days in your main calendar are displayed only, so there is no easy/quick
way to create a link there.
(although anything can be done)
Walter
www.dubbellul.nl/calendar
"callmeknud" <callmeknud@forum.codecharge> schreef in bericht
news:247bac77755640@news.codecharge.com...
> Hello,
>
> i'm currently making my first steps with asp an ccs and already don't know
> how
> to go on.
>
> i created a Calendar based on a SQL Table using the Assistant , i then
> changed
> the EventDescription into a Link which redirects to a Page where the whole
> Record is shown.
>
> Now i want to create a Link in every "DayCell" (for every DayNumber) which
> should redirect to a Page where a new Record can be inserted.
> The Date Field / Texbox of the new Record should contain the Value of the
> DayNumber.
>
> Can anybody help me?
> I don't know how the value can be passed from the Calendar Page to the
> Insert
> Page.
>
> Thanks!
>
>
>
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.yessoftware.com/
>
|
|
|
 |
callmeknud
Posts: 4
|
| Posted: 02/22/2008, 2:42 AM |
|
thanks for the reply.
i tried to find a way by looking at the valendar from ultraapps, but i still don't how they have done it.
|
 |
 |
geebee
Posts: 21
|
| Posted: 02/23/2008, 1:44 AM |
|
Hi callmeknud,
I believe I have done this in one of my previous CCS applications. I will have a look back through them to see what I did, if you are still looking for a solution?
Regards
|
 |
 |
callmeknud
Posts: 4
|
| Posted: 02/23/2008, 5:48 AM |
|
that would help me very much!
thanks!
|
 |
 |
geebee
Posts: 21
|
| Posted: 02/23/2008, 8:51 AM |
|
I found the application.
I decided to re-create it in a simpler form.
I created a table called Events with a date field called EventDate and a simple AutoNumber field to act as the EventDescription.
I created a page with a Calendar, which displays the EventDescription, in this case, just a number.
I created a page with a Record Form (Insert Only), for inserting new dates into the Events table. The only field I used was the EventDate.
On the Calendar, change the DayNumber to a link.
In the Href Source add the page with the Record Form to the Link Address.
Click the Parameters tab and add a new Link Parameter with the following settings:
Source Type = Special Value
Parameter Source = Current Processing Date
Format = dd/mm/yyyy (in my case)
Parameter Name = EventDate (Must be the same as the date field name in the Events table, or to be more accurate, the same as the textbox / date box on the Record Form)
That's it.
Clicking on any day number on the Calendar, will open the page containing the Record Form and the textbox / date box will have the correct date.
Give it a go and let me know how you get on.
|
 |
 |
callmeknud
Posts: 4
|
| Posted: 02/25/2008, 10:33 AM |
|
Thank you very much!
At first i had a little Problem with the Format of my Parameter until i noticed that the texfield was formatted like mm.dd.yyyy and the Parameter like mm/dd/yyyy.
Now it's working fine!
Thanks again!
|
 |
 |
geebee
Posts: 21
|
| Posted: 02/25/2008, 2:29 PM |
|
Glad you got it working
As you are probably aware, when you have multiple daily events in your calendar, you can use the same structure as above, for viewing these events. Putting the EventDate parameter in a WHERE clause, in a report for example, would allow you to view each day's events by clicking on the day number.

|
 |
 |
wkempees
|
| Posted: 02/25/2008, 3:28 PM |
|
nice.
thanks.
Walter
"geebee" <geebee@forum.codecharge> schreef in bericht
news:247c34130d9e00@news.codecharge.com...
> Glad you got it working
>
> As you are probably aware, when you have multiple daily events in your
> calendar, you can use the same structure as above, for viewing these
> events.
> Putting the EventDate parameter in a WHERE clause, in a report for
> example,
> would allow you to view each day's events by clicking on the day number.
>
> 
>
>
>
>
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
|