SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 7 of 7
  1. #1
    Member
    Join Date
    Jan 2009
    Posts
    67
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    How to make defect fields not editable

    Hello,

    Anybody knows how to disable certain defect fields of existing defects? Here is scenario,

    when QA submit new defect, the "Detected by" is filled in QA's initial;
    After the defect is submitted, the "Detected by" contains QA's initial (who report the defect) and nobody else (even QA self) can edit it. How?

    Thanks!!

  2. #2
    Advanced Member
    Join Date
    Aug 2004
    Location
    Wellington, New Zealand
    Posts
    797
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    Total Downloaded
    0

    Re: How to make defect fields not editable

    Bug_fields.Field("BG_DETECTED_BY").ReadOnly = True
    Regards,

    Alex
    ... just another Tester ...

  3. #3
    Member
    Join Date
    Jan 2009
    Posts
    67
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to make defect fields not editable

    My scenario is, when QA / others input the defect, the field is filled in QA's login name (means the field is writable). After defect is inputted, nobody else can modify the value in that field (read only now).

  4. #4
    Advanced Member
    Join Date
    Aug 2004
    Location
    Wellington, New Zealand
    Posts
    797
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    Total Downloaded
    0

    Re: How to make defect fields not editable

    so set the field to '.IsReadOnly = False' in Bug_MoveTo, or Bug_New .. wherever you're experiencing the issue.
    Regards,

    Alex
    ... just another Tester ...

  5. #5
    Senior Member
    Join Date
    Jun 2007
    Posts
    178
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to make defect fields not editable

    Please log-in as Admin and disable the fields that you want to.

    Regards

  6. #6
    Member
    Join Date
    May 2010
    Posts
    159
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to make defect fields not editable

    Here it is
    if
    Bug_fields.Field("BG_DETECTED_BY").ismodified = true then
    Bug_fields.Field("BG_DETECTED_BY").isReadOnly = ture
    else
    Bug_fields.Field("BG_DETECTED_BY").isReadOnly=fals e
    end if

    sorry for delay response, just saw the post

  7. #7
    Advanced Member
    Join Date
    Aug 2004
    Location
    Wellington, New Zealand
    Posts
    797
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    Total Downloaded
    0

    Re: How to make defect fields not editable

    @manibaig,
    Have you tried your code? Where do you expect to place it and what do you expect the result to be?

    You are only locking the field after it has already been changed in the current session.. seems a little late to me.

    @norfolkqa,
    All you need to do is set ("BG_DETECTED_BY").IsReadOnly = True in the _MoveTo event.

    This will lock the detected by field for all 'existing' defects. The field will remain unlocked in _New, so that it can be modified when a defect is raised (for example when Tester B raises a defect on behalf of Tester A).

    You may wish to consider coding an exception for Administrators so that the field can be modified by someone in the event that an error is made.
    Regards,

    Alex
    ... just another Tester ...

 

 

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 10.00%
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 04:18 PM.

Copyright BetaSoft Inc.