Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Linkcreatedevent (Read 1588 times)
liza
Full Member
***
Offline


I Love MindFusion!

Posts: 132
Joined: Apr 25th, 2019
Linkcreatedevent
Sep 12th, 2019 at 6:18am
Print Post  
Hi,
on Link created event I am getting source node text by using this:
var sourcetext = e.link.getOrigin().text.text;

but I want to get its id which is coming undefined by following code:
e.link.getOrigin().id,
Please let me know where I am wrong.
Thanks
  
Back to top
AIM  
IP Logged
 
Kannan Thirumal
Senior Member
****
Offline


I Love Mind Fusion Diagram
:-)

Posts: 284
Location: Bangalore, India
Joined: Jan 18th, 2019
Re: Linkcreatedevent
Reply #1 - Sep 12th, 2019 at 9:01am
Print Post  
When you create the node, did you set the id something like this?

node.setId(1);
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3435
Joined: Oct 19th, 2005
Re: Linkcreatedevent
Reply #2 - Sep 12th, 2019 at 10:58am
Print Post  
id values are not assigned automatically, you can set them yourself to whatever kind of id you need - e.g. something you pull out of a database, an integer counter, a UUID, etc.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint