SPONSORS:






User Tag List

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

    Selecting a particular webradiogroup button

    Hello,

    I am in to a typical problem on selecting a webradiogroup button. It always pointing to first radio group value, where as i want to select the one which is the middle.

    I have tried many options but didn't work (i.e. child objects, select #1) because its getting added dynamically i need to get it via runtime to fixed. can anyone suggest a better solution to this problem.

  2. #2
    Junior Member
    Join Date
    May 2008
    Posts
    8
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Selecting a particular webradiogroup button

    Can you attach the sceenshots for more details...
    Suresh Kumar Murugasen

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

    Re: Selecting a particular webradiogroup button

    i can tell you the scenario i have 4 webradiobuttons followed by 3 text fields and the another 5 webradiobuttons. i wanted to click on the radio button which has the associated text "Member".

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

    Re: Selecting a particular webradiogroup button

    Is it inside the table or frame. Are you able to get allitems from Webradiogroup.
    Suresh Kumar Murugasen

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

    Re: Selecting a particular webradiogroup button

    Yes, its inside the webtable. I am able to get the allitems using GetRoProperty

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

    Re: Selecting a particular webradiogroup button

    Try to use this Procedure and check it are you able to get it.
    Public Sub Select_(objItem, varValue)

    On Error Resume Next

    ' The name of the object
    Dim strObjectName
    ' Items in the object
    Dim objAllItems
    ' Number of items in the object
    Dim lngItemsCount
    ' Loop counter
    Dim i
    ' Item to select
    Dim varSelectItem
    ' Status message
    Dim strStatusMessage
    ' Item found flag
    Dim blnFlag

    'Assign values
    checkpoint_status = False
    lngItemsCount = objItem.GetROProperty("items count")
    varSelectItem = "==NULL=="
    strStatusMessage = " IS NOT"

    'If strValue is an index value
    If inStr(1,varValue,"#") > 0 Then '# is found

    varSelectItem = varValue

    If CInt(Replace(varValue, "#", "")) < lngItemsCount Then 'item is not in the list
    checkpoint_status = True
    strStatusMessage = ""
    End If

    ElseIf lngItemsCount > 0 Then

    objAllItems = Split(objItem.GetROProperty("all items"), ";") 'create array of list items
    If Ubound(objAllItems) = 0 Then
    ' Chr(10) is line feed character
    objAllItems = Split(objItem.GetROProperty("all items"), Chr(10))
    End If

    For i = 0 to UBound(objAllItems) 'loop through the items
    If Strcomp(objAllItems(i), varValue)=0 Then 'Checking if exact match is found in dropdown
    varSelectItem = objAllItems(i)
    blnFlag = True
    Exit For 'exit loop once the item is found
    End If
    Next

    If blnFlag=False Then
    For i = 0 to UBound(objAllItems) 'loop through the items
    If inStr(1,objAllItems(i), varValue) > 0 Then 'locate the item from the dropdown
    varSelectItem = objAllItems(i)
    blnFlag = True
    Exit For 'exit loop once the item is found
    End If
    Next
    End If
    End If

    If blnFlag = True Then
    checkpoint_status = True
    strStatusMessage = ""
    objItem.Select varSelectItem 'select it
    End If


    End Sub
    Suresh Kumar Murugasen

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

    Re: Selecting a particular webradiogroup button

    No, i am not getting any results. Can you pls explain your scripts.

  8. #8
    Junior Member
    Join Date
    May 2008
    Posts
    8
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Selecting a particular webradiogroup button

    Try to debug your scripts
    Suresh Kumar Murugasen

 

 

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 09:43 AM.

Copyright BetaSoft Inc.