# Move cell value from one cell to another cell in power table?

**URL:** <https://forum.inductiveautomation.com/t/move-cell-value-from-one-cell-to-another-cell-in-power-table/58555>\
**Category:** Ignition\
**Created:** [April 18, 2022, 3:22pm UTC](https://forum.inductiveautomation.com/t/move-cell-value-from-one-cell-to-another-cell-in-power-table/58555 "2022-04-18T15:22:19Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![prasath.t](https://avatars.discourse-cdn.com/v4/letter/p/898d66/32.png) [@prasath.t](https://forum.inductiveautomation.com/u/prasath.t)\
**Post date:** [April 18, 2022, 3:22pm UTC](https://forum.inductiveautomation.com/t/move-cell-value-from-one-cell-to-another-cell-in-power-table/58555/1 "2022-04-18T15:22:19Z")

</div>

Hi,

Is it possible to move cell value from one cell to another cell in power table?

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/f/bfd1e6b048328ae76544c41c8b80e74ba8d02a42.png)  
In screenshot i have shown the arrow mark to move the cell value

By clicking the cell or any button to move?

---

<div class="post-metadata">

**Author:** ![andrews](https://avatars.discourse-cdn.com/v4/letter/a/898d66/32.png) [@andrews](https://forum.inductiveautomation.com/u/andrews)\
**Post date:** [April 18, 2022, 4:01pm UTC](https://forum.inductiveautomation.com/t/move-cell-value-from-one-cell-to-another-cell-in-power-table/58555/2 "2022-04-18T16:01:45Z")

</div>

How are you populating the table?  
i.e. dataset, query etc…

---

<div class="post-metadata">

**Author:** ![prasath.t](https://avatars.discourse-cdn.com/v4/letter/p/898d66/32.png) [@prasath.t](https://forum.inductiveautomation.com/u/prasath.t)\
**Post date:** [April 18, 2022, 4:03pm UTC](https://forum.inductiveautomation.com/t/move-cell-value-from-one-cell-to-another-cell-in-power-table/58555/3 "2022-04-18T16:03:58Z")

</div>

Actually i an getting the data from query expect the system suggested column

Then i am adding the system suggested column to dataset and pass it to power table

---

<div class="post-metadata">

**Author:** ![MMaynard](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mmaynard/32/3366_2.png) [@MMaynard](https://forum.inductiveautomation.com/u/MMaynard)\
**Post date:** [April 18, 2022, 4:31pm UTC](https://forum.inductiveautomation.com/t/move-cell-value-from-one-cell-to-another-cell-in-power-table/58555/4 "2022-04-18T16:31:10Z")

</div>

Scripting on the power table, onDoubleClick Function

```
if colIndex==4:
	self.data = system.dataset.updateRow(self.data,rowIndex,{'Manual Entry':value})
```

---

<div class="post-metadata">

**Author:** ![prasath.t](https://avatars.discourse-cdn.com/v4/letter/p/898d66/32.png) [@prasath.t](https://forum.inductiveautomation.com/u/prasath.t)\
**Post date:** [April 18, 2022, 4:37pm UTC](https://forum.inductiveautomation.com/t/move-cell-value-from-one-cell-to-another-cell-in-power-table/58555/5 "2022-04-18T16:37:47Z")

</div>

Thanks one question…

In my screenshot in system suggested column i have added arrow. Is it possible to arrows like this and user clicks that’s one… It should update

Possible to do?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [April 18, 2022, 4:39pm UTC](https://forum.inductiveautomation.com/t/move-cell-value-from-one-cell-to-another-cell-in-power-table/58555/6 "2022-04-18T16:39:29Z")

</div>

Yes, but it’s not easy.  
You would need to create your own TableCellRenderer implementation.  
There’s some posts on the forum with sample code, and I’d suggest reading the documentation for an overview of the concepts:

> **[How to Use Tables (The Java™ Tutorials \>        
            Creating a...](https://docs.oracle.com/javase/tutorial/uiswing/components/table.html#renderer)**
>
> This Swing Java Tutorial describes developing graphical user interfaces (GUIs) for applications and applets using Swing components

---

<div class="post-metadata">

**Author:** ![prasath.t](https://avatars.discourse-cdn.com/v4/letter/p/898d66/32.png) [@prasath.t](https://forum.inductiveautomation.com/u/prasath.t)\
**Post date:** [April 18, 2022, 6:10pm UTC](https://forum.inductiveautomation.com/t/move-cell-value-from-one-cell-to-another-cell-in-power-table/58555/7 "2022-04-18T18:10:40Z")

</div>

Hi i found a way by adding script in configure cell

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/5/1552530016c93b3e37cce3bdacaedfd4affe941b.png)

But icon showing left of the number… but i want to **show icon right side after the number**  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/5/a5f7b6ec6837c1158962d9a4e33554f11e003e6b.png)

Is it possible change the icon position?

I want to show icon one column only

If colname == ‘suggested column’  
Like this i need to mention right?

---

<div class="post-metadata">

**Author:** ![dkhayes117](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dkhayes117/32/68344_2.png) [@dkhayes117](https://forum.inductiveautomation.com/u/dkhayes117)\
**Post date:** [April 18, 2022, 6:46pm UTC](https://forum.inductiveautomation.com/t/move-cell-value-from-one-cell-to-another-cell-in-power-table/58555/8 "2022-04-18T18:46:51Z")

</div>

You could use a separate column in between the `System Suggested` and `Manual Entry` columns to hold the arrow icons. You call the column `Update` and use the arrow icon as a _button_

---

<div class="post-metadata">

**Author:** ![prasath.t](https://avatars.discourse-cdn.com/v4/letter/p/898d66/32.png) [@prasath.t](https://forum.inductiveautomation.com/u/prasath.t)\
**Post date:** [April 18, 2022, 6:59pm UTC](https://forum.inductiveautomation.com/t/move-cell-value-from-one-cell-to-another-cell-in-power-table/58555/9 "2022-04-18T18:59:07Z")

</div>

So we Can’t able to change tha icon position to right side right?

---

<div class="post-metadata">

**Author:** ![dkhayes117](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dkhayes117/32/68344_2.png) [@dkhayes117](https://forum.inductiveautomation.com/u/dkhayes117)\
**Post date:** [April 18, 2022, 7:01pm UTC](https://forum.inductiveautomation.com/t/move-cell-value-from-one-cell-to-another-cell-in-power-table/58555/10 "2022-04-18T19:01:14Z")

</div>

You probably could, but like @paul-griffith mentioned, it won’t be trivial and would require some Java. It makes much more sense to just add another column.
