我正在尝试使用从调查开始时为 RecorderID - ClusterID - MonthDataHourMinute 输入的值创建一个计算变量。现在我得到了除了小时和分钟之外的所有东西,所以我认为我的小时和分钟格式是错误的。有任何想法吗?
格式-日期(/data/StartTime,'%m%d%H%M')
谢谢!亚历克斯
<bind nodeset="/data/StartTime" type="dateTime" jr:preload="timestamp" jr:preloadParams="start"/>
<bind nodeset="/data/meta/instanceID" type="string" readonly="true()" calculate="concat('uuid:', uuid())"/>
<bind nodeset="/data/p_RecorderID" type="int" required="true()" maxLength="3" constraint="regex(., '^[0-9]{3}$')" jr:constraintMsg="Invalid. Recorder ID code is 3 numbers long."/>
<bind nodeset="/data/p_DistrictID" type="string" required="true()" db_get="col_1"/>
<bind nodeset="/data/p_EUID" type="string" required="true()" db_get="col_2" db_filter_by_col_1="/data/p_DistrictID"/>
<bind nodeset="/data/p_ClusterID" type="string" required="true()" db_get="col_3" db_filter_by_col_2="/data/p_EUID" db_filter_by_col_1="/data/p_DistrictID"/>
<bind nodeset="/data/p_Consent" type="select1" required="true()"/>
<bind nodeset="/data/p_HowLongLived" type="int" relevant="(selected(/data/p_Consent, 'Yes'))"/>
<bind nodeset="/data/p_Sex" type="select1" required="true()" relevant="/data/p_HowLongLived > 9"/>
<bind nodeset="/data/p_AgeYrs" type="int" required="true()" relevant="/data/p_HowLongLived > 9"/>
<bind nodeset="/data/p_Travel" type="select1" required="true()" relevant="/data/p_AgeYrs > 19"/>
<bind nodeset="/data/p_IVM" type="select1" required="true()" relevant="/data/p_AgeYrs > 19"/>
<bind nodeset="/data/p_IVMWhere" type="select1" required="true()" relevant="(selected(/data/p_IVM, 'Yes'))"/>
<bind nodeset="/data/p_IDMethod" type="select1" required="true()" relevant="/data/p_AgeYrs > 19"/>
<bind nodeset="/data/p_BarcodeID" type="barcode" required="true()" relevant="(selected(/data/p_IDMethod, 'Scanner'))"/>
<bind nodeset="/data/p_GenerateID" type="string" required="true()" readonly="true()" relevant="(selected(/data/p_IDMethod, 'IDGeneration'))" calculate="concat(/data/p_RecorderID, '-', /data/p_ClusterID, '-', format-date(/data/StartTime,'%m%d%H%M'))"/>
<bind nodeset="/data/p_AdditionalNotes" type="string"/>