Desktop version

Main > Forum > 1C:Enterprise Platform > 1C:Enterprise – Business applications platform > Updating catalog from common module

Forum

Search UsersRules
Updating catalog from common module
#1
Just came
Points:: 0
Joined:: Nov 13, 2020

Hi

I'm trying to create scheduled job for checking (catalog)activities' date and changing their (enum)status. But I'm getting an error which is shown in screenshot.

Profile
#2
Just came
Points:: 0
Joined:: Dec 6, 2019

Hi,

If you wanna change an attribute of a catalog, you need to modify the catalog object, not the catalog reference.
For example

Code
ActivityObject = Activity.GetObject();
ActivityObject.Status = ActStatus.Delayed;
ActivityObject.Write();

Profile
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)



© 1C LLC. All rights reserved
1C Company respects the privacy of our customers and visitors
to our Web-site.