Windmill

W

Windmill

Join the community to ask questions about Windmill and get answers from other members.

Join

help

general

changelog

Importing pgClient when using bun

The docs mention that to use the pgClient to interact with your database you can use the following line import { pgClient } from 'https://deno.land/x/windmill@v1.88.1/mod.ts'; But what would be the bun equivalent? I've been tinkering with it for a bit now and can't seem to get it to work....

Add an event when the data in the AgGrid Table changes

- My table allows data editing, how can I add an event? I want that when the data changes, I can call an API to update the data. I have read the documentation about AgGrid Table but I couldn't find what I need (https://www.windmill.dev/docs/misc/guides/aggrid_table#aggrid-vs-table-component). Thanks so much
No description

Importing cheerio

I'm trying to use cheerio, but I'm getting an error. 1. I use import * as cheerio from "cheerio"; 2. So when I try to use const $ = cheerio.load(body);...

How to trigger the 'On Error' event in a button?

Hello everyone I am a beginner, i am trying to implement the login functionality. How can I trigger the 'on error' event to display an error message when a user fails to log in ? (not a hardcoded message) Thanks so much...
No description

Does the script language matter?

Does windmill work better with one language over the others?

find the current App user from a script/flow

If I'm running a flow that is executed from an app. WM_EMAIL is the email from the user that has deployed the app. Is it possible to get the current user? I know i can get the current user by sending the ctx.email but how do I ensure that a user do not modify this, or just call the api directly with another value? Is this handled with regards to security ?...

App unresponsive in edit mode + errors in console

My app, in edit mode, has become unresponsive and I can't edit. I can navigate through the left menu of Windmill.dev but when I enter the app it does not respond. I opened the browser console and found errors. Could this be related? And why do these errors appear in the console but the edit screen doesn't show anything, like in debug, for example?...
No description

Stepper: next or previous?

How to know in the Validations of the Stepper component, if the user clicked on Next or Previous button? There are things I want to validate only if the user is on the step X and clicked on Next, but not if s/he is on step X and clicked on Previous....

Self-hosted: using minio for S3 cache

How do I setup windmill to use my minio instance as a distributed S3 cache? Seems like it only supports AWS for now.

Form not rendering after source connection change

I have agrid and i've connected to a Form to prefill fields depending on seleceted row, but properties do get changed, while the values don't so the form doesn't change. Any way to force value change as well, not just properties?

Self-hosted: After rebooting my VPS server, I can no longer load Windmill

CapRover no longer loads, and it seems to be due to captain-nginx not running. And looking at the captain-nginx log, could it be related to srv-captain-windmill-lsp? (image attached) docker service logs captain-nginx --since 5m --follow: captain-nginx.1.jfzvhech98q2@ubuntu-4gb-fsn1-2 | 2023/08/30 11:45:50 [emerg] 1#1: host not found in upstream "srv-captain-windmill-lsp" in /etc/nginx/conf.d/captain.conf:85 captain-nginx.1.jfzvhech98q2@ubuntu-4gb-fsn1-2 | nginx: [emerg] host not found in upstream "srv-captain-windmill-lsp" in /etc/nginx/conf.d/captain.conf:85...
No description

UI: Steps, Visibility, and Translate texts in components

I have 4 steps in my app. And I'd like to do some things: 1. In the first step, depending on the selected values, when clicking the continue button, I also want to automatically advance to the next step. 2. In addition, I want to hide the continue button depending on the values, and expand the text input to fill the screen until the end, where the button was. 3. I'd like to set my own text/translate all texts of components/properties (steps - "step 1 of 4" / "previous - next", pagination - "page 1 of 5", etc)....
No description

Windmill Rest API,

How to access windmill rest api? is there any guide please share the link...

Self-hosted- Mounting volume into docker-compose

Hi Windmill, first time posting here. I am looking to use Windmill to fetch a file download from an API with Python. Then I remembered Windmill self-hosted runs in containers and can't access the OS filesystem. I see in the compose file a windmill_server and windmill_worker. I would imagine these are the two containers I need to add a volume to? Possibly not even the server, just the worker since from the naming of the container, I gather it likely runs the scripts/flows etc. If this has already been asked or there is a documentation page that answerers precisely that, please tell me to go RTFM but I could not find any lol. Thanks guys!...

Dynamically controlling components at run time?

I want to programmatically open/close modals, etc. when a user clicks a button and other events. The way it is now you can bind a button to a small set of pre-defined functions, one being opening a modal.. I want to perform some logic and then show the modal or hide it, etc.. from a runnable....

Invalid requirements, expectd to find //bun.lockb split pattern in reqs

I am running a background runnable script connected to a list (grid). However, I am getting this error multiple times when running the app: The result keys are: error ExecutionErr: error during execution of the script: Invalid requirements, expectd to find //bun.lockb split pattern in reqs When I run the script manually, it seems to work fine....

Windmill as Headless CMS with windmill rest API

HI can we use Windmill as a backend for cms like Headless CMS any guide?

How to export a workspace from the free plan to import in a self-hosted version?

I just installed a version on my server and I would like to know if I can import a workspace that I had in the free version of Windmill there? If there is any documentation on exporting and importing, as well as how to synchronize the entire workspace with GitHub, I would be grateful if you could point me in the right direction....

Is it allowed to embed windmill (self-hosted) in my products?

I have some public side projects, and I want to confirm if I can use embedded windmill (self-hosted) as an admin panel for users of these projects? Or, what would be the alternative? Thanks!...

Windmill as API endpoint for active git commit

Hi Windmill Team and Users, I would like to use Windmill as an external API endpoint that will return the active git commit hash of another application. Here's what I'm currently thinking could be used to accomplish this: 1. mount the application's git directory to my windmill-work(er) container. 2. write a script to return the results of "git rev-parse HEAD" executed on the command line. Would this be my best approach?