![]() |
|
Trends buttons - Printable Version +- LogicMachine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: OLD visualization (https://forum.logicmachine.net/forumdisplay.php?fid=9) +--- Thread: Trends buttons (/showthread.php?tid=6260) |
Trends buttons - jmir - 20.01.2026 Hi, Is there any way to hide butons "Graph/Data" and "Export trend data" in the trends page (not using iframe) dependeing on which user is logged? I've tried something like this, but doesn't work: Code: if (window.Globals && Globals.user === 'user') {RE: Tends buttons - admin - 20.01.2026 username is not exposed in Trends and Schedulers. One option is to hide these buttons for all users via CSS: Code: .trends .show-export,There's a different solution using .lp script to determine the username but it cannot be used in LM cloud: https://forum.logicmachine.net/showthread.php?tid=1145&pid=6820#pid6820 RE: Tends buttons - jmir - 20.01.2026 Hi, thanks! As I don't need it using cloud I've solved using .lp file in the link you shared and this javascript: Code: // Llistat d'usuaris que han de tenir hide |