SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Nov 2004
    Location
    UK
    Posts
    57
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    TD 8.0 - Setting the list property for a defect field in script editor

    I am trying to set the available values in a field accorind to what has been selected in another field. I am doing this with the following code in script editor
    </font><blockquote><font size="1" face="Verdana, Arial, Helvetica">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">Sub Defects_Bug_FieldChange(FieldName)

    If FieldName = &quot;BG_PROJECT&quot; Then
    SetDeliverableTypeValues()
    End If

    End Sub

    Sub SetDeliverableTypeValues()

    Select Case Field(&quot;BG_PROJECT&quot.Value
    Case &quot;Ardentia&quot;
    Field(&quot;BG_USER_13&quot.List = &quot;Ardentia List&quot;
    Field(&quot;BG_USER_13&quot.Value = &quot;Central returns&quot;
    Case &quot;CIE&quot;
    Field(&quot;BG_USER_13&quot.List = &quot;CIE List&quot;
    Field(&quot;BG_USER_13&quot.Value = &quot;n/a&quot;
    Case &quot;LIE&quot;
    Field(&quot;BG_USER_13&quot.List = &quot;LIE List&quot;
    Field(&quot;BG_USER_13&quot.Value = &quot;n/a&quot;
    Case &quot;IDX&quot;
    Field(&quot;BG_USER_13&quot.List = &quot;IDX List&quot;
    Field(&quot;BG_USER_13&quot.Value = &quot;n/a&quot;
    Case &quot;IDX Data&quot;
    Field(&quot;BG_USER_13&quot.List = &quot;IDX Data List&quot;
    Field(&quot;BG_USER_13&quot.Value = &quot;Load script&quot;
    Case &quot;IDX GoldenGate&quot;
    Field(&quot;BG_USER_13&quot.List = &quot;IDX GoldenGate List&quot;
    Field(&quot;BG_USER_13&quot.Value = &quot;GoldGate&quot;
    Case &quot;In Practice&quot;
    Field(&quot;BG_USER_13&quot.List = &quot;In Practice List&quot;
    Field(&quot;BG_USER_13&quot.Value = &quot;Vision&quot;
    Case &quot;Sapient&quot;
    Field(&quot;BG_USER_13&quot.List = &quot;Sapient List&quot;
    Field(&quot;BG_USER_13&quot.Value = &quot;ETL&quot;
    Case &quot;WebApps&quot;
    Field(&quot;BG_USER_13&quot.List = &quot;WebApps List&quot;
    Field(&quot;BG_USER_13&quot.Value = &quot;Portal&quot;
    Case Else
    Field(&quot;BG_USER_13&quot.List = &quot;Deliverable Group&quot;
    Field(&quot;BG_USER_13&quot.Value = &quot;N/A&quot;
    End Select

    End Sub</pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">However, every time I try to change the field "BG_PROJECT", I get an error which wants me to debug using Microsoft Script Editor. Any help would be appreciated.

  2. #2
    Senior Member
    Join Date
    Jan 2002
    Posts
    678
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: TD 8.0 - Setting the list property for a defect field in script editor

    You are missing the lists object.

    </font><blockquote><font size="1" face="Verdana, Arial, Helvetica">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">Case &quot;WebApps&quot;
    Field(&quot;BG_USER_13&quot.List = lists(&quot;WebApps List&quot
    Field(&quot;BG_USER_13&quot.Value = &quot;Portal&quot;</pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">

 

 

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 11.54%
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 07:57 AM.

Copyright BetaSoft Inc.