SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 5 of 5
  1. #1
    Apprentice
    Join Date
    Dec 2008
    Posts
    44
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Electronic Signature - keeps changing on me!!!

    Good day forum -

    I have a script going that simulates an electronic signature. If BG_USER_59 = YES, then user.username is scripted into BG_USER_10, and then the field is changed to readonly, to lock in the name of the person making the decision. My problem is that as different users navigate to this tab, their user name is then scripted in, replacing the original "signature". I am using this sub to create the signature:

    <font class="small">Code:</font><hr /><pre> Sub ESig1

    If Bug_Fields.Field("BG_USER_59").Value = "YES" Then
    Bug_Fields.Field("BG_USER_10").IsReadOnly = false
    Bug_Fields.Field("BG_USER_10").Value = User.Username
    Bug_Fields.Field("BG_USER_10").IsReadOnly = true
    End if

    If Bug_Fields.Field("BG_USER_59").Value = "NO" Then
    Bug_Fields.Field("BG_USER_10").IsReadOnly = false
    Bug_Fields.Field("BG_USER_10").Value = "Pending
    Approval"
    Bug_Fields.Field("BG_USER_10").IsReadOnly =true
    End if
    End Sub </pre><hr />

    I have tried to call for this sub from inside Bug_MoveTo, from Bug_FieldChange, and Bug_AfterPost, but I cant seem to find the right combination that prohibits a random name from populating the field.


    <font class="small">Code:</font><hr /><pre> Sub Bug_FieldChange(FieldName)
    On Error Resume Next
    If FieldName = "BG_USER_59" Then
    ESig1
    End If
    On Error Goto 0
    End Sub </pre><hr />

    My goal is to allow whomever changes BG_USER_59 to have their user.username appear in BG_USER_10, and that anyone coming in after them, will be able to see, but wont have their name show up unless another change is made to BG_USER_59 . I am wondering if I need some thing else inside Bug_FieldChange...i will keep thinking in the mean while...

    Thanks for pointing me in the right direction.

    WH

  2. #2
    Senior Member
    Join Date
    Oct 2006
    Location
    Boston, MA
    Posts
    114
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Electronic Signature - keeps changing on me!!!

    The list items for BG_USER_59, does it have only two values "YES" and "NO".
    Is it a required field.
    You can have a default selection and make it non required when it set to that default value, where by it wont call your ESig1 all the time.

  3. #3
    Apprentice
    Join Date
    Dec 2008
    Posts
    44
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Electronic Signature - keeps changing on me!!!

    Hello Raj,

    Yes, the list items for that field are only YES and NO, and NO, the field is not required.

    So you are saying that I can default to NO, and then only call for ESig1 when the value changes to YES?

  4. #4
    Member
    Join Date
    Jan 2008
    Posts
    79
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Electronic Signature - keeps changing on me!!!

    Hi Whalon,

    We want to impliment Electonic signature process in Quality Center 10.0 for Requirements, create Test scripts and execution.

    How can I do this in QC 10.0, If you have any step by step document and API`s please share.

  5. #5
    Apprentice
    Join Date
    Dec 2008
    Posts
    44
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Electronic Signature - keeps changing on me!!!

    Preetham,

    We are currently only using e-signature in the defects module. I hope this helps. It takes code in 3 different subs to make this happen. Also, we are using Field#59 as a yes/no trigger, and Field#10 stores the user's ID as the signature. Let me know if anything needs further explanation


    Sub Bug_MoveTo
    On Error Resume Next

    'Once a value exists, the field changes to R/O.

    If Bug_Fields.Field("BG_USER_59").Value &lt;&gt; "" Then
    Bug_Fields.Field("BG_USER_10").IsReadOnly = TRUE
    End if

    On Error Goto 0
    End Sub

    Sub Bug_FieldChange(FieldName)
    On Error Resume Next

    If FieldName = "BG_USER_59" Then
    If Bug_Fields.Field("BG_USER_59").Value &lt;&gt; "" Then
    Bug_Fields.Field("BG_USER_10").IsReadOnly = TRUE
    End if
    End if

    If FieldName = "BG_USER_59" Then
    ESig1
    End if
    On Error GoTo 0
    End Sub

    Function ESig1
    If Bug_Fields.Field("BG_USER_59").Value = "YES" Then
    Bug_Fields.Field("BG_USER_10").IsReadOnly = false
    Bug_Fields.Field("BG_USER_10").Value = User.Username
    Bug_Fields.Field("BG_USER_10").IsReadOnly = true
    End if

    If Bug_Fields.Field("BG_USER_59").Value = "NO" Then
    Bug_Fields.Field("BG_USER_10").IsReadOnly = false
    Bug_Fields.Field("BG_USER_10").Value = "Pending Approval"
    Bug_Fields.Field("BG_USER_10").IsReadOnly =true
    End if
    End Function

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 7.14%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 11:57 PM.

Copyright BetaSoft Inc.