Displaying Events

i have an extra custom text fields like Address,City, and a select box like States.
i am saving my fields in data base but i want to display when the user want to edit the event , at that time i am getting empty fields except that description. can you tell me that i want to display all the fields which r saved in DB.Like Description

I am having extra custom fields , all the custom fields are saving in data base . but when its displaying the event on calender it show’s only the description . i want to display custom fields data in calender .For adding custom fields (like text box) i added code like this [code]scheduler.config.lightbox.sections = [ {
name:“subject”,
height:20,
map_to:“title”,
type:“textfield” ,
focus:true

},
{
name : “description”,
height : 50,
map_to : “text”,
type : “textarea”,
focus : true
},[/code] is this the correct way to code ? To retrieve back to the light box and to the event calender.

Mostly yes, but you are using type:“textfield” - there is no such editor type as textfield
Also, you have multiple fields with focus property, which has not sense, only one field can receive an initial focus.

Stanislav,
Yes now changed type as text. can you tell how the description is getting the data from event .
when the user want to edit . can i get all fields data from database ,related to the particular event like(Address1, Address 2) in light box.

a) On server side you need to specify all fields in the 3rd parameter of render command, as result all values will be included in the XML
some value

b) on client side scheduler parses XML and convert xml tags to properties, so you can access them as
scheduler.getEvent(id).Address1

c) if you want to edit this value in lightbox , you need to add the configuration section as

{name:“description”, height:200, map_to:“Address1”, type:“textarea”},

name - any value
height - desired editor height
mapt_to - name of property
type - textarea or select

can you tell the please that where is the 3rd parameter of render command. and how to specify all fields.

If you are using connectors, you have something like

$scheduler->render_table(“events”,“event_id”,“start_date,end_date,event_name,details”)

3rd parameter - list of fields, which will be used as event’s properties

We are not using connectors (render table) . by changing into ajax call we are storing the field data into database

my xml formate is like this

[code]
true
<start_date>2010-08-04 00:00:00</start_date>
<end_date>2010-08-04 00:05:00</end_date>
sdfsdf
sdfsd

sdfsd
[/code]

just add necessary fields to xml and use the same names in map_to of lightbox config