Jeff
10/09/2024, 7:50 PMSomeObject::staticVarName = getStuffFromDB(datasourceParams);
Illegal access to package variable
bkbk
10/09/2024, 9:55 PMgetStuffFromDB
is not static. Also, with static, you have to use the component-name, not "some object" instantiated from the component.
That is, something like
// here getStuffFromDB is a static method of the component
varName = ComponentName::getStuffFromDB(datasourceParams);
Jeff
11/13/2024, 4:15 PMstatic {
public statusNames = {
"A": "Test 1",
"B": "Test 2",
"C": "Test 3"
}