Code Monkey home page Code Monkey logo

Comments (10)

oroulet avatar oroulet commented on July 19, 2024

can you explain again ?

from opcua-modeler.

Stasik0 avatar Stasik0 commented on July 19, 2024

Try to set a value of, for instance node i=11579, where the type is set to "None", somehow the user should be able to select a type first, and enter a value then

from opcua-modeler.

oroulet avatar oroulet commented on July 19, 2024

you mean that you create a node variable but somehow manage to set its value to Null when creating it? How do you do that? This should only be possible when creating a extention object, and we create them yet anyway (we can edit them)

from opcua-modeler.

Stasik0 avatar Stasik0 commented on July 19, 2024

Maybe by copy-paste?

from opcua-modeler.

oroulet avatar oroulet commented on July 19, 2024

it is possible to change type of a variable node by first modyfing its datatype then its value, which will then use the new datatype...maybe we have a bug here we should always use the datatype and not the type of the variant.... @zerox1212

from opcua-modeler.

Stasik0 avatar Stasik0 commented on July 19, 2024

I ran into it by copy-pasting attributes from NS0, i think

from opcua-modeler.

zerox1212 avatar zerox1212 commented on July 19, 2024

Can you give me a step by step of what you did? I never used variable types before, and I generally didn't use copy paste.

I can tell you that when you create a new variable, it uses the data type from the selection to set the node data type and the code uses the same data type to create a variant of that type. Whatever is typed in the value box is assumed to match what the user selects, I don't think there is any protection here.

@oroulet , it seems like he is saying that copy and paste isn't saving the value/dtype properly. That is the only way dtype could end up as None (which is different than ua.Null). Perhaps we should check for this condition, and set the node datatype to ua.Null if we ever get a None dtype, then the code would create a Null variant as well.

from opcua-modeler.

Stasik0 avatar Stasik0 commented on July 19, 2024

You can get a "None" type when importing XML nodesets. Open Types->ObjectTypes->FileType->MimeType->Value. Now i see no possibility to set some other type than "None"

from opcua-modeler.

Stasik0 avatar Stasik0 commented on July 19, 2024

bump

from opcua-modeler.

oroulet avatar oroulet commented on July 19, 2024

This is fixed as far as I remember try master and close issue.

from opcua-modeler.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.