Associate Data Type with User

I’m currently testing my app and have discovered a major issue where my custom data types are not associating with the User who created it

For example. I sign up all my users under standard User data type. My second User type called Vendors go through several extra pages after the initial sign up. The fields they input data to are under the Vendor data type in my database. However, after they finish signup, all the dynamic fields that should be populated with the information they entered are empty.

When I look at the backend, I can see that the information is stored there. For whatever reason it’s not being associated with any particular user; hence my conundrum.

Can anyone offer guidance @natedogg ??

Can you share a link to your editor? There are a lot of reasons this could be happening, it’s tough to help without seeing how you have things set up.

Once you have been through the process and saved the data, you redirect to a page, you need to make sure that if it is the User object then you know how to pull the Vendor data from the db using a do search.

Sounds like the page doesn’t know where to get its data for the various elements.

The issue isn’t with the page. My issue is that the Vendor Data type has no relationship with my User data type.

Users that registers as Vendors submit information such as business name, phone number, and address which is saved under the Vendor data type.

On the front end, regular Users who are NOT registered as Vendors can view profile pages with dynamic fields that should be populated with Vendor data. Instead they’re blank.

Obviously, I could move all the fields currently under Vendor into the User data type, but for organizational purposes it wouldn’t be ideal.

So in a nutshell, I just need the Vendor data type to act as a sub-account for the User data type.

There, you go, you solved your own problem. So add a field to the vendor type that provides that relationship to the user type. You can also do it both ways, You can simply put on the Vendor type “Parent-User” - Type User, on the User Type , you can then add a Vendor Relationship. On the parent I tend to make this a List.

There are a few discussions on this in the forums.