08-08-2006 03:45 AM
08-08-2006 04:26 AM
Hi,
This will modify the same file as if you had used the menu item Edit | User Manager. ie users.ini
Regards
Ray Farmer
08-08-2006 04:36 AM
Hi,
That's what I too thought when creating that step.. But it didn't change users.ini file. Should I include any other action step?
08-08-2006 07:18 AM
Hi,
You will need to save the users.ini file.
Use Engine.Userfile() to get a reference the the UserFile
Use UserFile.AsPropertyObjectFile to return a PropertyObjectFile reference to the UserFile.
Use PropertyObjectFile.ChangeCount() to indicate that the users.ini file has changed
Use PropertyObjectFile.SaveFileIfModified(False) to save with no prompt.
Hope this helps.
Regards
Ray Farmer
08-08-2006 10:05 AM
Hi,
Thanks for that information Ray. But still its not getting updated in the users.ini file...
I have a doubt.. How does this "DisplayEditUser" Dialog return the new parameters?? ( It doesnt have a Object Reference output at all.) or how does it keep track of the new information??
Thanks
08-08-2006 03:07 PM
Hi,
Have you looked at how the example CreateDeleteUser.seq in the TestStand\examples is doing it. This may be a better solution.
Regards
Ray Farmer
08-09-2006 10:03 AM
I've been meaning to add a feaure similar to this to the User Interface, and was able to get this dialog to work with the attached sequence. I've only tested it by editing comments and passwords, but the changes where there when exited and relaunched TestStand. I'm using TestStand 3.5. I didn't do anything different that what was described above, so I don't know why you're method didn't work.
Hope this Helps.
-Jack
08-11-2006 01:26 AM
Hi All,
I could now edit user in the way that has been described above by Ray.. Maybe I would have done some minor mistake..
I could do this two days before itself.. Sorry that I didn't inform you all.
Thanks to All,
Sahana