Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
3 Відповіді
10069 Переглядів

Hello,

Can anyone please explain how to use the "Context" in Studio? and how to relate it to the "Domain"?

I'm not a programmer, but I have slight programming knowledge, but I didn't find any documentation or any type of explanation about "Context"!

Regards,

Аватар
Відмінити
Найкраща відповідь

This also confused me, because they are quite similar.  But if you want to select records in a related table, domain is much easier to use (especially in Studio).

Instead, Context is used to add other functionality, such as passing a default value, so if a record is created in a related table it will have the correct value.  So, for example, this would default the project_id. 

{'default_project_id': project_id}"

Another user of context is to specify the Filter to be used when displaying records   from a related table (though this is not usually necessary because the domain will also limit what is displayed). 

It's also used with buttons, but that can't currently be handled by Studio.

Context is also used in Windows Actions to set defaults (for example, if you create a contact from the Customers menu, the contact will be a customer).  You can see this by looking at the Windows Actions on the Technical Settings menu.  

 Here is some more information on Context

Аватар
Відмінити
Автор

Thanks for your reply Chris,

but I still need something more specific for the Context in Studio.

However, if I learn how to properly use it, I'll share it with everyone.

Thanks again,

Related Posts Відповіді Переглядів Дія
4
черв. 24
3501
1
січ. 25
1272
1
жовт. 24
1572
2
жовт. 24
2922
1
лип. 24
2156