Sorry if this has already been asked, I did search the forum but being new wasn't sure what I am looking for.
I have a platform app that was created via the screen builder. The ViewModel datasource's use everlive as the dataprovider. All is working fine, but if I try to use a datasource that is not bound to an element on the page, the data is empty.
There are 2 types of thing that I am trying to do and perhaps there is just a better way to do it.
1) Updating a related record in a separate content type. I have for example a person with link to the company they are part of. I want to get the company and update fields. I have worked around this by using everlive directly without use a datasource.
2) I want to go from a person detail page to the company detail page. I am navigating to the company detail page as below but when the detailsShow() runs, that datasource is not empty so the get fails:
// Actual record ID not UID
item = e.view.params.uid,
dataSource = companyListViewModel.get(
dataSource is undefined unless I have been to the company list before using the navigate to company button.
Thanks in advance,