Solved

Retrieved CR Selected Data

Posted on 2007-04-01
4
189 Views
Last Modified: 2013-12-25
Hi,

I know that I asked this question before, and I was told that it's impossible to be done. But, here are some reply i have from Business Objects Support:

*******************************************************************************************************************************
Please note that it is not possible to directly edit the data which is in the Crystal Report by selecting the row and column at the runtime.


Please note if you click on a particular data which is in the Crystal Report, you can get the selected data by clicking on that data. This means that you can get the selected data which is in the report.


Please note you cannot directly modified the data, instead
1) You can select the data first.
2)  Get the selected data.
3) Use VB code to get the selected row from the database using "where condition".
4) Update the selected row using the VB code into the database.
5) Again assign the changed database to the report.


Please note that you can add database fields at runtime, you can change the database at runtime, you can modify the record selection, you can modify the formulas, groups, etc...


But, you cannot directly modify the data which is in the Report. You have to use VB code to update the data into the database.


Please note you can get the value of the selected data in the report when you click on the specific data.
****************************************************************************************************************************

From the reply, seems like it is possible for VB to retrieve the CR selected data. Any idea on how to handle this? Please...thanks.
0
Comment
Question by:cybeh
  • 2
4 Comments
 
LVL 8

Accepted Solution

by:
RickJ earned 500 total points
ID: 18835141
You can do it using the click event of the viewer.
I did it a while ago in Delphi, cant find the source right now...
But here is an example in VB
http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do;jsessionid=3E9F15060ADC97A6891DA9C58D241EA1?cmd=displayKC&docType=kc&externalId=c2006521&sliceId=&dialogID=360384&stateId=1%200%20356275

Show the value of the item clicked on.
0
 
LVL 22

Expert Comment

by:Ido Millet
ID: 18835376
Can you explain why you wish to do this (I've solved very similar use scenarios but the first step is to know what you are actually trying to achieve for the user).
0
 
LVL 1

Author Comment

by:cybeh
ID: 18836010
Simple reason, I would like my VB application will auto navigate to the selected records.
0
 
LVL 8

Expert Comment

by:RickJ
ID: 18839961
Thanks,
Glad to help.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now