SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Mar 2006
    Location
    Canberra
    Posts
    206
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Getting the maximum characters for a WebList objec

    Hi Guys,

    For a webEdit field I have been getting the max number of characters that can be entered using GetROProperty("max length"). There is no corresponding runtime property for a webList field from what I can see. What is the best way to validate the maximum number of characters that can be entered into a webList field.
    Will WebList("AAA").Object.attributes.length give the length of the WebList. When I use this it gives me an answer of 84 where the spec says the field length should be 50 so I just want to check that this is the correct way to do it before raising a defect.
    Unfortunately the weblist can only be populated by selected an item so I cannot just manually type text in there until it wont accept anymore and to confirm the result

    Thanks

    Gavin

  2. #2
    Member
    Join Date
    Feb 2007
    Location
    London
    Posts
    391
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Getting the maximum characters for a WebList objec

    I'm not aware of a maximum value you can retrieve for a weblist. I would query with the dev team whether they can specify a maximum length value for a weblist (they might, but I'm not sure).

    Another approach might be to implement a function with the following logic:

    <font class="small">Code:</font><hr /><pre>
    for each list item
    capture the string
    use the len function to verify it is not longer than 50
    end for
    </pre><hr />

 

 

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 12.50%
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 05:45 AM.

Copyright BetaSoft Inc.