Get value of field object when I double click on any column of report

Hi,
We are converting our projects from .NET 2003 to .Net 2008 and upgrading reports10 to crystal reports 2008 and changing our Active x report viewer control  to crystal report viewer.
We donu2019t use reports just to see and print the data. Our use is a bit more.
As we were using Active X Control (CRAXDDRT) to perform different operations
Following are some functions which are included in our requirements:
1-     We need the columns width to be flexible which we can changed in the code dynamically according to the users wish
2-     Setting text of some fields dynamically from .Net code
3-     Hide and show the columns dynamically from .Net code
       Upto here we are done using crystal report 2008 and .net 2008
       Now we are stuck with problem
4-     When we double click on fieldobject at runtime we are able to fetch the value of field object by using e.objectinfo.text.tostring, so far it is perfect
But we have different situation here and need a solution for this
I have two fields like Account ID and Account Description
I need the solution so that when user clicks either on Account ID or Account Description I should be able to fetch the Field object value of Account ID Column only so that i will be able to open different forms and reports based on that ID
As we were doing it before using Active X Control the code snippet is giving below
case "Field: Account. AccountID ", "Field: Account.Description"
GlobalCode = GiveCode(mYFields.Item(1).value) '------ Where 1 refer to Account ID, so in both cases either we click Account ID or Description Field at run time we are able to return the account ID field value.
so we need solution some thing like that please do let us know how we can do that
For Your reference we were using CrystalActivexReportViewerLib10.CRVFields obejct to fectch the report values
Thanx in Advance
Regards,
Arshad Hussain Bhatt

Hello,
I am getting value of that cell where I am clicking. But I need the value of other columns also in that particular row where I double clicked. For this I gave one example also that suppose I have a report where there are two columns. One is AccountID and other is AccountDescription. Now if I click on Account ID I get the value of AccountID and when I click on AccountDescription I get the value of AccountDescripiton This is oK n good but I want that If i double click on AccountDescription I should be able to get the value of AccountID also.Please tell me is there anyway to do so?
We did so when we were using CRAXDRT.Report Bellow is the code snippet for how I did it in that.
Dim MyField As CrystalActiveXReportViewerLIb10.CRVFields
Private Function GiveFieldIndex(ByVal As CrystalActiveXReportViewerLib10.CRVFields, ByVal FldName As String) As Integer
For i as integer = 1 To FldArry.Count
    If FldArry.Item(i).name = FldName Then
                GiveFieldIndex = i
      End If
End Function
Private Sub CRViewer1_DoubleClick(ByVal eventSender As System.Object, ByVal eventArgs As AxCrystalActiveXReportViewerLib10._ICRViewerEvents_DblClickedEvent) Handles CRViewer1.DblClicked
If MyField.Name = "Field: AdoJV.AccountID" Or MyField.Name = "Field: AdoJV.AccountDesc" Then
/Following line will give us AccountID in anycase either we click on AccountID or Account Desc or even you can add more column by adding Or Operator. We need something like this in Crystal Report 2008/
  Dim GlobeAddEditCode  as String = myFields.Item(GiveFieldIndex(myFields, "Field: AdoJV.AccountID")).Value
End If
End Sub
Regards,
Arshad Hussain Bhatt
Edited by: arshhb on Oct 31, 2009 6:44 AM
Edited by: arshhb on Oct 31, 2009 7:09 AM
Edited by: arshhb on Oct 31, 2009 7:13 AM

