# How to update "field" element of the Table Object "column" property?

**URL:** <https://forum.inductiveautomation.com/t/how-to-update-field-element-of-the-table-object-column-property/75009>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [June 14, 2023, 11:20am UTC](https://forum.inductiveautomation.com/t/how-to-update-field-element-of-the-table-object-column-property/75009 "2023-06-14T11:20:05Z")\
**Posts on this page:** 11\
**Page:** 2

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [June 15, 2023, 12:16pm UTC](https://forum.inductiveautomation.com/t/how-to-update-field-element-of-the-table-object-column-property/75009/21 "2023-06-15T12:16:11Z")

</div>

I think you're mixing up scripts and expressions. Start there, and if needed we'll provide more details.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [June 15, 2023, 12:20pm UTC](https://forum.inductiveautomation.com/t/how-to-update-field-element-of-the-table-object-column-property/75009/22 "2023-06-15T12:20:58Z")

</div>

> [@Jeffrey\_Thompson](#):
>
> a full document set

Have you gone through the free [Inductive University online training](https://www.inductiveuniversity.com/)? It's a slog, but covers all of the basics you need. Otherwise, the online User Manual and SDK documentation (linked from the user manual) are remarkably thorough. Pure python syntax is left for you to study via other resources. (As is the use of java objects in jython.)

---

<div class="post-metadata">

**Author:** ![Jeffrey\_Thompson](https://avatars.discourse-cdn.com/v4/letter/j/f19dbf/32.png) [@Jeffrey\_Thompson](https://forum.inductiveautomation.com/u/Jeffrey_Thompson)\
**Post date:** [June 15, 2023, 1:21pm UTC](https://forum.inductiveautomation.com/t/how-to-update-field-element-of-the-table-object-column-property/75009/23 "2023-06-15T13:21:23Z")

</div>

I have the exam in hand for the Core Certification, so I hope that answers that question. The detail of the coding I have had questions with is not contained well within that training. Is there an offline version of the documentation?

I guess the API and SDK documentation will help but as I'm in the middle of a project, the reading will have to wait until this is finished, which is the reason for my urgency in closing these details above.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [June 15, 2023, 1:27pm UTC](https://forum.inductiveautomation.com/t/how-to-update-field-element-of-the-table-object-column-property/75009/24 "2023-06-15T13:27:35Z")

</div>

The [syntax for the Expression Language](https://docs.inductiveautomation.com/display/DOC81/Expression+Language+and+Syntax) is entirely documented within the Ignition user manual, as this is entirely defined by Inductive Automation.

On top of the basic syntax and operators, expressions may use many functions, which are [documented in an appendix](https://docs.inductiveautomation.com/display/DOC81/Expression+Functions), and can be supplemented by functions from third party modules. Like [mine](https://forum.inductiveautomation.com/t/automation-professionals-simulation-aids-v2/74934), as an example.

Python and Jython are not documented, except briefly and in examples, in Ignition's User manual, as these are open source components with large and thorough public documentation.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [June 15, 2023, 1:53pm UTC](https://forum.inductiveautomation.com/t/how-to-update-field-element-of-the-table-object-column-property/75009/25 "2023-06-15T13:53:46Z")

</div>

BTW:

> [@Jeffrey\_Thompson](#):
>
> I have the exam in hand for the Core Certification, so I hope that answers that question.

This doesn't answer **any** question for me, as I explain here:

> [@Certification change: feedback](https://forum.inductiveautomation.com/t/certification-change-feedback/66282/13):
>
> I have near-zero faith in the certifications. I'm not a fan of certifications in general. It isn't just an IA issue. They arose as a wider proxy for the excellence that used to be recognized in a person's or organization's public reputation. They have metastasized into a replacement for reputation, enforced by financial incentives and requiring financial sacrifices, instead of being the start towards one's reputation. In today's litigious world, in part due to the financial aspects, there i…

I've heard too many _quiet_ complaints from clients about "certified" individuals (and not just core) not knowing what they were doing.

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [June 15, 2023, 2:24pm UTC](https://forum.inductiveautomation.com/t/how-to-update-field-element-of-the-table-object-column-property/75009/26 "2023-06-15T14:24:35Z")

</div>

But you can't get to the core cert without first going through IU, so I guess he did do it.

---

<div class="post-metadata">

**Author:** ![Jeffrey\_Thompson](https://avatars.discourse-cdn.com/v4/letter/j/f19dbf/32.png) [@Jeffrey\_Thompson](https://forum.inductiveautomation.com/u/Jeffrey_Thompson)\
**Post date:** [June 16, 2023, 1:08pm UTC](https://forum.inductiveautomation.com/t/how-to-update-field-element-of-the-table-object-column-property/75009/27 "2023-06-16T13:08:41Z")

</div>

Yes, I did do all the IA training, which is what is required to attempt the certification, which is for some reason a requirement of some customers.

I do not believe that any product providers offer any training, which would allow one to create the dream application. This can only come with time and effort (and support), within the specific development environment.

I have used just about all other visualization tools on the market throughout my career and I find that this is an excellent tool with amazing potential, but with a relatively steep learning curve as compared to the others.

I have stated a few times in this thread that I am new to this product and "not knowing what I'm doing" is not incorrect as it applies to this product (certified or not), nor would I claim otherwise; with or without certification. The certification is for me a limited benchmark, which highlights for me what more I need to learn.

My questions posed in the forum are intended to gather support for an immediate need and to get information on where to look, without having to come back and ask.

I have come to this forum with questions to help improve my competence and would never (nor have I ever) called myself an "expert" in anything, as there is always someone better, but certainly not to be criticized in any fashion.

I hope that this forum does not become like many online forums, where criticism in lieu of support is the norm.

I appreciate everyone's "help", as it relates to the questions posed.

---

<div class="post-metadata">

**Author:** ![Jeffrey\_Thompson](https://avatars.discourse-cdn.com/v4/letter/j/f19dbf/32.png) [@Jeffrey\_Thompson](https://forum.inductiveautomation.com/u/Jeffrey_Thompson)\
**Post date:** [June 16, 2023, 5:29pm UTC](https://forum.inductiveautomation.com/t/how-to-update-field-element-of-the-table-object-column-property/75009/28 "2023-06-16T17:29:33Z")

</div>

The solution to my question is this:

* * *

def transform(self, value, quality, timestamp):  
import java.lang  
import java.util

```
	render_map = {
		java.lang.String: "string",
		java.lang.Integer: "number",
		java.util.Date: "real"
	}
			
	return [
		{
			'field': col_name,
			'sortable': True,
			'render': 'date' if col_name.lower() == 'time' else render_map.get(col_type, "auto"),
			'dateFormat': "MM/DD/YYYY HH:mm:ss",
			'header': {
				'title': col_name.replace('_', ' ').title()
			}
		} for col_name, col_type in zip(value.columnNames, value.columnTypes)
	]

```

* * *

The original line:

```
 'render': render_map.get(col_type, "auto")  

```

was modifed to:

```
'render': 'date' if col_name.lower() == 'time' else render_map.get(col_type, "auto")

```

which is the solution to my question.

Thank you chatGPT for knowing Python

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [June 16, 2023, 5:50pm UTC](https://forum.inductiveautomation.com/t/how-to-update-field-element-of-the-table-object-column-property/75009/29 "2023-06-16T17:50:29Z")

</div>

I'll suggest another solution.  
Find the type of your 'time' column and add it to the map.  
Why ? 2 reasons:

1. If for some reason you get a column named "date", or "timestamp". or anything that's not "time", a string comparison will fail.
2. If you need to add more of those conditions, what do you do ? You'll need to chain conditions, and that gets ugly real quick.

---

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [June 16, 2023, 5:59pm UTC](https://forum.inductiveautomation.com/t/how-to-update-field-element-of-the-table-object-column-property/75009/30 "2023-06-16T17:59:23Z")

</div>

> [@pascal.fragnoud](#):
>
> or anything that's not "time"

~~Including "Time", "TIME" , or other variants~~

Ignore me, I can't read. Time to leave early.

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [June 16, 2023, 6:00pm UTC](https://forum.inductiveautomation.com/t/how-to-update-field-element-of-the-table-object-column-property/75009/31 "2023-06-16T18:00:27Z")

</div>

He did use `.lower()` so case is not a problem.

[Previous page](https://forum.inductiveautomation.com/t/how-to-update-field-element-of-the-table-object-column-property/75009.md?page=1)
