path should be a string with full path to your destination, e.g. \"C:\\\\Users\\\\User\\\\Desktop\\\\shot.jpg\"
Sys.Desktop will provide a screenshot from the whole desktop. You can use any mapped object instead of Sys.Desktop
\n
\n
\n
\n
","body@stripHtml({\"removeProcessingText\":false,\"removeSpoilerMarkup\":false,\"removeTocMarkup\":false,\"truncateLength\":200})@stringLength":"234","kudosSumWeight":0,"repliesCount":0,"postTime":"2017-03-13T07:46:41.305-07:00","lastPublishTime":"2017-03-13T07:51:07.499-07:00","metrics":{"__typename":"MessageMetrics","views":5003},"visibilityScope":"PUBLIC","placeholder":false,"originalMessageForPlaceholder":null,"isEscalated":null,"solution":false,"entityType":"FORUM_REPLY","eventPath":"category:TestComplete_forum/community:nwkab66374board:testcomplete-questions/message:137854/message:137955","customFields":[],"readOnly":false,"editFrozen":false,"body@stringLength":"773","rawBody":"
Hi,
\n\n
I have updated the link >>
\n\n
You can use the following code for taking a screenshot:
\n\n
def take_screenshot(path):\n Sys.Desktop.Picture().SaveToFile(path)\n
path should be a string with full path to your destination, e.g. \"C:\\\\Users\\\\User\\\\Desktop\\\\shot.jpg\"
Sys.Desktop will provide a screenshot from the whole desktop. You can use any mapped object instead of Sys.Desktop
\n
\n
\n
\n
","images":{"__typename":"AssociatedImageConnection","edges":[],"totalCount":0,"pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null}},"attachments":{"__typename":"AttachmentConnection","pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null},"edges":[]},"timeToRead":1,"currentRevision":{"__ref":"Revision:revision:137955_4"},"latestVersion":null,"messagePolicies":{"__typename":"MessagePolicies","canModerateSpamMessage":{"__typename":"PolicyResult","failureReason":{"__typename":"FailureReason","message":"error.lithium.policies.feature.moderation_spam.action.moderate_entity.allowed.accessDenied","key":"error.lithium.policies.feature.moderation_spam.action.moderate_entity.allowed.accessDenied","args":[]}}}},"User:user:73979":{"__typename":"User","id":"user:73979","uid":73979,"login":"pavanmac","biography":null,"registrationData":{"__typename":"RegistrationData","status":null,"registrationTime":"2017-03-16T03:34:57.626-07:00"},"deleted":false,"email":"","avatar":{"__typename":"UserAvatar","url":"https://community.smartbear.com/t5/s/nwkab66374/m_assets/avatars/default/avatar-8.svg?time=0"},"rank":{"__ref":"Rank:rank:13"},"entityType":"USER","eventPath":"community:nwkab66374/user:73979"},"ModerationData:moderation_data:138140":{"__typename":"ModerationData","id":"moderation_data:138140","status":"APPROVED","rejectReason":null,"isReportedAbuse":false,"rejectUser":null,"rejectTime":null,"rejectActorType":null},"Rank:rank:6":{"__typename":"Rank","id":"rank:6","position":12,"name":"Esteemed Contributor","color":"00537C","icon":null,"rankStyle":"OUTLINE"},"User:user:45447":{"__typename":"User","id":"user:45447","uid":45447,"login":"tristaanogre","biography":null,"registrationData":{"__typename":"RegistrationData","status":null,"registrationTime":"2009-11-30T22:07:57.000-08:00"},"deleted":false,"email":"","avatar":{"__typename":"UserAvatar","url":"https://community.smartbear.com/t5/s/nwkab66374/images/dS00NTQ0Ny0zMzU5aTMyNEQ2NzhFNzA1Mjc2RUI"},"rank":{"__ref":"Rank:rank:6"},"entityType":"USER","eventPath":"community:nwkab66374/user:45447"},"ForumReplyMessage:message:138140":{"__typename":"ForumReplyMessage","uid":138140,"id":"message:138140","revisionNum":1,"author":{"__ref":"User:user:73979"},"readOnly":false,"repliesCount":4,"depth":2,"hasGivenKudo":false,"subscribed":false,"board":{"__ref":"Forum:board:testcomplete-questions"},"parent":{"__ref":"ForumReplyMessage:message:137871"},"conversation":{"__ref":"Conversation:conversation:137854"},"subject":"Re: How to fetch the data from a Grid/dataset/table?","moderationData":{"__ref":"ModerationData:moderation_data:138140"},"body":"
Hi could you please elaborate on fetching the data from excel using their column names.
","body@stripHtml({\"removeProcessingText\":false,\"removeSpoilerMarkup\":false,\"removeTocMarkup\":false,\"truncateLength\":200})@stringLength":"97","kudosSumWeight":0,"postTime":"2017-03-16T03:41:01.750-07:00","lastPublishTime":"2017-03-16T03:41:01.750-07:00","metrics":{"__typename":"MessageMetrics","views":4960},"visibilityScope":"PUBLIC","placeholder":false,"originalMessageForPlaceholder":null,"isEscalated":null,"solution":false,"entityType":"FORUM_REPLY","eventPath":"category:TestComplete_forum/community:nwkab66374board:testcomplete-questions/message:137854/message:138140","replies":{"__typename":"MessageConnection","pageInfo":{"__typename":"PageInfo","hasNextPage":true,"endCursor":"MjUuMnwyLjF8b3wxfDE0OjAsMzk6MXwx","hasPreviousPage":false,"startCursor":null},"edges":[{"__typename":"MessageEdge","cursor":"MjUuMnwyLjF8b3wxfDE0OjAsMzk6MXwx","node":{"__ref":"ForumReplyMessage:message:138144"}}]},"customFields":[],"attachments":{"__typename":"AttachmentConnection","edges":[],"pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null}},"editFrozen":false,"body@stringLength":"107","rawBody":"
Hi could you please elaborate on fetching the data from excel using their column names.
","images":{"__typename":"AssociatedImageConnection","edges":[],"totalCount":0,"pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null}},"timeToRead":1,"currentRevision":{"__ref":"Revision:revision:138140_1"},"latestVersion":null,"messagePolicies":{"__typename":"MessagePolicies","canModerateSpamMessage":{"__typename":"PolicyResult","failureReason":{"__typename":"FailureReason","message":"error.lithium.policies.feature.moderation_spam.action.moderate_entity.allowed.accessDenied","key":"error.lithium.policies.feature.moderation_spam.action.moderate_entity.allowed.accessDenied","args":[]}}}},"ModerationData:moderation_data:138144":{"__typename":"ModerationData","id":"moderation_data:138144","status":"APPROVED","rejectReason":null,"isReportedAbuse":false,"rejectUser":null,"rejectTime":null,"rejectActorType":null},"ForumReplyMessage:message:138144":{"__typename":"ForumReplyMessage","author":{"__ref":"User:user:45447"},"id":"message:138144","revisionNum":1,"uid":138144,"depth":3,"hasGivenKudo":false,"subscribed":false,"board":{"__ref":"Forum:board:testcomplete-questions"},"parent":{"__ref":"ForumReplyMessage:message:138140"},"conversation":{"__ref":"Conversation:conversation:137854"},"subject":"Re: How to fetch the data from a Grid/dataset/table?","moderationData":{"__ref":"ModerationData:moderation_data:138144"},"body":"
Look into using the DDT.ExcelDriver. Once the driver is set up, accessing the data is a matter of objExcelDriver.Value('ColumnName').
","body@stripHtml({\"removeProcessingText\":false,\"removeSpoilerMarkup\":false,\"removeTocMarkup\":false,\"truncateLength\":200})@stringLength":"141","kudosSumWeight":0,"repliesCount":0,"postTime":"2017-03-16T04:41:20.201-07:00","lastPublishTime":"2017-03-16T04:41:20.201-07:00","metrics":{"__typename":"MessageMetrics","views":4955},"visibilityScope":"PUBLIC","placeholder":false,"originalMessageForPlaceholder":null,"isEscalated":null,"solution":false,"entityType":"FORUM_REPLY","eventPath":"category:TestComplete_forum/community:nwkab66374board:testcomplete-questions/message:137854/message:138144","readOnly":false,"editFrozen":false,"body@stringLength":"306","rawBody":"Look into using the DDT.ExcelDriver. Once the driver is set up, accessing the data is a matter of objExcelDriver.Value('ColumnName').
","images":{"__typename":"AssociatedImageConnection","edges":[],"totalCount":0,"pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null}},"attachments":{"__typename":"AttachmentConnection","pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null},"edges":[]},"timeToRead":1,"currentRevision":{"__ref":"Revision:revision:138144_1"},"latestVersion":null,"messagePolicies":{"__typename":"MessagePolicies","canModerateSpamMessage":{"__typename":"PolicyResult","failureReason":{"__typename":"FailureReason","message":"error.lithium.policies.feature.moderation_spam.action.moderate_entity.allowed.accessDenied","key":"error.lithium.policies.feature.moderation_spam.action.moderate_entity.allowed.accessDenied","args":[]}}},"customFields":[]},"ModerationData:moderation_data:138177":{"__typename":"ModerationData","id":"moderation_data:138177","status":"APPROVED","rejectReason":null,"isReportedAbuse":false,"rejectUser":null,"rejectTime":null,"rejectActorType":null},"ForumReplyMessage:message:138177":{"__typename":"ForumReplyMessage","uid":138177,"id":"message:138177","revisionNum":1,"author":{"__ref":"User:user:66982"},"readOnly":false,"repliesCount":16,"depth":1,"hasGivenKudo":false,"subscribed":false,"board":{"__ref":"Forum:board:testcomplete-questions"},"parent":{"__ref":"ForumTopicMessage:message:137854"},"conversation":{"__ref":"Conversation:conversation:137854"},"subject":"Re: How to fetch the data from a Grid/dataset/table?","moderationData":{"__ref":"ModerationData:moderation_data:138177"},"body":"Hi Rajesh2I dont want to store in the variable but i want to fetch directly from the excel .
For Ex: My excel is saved on desktop.
Please suggest how to go about this.
","body@stripHtml({\"removeProcessingText\":false,\"removeSpoilerMarkup\":false,\"removeTocMarkup\":false,\"truncateLength\":200})@stringLength":"189","kudosSumWeight":0,"postTime":"2017-03-16T21:09:36.475-07:00","lastPublishTime":"2017-03-16T21:12:07.397-07:00","metrics":{"__typename":"MessageMetrics","views":3189},"visibilityScope":"PUBLIC","placeholder":false,"originalMessageForPlaceholder":null,"isEscalated":null,"solution":false,"entityType":"FORUM_REPLY","eventPath":"category:TestComplete_forum/community:nwkab66374board:testcomplete-questions/message:137854/message:138192","replies":{"__typename":"MessageConnection","pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null},"edges":[{"__typename":"MessageEdge","cursor":"MjUuMnwyLjF8b3wxfDE0OjAsMzk6MXwx","node":{"__ref":"ForumReplyMessage:message:138206"}}]},"editFrozen":false,"body@stringLength":"214","rawBody":"I dont want to store in the variable but i want to fetch directly from the excel .
For Ex: My excel is saved on desktop.
Please suggest how to go about this.
","images":{"__typename":"AssociatedImageConnection","edges":[],"totalCount":0,"pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null}},"attachments":{"__typename":"AttachmentConnection","pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null},"edges":[]},"timeToRead":1,"currentRevision":{"__ref":"Revision:revision:138192_3"},"latestVersion":null,"messagePolicies":{"__typename":"MessagePolicies","canModerateSpamMessage":{"__typename":"PolicyResult","failureReason":{"__typename":"FailureReason","message":"error.lithium.policies.feature.moderation_spam.action.moderate_entity.allowed.accessDenied","key":"error.lithium.policies.feature.moderation_spam.action.moderate_entity.allowed.accessDenied","args":[]}}},"customFields":[]},"ModerationData:moderation_data:138206":{"__typename":"ModerationData","id":"moderation_data:138206","status":"APPROVED","rejectReason":null,"isReportedAbuse":false,"rejectUser":null,"rejectTime":null,"rejectActorType":null},"ForumReplyMessage:message:138206":{"__typename":"ForumReplyMessage","author":{"__ref":"User:user:66982"},"id":"message:138206","revisionNum":2,"uid":138206,"depth":3,"hasGivenKudo":false,"subscribed":false,"board":{"__ref":"Forum:board:testcomplete-questions"},"parent":{"__ref":"ForumReplyMessage:message:138192"},"conversation":{"__ref":"Conversation:conversation:137854"},"subject":"Re: How to fetch the data from a Grid/dataset/table?","moderationData":{"__ref":"ModerationData:moderation_data:138206"},"body":"As tristaanogre said you can also use DDT.ExcelDriver. It uses absolutely the same logic:
\n\n
def get_value(name):\n\n source = DDT.ExcelDriver(\"C:\\\\Users\\\\Pavan\\\\Desktop\\\\Data2.xls\", \"Sheet1\")\n \n while not source.EOF():\n if source.Value[\"NAME\"] == name:\n return source.Value[\"AGE\"]\n source.Next()\n
","body@stripHtml({\"removeProcessingText\":false,\"removeSpoilerMarkup\":false,\"removeTocMarkup\":false,\"truncateLength\":200})@stringLength":"218","kudosSumWeight":1,"repliesCount":14,"postTime":"2017-03-17T00:36:19.423-07:00","lastPublishTime":"2017-03-17T00:37:46.387-07:00","metrics":{"__typename":"MessageMetrics","views":3170},"visibilityScope":"PUBLIC","placeholder":false,"originalMessageForPlaceholder":null,"isEscalated":null,"solution":false,"entityType":"FORUM_REPLY","eventPath":"category:TestComplete_forum/community:nwkab66374board:testcomplete-questions/message:137854/message:138206","readOnly":false,"editFrozen":false,"body@stringLength":"834","rawBody":"
As
\n
def get_value(name):\n\n source = DDT.ExcelDriver(\"C:\\\\Users\\\\Pavan\\\\Desktop\\\\Data2.xls\", \"Sheet1\")\n \n while not source.EOF():\n if source.Value[\"NAME\"] == name:\n return source.Value[\"AGE\"]\n source.Next()\n
","images":{"__typename":"AssociatedImageConnection","edges":[],"totalCount":0,"pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null}},"attachments":{"__typename":"AttachmentConnection","pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null},"edges":[]},"timeToRead":1,"currentRevision":{"__ref":"Revision:revision:138206_2"},"latestVersion":null,"messagePolicies":{"__typename":"MessagePolicies","canModerateSpamMessage":{"__typename":"PolicyResult","failureReason":{"__typename":"FailureReason","message":"error.lithium.policies.feature.moderation_spam.action.moderate_entity.allowed.accessDenied","key":"error.lithium.policies.feature.moderation_spam.action.moderate_entity.allowed.accessDenied","args":[]}}},"customFields":[]},"QueryVariables:MessageSolutions":{"__typename":"QueryVariables","id":"MessageSolutions","value":{"first":10,"constraints":{"topicId":{"eq":"message:137854"},"solution":{"eq":true}},"sorts":{"postTime":{"direction":"ASC"}},"useAvatar":true,"useAuthorLogin":true,"useAuthorRank":false,"useBody":true,"useKudosCount":false,"useTimeToRead":false,"useMedia":true,"useRepliesCount":false,"useSearchSnippet":false,"useAcceptedSolutionButton":true,"useSolvedBadge":false,"useAttachments":true,"useTags":false,"useUserHoverCard":false,"useNodeHoverCard":false,"usePreviewSubjectModal":false,"useMessageStatus":false}},"CachedAsset:text:en_US-components/messages/EscalatedMessageBanner-1741125846000":{"__typename":"CachedAsset","id":"text:en_US-components/messages/EscalatedMessageBanner-1741125846000","value":{"escalationMessage":"Escalated to Salesforce by {username} on {date}","viewDetails":"View Details","modalTitle":"Case Details","escalatedBy":"Escalated by: ","escalatedOn":"Escalated on: ","caseNumber":"Case Number: ","status":"Status: ","lastUpdateDate":"Last Update: ","automaticEscalation":"automatic escalation","anonymous":"Anonymous"},"localOverride":false},"CachedAsset:text:en_US-components/users/UserLink-1741125846000":{"__typename":"CachedAsset","id":"text:en_US-components/users/UserLink-1741125846000","value":{"authorName":"View Profile: {author}","anonymous":"Anonymous"},"localOverride":false},"CachedAsset:text:en_US-shared/client/components/users/UserRank-1741125846000":{"__typename":"CachedAsset","id":"text:en_US-shared/client/components/users/UserRank-1741125846000","value":{"rankName":"{rankName}","userRank":"Author rank {rankName}"},"localOverride":false},"CachedAsset:text:en_US-components/messages/MessageTime-1741125846000":{"__typename":"CachedAsset","id":"text:en_US-components/messages/MessageTime-1741125846000","value":{"postTime":"Published: {time}","lastPublishTime":"Last Update: {time}","conversation.lastPostingActivityTime":"Last posting activity time: {time}","conversation.lastPostTime":"Last post time: {time}","moderationData.rejectTime":"Rejected time: {time}"},"localOverride":false},"CachedAsset:text:en_US-components/messages/MessageSolvedBadge-1741125846000":{"__typename":"CachedAsset","id":"text:en_US-components/messages/MessageSolvedBadge-1741125846000","value":{"solved":"Solved"},"localOverride":false},"CachedAsset:text:en_US-components/messages/MessageSubject-1741125846000":{"__typename":"CachedAsset","id":"text:en_US-components/messages/MessageSubject-1741125846000","value":{"noSubject":"(no subject)"},"localOverride":false},"CachedAsset:text:en_US-components/messages/MessageBody-1741125846000":{"__typename":"CachedAsset","id":"text:en_US-components/messages/MessageBody-1741125846000","value":{"showMessageBody":"Show More","mentionsErrorTitle":"{mentionsType, select, board {Board} user {User} message {Message} other {}} No Longer Available","mentionsErrorMessage":"The {mentionsType} you are trying to view has been removed from the community.","videoProcessing":"Video is being processed. Please try again in a few minutes.","bannerTitle":"Video provider requires cookies to play the video. Accept to continue or {url} it directly on the provider's site.","buttonTitle":"Accept","urlText":"watch"},"localOverride":false},"CachedAsset:text:en_US-components/messages/MessageCustomFields-1741125846000":{"__typename":"CachedAsset","id":"text:en_US-components/messages/MessageCustomFields-1741125846000","value":{"CustomField.default.label":"Value of {name}"},"localOverride":false},"CachedAsset:text:en_US-components/messages/MessageReplyButton-1741125846000":{"__typename":"CachedAsset","id":"text:en_US-components/messages/MessageReplyButton-1741125846000","value":{"repliesCount":"{count}","title":"Reply","title@board:BLOG@message:root":"Comment","title@board:TKB@message:root":"Comment","title@board:IDEA@message:root":"Comment","title@board:OCCASION@message:root":"Comment"},"localOverride":false},"CachedAsset:text:en_US-components/messages/MessageSolutionList-1741125846000":{"__typename":"CachedAsset","id":"text:en_US-components/messages/MessageSolutionList-1741125846000","value":{"emptyDescription":"No has been message solutions yet"},"localOverride":false},"CachedAsset:text:en_US-components/messages/AcceptedSolutionButton-1741125846000":{"__typename":"CachedAsset","id":"text:en_US-components/messages/AcceptedSolutionButton-1741125846000","value":{"accept":"Mark as Solution","accepted":"Marked as Solution","errorHeader":"Error!","errorAdd":"There was an error marking as solution.","errorRemove":"There was an error unmarking as solution.","solved":"Solved","topicAlreadySolvedErrorTitle":"Solution Already Exists","topicAlreadySolvedErrorDesc":"Refresh the browser to view the existing solution"},"localOverride":false},"CachedAsset:text:en_US-shared/client/components/common/Pager/PagerLoadMore-1741125846000":{"__typename":"CachedAsset","id":"text:en_US-shared/client/components/common/Pager/PagerLoadMore-1741125846000","value":{"loadMore":"Show More"},"localOverride":false},"CachedAsset:text:en_US-components/messages/MessageView/MessageViewInline-1741125846000":{"__typename":"CachedAsset","id":"text:en_US-components/messages/MessageView/MessageViewInline-1741125846000","value":{"bylineAuthor":"{bylineAuthor}","bylineBoard":"{bylineBoard}","anonymous":"Anonymous","place":"Place {bylineBoard}","gotoParent":"Go to parent {name}"},"localOverride":false},"Revision:revision:138206_2":{"__typename":"Revision","id":"revision:138206_2","lastEditTime":"2017-03-17T00:37:46.387-07:00"},"Revision:revision:137871_2":{"__typename":"Revision","id":"revision:137871_2","lastEditTime":"2017-03-13T04:37:57.759-07:00"},"Revision:revision:137944_1":{"__typename":"Revision","id":"revision:137944_1","lastEditTime":"2017-03-13T04:34:00.069-07:00"},"Revision:revision:138144_1":{"__typename":"Revision","id":"revision:138144_1","lastEditTime":"2017-03-16T04:41:20.201-07:00"},"Revision:revision:138192_3":{"__typename":"Revision","id":"revision:138192_3","lastEditTime":"2017-03-16T21:12:07.397-07:00"},"Revision:revision:138177_1":{"__typename":"Revision","id":"revision:138177_1","lastEditTime":"2017-03-16T12:05:46.573-07:00"},"Revision:revision:137955_4":{"__typename":"Revision","id":"revision:137955_4","lastEditTime":"2017-03-13T07:51:07.499-07:00"},"Revision:revision:138140_1":{"__typename":"Revision","id":"revision:138140_1","lastEditTime":"2017-03-16T03:41:01.750-07:00"},"ModerationData:moderation_data:138208":{"__typename":"ModerationData","id":"moderation_data:138208","status":"APPROVED","rejectReason":null,"isReportedAbuse":false,"rejectUser":null,"rejectTime":null,"rejectActorType":null},"AcceptedSolutionMessage:message:138208":{"__typename":"AcceptedSolutionMessage","author":{"__ref":"User:user:73498"},"id":"message:138208","revisionNum":1,"uid":138208,"depth":4,"hasGivenKudo":false,"subscribed":false,"board":{"__ref":"Forum:board:testcomplete-questions"},"parent":{"__ref":"ForumReplyMessage:message:138206"},"conversation":{"__ref":"Conversation:conversation:137854"},"subject":"Re: How to fetch the data from a Grid/dataset/table?","moderationData":{"__ref":"ModerationData:moderation_data:138208"},"body":"
Hi baxatob Thank you so much for the solution.
But we are facing some issue. It is returning the value of only first row.
As Pavan name was in first row it returned the Age of that Name.
But when i gave Log.Message(\"Raj\") which is in third row, the code isn't working.
while not source.EOF():\n if source.Value[\"NAME\"] == name:\n return source.Value[\"AGE\"]\n source.Next()
Can we know why it is not working for the same. If you know the solution, Can you please help us with the same..!!
","body@stripHtml({\"removeProcessingText\":true,\"removeSpoilerMarkup\":true,\"removeTocMarkup\":true,\"truncateLength\":200})@stringLength":"233","postTime":"2017-03-17T01:43:03.806-07:00","lastPublishTime":"2017-03-17T01:43:03.806-07:00","images":{"__typename":"AssociatedImageConnection","edges":[],"totalCount":0,"pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null}},"attachments":{"__typename":"AttachmentConnection","pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null},"edges":[]},"solution":true,"metrics":{"__typename":"MessageMetrics","views":4964},"placeholder":false,"originalMessageForPlaceholder":null,"videos":{"__typename":"VideoConnection","edges":[],"totalCount":0,"pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null}},"isEscalated":null,"entityType":"FORUM_REPLY","eventPath":"category:TestComplete_forum/community:nwkab66374board:testcomplete-questions/message:137854/message:138208","readOnly":false,"customFields":[],"editFrozen":false,"body@stringLength":"886","rawBody":"Hi
But we are facing some issue. It is returning the value of only first row.
As Pavan name was in first row it returned the Age of that Name.
But when i gave Log.Message(\"Raj\") which is in third row, the code isn't working.
while not source.EOF():\n if source.Value[\"NAME\"] == name:\n return source.Value[\"AGE\"]\n source.Next()
Can we know why it is not working for the same. If you know the solution, Can you please help us with the same..!!
","kudosSumWeight":0,"repliesCount":13,"timeToRead":1,"currentRevision":{"__ref":"Revision:revision:138208_1"},"latestVersion":null,"visibilityScope":"PUBLIC","messagePolicies":{"__typename":"MessagePolicies","canModerateSpamMessage":{"__typename":"PolicyResult","failureReason":{"__typename":"FailureReason","message":"error.lithium.policies.feature.moderation_spam.action.moderate_entity.allowed.accessDenied","key":"error.lithium.policies.feature.moderation_spam.action.moderate_entity.allowed.accessDenied","args":[]}}}},"ModerationData:moderation_data:138210":{"__typename":"ModerationData","id":"moderation_data:138210","status":"APPROVED","rejectReason":null,"isReportedAbuse":false,"rejectUser":null,"rejectTime":null,"rejectActorType":null},"AcceptedSolutionMessage:message:138210":{"__typename":"AcceptedSolutionMessage","author":{"__ref":"User:user:66982"},"id":"message:138210","revisionNum":2,"uid":138210,"depth":5,"hasGivenKudo":false,"subscribed":false,"board":{"__ref":"Forum:board:testcomplete-questions"},"parent":{"__ref":"AcceptedSolutionMessage:message:138208"},"conversation":{"__ref":"Conversation:conversation:137854"},"subject":"Re: How to fetch the data from a Grid/dataset/table?","moderationData":{"__ref":"ModerationData:moderation_data:138210"},"body":"Hi,
\n\n
You should call the get_value() routine within Log.Message():
\n\n
Log.Message(get_value(\"Raj\"))\n
It works for me.
","body@stripHtml({\"removeProcessingText\":true,\"removeSpoilerMarkup\":true,\"removeTocMarkup\":true,\"truncateLength\":200})@stringLength":"138","postTime":"2017-03-17T02:03:25.983-07:00","lastPublishTime":"2017-03-17T02:03:57.976-07:00","images":{"__typename":"AssociatedImageConnection","edges":[],"totalCount":0,"pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null}},"attachments":{"__typename":"AttachmentConnection","pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null},"edges":[]},"solution":true,"metrics":{"__typename":"MessageMetrics","views":4964},"placeholder":false,"originalMessageForPlaceholder":null,"videos":{"__typename":"VideoConnection","edges":[],"totalCount":0,"pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null}},"isEscalated":null,"entityType":"FORUM_REPLY","eventPath":"category:TestComplete_forum/community:nwkab66374board:testcomplete-questions/message:137854/message:138210","customFields":[],"readOnly":false,"editFrozen":false,"body@stringLength":"181","rawBody":"Hi,
\n\n
You should call the get_value() routine within Log.Message():
\n\n
Log.Message(get_value(\"Raj\"))\n
It works for me.
","kudosSumWeight":0,"repliesCount":12,"timeToRead":1,"currentRevision":{"__ref":"Revision:revision:138210_2"},"latestVersion":null,"visibilityScope":"PUBLIC","messagePolicies":{"__typename":"MessagePolicies","canModerateSpamMessage":{"__typename":"PolicyResult","failureReason":{"__typename":"FailureReason","message":"error.lithium.policies.feature.moderation_spam.action.moderate_entity.allowed.accessDenied","key":"error.lithium.policies.feature.moderation_spam.action.moderate_entity.allowed.accessDenied","args":[]}}}},"ForumReplyMessage:message:138217":{"__typename":"ForumReplyMessage","uid":138217,"id":"message:138217","revisionNum":1,"author":{"__ref":"User:user:73979"},"readOnly":false},"ModerationData:moderation_data:138218":{"__typename":"ModerationData","id":"moderation_data:138218","status":"APPROVED","rejectReason":null,"isReportedAbuse":false,"rejectUser":null,"rejectTime":null,"rejectActorType":null},"AcceptedSolutionMessage:message:138218":{"__typename":"AcceptedSolutionMessage","author":{"__ref":"User:user:66982"},"id":"message:138218","revisionNum":2,"uid":138218,"depth":8,"hasGivenKudo":false,"subscribed":false,"board":{"__ref":"Forum:board:testcomplete-questions"},"parent":{"__ref":"ForumReplyMessage:message:138217"},"conversation":{"__ref":"Conversation:conversation:137854"},"subject":"Re: How to fetch the data from a Grid/dataset/table?","moderationData":{"__ref":"ModerationData:moderation_data:138218"},"body":"In your case get_value() is a class method. You should use a keyword self as a first argument, while defining your function:
\n\n
class Excel:\n \n def get_value(self, RowValue, ColumnName, name):\n ...\n
\n
\n
P.S. You do not need these delays : Delay(1000)
","body@stripHtml({\"removeProcessingText\":true,\"removeSpoilerMarkup\":true,\"removeTocMarkup\":true,\"truncateLength\":200})@stringLength":"218","postTime":"2017-03-17T03:28:09.891-07:00","lastPublishTime":"2017-03-17T03:31:36.311-07:00","images":{"__typename":"AssociatedImageConnection","edges":[],"totalCount":0,"pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null}},"attachments":{"__typename":"AttachmentConnection","pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null},"edges":[]},"solution":true,"metrics":{"__typename":"MessageMetrics","views":4943},"placeholder":false,"originalMessageForPlaceholder":null,"videos":{"__typename":"VideoConnection","edges":[],"totalCount":0,"pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null}},"isEscalated":null,"entityType":"FORUM_REPLY","eventPath":"category:TestComplete_forum/community:nwkab66374board:testcomplete-questions/message:137854/message:138218","customFields":[],"readOnly":false,"editFrozen":false,"body@stringLength":"419","rawBody":"In your case get_value() is a class method. You should use a keyword self as a first argument, while defining your function:
\n\n
class Excel:\n \n def get_value(self, RowValue, ColumnName, name):\n ...\n
\n
\n
P.S. You do not need these delays : Delay(1000)
","kudosSumWeight":1,"repliesCount":9,"timeToRead":1,"currentRevision":{"__ref":"Revision:revision:138218_2"},"latestVersion":null,"visibilityScope":"PUBLIC","messagePolicies":{"__typename":"MessagePolicies","canModerateSpamMessage":{"__typename":"PolicyResult","failureReason":{"__typename":"FailureReason","message":"error.lithium.policies.feature.moderation_spam.action.moderate_entity.allowed.accessDenied","key":"error.lithium.policies.feature.moderation_spam.action.moderate_entity.allowed.accessDenied","args":[]}}}},"ForumReplyMessage:message:138225":{"__typename":"ForumReplyMessage","uid":138225,"id":"message:138225","revisionNum":1,"author":{"__ref":"User:user:73498"},"readOnly":false},"ModerationData:moderation_data:138226":{"__typename":"ModerationData","id":"moderation_data:138226","status":"APPROVED","rejectReason":null,"isReportedAbuse":false,"rejectUser":null,"rejectTime":null,"rejectActorType":null},"AcceptedSolutionMessage:message:138226":{"__typename":"AcceptedSolutionMessage","author":{"__ref":"User:user:66982"},"id":"message:138226","revisionNum":1,"uid":138226,"depth":12,"hasGivenKudo":false,"subscribed":false,"board":{"__ref":"Forum:board:testcomplete-questions"},"parent":{"__ref":"ForumReplyMessage:message:138225"},"conversation":{"__ref":"Conversation:conversation:137854"},"subject":"Re: How to fetch the data from a Grid/dataset/table?","moderationData":{"__ref":"ModerationData:moderation_data:138226"},"body":"At first you need to import your class:
\n\n
from Script1 import Excel\n\nclass Common_Functions(Excel):\n ...","body@stripHtml({\"removeProcessingText\":true,\"removeSpoilerMarkup\":true,\"removeTocMarkup\":true,\"truncateLength\":200})@stringLength":"118","postTime":"2017-03-17T05:27:01.906-07:00","lastPublishTime":"2017-03-17T05:27:01.906-07:00","images":{"__typename":"AssociatedImageConnection","edges":[],"totalCount":0,"pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null}},"attachments":{"__typename":"AttachmentConnection","pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null},"edges":[]},"solution":true,"metrics":{"__typename":"MessageMetrics","views":3565},"placeholder":false,"originalMessageForPlaceholder":null,"videos":{"__typename":"VideoConnection","edges":[],"totalCount":0,"pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null}},"isEscalated":null,"entityType":"FORUM_REPLY","eventPath":"category:TestComplete_forum/community:nwkab66374board:testcomplete-questions/message:137854/message:138226","customFields":[],"readOnly":false,"editFrozen":false,"body@stringLength":"188","rawBody":"
At first you need to import your class:
\n\n
from Script1 import Excel\n\nclass Common_Functions(Excel):\n ...","kudosSumWeight":2,"repliesCount":5,"timeToRead":1,"currentRevision":{"__ref":"Revision:revision:138226_1"},"latestVersion":null,"visibilityScope":"PUBLIC","messagePolicies":{"__typename":"MessagePolicies","canModerateSpamMessage":{"__typename":"PolicyResult","failureReason":{"__typename":"FailureReason","message":"error.lithium.policies.feature.moderation_spam.action.moderate_entity.allowed.accessDenied","key":"error.lithium.policies.feature.moderation_spam.action.moderate_entity.allowed.accessDenied","args":[]}}}},"CachedAsset:text:en_US-shared/client/components/users/UserAvatar-1741125846000":{"__typename":"CachedAsset","id":"text:en_US-shared/client/components/users/UserAvatar-1741125846000","value":{"altText":"{login}'s avatar","altTextGeneric":"User's avatar"},"localOverride":false},"CachedAsset:text:en_US-shared/client/components/ranks/UserRankLabel-1741125846000":{"__typename":"CachedAsset","id":"text:en_US-shared/client/components/ranks/UserRankLabel-1741125846000","value":{"altTitle":"Icon for {rankName} rank"},"localOverride":false},"CachedAsset:text:en_US-components/attachments/AttachmentView/AttachmentViewChip-1741125846000":{"__typename":"CachedAsset","id":"text:en_US-components/attachments/AttachmentView/AttachmentViewChip-1741125846000","value":{"errorTitle":"Failed!","previewFile":"Preview File","downloadFile":"Download File {name}","removeFile":"Remove File {name}","errorBadExtension":"This file does not have a valid extension. \"{extensions}\" are the valid extensions.","errorFileEmpty":"This file is empty or does not exist.","errorTooLarge":"The maximum file size is: {maxFileSize}.","errorTooMany":"Too many attachments. The maximum number of attachments per message is: {maxAttachmentCount, number, integer}.","errorDuplicate":"This file is already attached."},"localOverride":false},"Revision:revision:138208_1":{"__typename":"Revision","id":"revision:138208_1","lastEditTime":"2017-03-17T01:43:03.806-07:00"},"Revision:revision:138210_2":{"__typename":"Revision","id":"revision:138210_2","lastEditTime":"2017-03-17T02:03:57.976-07:00"},"Revision:revision:138218_2":{"__typename":"Revision","id":"revision:138218_2","lastEditTime":"2017-03-17T03:31:36.311-07:00"},"Revision:revision:138226_1":{"__typename":"Revision","id":"revision:138226_1","lastEditTime":"2017-03-17T05:27:01.906-07:00"}}}},"page":"/forums/ForumMessagePage/ForumMessagePage","query":{"boardId":"testcomplete-questions","messageSubject":"how-to-fetch-the-data-from-a-griddatasettable","messageId":"137854"},"buildId":"q_bLpq2mflH0BeZigxpj6","runtimeConfig":{"buildInformationVisible":false,"logLevelApp":"info","logLevelMetrics":"info","openTelemetryClientEnabled":false,"openTelemetryConfigName":"smartbear","openTelemetryServiceVersion":"25.2.0","openTelemetryUniverse":"prod","openTelemetryCollector":"http://localhost:4318","openTelemetryRouteChangeAllowedTime":"5000","apolloDevToolsEnabled":false,"inboxMuteWipFeatureEnabled":false},"isFallback":false,"isExperimentalCompile":false,"dynamicIds":["./components/seo/QAPageSchema/QAPageSchema.tsx","./components/community/Navbar/NavbarWidget.tsx","./components/community/Breadcrumb/BreadcrumbWidget.tsx","./components/messages/TopicWithThreadedReplyListWidget/TopicWithThreadedReplyListWidget.tsx","./components/messages/MessageListForNodeByRecentActivityWidget/MessageListForNodeByRecentActivityWidget.tsx","./components/messages/RelatedContentWidget/RelatedContentWidget.tsx","./components/customComponent/CustomComponent/CustomComponent.tsx","./components/messages/MessageView/MessageViewStandard/MessageViewStandard.tsx","./components/messages/ThreadedReplyList/ThreadedReplyList.tsx","../shared/client/components/common/List/UnstyledList/UnstyledList.tsx","./components/messages/MessageView/MessageView.tsx","../shared/client/components/common/Pager/PagerLoadMore/PagerLoadMore.tsx","./components/messages/MessageView/MessageViewInline/MessageViewInline.tsx","./components/customComponent/CustomComponentContent/TemplateContent.tsx","../shared/client/components/common/List/UnwrappedList/UnwrappedList.tsx","./components/attachments/AttachmentView/AttachmentView.tsx","./components/attachments/AttachmentView/AttachmentViewChip/AttachmentViewChip.tsx"],"appGip":true,"scriptLoader":[]}