在信息路径213中将文本数据类型字段转换为时间数据类型 [英] convert text data type field to time data type in Info Path 213
问题描述
亲爱的
我在信息路径表单库中有三个字段
I have three fields in info path form library
1.字段1 = 小时(数据类型为文本).这是一个下拉列表,用户可以在其中选择值.例如,值将为7:00、7:30、8:00、8:30,等等.
1. Field 1 = Hour (data type is text). this is a drop down list where user can choose the value. For example the values will be like 7:00, 7:30, 8:00, 8:30, etc.
2.字段2 = 子午线(数据类型为文本).这将是具有两个值AM,PM
2. Field 2 = Meridian (data type is text). this will be radio button with two values AM, PM
3.字段3 = Selected_Hour (数据类型为时间).该字段的值基于以上两个字段.例如,我选择 第一个字段下拉列表中的 7:30 和第二个字段单选按钮中的 PM ,然后是第三个字段中的结果字段必须是 晚上7:30. 在这里,我使用了concat函数,但最后出现了错误.错误是仅允许日期或时间".
3. Field 3 = Selected_Hour (data type is Time). the value of this field is based on above two fields. For example i choose 7:30 from first field drop down list and PM from second field radio button then the result in the third field must be 7:30 PM. Here i used concat function but the ends with an error. Error is 'Only date or time allowed'.
对此有任何帮助吗?
沙吉
我是SharePoint的新手
I am new to SharePoint
推荐答案
沙吉-这是因为您的格式与时间选择器的格式不匹配.检查时间选择器的结果,您会发现它具有特定的格式.您必须创建一个与该格式完全匹配的值.你最好别用 您的concat结果的文本字段.
Hi Shaji- that's because your format doesn't match the format of the time picker. Check the result of the time picker and you'll notice it has a specific format. You must create a value that matches that format exactly. You're better off using another text field for your concat results.
这篇关于在信息路径213中将文本数据类型字段转换为时间数据类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!