07-25-2020, 10:58 AM
In my sType I am adding custom columns and editing its definition.
I added one column of Project Manager which will show a dropdown list of all the users from Global > Users upon clicking it and then selected user's name will be displayed in that.
In View Mode I have this,
<element name="project_manager" title="Project Manager" edit="true">
<display class="tactic.ui.common.SimpleTableElementWdg">
<type>text</type>
</display>
</element>
In Edit Mode I have this,
<element name="project_manager">
<display widget="select">
<labels_expr>@GET(sthpw/login.display_name)</labels_expr>
<values_expr>@GET(sthpw/login.code)</values_expr>
<mode_expr>absolute</mode_expr>
</display>
</element>
It displays all the users' Display Name fine in the select list, but upon saving and refreshing, selected value is shown as code instead of Display Name which it should.
I also tried adding a column value in View Mode like below but then that cell turns blank and displays nothing when saved.
<element name="project_manager" title="Project Manager" edit="true">
<display class="tactic.ui.common.SimpleTableElementWdg">
<type>text</type>
<column>sthpw/login.display_name</column>
</display>
</element>
I don't know if this is a bug or I am missing anything simple.
I added one column of Project Manager which will show a dropdown list of all the users from Global > Users upon clicking it and then selected user's name will be displayed in that.
In View Mode I have this,
<element name="project_manager" title="Project Manager" edit="true">
<display class="tactic.ui.common.SimpleTableElementWdg">
<type>text</type>
</display>
</element>
In Edit Mode I have this,
<element name="project_manager">
<display widget="select">
<labels_expr>@GET(sthpw/login.display_name)</labels_expr>
<values_expr>@GET(sthpw/login.code)</values_expr>
<mode_expr>absolute</mode_expr>
</display>
</element>
It displays all the users' Display Name fine in the select list, but upon saving and refreshing, selected value is shown as code instead of Display Name which it should.
I also tried adding a column value in View Mode like below but then that cell turns blank and displays nothing when saved.
<element name="project_manager" title="Project Manager" edit="true">
<display class="tactic.ui.common.SimpleTableElementWdg">
<type>text</type>
<column>sthpw/login.display_name</column>
</display>
</element>
I don't know if this is a bug or I am missing anything simple.