Questions tagged [foundry-slate]

Questions related to development using Palantir Foundry's Slate application are appropriate for this tag.

Palantir Slate is an extensible WYSIWYG web-based application used to quickly create interactive visualizations of aggregate enterprise data.

69 questions
1
vote
1 answer

How can I create a Regex filter in Slate Platform Editor?

I’m using Slate Platform Editor and I would like to create an object set with a filter using a Regular Expression (Regex). How can I do that?
Max Magid
  • 245
  • 1
  • 8
1
vote
1 answer

How can I change the color of the axis labels in a slate chart?

I am trying to change the color of the axis labels in a bar chart in Slate but setting the color property does not seem to do anything.
Max Magid
  • 245
  • 1
  • 8
1
vote
1 answer

How can I reset a multiselect widget in Slate?

I need to clear the multiSelect widget's selected value via a button widget. I can add and remove different fields by hand easily, but so far I have not been able to get a button to work. Is this possible?
Max Magid
  • 245
  • 1
  • 8
1
vote
1 answer

Data is not showing for some columns in Slate’s table widget?

I’m running into an issue where a table widget I’ve defined in Slate does not show the values for one column that’s present in the input data being fed into it. For context, it’s called “Num. Employees”, as shown in the screenshot below. The table…
1
vote
1 answer

Slate TypeScript - return largest number - BEFORE build

related to question: Slate - TypeScript - return the required info out of a promise Edits and Object search Changes to objects and links are propagated to the Objects.search() APIs after your function has finished executing. This means that…
1
vote
1 answer

Filtering and searching in Foundry Slate app using Platform source

I switched from using Phonograph2 queries to using Platform object sets as the data source for my POC app. This made displaying the basic table of data super easy, but I can't tell if this prevents me from using filters (including text search).…
alexbea
  • 1,311
  • 14
  • 25
1
vote
1 answer

Phonograph2:ReadOnlyTables error in Slate writeback query

I'm working with a sample dataset of airports as I continue exploring Slate features for my team. I copied the default airport dataset into my files, so this is a version that I fully own (so presumably no permission issues there). The dataset is…
alexbea
  • 1,311
  • 14
  • 25
1
vote
0 answers

Foundry Slate: Try to update variable based on a SQL request triggered by an event

I try updating a variable on dropdown changing. When the user change the value, an SQL request is executed, then the result must update a variable. It doesn't work it's must be a synchronization issue. But I don't know how to figure it out. Here's…
Arnaud3124
  • 23
  • 4
1
vote
2 answers

Slate Foundry : Modify parameter of a Dropdown programmatically

In Slate foundry, I would modify parameter of a Dropdown programmatically. Change the display value or disable value. But it doesn't work. My code const select ={{w_selectEndMonthYear}} select.selectedValue = "202201" select.selectedDisplayValue =…
Arnaud3124
  • 23
  • 4
1
vote
3 answers

Slate Functions Editor - 1 Table with 2 columns - Sort ASC

I has a table with 2 columns: id_pk and str_name_last_first How can I sort this table by name? if i use lower one.. the id-pk does not fit anymore to name. var data = {{q_data}} // data.str_name_last_first.sort(); return data this example does not…
Marco
  • 91
  • 4
1
vote
2 answers

How to get a pageToken for pagination?

Let's assume I have a table on Slate with pagination enabled with a pageSize of 10 that is backed by an Object-Service-API query which has the following body format: { "objectSet": "objectSet.ObjectSet", "objectSetContext":…
Julio
  • 401
  • 4
  • 14
1
vote
1 answer

How can I run a Foundry Function on Object only when clicking a button in Slate

I am using Slate, and running a Foundry Function on Object (FoO) based on input from users of the application. However, anytime a user changes one of the input, the function re-runs, which seems inefficient. Is there a way to run the Function only…
1
vote
1 answer

How can we extend chart legend in Foundry-Slate

In slate, chart widget have label option that display legend (color dot + label name) at some place of the chart (top, left, bottom, ...). I notice 2 limitations with this legend on bar chart and I would like to improve them on my Slate apps. 1…
GDF_kuma
  • 95
  • 7
1
vote
2 answers

Set sandbox flags to functionrunner to allow downloads or popups

is there a possibility to set flags like allow-downloads or allow-popups in slate? i would like to generate small PDF files with custom functions, but since the code runs sandboxed the browser prevents opening popups or downloads.
Hanso9989
  • 21
  • 3
1
vote
1 answer

what is best practice for retrieving the current time independent of user's system clock?

In a slate function we had been using javascript’s new Date() function to set a submission timestamp, however, this introduces dependency on the user’s system time. Are there any functions or libraries in slate that would pull a more objective…
Mihir
  • 982
  • 1
  • 7
  • 13