Client Eventstab 3. Add new
OnShowItemMethod 4. Add the following code
This solution overrides the custom form, so it´s only sufficient when you really just store some simple hyperlinks in the relationship grid. Some other options for the Relationship grid would be a custom Action or to create a separate ItemType for hyperlinks (better look&feel). If there is a solution for a "real" hyperlink properties in grids available, I would be highly interested in it!
var path = this.getProperty("link_path"); // <- use name of property that stores the hyperlink window.open(path, '_blank');
You can add null-realtionships the same way as regular relationships. Open your target ItemType and click on the 'Relationship Types' tab. When you now use "Pick Related", you would insert a regular relationship that links to another ItemType. For a Null-relationship, change the selector to "No Related" and add a new Relationship Item. For Null-Relationships, you just have to assign a Relationship Name (=name of the Relationship ItemType) and a Tab label. If you take a look at the Part ItemType, you can see a good example how the two relationship types are used in practice. Null relationships are indicated by the orange 'plus' on the left side.