Hi All,
Iam using ST R18/ SmDemo. I have hooked a script at ADD/AFTER for Documents class which has to update the field "Item Number". My script is failing at updating the database, though it does not pop up any error/warning message.
I have pasted the script for your reference. Please suggest.
Set SmSession = SCREXT_ObjectForInterface(ApplHndl)
CONV_RecListToComRecordList FirstPar, Record1
CONV_RecListToComRecordList SecondPar, Record2
CONV_RecListToComRecordList ThirdPar, Record3
Dim ObjectStore As ISmObjectStore
Set ObjectStore = SmSession.ObjectStore
Set SmRec = Record1.GetRecord(0)
Set SmObject = ObjectStore.ObjectFromData(SmRec,True)
serial_num = SmObject.Data.ValueAsString("CN_SERIAL_NUM"
subassy = SmObject.Data.ValueAsString("CN_SUBASSY"
future_use = SmObject.Data.ValueAsString("CN_FUTURE_USE"
var = SmObject.Data.ValueAsString("CN_VARIANT"
part_num = subassy + future_use + serial_num + var
Record3.AddHeader "CN_PART_NUMBER", 20, sdtChar
Record3.ValueAsString("CN_PART_NUMBER", 0) = part_num *
* not working
CONV_ComRecListToRecordList Record3, ThirdPar
Thanks in Advance
Chaya H K
|