Quantcast
Channel: All Quality Center / ALM Practitioners Forum posts
Viewing all articles
Browse latest Browse all 14708

Database querying access from script Editor for particular user group

$
0
0

HI All,

             Based on the below logic i was able to successfully generate unique numbers with the help of DB connection and assigning it to field TS_USER_07.

After all these were working fine for me as an ADMIN, i realized this logic with connecting to DB wont work for the NON ADMIN USERS in QC nor USERS from particular group.

 

Sub TestPlan_Test_Autoid

 

set td = TDConnection

set com = td.command
com.CommandText = "select max(convert(int, TS_USER_07)) from TEST"
set rec = com.Execute
msgbox rec.FieldValue(0)
newValue = rec.FieldValue(0) + 1

Test_Fields("TS_USER_07").Value = cstr(newValue)              


Test_Fields("TS_USER_07").IsReadOnly = true
set com = nothing
' set rec = nothing
set td = nothing

End IF


End Sub

 

After going through other threads i realized, TD connection can only be done as ADMIN user?

Is there any config changes i can do to get it working for all users? 

If not,  is there a way i can get MAX Value from specific User defined field.....something like Test_Fields("TS_USER_07").Value.MAX  !!!!!

 

Thanks in Advance


Viewing all articles
Browse latest Browse all 14708

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>