10-06-2021 01:43 PM
I selected a portion of my webVI's diagram and created a subWebVI. I was trying to encapsulate some of the code which talks to my web service.
Apparently, you can't pass an HTTP client handle to a subWebVI...
Warning
HTTP Client Handle
You can only use this type of terminal on the diagram of a WebVI. Adding the control to the WebVI panel is not currently supported.
I'm just trying to clean up my code. I don't really want to move the Open and header management into the subVI; I just want to hide the URI creation and JSON parsing complexity from the top level.
Is there a workaround? Am I missing something?
10-07-2021 08:05 AM - edited 10-07-2021 08:07 AM
WebVIs currently don't support dropping typedefs on the panel (error cluster is a special case). Typedefs *can* be used on the diagram and they can be used on the connector pane as well.
HTTP Client Handle is a typedef type, and hence it cannot be dropped on the panel as of today. But you should be able to use it from subVI as shown in the gif.
10-07-2021 08:31 AM
Ah, okay. I'm not used to the idea of block diagram-only controls. I'll give it a try.
Thank you.