Hello, i will try to explain my idea. I don't know if it is possible but when you have configuration node i want to know if i can, with function node or other, get the name of the configuration node.
You can look on this picture what i mean
I want to get what is behind red color. Or if i'm doing a SQL request if i can know the source of the target, SGBD name i mean.
It is to have a easy way to detect if a SQL error occure i can see if SGBD is the good SGBD.
Hi @Blovorad,
Don't think that will be easy, but I might be mistaken!!!
You say with a function node, so you want to get the name of a config node on the server-side.
Because the code in a function node will be executed as soon as a message enters the function node, which is running in your flow on the server. Correct?
I did something similar here to get the name of a node. You could use another if-condition to search for a specific node: if(someNode.id != someNodeId).
However then you get the name of a node, i.e. the value entered manually by the user in the node's config screen:
However when you leave the Name field empty in the config screen, you will see the default name of that node in the sidebar:
That default name is generated inside the client side code of that node (i.e. in its html file). For this particular node you can find that code here:
Which means it uses the hardcoded string "Panel" if the name field is empty.
I assume my loop will return an empty string in that case (instead of "Panel"), because my loop will run on the server side. But you will need to test that. However if I am correct, you won't get the same text as in the sidebar if the Name field is empty...
I have the impression that you are trying to find a bad workaround (via the config node names) for your problem. But I might again be completely mistaken!
Perhaps if you describe your problem a bit more in detail, people can assist you to find a decent solution.
To explain a bit more my problem :
For fast debugging my boss demands me to print on a dashboard which BDD are currently in use in SQL request (with node MSSQL), so i see that bdd are directly enter in configuration nodes so my first approach was to get the current name in configuration nodes. But perhaps with MSSQL node we can know what bdd are in use.
I don't know anything about SQL Server, but I assume BDD's mean Balanced Data Distributor's?
And which nodes are you using? Because I see that there are a lot of mssql nodes available in the palette...
My thoughts:
Or you try to loop the config nodes like in the code snippet I shared above. You can have a look at the properties of those config nodes, and most likely you can find the bdd info inside some property of those config nodes. If you can see the bdd info on top of the config node (in the sidebar), then the node must contain that information somewhere in a property...
Or indeed you try to access the bdd information via the mssql nodes, if that functionality is available.