Opening and closing displays form within VB .NET

Hi all.

I’m trying to open and close displays from within VB .NET subroutines without success.
Whenever I try the @Display or @Client methods shown in the documentation I receive a compilation error:

image

Also … the @Display and @Client classes do not appear within IntelliSense.
Is this not supported within VB .NET?

Hello Greg,

Thank you for reaching out to us.

Could you please inform us which FactoryStudio version are you using?

We would also like to know if this issue is happening on a Task or Class script, as @Display and @Client are Namespaces from the Client Domain, your Task or class should also be configured as Client Domain in order to use them:

image

Best Regards,
Tatsoft Team.

Thanks for your response.

My FactoryStudio version is EdgeHMI fs-9.2.
I expect it differs from your response version … as my Task tab does not include the Domain field …

image

Hello Greg,

Thank you for providing us with your FactoryStudio version.

All tasks created on projects with EdgeHMI versions belong to the Server Domain, that is the reason you can’t access the @Display and @Client NameSpaces.

In order to close or open displays, you can use CodeBehind scripts or expressions.

Best Regards,
Tatsoft Team.

Hi again Vinicius.

Apologies for reviving this topic after so long … but I have a couple of following questions which I’m sure you can quickly answer.

In your last response you mentioned that with EdgeHMI you can open displays in CodeBehind scripts or expressions.

Does this mean that the @Display and @Client NameSpaces are available with EdgeHMI CodeBehind scripts? I assume this is the case but would appreciate confirmation. Now that I have FrameworX licenses they definitely are available, but as Domain specification was generally not available in EdgeHMI I would appreciate clarification. The only method I have used so far for opening and closing screens is through object dynamics, as below.

image

Also … when you said ‘scripts and expressions’ … are both actually refering to the CodeBehind environment? I assume you are not refering to the Expressions tab … as it provides for Client Domain selection which is not available within EdgeHMI.

Apologies if these questions seem self evident, but I am trying to determine if I will require EdgeHMI or FrameworX license for some future projects and need to be as clear as possible on EdgeHMI capabilities with regard to opening and closing displays.

Any advice on this aspect of EdgeHMI capability will be appreciated.

Regards,
Greg Shearer

I have pulled out a bare-bones project built with my old EdgeHMI license in the hope of testing whether displays can be opened using the Expressions tab, as asked in my earlier question.

I was initially encouraged, as my attempt appeared to work … however I have since noticed that in compiling the Expression, the Domain is automatically set to Client. This concerns me, as my recollection is that Domain selection is simply not available within a standard EdgeHMI license.

image

So … I would like to confirm whether the Expression shown below would be available and execute as expected running on an installation with an EdgeHMI license.

Regards,
Greg Shearer

Yes, you can use expressions to open and close displays, as shown, with an EdgeHMI license.

Best Regards
Vitor Cammarosano
Tatsoft Team