G Web Development Software

cancel
Showing results for 
Search instead for 
Did you mean: 

subWebVI limitations

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?

Brian Powell
Stravaro, LLC


Learn more about the DSH Pragmatic Software Development Workshops.
0 Kudos
Message 1 of 3
(1,510 Views)

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.

http-client-handle-control-on-panel.gif

 

 

Sujay Narayana
Principal Software Engineer
Message 2 of 3
(1,475 Views)

Ah, okay. I'm not used to the idea of block diagram-only controls.  I'll give it a try.

Thank you.

Brian Powell
Stravaro, LLC


Learn more about the DSH Pragmatic Software Development Workshops.
0 Kudos
Message 3 of 3
(1,470 Views)