0

I want to add multiple custom fields to the lightbox in dhtmlScheduler. I realize that this is a dup of a prior question but that answer is incomplete/incorrect.

My application correctly stores and recalls data from a MySQL database using dhtmlxDataProcessor on the client and dhtmlxConnector via PHP on the server side. I have carefully read, re-read, and parsed documentation on Custom "details" form. I've worked with the code in the 05_custom_editor.html sample.

The problem is that those examples do not work - they silently fail to store the second field, "Details", in the Description section. This is not surprising since nowhere is the field mapped to a database column.

  1. What changes are needed so the "Details" field of the example form stored in the database and recalled with the event?
  2. What changes are needed to support read-only data in the Details field that is populate based on the "Text" field? What I'm thinking of is a name that has an address associated with it.
  3. How to invoke a custom windows with a form from the lightbox to populate the address?

I would prefer to be able to do this by extending the default lightbox, but that is not a requirement.

Any guidance is appreciated.

4

1 回答 1

0

使用 dhtmlScheduler 时有 3 个必填字段。它们是 PHP 连接器中的前 3 个:

$scheduler->render_table("my_table","id","start_date,end_date,name,details,....

只要保留顺序,您的连接器就可以使用任何列名。但是因为它在所有地方都是必需的和使用的,所以 dhtmlScheduler 必须引用事件的名称。它被称为“文本”。

灯箱部分将描述映射到“文本”。我认为没有

scheduler.locale.labels.section_description

出于同样的原因。

1) 更新 PHP 连接器以拉入必填字段。2)您可以使用 sched.formSection('myfield') 从灯箱内获取组件,然后您可以添加 javascript 以模糊焦点。3)普通的javascript

您可以在显示灯箱之前使用自定义事件之一更改任何表单项。

当我的 dhtmlScheduler 失败时,它似乎非常有声!控制台说什么?你有没有通过看看它失败的地方?

于 2012-12-07T13:47:56.330 回答