So, I have an Action with nodes (commands) A -> B -> C -> D. I want to disable B (Disable or Disconnect), try something, after that connect it back. How to do it?
Or in that same Action, I want to switch B with D. How to do it?
Or I want to copy and Action node E and paste it between A and B. How to do it?
I found once I disable or disconnect it, I don't know how to get it back...is the only possibility to delete the arrows and recreate them?
Hi @Lukas Tomek
Would you attach some screenshots to understand your concern.
Hi,
You connect nodes by clicking on the arrow and drag to the other node to connect.
Regards,
Daniel
Ok, thanks, so there is no other way than basically recreating or moving the arrows around...in Mendix we can connect a node in the middle of the arrow, no need to move or recreate the arrows so that is the reason I am asking...
I don't know Mendix, and use OutSystems so long, I find it hard to understand for a newcomer to OutSystems what the challenge is. I always thought the options to connect widgets where easy and intuitive. By the way you can also drop a widget on an arrow to place it between the source and target widget.
Yes, I use dropping nodes (by drag-n-drop from toolbox or elements) on the arrows and that works, no problem. But what I am talking here about is reorganization/refactoring of existing code (not creating it from scratch). So the question is specifically eg. I disconnect/disable a node from action. I try something. After that, how do I connect it (easily) back? For me (I am a newbie), it seems that it is not possible to drop it back on the arrow. 1) It can not be moved drag-n-drop with mouse. Just with keyboard arrows. 2) There is no possibility to connect it back (there is no right click on it > connect, the disable/disconnect action is not reversable). We have to delete the arrow, move the element with keyboard arrows and after that recreate the arrows.
The same is with changing the order of the nodes. If we want to do it, we have to basically delete all the arrows, change the order of the nodes (with keyboard arrows because already placed nodes without arrows can not be moved by mouse) and recreate all the arrows.
Similar is copy and paste. The pasted node can not be moved with mouse. Can not be connected in the middle of the arrow.
You know, I am just a little bit surprised by all of this hassle. In Mendix, it works much easier and refactoring the visual code is so much faster. Even changing order of lines/commenting lines out in traditional code like Java is several times quicker than this. I just think: I am a newbie, I must miss something. I am doing it wrong. Maybe there are some hidden shortcuts or functions or ways how to do this in a more elegant way, faster?
none of what you say is true, it is possible to enable a disabled node,
and it is possible to drag an existing node with the mouse (move over until it turns into 4-way arrow)
and it is possible to drop a single node onto an arrow to insert it into the flow at that spot.
a matter of trying a bit longer, I think.
OK, so I have an action. Right click on the element > Disable. Element is disabled. Now I right click on the element > Enable. Result = element is not part of the action now. Yes, it is on the same spot but "overlaid" above anything else. Moreover, if I want to drag-n-drop the element with mouse, it is not possible (the mouse instead tries to create a new arrow). The position of the element can be changed only with keyboard arrows. If we want to truly restore the element back, we have to delete the arrow and re-create 2 new arrows.
If I right click the element > Disconnect, it is now disconnected from the flow. After that, it can not be moved with mouse (if attempted, it tries to draw new arrows instead). There is nothing like right click > Connect in the menu. The only option is to delete the arrow and re-create 2 new arrows.
Any element in action can be moved with mouse ONLY if there are 2 arrows connected to it. Delete the arrows and the element can not be moved with mouse any more.
"Drop a single node onto an arrow to insert it into the flow at that spot " - yes, ONLY from toolbox, elements etc. Not, if the element was for example pasted. (just click on any element in action, press CTRL+C. Now press CTRL+V and you will see).
Don't know what more to tell you. Either you have to practise some more with your mouse skills ( hover until it changes into 4 point arrow) OR you have a unique combination of hardware / operating system / Outsystems version where dragging doesn't work like on mine.
Agree with Dorine here, but maybe it is just difficult to visualize your challenge. If you want, you can connect with me on ADPList (https://adplist.org/mentors/daniel-kuhlmann) and show what issues you have, a video call is probably more effective to help you.
Finally, I found the solution. If an element in an action is isolated (without connectors or arrows), it can be drag-and-dropped by mouse if we click and drag its NAME. But if we click and drag its IMAGE, it creates new connectors (arrows). Very simple solution. But in Mendix, we drag-and-drop it by clicking on the image (icon). I was so used to that...that I did not realize we could drag in an other way.
A single node can be dropped onto an arrow to put it in the flow