I have the Seblod Code Pack and I'm trying to grab value of one field from a table in one content type and insert it into a field of a table in another content type, and to have this new field updated everytime the form is submitted and edited. So far I am failing.
I am using: $config['storages']["#__tablename"]["fieldname"] = $fields["anotherfieldname"]->value;. I have searched the forums and the solutions offered don't quite cover my needs.
When you are in a form of 1 content type, you can't access directly to fields of an other content type.
The only way is to request the database, depending where you do the process.
If you are in the form of the content type where you grab the value, you will make a request UPDATE on the table of the other content type.
If you are in the form of the content type where you set the value of a field depnding on an other content type, the request will be a SELECT on the other table. In this case, after the request, you can store data like the tutorial below show you.