problem of using formsection API

Hi
I have a problem for using API
getValue() and setvalue() in forsection in my lightbox
because I dont know wehere and when I can put It in my code
this is the structure of lightbox that I have :

scheduler.config.lightbox.sections = [
	    { name:"patient", options:patients, map_to:"ag_patient", type:"combo", image_path: "./codebase/imgs/", filtering: true, focus:true},
		{ name:"description", height:50, map_to:"ag_detail", type:"textarea" },
		{ name:"time", height:72, type:"time", map_to:"auto"}
	   ];

I am also using a connector and data processor with MySQL data base
so I have some event in my Scheduller but I dont have anyting when i am doing
this :

var value = scheduler.formSection('patient').getValue();
alert(value);

or this

            scheduler.formSection('patient').setValue('abc');

When i a debuggin may code i ha this : document.getElementById(d.id) is null

Please can you give me advices about this or a little example on how I can use the API?

best regards
Mbello

Beware that formsection api will work only after lightbox initialization.
Just after scheduler.init lightbox is not created and can’t be accessed, but after it will be used first time ( opened by user ) - api will provide expected results.