wade icon indicating copy to clipboard operation
wade copied to clipboard

Make selection of specific form element available

Open eileenoo opened this issue 4 years ago • 3 comments

Node-wot automatically selects the first available form of an interaction affordance. Therefore, users aren't able to select a specific form nor protocol This needs to be implemented.

A possible solution / workaround for now: before consuming the TD remove all form elements and only leave the desired one.

When users can select the form/ protocol, the dynamic- and staticTiming elements need to be added to the specific form element.

eileenoo avatar May 28 '20 10:05 eileenoo

I support this, however, how will the user select the forms? This is also being discussed in node-wot and scripting api. The relevant issues are below:

  1. https://github.com/eclipse/thingweb.node-wot/issues/199
  2. https://github.com/w3c/wot-scripting-api/issues/201

egekorkan avatar May 31 '20 20:05 egekorkan

It could also be that two forms are both HTTP but one is a local IP and the other one is a WWW URI that needs Internet access. node-wot is not able to choose one or the other based on which one it can access.

Hopefully, we will not see this for a while but it can also be that for eventing, one form can have something like HTTP longpoll whereas the other one has proper eventing with websub, sse etc.

egekorkan avatar May 31 '20 22:05 egekorkan

I support this, however, how will the user select the forms? This is also being discussed in node-wot and scripting api. The relevant issues are below:

  1. eclipse/thingweb.node-wot#199
  2. w3c/wot-scripting-api#201

It could also be that two forms are both HTTP but one is a local IP and the other one is a WWW URI that needs Internet access. node-wot is not able to choose one or the other based on which one it can access.

Hopefully, we will not see this for a while but it can also be that for eventing, one form can have something like HTTP longpoll whereas the other one has proper eventing with websub, sse etc.

I agree. It is not an easy thing to implement and some more thoughts have to be put into it.

eileenoo avatar Jun 16 '20 12:06 eileenoo