Dynamically change the content of a custom dialog

Hello everyone,

Is there a way to get/set variables from the Custom Dialog without closing it?

Is there a way to do it with HSL inside a method?

I’m able to maintain the custom dialog using “Parallel Process Handling” while the main method is still running.

Let’s say for example, in my main method I have a loopCounter (which I can trace) but I want to see it in my custom dialog.

I’m not making a real method, it’s for learning purposes.

Thank you

Not within the base VENUS dialog editor, as far as I know. From looking at both the XAML definitions and the HSL being used when the dialog is generated in-run, it appears to pull static parameters/variables prior to opening the dialog window. I’d love to be wrong, but without delving further into XAML capabilities I don’t believe it’s an option. If you’re keeping the dialog open while the method is running, perhaps something like the status dialog window would work for your purposes? I have a method that updates the status dialog as it loads carriers (e.g. “Loading carrier 1 of 3”/“2 of 3” etc), maybe you could finagle that in some way?

1 Like

If you mean to have a dialog that updates during runtime…not in the sense that you can change the look and view instantly. If you want to update your user, use the statusdialog or ASW.Dialogs (Vector Custom too) and then Status Window. This is built to showcase a user what is happening, line by line.

Yes, you need to create the strings for this, but it is fairly simple.

Other options…I don’t see any use for this so I am not using it.