Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Devices from Customer #10789

Closed
kurch00 opened this issue May 14, 2024 · 4 comments
Closed

Devices from Customer #10789

kurch00 opened this issue May 14, 2024 · 4 comments
Assignees
Labels
question generic question

Comments

@kurch00
Copy link

kurch00 commented May 14, 2024

Hello!! I need help.

I have an entity table containing all of the customers. Clicking on the customers (the row) I go to a new dashboard state, where there's a new entity table. I want to show all devices from that selected customer. How can I do this?

@kurch00 kurch00 added the question generic question label May 14, 2024
@ashaforost
Copy link
Contributor

@kurch00

You can create relations between a customer and their devices. After it's done, you can use the device search query alias on a widget to see all devices related to a selected customer.

@ashaforost ashaforost assigned ashaforost and unassigned Ultrazombie May 15, 2024
@kurch00
Copy link
Author

kurch00 commented May 15, 2024

It works!! Thank youuu...

Just one more question! Do you know if it's possible to create those relations automatically?

@ashaforost
Copy link
Contributor

Yes, for newly created devices, you can use the create relation rule node to automatically create a relation from said device to its customer. For devices that are already present, you can do basically the same logic in the rule chain and trigger it for all customers' devices via the scheduler.
image

image

@kurch00
Copy link
Author

kurch00 commented May 17, 2024

You saved me!! thank uu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question generic question
Projects
None yet
Development

No branches or pull requests

3 participants