2/6/2007 3:21 PM | |
Joined: 12/8/2006 Last visit: 11/27/2023 Posts: 170 Rating:
|
hallo, there are different ways to insert a record in wincc user archive table. you will find informations in FAQ http://support.automation.siemens.com/WW/view/de/22809091or in wincc information system unser "Options > User Archives" I've expanded the script of FAQ http://support.automation.siemens.com/WW/view/de/24363822by the insert function "uaArchiveInsert()". Note: You have to manage the internal Archive-ID (field 0) by yourself. The field ID must be unique! I've solved this problem by "uaArchiveMoveLast()"-function , reading the value of the "ID"andinsert a new record by using the incremented ID. |
2/6/2007 3:52 PM | |
Joined: 12/8/2006 Last visit: 11/27/2023 Posts: 170 Rating:
|
Hi, /////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////// bOK = uaArchiveMoveLast (hArchive); bOK = uaArchiveGetFieldValueLong (hArchive, 0, &ID); ID++; |
Follow us on