Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/vim/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Dynamics crm PowerApps:在模型驱动的应用程序中使用HTML修改表单显示?_Dynamics Crm_Powerapps_Powerapps Modeldriven - Fatal编程技术网

Dynamics crm PowerApps:在模型驱动的应用程序中使用HTML修改表单显示?

Dynamics crm PowerApps:在模型驱动的应用程序中使用HTML修改表单显示?,dynamics-crm,powerapps,powerapps-modeldriven,Dynamics Crm,Powerapps,Powerapps Modeldriven,我需要在模型驱动的应用程序中修改表单的格式,使其更具可读性/直观性。目前,表单如下所示: 我尝试使用web资源创建一个简单的HTML表,其中包含和Xrm.Page.getAttribute(),以在计划列和实际列下拉入相关字段,但这不起作用。我设置了依赖项并将其分配给适当的表单元素,但运气不好。我使用的代码如下: <div> <table> <tr> <td><u>Tasks</u></t

我需要在模型驱动的应用程序中修改表单的格式,使其更具可读性/直观性。目前,表单如下所示:

我尝试使用web资源创建一个简单的HTML表,其中包含
Xrm.Page.getAttribute()
,以在计划列和实际列下拉入相关字段,但这不起作用。我设置了依赖项并将其分配给适当的表单元素,但运气不好。我使用的代码如下:

<div>  
  <table>
    <tr>
      <td><u>Tasks</u></td>
      <td><u>Planned</u></td>
      <td><u>Actual</u></td>
    </tr>
    <tr>
      <td>Task 1</td>
      <td><script>Xrm.Page.getAttribute("[plannedField_1]")</script></td>
      <td><script>Xrm.Page.getAttribute("[actualField_1]")</script></td>
    </tr>
    <tr>
      <td>Task 2</td>
      <td><script>Xrm.Page.getAttribute("[plannedField_2]")</script></td>
      <td><script>Xrm.Page.getAttribute("[actualField_2]")</script></td>
    </tr>
    <tr>
      <td>Task 3</td>
      <td><script>Xrm.Page.getAttribute("[plannedField_3]")</script></td>
      <td><script>Xrm.Page.getAttribute("[actualField_3]")</script></td>
    </tr> 
  </table>
</div>

任务
计划
真实的
任务1
Xrm.Page.getAttribute(“[plannedField_1]”)
Xrm.Page.getAttribute(“[actualField_1]”)
任务2
Xrm.Page.getAttribute(“[plannedField_2]”)
Xrm.Page.getAttribute(“[actualField_2]”)
任务3
Xrm.Page.getAttribute(“[plannedField_3]”)
Xrm.Page.getAttribute(“[actualField_3]”)

这是一种修改表单输出的有效方法,还是有另一种/更好的方法不涉及使用动态脚本化HTML创建复杂的解决方案

对于其中一个控件,取消选中窗体上的
显示标签


您不需要HTML web资源,只需使用所见即所得编辑器在一个选项卡下添加三个部分,然后在部分中添加属性。这不是读取父.Xrm上下文并生成自定义动态文件的方法HTML@ArunVinoth,谢谢您的回复!我没有做WYSIWYG的原因是,我试图使用一个标签和两个显示的字段(计划和实际)来关联它。似乎没有一个选项可以在一列中创建简单的标签,在后两列中创建字段。我遗漏了什么吗?看我的答案,这是我们能做的最大限度了。否则你需要可编辑的子记录网格..谢谢,@ArunVinoth!我无法用所见即所得选项获得100%的图片效果,但您的示例为我提供了一种获得90%效果的方法—现在已经足够好了!谢谢