# \#javascript

**URL:** https://community.datagrok.ai/tag/javascript/6.md

[Latest](https://community.datagrok.ai/latest.md) · [Categories](https://community.datagrok.ai/categories.md) · [Tags](https://community.datagrok.ai/tags.md)

---

## [How to retrieve a project layout information?](https://community.datagrok.ai/t/how-to-retrieve-a-project-layout-information/1187)

<div class="topic-metadata">

**Author:** [@kosuketakeuchi0621](https://community.datagrok.ai/u/kosuketakeuchi0621)\
**Replies:** 2\
**Last updated:** [March 10, 2026, 8:21am UTC](https://community.datagrok.ai/t/how-to-retrieve-a-project-layout-information/1187 "2026-03-10T08:21:51Z")

</div>

Hi Datagrok community, I have a project that no longer opens properly, and I’m looking for a way to recover it. Currently, my understanding is that layout information can only be retrieved after opening a project using…

---

## [Rendering reaction smarts and change multiple column properties at once from GUI](https://community.datagrok.ai/t/rendering-reaction-smarts-and-change-multiple-column-properties-at-once-from-gui/961)

<div class="topic-metadata">

**Author:** [@seritaka.gmail.com](https://community.datagrok.ai/u/seritaka.gmail.com)\
**Replies:** 7\
**Last updated:** [December 3, 2025, 8:13am UTC](https://community.datagrok.ai/t/rendering-reaction-smarts-and-change-multiple-column-properties-at-once-from-gui/961 "2025-12-03T08:13:04Z")

</div>

Dear Community, I hope everything goes well. I have two questions about cheminformatics. I would like to rendering reaction smarts on datagrok table cell such as ‘\[1\*\]c1ccc(\[2\*\])cc1\>\>\[1\*\]C12CC(\[2\*\])(C1)C2‘. It was …

---

## [Menu items in multiview.js](https://community.datagrok.ai/t/menu-items-in-multiview-js/903)

<div class="topic-metadata">

**Author:** [@kosuketakeuchi0621](https://community.datagrok.ai/u/kosuketakeuchi0621)\
**Replies:** 7\
**Last updated:** [March 18, 2025, 10:02pm UTC](https://community.datagrok.ai/t/menu-items-in-multiview-js/903 "2025-03-18T22:02:44Z")

</div>

Dear Datagrok Team, I am currently studying the Datagrok API and find the multiview feature to be very useful. However, in the sample code provided at the URL below, the filter button does not work in the grid view. Add…

---

## [Question about info panel](https://community.datagrok.ai/t/question-about-info-panel/850)

<div class="topic-metadata">

**Author:** [@seritaka.gmail.com](https://community.datagrok.ai/u/seritaka.gmail.com)\
**Replies:** 6\
**Last updated:** [April 1, 2024, 11:46am UTC](https://community.datagrok.ai/t/question-about-info-panel/850 "2024-04-01T11:46:52Z")

</div>

Dear Communiy, Recently I would like to add info panel which recives value from the cell and do something then return the result. I tried to reporoduce the example. https://datagrok.ai/help/develop/how-to/add-info-pan…

---

## [How to programmatically open DG.Viewer property panel for custom viewer](https://community.datagrok.ai/t/how-to-programmatically-open-dg-viewer-property-panel-for-custom-viewer/790)

<div class="topic-metadata">

**Author:** [@andreas.gasser.novartis.com](https://community.datagrok.ai/u/andreas.gasser.novartis.com)\
**Replies:** 4\
**Last updated:** [September 21, 2023, 10:12am UTC](https://community.datagrok.ai/t/how-to-programmatically-open-dg-viewer-property-panel-for-custom-viewer/790 "2023-09-21T10:12:26Z")

</div>

We would like to programmatically open the property panel for our custom viewer. Could you share code snippets on how to do this (if possible at all)?

---

## [Issue with view.close() method](https://community.datagrok.ai/t/issue-with-view-close-method/784)

<div class="topic-metadata">

**Author:** [@andreas.gasser.novartis.com](https://community.datagrok.ai/u/andreas.gasser.novartis.com)\
**Replies:** 1\
**Last updated:** [August 15, 2023, 9:21am UTC](https://community.datagrok.ai/t/issue-with-view-close-method/784 "2023-08-15T09:21:25Z")

</div>

We experienced a strange/inconsistent behaviour with the view.close method in Datagrok. If the view.close method is called on a view without a saved layout the view simply gets closed without modifying the current active…

---

## [Chem|Descriptors errors out](https://community.datagrok.ai/t/chem-descriptors-errors-out/692)

<div class="topic-metadata">

**Author:** [@andrey](https://community.datagrok.ai/u/andrey)\
**Replies:** 5\
**Last updated:** [June 17, 2023, 6:02am UTC](https://community.datagrok.ai/t/chem-descriptors-errors-out/692 "2023-06-17T06:02:29Z")

</div>

On a smiles column, click column hamburger menu, Actions -\>Chem|Descriptors… Nothing happens, I get the following trace in the browser console: error: Invalid argument (index): "name" js\_primitives.dart:30 stackTrace: …

---

## [JavaScript API updates](https://community.datagrok.ai/t/javascript-api-updates/526)

<div class="topic-metadata">

**Author:** [@dskatov](https://community.datagrok.ai/u/dskatov)\
**Replies:** 16\
**Last updated:** [April 7, 2023, 9:44am UTC](https://community.datagrok.ai/t/javascript-api-updates/526 "2023-04-07T09:44:19Z")

</div>

Let’s use this topic for reporting and discussing new Datagrok JavaScript API features. They become available on http://dev.datagrok.ai/ at the time of the topic update.

---

## [Create custom TableView](https://community.datagrok.ai/t/create-custom-tableview/745)

<div class="topic-metadata">

**Author:** [@andreas.g.business](https://community.datagrok.ai/u/andreas.g.business)\
**Replies:** 3\
**Last updated:** [March 23, 2023, 3:22pm UTC](https://community.datagrok.ai/t/create-custom-tableview/745 "2023-03-23T15:22:48Z")

</div>

Is it possible to create a custom TableView instance by using extends DG.TableView? If it is possible, how to do so so and how to initiate such a custom TableView?

---

## [How to synchronise custom written filters?](https://community.datagrok.ai/t/how-to-synchronise-custom-written-filters/723)

<div class="topic-metadata">

**Author:** [@andreas.g.business](https://community.datagrok.ai/u/andreas.g.business)\
**Replies:** 8\
**Last updated:** [March 9, 2023, 2:58pm UTC](https://community.datagrok.ai/t/how-to-synchronise-custom-written-filters/723 "2023-03-09T14:58:15Z")

</div>

What is the best approach to synchronise custom written filters between multiple filter viewers? My current approach would be to use grok.events to synchronise the filter value on change. However this approach does not …

---

## [Issue with \`entity.setProperties\`](https://community.datagrok.ai/t/issue-with-entity-setproperties/727)

<div class="topic-metadata">

**Author:** [@andreas.g.business](https://community.datagrok.ai/u/andreas.g.business)\
**Replies:** 1\
**Last updated:** [February 8, 2023, 8:48am UTC](https://community.datagrok.ai/t/issue-with-entity-setproperties/727 "2023-02-08T08:48:48Z")

</div>

Dear Datagrok team, There seems to be an issue with entity.setProperties when using in TypeScript (working in native JavaScript). Datagrok version: 1.12.2 Code to reproduce: test(‘properties set/get’, async () =\> { …

---

## [Project setProperties not working with Map](https://community.datagrok.ai/t/project-setproperties-not-working-with-map/711)

<div class="topic-metadata">

**Author:** [@andreas.g.business](https://community.datagrok.ai/u/andreas.g.business)\
**Replies:** 1\
**Last updated:** [January 17, 2023, 4:25pm UTC](https://community.datagrok.ai/t/project-setproperties-not-working-with-map/711 "2023-01-17T16:25:07Z")

</div>

Passing a Map entity into entity.setProperties is not working as expected, however it’s enforced by TypeScript compiler. Using the entity.setProperties method with a plain object works as expectec. Example (done in chro…

---

## [Assigne / manipulate \`grok.shell.project\`](https://community.datagrok.ai/t/assigne-manipulate-grok-shell-project/710)

<div class="topic-metadata">

**Author:** [@andreas.g.business](https://community.datagrok.ai/u/andreas.g.business)\
**Replies:** 6\
**Last updated:** [January 12, 2023, 8:12am UTC](https://community.datagrok.ai/t/assigne-manipulate-grok-shell-project/710 "2023-01-12T08:12:20Z")

</div>

Is there a way to control or manipulate the grok.shell.project value programatically? Context: Our use case is to either open an existing project or create a new project and work with this. On open an existing project, …

---

## [Build custom JavaScript filter using native filter UI elements](https://community.datagrok.ai/t/build-custom-javascript-filter-using-native-filter-ui-elements/703)

<div class="topic-metadata">

**Author:** [@andreas.g.business](https://community.datagrok.ai/u/andreas.g.business)\
**Replies:** 10\
**Last updated:** [January 10, 2023, 2:56pm UTC](https://community.datagrok.ai/t/build-custom-javascript-filter-using-native-filter-ui-elements/703 "2023-01-10T14:56:06Z")

</div>

Is there a way to build a custom JavaScript filter and combining it with the default filter UI used for all other fitlers? We would be mainly interested in having a special filter based on a textarea which should have th…

---

## [How to use dapi.entity.filter method properly](https://community.datagrok.ai/t/how-to-use-dapi-entity-filter-method-properly/611)

<div class="topic-metadata">

**Author:** [@andreas.gasser.novartis.com](https://community.datagrok.ai/u/andreas.gasser.novartis.com)\
**Replies:** 2\
**Last updated:** [January 19, 2022, 6:00pm UTC](https://community.datagrok.ai/t/how-to-use-dapi-entity-filter-method-properly/611 "2022-01-19T18:00:34Z")

</div>

Dear DG team, Is it possible to build a OR-query for the grok.dapi.users.filter method? In my example I always only get the first and last expression matched in the result. Example: grok.dapi.users.filter('login = "us…

---

## [How to create dataframe from tab separated string context](https://community.datagrok.ai/t/how-to-create-dataframe-from-tab-separated-string-context/600)

<div class="topic-metadata">

**Author:** [@andreas.gasser.novartis.com](https://community.datagrok.ai/u/andreas.gasser.novartis.com)\
**Replies:** 3\
**Last updated:** [November 5, 2021, 2:47pm UTC](https://community.datagrok.ai/t/how-to-create-dataframe-from-tab-separated-string-context/600 "2021-11-05T14:47:01Z")

</div>

Hi team, I am looking into a way to convert tab separated text content into a valid Dataframe. Is there a way to do so? I was playing around with “\\t” as tab separator but somehow datagrok does not pick it up as separat…

---

## [Getting column metadata updates](https://community.datagrok.ai/t/getting-column-metadata-updates/564)

<div class="topic-metadata">

**Author:** [@makarkin.dv.1990](https://community.datagrok.ai/u/makarkin.dv.1990)\
**Replies:** 3\
**Last updated:** [July 27, 2021, 3:34pm UTC](https://community.datagrok.ai/t/getting-column-metadata-updates/564 "2021-07-27T15:34:45Z")

</div>

Hi team, Is there any possibility to get what was updated in particular when we change dataframe’s column metadata ? I found this example: https://public.datagrok.ai/js/samples/data-frame/events/events , but when I’m c…

---

## [Opening discussion about the Webpack configuration](https://community.datagrok.ai/t/opening-discussion-about-the-webpack-configuration/566)

<div class="topic-metadata">

**Author:** [@makarkin.dv.1990](https://community.datagrok.ai/u/makarkin.dv.1990)\
**Replies:** 2\
**Last updated:** [June 10, 2021, 2:06pm UTC](https://community.datagrok.ai/t/opening-discussion-about-the-webpack-configuration/566 "2021-06-10T14:06:58Z")

</div>

Here the very basic webpack configuration is used: https://github.com/datagrok-ai/public/blob/master/packages/PowerPack/webpack.config.js That configuration is also used in some existing packages. Probably we can work…

---

## [Specify visible columns for Grid viewer as viewer options](https://community.datagrok.ai/t/specify-visible-columns-for-grid-viewer-as-viewer-options/546)

<div class="topic-metadata">

**Author:** [@andreas.gasser.novartis.com](https://community.datagrok.ai/u/andreas.gasser.novartis.com)\
**Replies:** 1\
**Last updated:** [May 10, 2021, 4:58pm UTC](https://community.datagrok.ai/t/specify-visible-columns-for-grid-viewer-as-viewer-options/546 "2021-05-10T16:58:00Z")

</div>

Is there a way to specify a list of visible / hidden columns on tableview.addViewer(‘Grid’…) call? I was not able to find any reference on supported options in your documentation.

---

## [Numeric precision / formatting for values in a custom viewer?](https://community.datagrok.ai/t/numeric-precision-formatting-for-values-in-a-custom-viewer/531)

<div class="topic-metadata">

**Author:** [@timothy.danford.novartis.com](https://community.datagrok.ai/u/timothy.danford.novartis.com)\
**Replies:** 2\
**Last updated:** [April 7, 2021, 9:44am UTC](https://community.datagrok.ai/t/numeric-precision-formatting-for-values-in-a-custom-viewer/531 "2021-04-07T09:44:09Z")

</div>

I’m working on a custom viewer – and, when displaying numeric data, I use the Number.toPrecision(k) method from Javascript to display the values with a certain number k of significant digits. However, I would like to be…
