SPONSORS:






User Tag List

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

    How to Loop through Dynamic WBfGrid

    I'm working on a WbfGrid which will add a row in the Data grid as and when a user performs the action.

    I parametereized the hard coded values and was able to run a few iterations.
    The problem arises when a new row is inserted by a user and I'm unable to loop through the newly created rows.

    Please advice/help me on this issue.
    What say you?

  2. #2
    Junior Member
    Join Date
    Apr 2006
    Location
    US
    Posts
    7
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to Loop through Dynamic WBfGrid

    I've a .Net based web application. It's kind of a shopping cart functionality wherein a user can add and remove items.
    Whenever a user adds a new item, a new row(along with the respective cells) is inserted in the details data grid.
    How do I Loop through the WbfGrid.
    Every row will have cells like Product Name, Desciption,Quantity and price.If user adds a new items,a new row will be created along with the above columns.

    Here's how the script looks like in the Expert view.

    Browser("").Page("").WbfGrid("datagrid").SetCellDa ta 2,1 "value in frst column"
    Browser("").Page("").WbfGrid("datagrid").SetCellDa ta 2,2 "value in second column"
    2,3"value in third column"
    2,4"value in fourth column"

    For every new product....all these 4lines are created.

    Also,if user adds x items to the cart.......will the code loop through all the items added??
    I parameterized the values but i'm not sure if the script will pass in the 2nd iteration cos the property value is gonna change in every iteration.
    I know it's a bit lengthy but i'm getting stuck on the 2nd item.
    Thanks much in advance.....
    What say you?

 

 

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.40 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 12.50%
vBulletin Optimisation provided by vB Optimise v2.7.1 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.3.0 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 04:23 PM.

Copyright BetaSoft Inc.