For a new event create
I want to show my search form in lightbox and after searching the search result must passed to default event create form.
For edit an event
On Clicking it must directly go to the default event edit form. Please help me. I have gone through the forums but i dint get help from any posts and replies.
hi,
The search form got so many fields and also event create form will also add with some more fields. I have gone through the link but
scheduler.form_blocks[“my_editor”]={
render:function(sns){ //sns - section configuration object
return “html code of editor here”; // what this means?
},
set_value:function(node,value,ev){
//node - html object related to html defined above
//value - value defined by map_to property
//ev - event object
… code to set value to the element …
},
get_value:function(node,ev){
//node - html object related to html defined above
//event object
return “current value from editor”;
},
focus:function(node){
//node - html object related to html defined above
…code to set focus to the element…
}
}
and on server side I don’t know what to add. I have a sql query to get events on DB, but I don’t know where I have to put $scheduler->set_options(“type”, $list) and $scheduler->render_table…, before? after? I already have a render table for my events. Can I have 2? I get lightbox options from different table.
Where I have to write sql query to get just field I want?
And also, I have to put 2 lightboxes, the other one I get from DB one number. I want to display that number in different options. Something like: I got 3 then I can choose between: 1, 2 or 3
Before showing calendar I choose 2 parameters. I want to show in one lightbox not all rows, just which I selected before. Like WHERE in Sql. Can I include it on the selection?
Second, I have one field called groups. It says the number of different groups existing in that row. I need not to show just the number, I need to show 2 options(option 1, option 2) if it says 2, 3 if it says 3… Is it possible?
Before showing calendar I choose 2 parameters. I want to show in one lightbox not all rows, just which I selected before. Like WHERE in Sql. Can I include it on the selection?
When forming list of options on server side, you can use render_sql command for lists and WHERE to limit them.
If you mean client side functionality, there is no built-in support for use-case, when changing one list, will change or limit values in the second list.
second, I have one field called groups. It says the number of different groups existing in that row
You can define list of options manually ( not taking it from DB ) , it can be done on both client and server side.
I need to do it on server side. I will introduce a constant wich takes values I need for WHERE.
Groups’ number is not the same always. So I need to change number of options showns all time.
It depends of one parameter you choosed before. For example if you choose one career and one course, you will have one number, but if you change career or course you will get another number (maybe the same but it has no relation)