Updating catalog from common module

The 1C:Enterprise developers forum

#1
People who like this:0Yes/0No
Just came
Rating: 1
Joined: Nov 13, 2020
Company: IC Yazilim

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.

Download 1.png (191.67 KB)
 
#2
People who like this:0Yes/0No
Just came
Rating: 0
Joined: Dec 6, 2019
Company: 1C Innovation Vietnam

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();

 
Subscribe
Be the first to know tips & trick on business application development!

A confirmation e-mail has been sent to the e-mail address you provided .

Click the link in the e-mail to confirm and activate the subscription.