Creating Relationships under Data

18 views
Skip to first unread message

Alberto Mendoza

unread,
Feb 15, 2023, 4:54:03 PM2/15/23
to structr
Hi all, 
Brand new to Structr and still trying to get my hands around the sandbox and the docker version. 

How do I create a new Relationship instance in the Data panel? What do I enter in the  sourceNode and targetNode Properties?  I tried both the name, uuid, everything and everytime I I get:

Unprocessable entity
Source node ID and target node ID of relationship must be set
ProjectimpactsApplication.sourceId must_not_be_empty
ProjectimpactsApplication.targetId must_not_be_empty

Also, why is there a text field for internalTimestamp and base?

Thoughts?

Kai Schwaiger

unread,
Feb 17, 2023, 2:47:59 AM2/17/23
to str...@googlegroups.com
Hello Alberto,

I’ll look into why the "Create"-dialog does not work properly for relationships.

A different and probably easier way to create relationships would be to either activate the type "Project" and click the plus sign in the appropriate column.
The name of that column that was autogenerated should be something like "manyApplications" (unless renamed it to a better name).

A "Search Results" popup dialog will open allowing you to search for "Application" nodes. There you can enter the name or the UUID of an Application.
Clicking a search result will create a relationship to the Project node.

This also works the other way around if you activate the type "Application".


Does that help?

Best,
Kai



https://structr.com
Kai Schwaiger
COO
kai.sc...@structr.com
Mobil
+49 151 / 419 811 76

Structr GmbH
Hanauer Landstraße 291
60314 Frankfurt am Main
Deutschland / Germany
Geschäftsführer: Axel Morgner
Sitz der Ges.: Frankfurt a. M.
HR: AG Frankfurt a. M. HRB 92262
Umsatzsteuer-ID: DE 279486092 




--
You received this message because you are subscribed to the Google Groups "structr" group.
To unsubscribe from this group and stop receiving emails from it, send an email to structr+u...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/structr/ff83a1ea-50a1-4d15-b608-75b719dc537an%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages