NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

DisplayEditUserDialog

Hi,
 
The "DisplayEditUserDialog" Call method in TS (using the ActiveX adapter) is used to edit user information. How does it store the edited information when called as an action step in a sequence?
 
 
0 Kudos
Message 1 of 8
(3,964 Views)

Hi,

This will modify the same file as if you had used the menu item Edit | User Manager. ie users.ini

Regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 2 of 8
(3,958 Views)

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?

0 Kudos
Message 3 of 8
(3,958 Views)

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

Regards
Ray Farmer
0 Kudos
Message 4 of 8
(3,945 Views)

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

0 Kudos
Message 5 of 8
(3,938 Views)

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

Regards
Ray Farmer
0 Kudos
Message 6 of 8
(3,934 Views)

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

Message 7 of 8
(3,919 Views)

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

0 Kudos
Message 8 of 8
(3,900 Views)