Contributions
Re: Value property shows only partial data within the object displayed on the screen
Hi Mike Can we have a webex session. As ours is an secured environment, it will be difficult for me to have my site have direct access to you very soon(Although i am trying to get one). I think if i am able to see the whole xml string instead of partial, my problem will be resolved Thanks Amit478Views0likes0CommentsRe: Flexgrid:- parse rows and cols and get cell value
Hello Support. Just one update here. Through the object mapping I added the testcomplete Advanceddatagrid class(/eg module.utp.Objecthrid) in default object properties. Now I am able to see additional properties such as wColumnCount,wValue etc. However when I try to provide parameters to wValue I get following error Error: An error occurred. Possible reasons: 1. The application stopped responding. 2. The application was compiled incorrectly (see the Open Applications topic in the help system). 3. An error occurred in TestComplete. What should be the steps henceforth2.4KViews0likes0CommentsValue property shows only partial data within the object displayed on the screen
Problem I am trying to get a whole XML String(which is embedded within flex object). This xml string basically represents multiple rows and columns. Something like this result <root> <trade count="245"> Row 1 <row idx="01-268" meID="1" transactionTime="10:20:22.572463" symbol="CHI" firmConnectionBuy="TFXH-01" firmConnectionSell="TFXH-01" book="N01E40" buyBehalf="TFXH" buyGiveUp="TFXC" buyBadgeNo="" buyOrderID="01-1443" buyTANum="00012C" buyRid="" buyDBKLink="5" buyClOrdID="OMS 0521/04252012" sellBehalf="TFXH" sellGiveUp="TFXC" sellBadgeNo="" sellOrderID="01-1453" sellTANum="00012M" sellRid="" sellDBKLink="5" sellClOrdID="OMS 0522/04252012" lastShare="50" lastPx="10.05" dLastPx="0.000000" executionBroker=" " dealDBKLink="5" pxScale="4" buyBillInd="2" sellBillInd="1" execAwayMktInd="undefined" mMID=" " buyBillingRate="2/2" sellBillingRate="1/1" nationalBid="10" nationalAsk="10.1" rndQty="0" rounded="0" profitLoss="0" buyOrSellBehalf="[TFXH][TFXH]" buyOrSellGiveup="[TFXC][TFXC]" buyOrSellBadge="[][]" buyOrSellTaNum="[00012C][00012M]" buyOrSellRidNum="[][]" buyOrSellClOrdID="[OMS 0521/04252012][OMS 0522/04252012]" busted="N" bustedFlag="false" Changed="false"/> Row 2 <row idx="01-267" meID="1" transactionTime="10:20:20.254014" symbol="CHI" firmConnectionBuy="TFXH-01" firmConnectionSell="TFXH-01" book="N01E40" buyBehalf="TFXH" buyGiveUp="TFXC" buyBadgeNo="" buyOrderID="01-1443" buyTANum="00012C" buyRid="" buyDBKLink="5" buyClOrdID="OMS 0521/04252012" sellBehalf="TFXH" sellGiveUp="TFXC" sellBadgeNo="1234" sellOrderID="01-1439" sellTANum="000128" sellRid="" sellDBKLink="4" sellClOrdID="OMS 0518/04252012" lastShare="500" lastPx="10.05" dLastPx="0.000000" executionBroker=" " dealDBKLink="4" pxScale="4" buyBillInd="1" sellBillInd="1" execAwayMktInd="undefined" mMID=" " buyBillingRate="1/2" sellBillingRate="1/0" nationalBid="0" nationalAsk="10000" rndQty="0" rounded="0" profitLoss="0" buyOrSellBehalf="[TFXH][TFXH]" buyOrSellGiveup="[TFXC][TFXC]" buyOrSellBadge="[][1234]" buyOrSellTaNum="[00012C][000128]" buyOrSellRidNum="[][]" buyOrSellClOrdID="[OMS 0521/04252012][OMS 0518/04252012]" busted="N" bustedFlag="false" Changed="false"/> </trade> </root> But in when i do a = GridFlexobject.dataprovider.source.value i only get Row 1 above . How tp get both the rows in a variable. I need to parse this xml for results.7.3KViews0likes3CommentsRe: Flexgrid:- parse rows and cols and get cell value
Hi Mike Thanks for your reply. Even i was able to get the the value with Itemrenderer, but two issues here - I saw thatuse of this property is not recommended. http://community.smartbear.com/forum/post/?mode=singleThread&thread=88b1042f-547e-441a-8795-d1e5b35c6212 - If I have to get values for all rows and columns(all the values in the grid), it becomes difficult. Thanks Amit2.4KViews0likes0CommentsRe: Flexgrid:- parse rows and cols and get cell value
Thanks for your reply Mike. I did add mx.controls.AdvancedDataGrid(which is the base class for flexgrid) and also check the derived classess checkbox. However could not get the testobject properties reflected in control. What could be the alternative solution Thanks and Regards2.4KViews0likes0CommentsFlexgrid:- parse rows and cols and get cell value
Flexgrid:- parse rows and cols and get cell value. Problem :- I am facing problem with respect to getting values from flex grid Code i wrote :- myvalue = aqObject.GetPropertyValue(Aliases.iexplore.UTM_HomePage.objectApp.mainMain1.canvasOrders.canvasOrderorders.dividedboxVdiv.orderdatagridOrdersgrid.FlexObject.dataProvider.source.item("2"),"Leaves") msgbox myvalue This produces error. How do i parse cells viarows and columnsof Flexgrid. Dataprovider is [mx.collections::XMLListCollection object]. Source is represented as " I also tried using this code a = Aliases.iexplore.UTM_HomePage.objectApp.mainMain1.canvasOrders.canvasOrderorders.dividedboxVdiv.orderdatagridOrdersgrid.FlexObject.dataProvider.source.value <row idx="01-7902" meID="1" du="1" taNum="" clientOrderId="270" badgeNum="-1" agencyName="" rid="00V2M" status="Filled" tsTime="15:52:25.673758" symbol="JFP" side="Buy" broadSide="B" orderType="Limit" equoteType="" routeInst=" " size="1000" pxScale="4" price="10.01" dPrice="0.000000" delQty="0 which gives me XML Values in format mentioned here looked at this post http://support.smartbear.com/viewarticle.aspx?aid=8970. However it seems that it does not assume dataprovider to be xmllist. So two questions here. How do i get cell values by referring rows,cols Also is there any way to parse above pasted xml Your help will be appreciated Thanks Amit11KViews0likes6Commentsparse rows and cols and get cell value.
Flexgrid:- parse rows and cols and get cell value. Problem :- I am facing problem with respect to getting values from flex grid Code i wrote :- myvalue = aqObject.GetPropertyValue(Aliases.iexplore.UTM_HomePage.objectApp.mainMain1.canvasOrders.canvasOrderorders.dividedboxVdiv.orderdatagridOrdersgrid.FlexObject.dataProvider.source.item("2"),"Leaves") msgbox myvalue This produces error. How do i parse cells viarows and columnsof Flexgrid. Dataprovider is [mx.collections::XMLListCollection object]. Source is represented as <row idx="01-7902" meID="1" du="1" taNum="" clientOrderId="270" badgeNum="-1" agencyName="" rid="00V2M" status="Filled" tsTime="15:52:25.673758" symbol="JFP" side="Buy" broadSide="B" orderType="Limit" equoteType="" routeInst=" " size="1000" pxScale="4" price="10.01" dPrice="0.000000" delQty="0" looked at this post http://support.smartbear.com/viewarticle.aspx?aid=8970. However it seems that it does not assume source to be xmllist. Your help will be appreciated Thanks Amit6KViews0likes2Comments