Code Monkey home page Code Monkey logo

Comments (4)

oroulet avatar oroulet commented on July 19, 2024

Can you explain further you explanantion? when copying a new nodeid is
created and the original browse name is kept. how do you think it should
behave?

On Thu, 17 Nov 2016 at 12:37 Sten Grüner [email protected] wrote:

Copy-paste should be of paste-environment and adjust Browsename acoringly


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#31, or mute the thread
https://github.com/notifications/unsubscribe-auth/ACcfztksvHfY1VUzy68BhrOx9dDg9Hhkks5q_Dx2gaJpZM4K1Mt0
.

from opcua-modeler.

Stasik0 avatar Stasik0 commented on July 19, 2024

There is a Browsename in format "nsid:String" and there is a nodeid as a struct with nsid and so on.

If I paste a node where a context is clear e.g. an attribute form node in NS0 and paste it as a child of type in NSX, I'd like that browsename is changed from "0:bla" to "X:bla" and the NS id in the new nodeid is change accordingly. Furthermore, a popup would be good to ask me to enter or generate a unique nodid in new namespace.

What do you think?

from opcua-modeler.

oroulet avatar oroulet commented on July 19, 2024

Showing a dialog is a good idea. We can ask for namespace. But asking for
node IDs seems difficult, there may be many nodes created...

On Thu, Nov 17, 2016, 14:14 Sten Grüner [email protected] wrote:

There is a Browsename in format "nsid:String" and there is a nodeid as a
struct with nsid and so on.

If I paste a node where a context is clear e.g. an attribute form node in
NS0 and paste it as a child of type in NSX, I'd like that browsename is
changed from "0:bla" to "X:bla" and the NS id in the new nodeid is change
accordingly. Furthermore, a popup would be good to ask me to enter or
generate a unique nodid in new namespace.

What do you think?


You are receiving this because you commented.

Reply to this email directly, view it on GitHub
#31 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACcfztqLPQbq7MPEfLPJL-b2NqdaFK-Gks5q_FNIgaJpZM4K1Mt0
.

from opcua-modeler.

zerox1212 avatar zerox1212 commented on July 19, 2024

To be honest I never use copy paste when I'm using modeler, but it seems like we would only need to choose a namespace for pasting. Then we can use the existing "new node" convention, which is like this:

  1. Auto node id uses counter specific for each address space; this counter auto increments
  2. Create own node id by typeing, and you need to type the "ns=x" yourself; if you make an int or string node id all child node ids will follow the same convention

In a previous PR I tired to make ns=x automatically match the selected namespace, but @oroulet said that user should type it. I don't really understand why, but that's how it is for now.

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.