Data Mining

Download Free Data Mining Source Code In C/C++, C#, Visual Basic, Visual Basic.NET, Java,
and other programming languages
Welcome to Data Mining Sign in | Join | Help
in Search

Data Mining Source Code Newsletter

Announcing The Data Mining Source Code Newsletter!

Subscribe By Email | Subscribe By RSS Feed

How to refer a node in stream script if the node is part of a super node?

Last post 07-24-2008, 12:27 by hunterdong. 2 replies.
Sort Posts: Previous Next
  •  07-22-2008, 9:35 8164

    How to refer a node in stream script if the node is part of a super node?

    Hi,

     I couldn't find related information in help file. If my stream has a supernode S_Node (non terminal), and a filter node Remove_Sum_Filter1 is contained in the supernode, how can I successful run the stream script?

     I got a " can not find node" error.If the node is not in supernode it runs smoothly.

     

    Many Thanks,

    # the script # a loop to rename fields (shorten field names) # first make a temp variable to hold the field name var tim # start loop, for field each field in the filter node named "Remove_Sum_Filter1" for tim in_fields_at Remove_Sum_Filter1:filternode # if this field ends in "_Sum" then do something if hasendstring(^tim, "_Sum") then # remove the last 4 letters set Remove_Sum_Filter1:filternode.new_name.^tim = allbutlast(4, ^tim) else # otherwise do nothing endif # end the loop endfor

  •  07-22-2008, 14:46 8168 in reply to 8164

    Re: How to refer a node in stream script if the node is part of a super node?

    The only advice I can offer is to not use SuperNodes if you need to use a script of this nature.  SuperNode themselves can use scripts, but I too had problems referencing a node within a SuperNode.

    I reported this problm as a bug with Clementine version 10.1 many months ago, so hopefully it will be fixed in version 12 (I'm upgrading soon).

    Cheers

    Tim

     

     

  •  07-24-2008, 12:27 8173 in reply to 8168

    Re: How to refer a node in stream script if the node is part of a super node?

    thanks a lot Tim.

     

    I had to move the filter node out of supernode:) after script ran I can paste it back again with updated value.

     

    Seems we need to expect version 13.....

Announcing The Data Mining Source Code Newsletter!

Subscribe By Email | Subscribe By RSS Feed