问题标签 [civicrm]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
0 回答
96 浏览

mysql - Tableau 中的“Sql”语句用于 CiviCRM 中的订阅历史记录

CiviCRM 将其组历史存储在称为订阅历史的 mysql 表中。相关列是contact-id、group-id、订阅状态和订阅日期。

订阅状态基本上是添加和删除。

根据某个组 ID 的订阅日期为已删除的订阅日期在已添加的订阅日期之后,联系人是否属于该组。

示例 mysql 表:

  • 联系方式;组标识;订阅状态;订阅日期
  • 3;6517; 添加 ; 2014-01-01
  • 3;6517; 删除;2014-05-01
  • 3;6514; 添加 ; 2014-05-01
  • 22517; 6517; 添加 ; 2014-04-01

这将给出这些值:

  • 月 ; 每组计数
  • 一月; 6517-1
  • 二月; 6517-1
  • 三月; 6517-1
  • 四月 ; 6517-2
  • 可能 ; 6517-1 & 6514-1

我正在使用 Tableau 进行统计,他们可以添加类似 SQL 的计算。

需要编写一个放入 Tableau-graph 的语句,可以让我在 y 轴上计算组成员,在 x 轴上计算日期。

任何帮助和提示都表示赞赏,即使它也处于纯粹的逻辑层面。

0 投票
2 回答
297 浏览

api - 通过 REST 将收件人组添加到 CiviCRM 邮件中......如何?

到目前为止,我已经能够创建一个新的 civi Mailing 对象并填充它,但令人困惑的是,我看不到用于指定邮件目标组的参数。

对于上下文,我正在使用来自远程服务器的纯 REST api 处理 Civi。我有一个将自定义模板放到服务器上的解决方案;新问题是设置时间表和交付组,并启动发送。我正在使用来自 github 的 python-civicrm 库作为客户端的中介。

我认为发送是由于设置时间表而发生的——即我不需要 API 调用来说“发送邮件”?设置“预定日期”==“现在”是否安全,或者我应该设置“现在 + 1 分钟”或类似的日期?

这样就剩下设置交付组了。我们已经在数据库中定义了组,我想按名称指定组(并且最好能够提前验证组名是有效的目的地,也许通过执行组名-> id 查找)。

我认为邮件创建“组”可能有一个参数,该参数可以具有“包含”和“排除”键;至少,这就是网络表单似乎要做的事情。但是在 REST api 实现中没有提到它。

任何人都可以提供指点吗?

0 投票
2 回答
347 浏览

drupal-webform - 在 civicrm 网络表单中,创建多个“组”字段

在 CiviCRM 网络表单中,您可以“启用标签和组”。配置这些允许您在网络表单中创建选项元素。

这会创建一个“小部件”、一个下拉菜单或一组复选框。我有两个字段实例,我希望用户在其中选择一个组 - 例如

  • 您希望收到哪些邮件列表(a、b、c)
  • 你对什么食物感兴趣 (d,e,f)

a,b,c,d,e 和 f 都是组。我无法改变这一点。

我怎么能那样做?

0 投票
0 回答
36 浏览

drupal - linux中'apt-get install libssh2-php'的php命令提示符的替换代码是什么?

我目前正在使用 MERCI 模块进行活动预订,我需要为 MERCI 添加用户管理,它需要另一个名为 CIVICRM 的模块,安装有点困难,需要进行一些配置。

我将为 drupal 7 安装 civicrm,因为我需要更改安装设置,这是为了更改 php ssh 设置而要遵循的教程中给出的代码?

谁能帮我获取windows中命令提示符的代码,因为上面的代码是针对linux的。我指的是以下链接中的文章... 在drupal 7中安装civicrm

0 投票
1 回答
92 浏览

drupal - Drupal + CiviCRM:联系表格,添加节点/实体引用字段

是否有可能以某种方式将节点参考字段放在 CiviCRM 联系表单上?当然,如果它是为实体解决的,我们就有它用于节点。我只用https://www.drupal.org/project/civicrm_entity看到了相反的解决方案

0 投票
1 回答
72 浏览

drupal - 如何在 Civicrm Drupal 7 中显示嵌套的自定义数据集?

我已经在 drupal 7 设置中安装了 civicrm。现在根据我客户的要求,我必须将一个自定义数据集显示到另一个自定义数据集中。为了。例如。一个自定义数据集为“医疗”,其中一个或多个“医生”、“诊断”等自定义数据集应显示。此外,它们的显示应该类似于 civicrm 布局的“摘要”选项卡。

0 投票
1 回答
116 浏览

printing - civicrm 打印发票按钮

在 civicrm 打印发票按钮在 wordpress 中不起作用。像这样发生错误

如何解决这个问题?

0 投票
0 回答
59 浏览

wordpress - 捐款状态完成后打印 PDF

谁能说,当贡献状态完成时如何打印 PDF?我不知道如何使用 WordPress 重新生成 civicrm 中的代码?

请告诉我如何重新生成它?

0 投票
1 回答
241 浏览

drupal-7 - CiviCRM "database looks to have been partially upgraded"

I recently upgraded both Drupal and CiviCRM to the latest versions. Drupal works fine, and so does Civi except when I move to the Civi menu, I get a message that says "Database check failed - the database looks to have been partially upgraded. You may want to reload the database with the backup and try the upgrade process again." This happened earlier and reloading the most recent backup didn't help. We had to go back quite a ways before we found one that did, then had to reload a lot of data from .CSV files and by hand. I'd rather not go through with that again. One thing we found when comparing the development site on my WAMP desktop (which was a new install that works well) with the one on my ISP's server is that the server version contained two MyISam-format files from, or generated by, CiviCase where Civi wants to see InnoDB-format files. My ISP, far more knowlegable than I am about MySQL, converted these two files two InnoDB and the problem remains. This leaves me with two questions:

  • could the MyISam files be the source of the "incomplete upgrade"? and
  • is there some way to reset a flag that tells Civi that the database is incomplete or to run the database check manually?

Thanks for any help. Civi seems to work OK as is, but the error message will be disturbing to my end users.

0 投票
0 回答
37 浏览

encoding - CiviCRM 编码不起作用

我正在尝试在 CiviCRM 中打印赠款报告,它是 UTF8 格式的。

语言:格鲁吉亚语,这就是发生的事情:

დáƒáƒ®áƒ£áƒ ულáƒ~

它有什么问题?