Hello,
It appears that PHPR supports one-to-one relationships at first glance. I have several tables that have one-to-one relationships. The relationships were defined outside of the PHPR datasource tables tool and were recognized during sync.
In list view, the referenced tables work as expected except that the "Add new" button continues to be displayed after the child record is added. I would think this button would be hidden until after the child record is deleted.
Attempted to create the relationship within PHPR and define it as one-to-one but wasn't able to do it, no option seen.
I suppose my only option is to write an event that checks for child records and then hides the add new button. Is this my solution or am I overlooking something? Would anyone have some code event to share if
this is the way to go?
PHPR is incredible. I'm learning, but still a lot to learn. I wish I had only found this sooner!
Thank you in advance!
It appears that PHPR supports one-to-one relationships at first glance. I have several tables that have one-to-one relationships. The relationships were defined outside of the PHPR datasource tables tool and were recognized during sync.
In list view, the referenced tables work as expected except that the "Add new" button continues to be displayed after the child record is added. I would think this button would be hidden until after the child record is deleted.
Attempted to create the relationship within PHPR and define it as one-to-one but wasn't able to do it, no option seen.
I suppose my only option is to write an event that checks for child records and then hides the add new button. Is this my solution or am I overlooking something? Would anyone have some code event to share if
this is the way to go?
PHPR is incredible. I'm learning, but still a lot to learn. I wish I had only found this sooner!
Thank you in advance!