Similar Messages

  • HT1578 I've done all of this and it won't open. I double click on it, the default program to open it is diskimagemounter and nothing happens when I double click. Any ideas? (Mac OS X Lion 10.7.4)

    I've done all of this and it won't open. I double click on it, the default program to open it is diskimagemounter and nothing happens when I double click. Any ideas? (Mac OS X Lion 10.7.4)

    I would like to create a file that stores my documents and has a password on it so that if I lend my laptop to someone, they can't access my documents. I went into utilities and followed his instructions to do that. I created it on my desktop and its a .dmg extension

  • Please help me! I imported my pics to iphoto but I can't open them now. I can't see them on full Screen/edit them like before. All I get is a exclamation mark when I double click on them. I don't have copies, can someone please help me?

    I imported all my pics to Iphoto and I can't open/edit them now. When I double click on them, I only get an exclamation mark. Please help me I don't have copies. I tried burning them to a cd but it didn't work. Can someone please help me?

    The ! turns up when iPhoto loses the connection between the thumbnail in the iPhoto Window and the file it represents.
    What version of iPhoto? Assuming 09 or later...
    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Rebuild iPhoto Library Database from automatic backup.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. .
    Regards
    TD

  • PLEASE HELP!!!  I see all my thumbnails, but when I double-click on any image, it shows nothing, nada, zip!?!?

    This problem happens every few months and it is HIGHLY irritating!!!
    Then, when I update iPhoto or the Mac OS, it works again...
    Anyway, there are no updates for me to do, and yet the problem has returned.
    Any help would be MOST appreciated!!!!!!!!!!!  As I can't view or edit my images once I double-click on any of the thumbnails.
    THANK YOU for any solutions ~
    causpos

    There are several possible causes for the Black Screen issue
    1. Permissions in the Library: Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Include the option to check and repair permissions.
    2. Minor Database corruption: Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild.
    3. A Damaged Photo: Select one of the affected photos in the iPhoto Window and right click on it. From the resulting menu select 'Show File (or 'Show Original File' if that's available). (On iPhoto 11 this option is under the File -> Reveal in Finder.) Will the file open in Preview? If not then the file is damaged. Time to restore from your back up.
    4. A corrupted iPhoto Cache: Trash the com.apple.iPhoto folder from HD/Users/Your Name/Library/ Caches...
    5. A corrupted preference file: Trash the com.apple.iPhoto.plist file from the HD/Users/ Your Name / library / preferences folder. (Remember you'll need to reset your User options afterwards. These include minor settings like the window colour and so on. Note: If you've moved your library you'll need to point iPhoto at it again.)
    If none of these help:
    As a Test:
    Hold down the option (or alt) key key and launch iPhoto. From the resulting menu select 'Create Library'
    Import a few pics into this new, blank library. Is the Problem repeated there?

  • I cannot get firefox to boot up when I double click on the icon

    When I click on the "globe" to start Firefox Mozilla, my computer will not go to the internet. It won't do anything. The only way I can get online is through Windows Internet Ex0lorer now. I have been using Mozilla Firefox for many years and this has just happened in the last month. I have not gotten a new computer. The only thing that is new is new phones, but I have a cable modem and I don't do dial-up. I did download and add Webroot Spy Sweeper recently.

    Suggestions:
    * Try launching a profile manager as described at [[Managing profiles]].
    * Disable any active anti-viruses and firewalls and try again.
    * Try installing and launching another version of Firefox: '''[http://www.mozilla.com/en-US/firefox/all-beta.html beta]''' or '''[http://www.firefox.com/all-older.html 3.5.x]'''. (This will preserve all your bookmarks and user settings.)

  • Ai and eps will not open in Ai when you double click the file icon or drag onto to app icon

    I get the following error messages when I double click the files icon or drag the file to the Ai app icon in the dock. The only way to open the files is via File > Open with in the app.
    Photoshop and InDesign files open fine, it's just Illustrator.
    The document “xyz.ai” could not be opened. Illustrator cannot open files in the “Adobe Illustrator Document” format.
    The document “xyz.eps” could not be opened. Illustrator cannot open files in the “EPS File” format.
    Running CS5.5 on Mavericks then Yosemite.

    th1nk,
    I believe the right order/way is to update the OS, then reinstall the applications. Was that how you did it?

  • Now able to go Managed system in BPM when i  Double Click on counter field

    Hi all
    Step:
    call DSWP
    u2022 choose your solution
    u2022 choose Operations Setup -> Business Process Monitoring
    u2022 choose u2018Setup Business Process Monitoringu2019
    Local RFC Destination for Data Collection -statu is green
    u2022u2018Load Monitors SIDu2019- Working fine
    u2022 Press the button
    u2022 go to the subcheck and press F4 help on Monitor Name
    u2022 choose u2018DV Cockpit: Table Analysisu2019
    But in detail information tab-when i  Double Click on the counter field it will give me pop when i click Archiving object for F4 it is not take to Managed system.
    Please let me know how it will go?
    Regards,
    Swaroop

    I am having the exact same problem, have vista/hp media center also, sometimes if I double click it will open after all, the arrow keys do navigate however, any suggestions?

  • After upgrading to Maverick, when I double click on the attchment I get this message "...could not be saved, because you cannot change the contents of that fold

    After upgrading to Maverick, when I double click on the attachment I get this message "...could not be saved, because you cannot change the contents of that folder. Change the folder properties and try again, or try saving in a different location." It happens for all types of files.
    Any suggestions as how to fix this?
    I'm on a Mac OS X 10.9.3 with Thunderbird 24.5.0

    Thunderbird > preferences (I think on a mac) and under attachments set the folder

  • Re iphoto: when I double click on a thumbnail i get e grey screen with exclamation mark..can't access my photos to edit, order prints etc

    Was wondering if anyone can help...I am not very computer friendly but want to be able to edit my photos, use them as jpegs, order prints etc. When I double click on a thumbnail ( am presuming the thumbnails are the small photos ) I get a grey screen with an exclamation mark on it. I cannot drag the thumbnail onto the desk top it just pings back. This doesn't happen with all the thumbnails and has been a problem since we upgraded to snowleopard. I recently reinstalled photos from the memory card from my camera and they are alright. I am presuming that the old photos are stuck in there somewhere if only I knew the right buttons to press to get them out. Thanks, Jane Thomas

    Easiest: Restore from your back up.
    Otherwise:
    Try these in order - from best option on down...
    1. Do you have an up-to-date back up? If so, try copy the library6.iphoto file from the back up to the iPhoto Library allowing it to overwrite the damaged file.
    2. Download <a href="http://www.fatcatsoftware.com/iplm/"><b><u>iPhoto Library Manager</b></u></a> and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.
    3. If neither of these work then you'll need to create and populate a new library.
    To create and populate a new *iPhoto 6* library:
    Note this will give you a working library with the same Rolls and pictures as before, however, you will lose your albums, keywords, modified versions, books, calendars etc.
    Move the iPhoto Library to the desktop
    Launch iPhoto. It will ask if you wish to create a new Library. Say Yes.
    Go into the iPhoto Library on your desktop and find the Originals folder. From the Originals folder drag the individual Roll Folders to the iPhoto Window and it will recreate them in the new library.
    When you're sure all is well you can delete the iPhoto Library on your desktop.
    In the future, in addition to your usual back up routine, you might like to make a copy of the library6.iPhoto file whenever you have made changes to the library as protection against database corruption.

  • When browsing a new library that I created, the browser shows dotted lines around grey rectangles, no images. When I double click on a rectangle the image appears. How do I get images to appear in the browser rectangles?

    When browsing a new library that I created and exported onto an external hard drive, the browser shows dotted lines around grey rectangles, no images. When I double click on a rectangle, the image appears, but all the other rectangles remain empty - no image. How do I get images to appear in the browser rectangles? I am viewing this on a second computer (an older intel duo iMac), not the one I created the library on (a MacBook Pro). Both computers have Aperture 3.2.4 installed. When I return the external to the MacBook, all images appear in browser rectangles. What's happening on the iMac?

    You may have a problem with the permissions on your external volume. Probably you are not the owner of your library on the second mac.
    If you have not already done so, set the "Ignore Ownership on this Volume" flag on your external volume. To do this, select the volume in the Finder and use the Finder command "File > Get Info" (or ⌘I).
    In the "Get Info" panel disclose the "Sharing & Permissions" brick, open the padlock, and enable the "Ignore Ownership on this Volume" flag. You will have to authentificate as administrator to do this.
    Then run the "Aperture Library First Aid Tools" on this library and repair the permissions. To launch the "First Aid Tools" hold down the ⌥⌘-key combination while you double click your Aperture Library. Select "Repair Permissions" and run the repair; then repeat with "Repair Database". Do this on the omputer where you created the library and where you can see the thumbnails.
    Then check, if you now are able to read the library properly on your iMac.
    Regards
    Léonie

  • Where has my airport utility window gone ? when I double click on the icon all I get is an image of a globe and a base station with no options to make changes in my airport extreme.

    Where has my airport utility window gone? When I double click on the airport utility icon all I get is a picture of a globe and a base station with no further  options available to modify my airport extreme. 

    Sorry, you lost me on that last post.
    Let's start over again.
    Open AirPort Utility on your Mac
    Are you asked for a password at this point?  If yes, enter the base station or device password that you used when you originally set up the AirPort router. Depending when you did this originally, you might have been given an option to use the same password as the wireless network. If you were not, then you have a separate password for the base station.
    You need that password to be able to access the settings for the AirPort router in AirPort Utility.
    If you see a window listing basic information, click Edit in the upper right corner of the window.
    If you are asked for a password, you must enter the device password or base station password that you established when you first set up the AirPort router as explained above.
    If you forgot the password, a Soft Reset will allow you to go in and reset the base station password.  Might be a good idea to write down that password.
    If you are still stuck, then the only option that you have at this point is to perform a Hard Reset to return the settings to factory defaults and then set up the AirPort router again.
    If you prefer, you can also do a Factory Default Reset. It's the same as a Hard Reset except for the timing of holding in the reset button.

  • When I double click on events the pics does not open. I have to go to edit to get the pic up on the screen. I can not enlarge the photo either. I have tried to rebulid the libary

    I have iPhoto 11.When I double click on an event the pics do not spread out. I just get a yellow frame around the event. This is when I double click with left finger. With right finger option is slideshow. I can not enlage a pic with double click either. I have rebuild the libary but no difference . Can anyone help me please ?

    Sounds like a trackpad issue. Try changing the trackpad's settings.  Post in the appropriate Mac model forum.  If you have a mouse available try it to see if you can get iPhoto to do what you want.  This can narrow down where the problem is.
    OT

  • When i double click to enlarge i get a gray "!" symbol

    When i double click to enlarge a thumbnail i get a gray "!" symbol, this only seems to happen with certain photos, particularly the ones that are film scanned to a digital format. Why does this happen and how can i view them?

    andrew
    welcome to the apple discussions.
    The ! or ? turns up when iPhoto loses the connection between the thumbnail in the iPhoto Window and the file it represents. The most common cause of this is User Activity in the iPhoto Library Folder. Have you altered, moved or renamed anything in the iPhoto Library Folder?
    If you haven't, then try rebuilding the database. Hold down the apple and option (or alt) keys and launch iPhoto. Use the resulting dialogue to rebuild.
    Regards
    TD

  • Basic List:- Need to get data when user double click on report output

    Hi,
    My requirement is to display asset details as a report and when user double clicks on the asset details, transaction AS03 need to be opened.
    The output layout is as follows:
    Company code    800                             Asset class 111
    Asset 1 ................
    Asset 2.................
    Asset 3.................
    Company code    900                             Asset class 111
    Asset 1 ................
    Asset 2.................
    Asset 3.................
    when user double click on Asset 1 of Company code 800, then transaction AS03 need to be triggerd. But when I use ATLine selection. I only get the Asset1....details in the sy-lisel. But I need Company code for triggering the AS03 transaction.
    Please let me know any way of getting company code along with the Asset 1 ......
    Regards
    Suresh Kumar

    Hi,
    Herewith i am sending the sample coding for the report.
    REPORT YMS_INTERTESTALV .
    TYPE-POOLS: slis.
    DATA: BEGIN OF itab1 OCCURS 0,
    vbeln TYPE vbeln,
    bstnk TYPE vbak-bstnk,
    erdat TYPE vbak-erdat,
    kunnr TYPE vbak-kunnr,
    END OF itab1.
    DATA: BEGIN OF itab2 OCCURS 0,
    vbeln TYPE vbeln,
    matnr TYPE vbap-matnr,
    netpr TYPE vbap-netpr,
    kwmeng TYPE vbap-kwmeng,
    END OF itab2.
    DATA: t_fieldcatalog1 TYPE slis_t_fieldcat_alv.
    DATA: t_fieldcatalog2 TYPE slis_t_fieldcat_alv.
    DATA: v_repid TYPE syrepid.
    v_repid = sy-repid.
    Get the fieldcatalog1
    PERFORM get_fieldcat1.
    Get the fieldcatalog2
    PERFORM get_fieldcat2.
    SELECT vbeln bstnk erdat kunnr UP TO 10 ROWS
    INTO TABLE itab1
    FROM vbak.
    IF NOT itab1[] IS INITIAL.
      SELECT vbeln matnr netpr kwmeng
      INTO TABLE itab2
      FROM vbap
      FOR ALL ENTRIES IN itab1
      WHERE vbeln = itab1-vbeln.
    ENDIF.
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
         EXPORTING
              i_callback_program      = v_repid
              i_callback_user_command = 'DISPLAY_DETAIL'
              it_fieldcat             = t_fieldcatalog1
         TABLES
              t_outtab                = itab1.
    FORM display_detail *
    --> UCOMM *
    --> SELFIELD *
    FORM display_detail USING ucomm LIKE sy-ucomm
    selfield TYPE slis_selfield.
      DATA: itab2_temp LIKE itab2 OCCURS 0 WITH HEADER LINE.
      IF ucomm = '&IC1'.
        READ TABLE itab1 INDEX selfield-tabindex.
        IF sy-subrc = 0.
          LOOP AT itab2 WHERE vbeln = itab1-vbeln.
            MOVE itab2 TO itab2_temp.
            APPEND itab2_temp.
          ENDLOOP.
          CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
               EXPORTING
                    i_callback_program = v_repid
                    it_fieldcat        = t_fieldcatalog2
               TABLES
                    t_outtab           = itab2_temp.
        ENDIF.
      ENDIF.
    ENDFORM.
    FORM GET_FIELDCAT1 *
    FORM get_fieldcat1.
      DATA: s_fieldcatalog TYPE slis_fieldcat_alv.
      s_fieldcatalog-col_pos = '1'.
      s_fieldcatalog-fieldname = 'VBELN'.
      s_fieldcatalog-tabname = 'ITAB1'.
      s_fieldcatalog-rollname = 'VBELN'.
      s_fieldcatalog-hotspot = 'X'.
      APPEND s_fieldcatalog TO t_fieldcatalog1.
      CLEAR s_fieldcatalog.
      s_fieldcatalog-col_pos = '2'.
      s_fieldcatalog-fieldname = 'BSTNK'.
      s_fieldcatalog-tabname = 'ITAB1'.
      s_fieldcatalog-rollname = 'BSTNK'.
      APPEND s_fieldcatalog TO t_fieldcatalog1.
      CLEAR s_fieldcatalog.
      s_fieldcatalog-col_pos = '3'.
      s_fieldcatalog-fieldname = 'ERDAT'.
      s_fieldcatalog-tabname = 'ITAB1'.
      s_fieldcatalog-rollname = 'ERDAT'.
      APPEND s_fieldcatalog TO t_fieldcatalog1.
      CLEAR s_fieldcatalog.
      s_fieldcatalog-col_pos = '4'.
      s_fieldcatalog-fieldname = 'KUNNR'.
      s_fieldcatalog-tabname = 'ITAB1'.
      s_fieldcatalog-rollname = 'KUNNR'.
      APPEND s_fieldcatalog TO t_fieldcatalog1.
      CLEAR s_fieldcatalog.
    ENDFORM.
    FORM GET_FIELDCAT2 *
    FORM get_fieldcat2.
      DATA: s_fieldcatalog TYPE slis_fieldcat_alv.
      s_fieldcatalog-col_pos = '1'.
      s_fieldcatalog-fieldname = 'VBELN'.
      s_fieldcatalog-tabname = 'ITAB2'.
      s_fieldcatalog-rollname = 'VBELN'.
      APPEND s_fieldcatalog TO t_fieldcatalog2.
      CLEAR s_fieldcatalog.
      s_fieldcatalog-col_pos = '2'.
      s_fieldcatalog-fieldname = 'MATNR'.
      s_fieldcatalog-tabname = 'ITAB2'.
      s_fieldcatalog-rollname = 'MATNR'.
      APPEND s_fieldcatalog TO t_fieldcatalog2.
      CLEAR s_fieldcatalog.
      s_fieldcatalog-col_pos = '3'.
      s_fieldcatalog-fieldname = 'NETPR'.
      s_fieldcatalog-tabname = 'ITAB2'.
      s_fieldcatalog-rollname = 'NETPR'.
      APPEND s_fieldcatalog TO t_fieldcatalog2.
      CLEAR s_fieldcatalog.
      s_fieldcatalog-col_pos = '4'.
      s_fieldcatalog-fieldname = 'KWMENG'.
      s_fieldcatalog-tabname = 'ITAB2'.
      s_fieldcatalog-rollname = 'KWMENG'.
      APPEND s_fieldcatalog TO t_fieldcatalog2.
      CLEAR s_fieldcatalog.
    ENDFORM.
    Thanks,
    Shankar

  • I have a 4s with ios7, the Flixter app appears when I double click the home button but has disappeared from the main screen page. How do I get it back?

    The app appears when I double click the homw button but has disappeared from the main screen. How do I get it back on the screen so that I don't have to double click every time?

    The app appears when I double click the homw button but has disappeared from the main screen. How do I get it back on the screen so that I don't have to double click every time?

Maybe you are looking for