Hello. I am trying to add a sample def attribute by scripting.
I can successfully add a definition, as well as a location.
where is the information for definition attributes stored?
I know that it goes in to the
qual_def table
sample_defattr table
I am using these insert statements
insert into qual_defattr(defuuid,attrname,description,enabled,datatype,meascount,timestamp,format) values(‘82f0ad23-e2e6-4b5c-afe6-ea78cc023fa5’,‘OD’,‘OD’,‘1’,‘3’,‘48’,current_timestamp,’##.###’)
insert into SampleDefAttr (sampledefid,Name,description,required,enabled,datatype,format,timestamp,“order”) values(‘600’,‘OD’,‘OD’,‘0’,‘1’,‘3’,’##.###’,current_timestamp,‘1’)
** when I compare my inserted rows to ones made by the Def Management system,. they look the same.
when I attempt to load the sample form I get this error message:
File “event:actionPerformed”, line 7, in
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
java.lang.IndexOutOfBoundsException: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
caused by IndexOutOfBoundsException: Index: 0, Size: 0