How to enrich your business applications with extra functionality offered by 1C:Standard Subsystems Library

#1
People who like this: 0 Yes / 0 No
Active user
Rating: 4
Joined: Jan 11, 2013
Company: Brighteye AB

Hi, have a problem with saving new items into ChartsOfCharacteristicTypes by script.
Script like below:

Code
ChartItem = ChartsOfCharacteristicTypes.CharacteristicTypes.CreateItem();
ChartItem.SetNewCode();
ChartItem.Description = colAttr.ColName;                         
ChartItem.ValueType = "String";
ChartItem.Purpose = Enums.ProductKinds.Products;            
ChartItem.Write();

No error but no result either. Missing something?
Regards Keijo

 
#2
People who like this: 0 Yes / 0 No
Timofey Bugaevsky
Guest

Joined:
Company:

Hello, Keijo!
Try to update the list using the F5 key after creating an item from the script.

 
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)
Be the first to know tips & tricks 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.

/* Прямое попадание по классу из инспектора */ .article-content h6, div.article-content h6 { font-size: 18px !important; color: #222 !important; font-weight: bold !important; display: block !important; text-transform: none !important; margin: 25px 0 10px 0 !important; line-height: 1.4 !important; } /* На случай, если это все же h5 */ .article-content h5, div.article-content h5 { font-size: 20px !important; color: #222 !important; font-weight: bold !important; display: block !important; }