Change Connection TYPE in XI (NOT using CR Viewer)

Post Author: bowlegtroy
CA Forum: Data Connectivity and SQL
Hi,
I'm using CR XI in a VB6 application to run .rpt files (they are also developed in XI) programmatically.  All of these reports are currently created using the Native Oracle Connection (HOW: Open Crystal XI, New Report, Create new connection, Oracle Server, enter data in Service name as found in TNS Names, uID, PWD).
At runtime, I'm changing the name of the server, UID and Pwd.  All of this works fine.
However, in order to make my program more flexible, I need to change the connection to be OLEDB instead of the native Oracle connection. 
So, my question is:
"How do I change the connection TYPE at runtime to be OLEDB?"
Or, if that cannot be done, then:
"How do I READ the connection type, and take the appropriate action?"
I have tried following the help files examples (for Crystal 9, clears throat loudly) that you find in the documentation online at BusinessObjects.com, but have not been successful to date.  Docs tried:
http://resources.businessobjects.com/support/communitycs/TechnicalPapers/cr_rdc9_connectionproperties.pdf
http://resources.businessobjects.com/support/communitycs/TechnicalPapers/cr_rdc_dbconnectivity.pdf
http://resources.businessobjects.com/support/communitycs/TechnicalPapers/logon_ocx.pdf
http://resources.businessobjects.com/support/communitycs/TechnicalPapers/cr_xi_connectivity_migration.pdf
Here is my existing VB6 code to connect and change the connections for each table.  Can someone help me change this to an OLEDB connection at RUNTIME?
Public DCMSapplication As CRAXDRT.Application 'Reference Required: "Crystal Reports ActiveX Designer Run Time Library [Version]"
'Recursive function that will call for sub reports found.Public Function resetCrystalSubReportConn(DCMSreport As CRAXDRT.Report, _  strServer, _  strUserID, _  strPassword, _  strReportNameOnly, _  ByVal lngReportID As Long, _  strPath As String) As Boolean      'Dim DCMSreport As Object 'CRAXDRT.Report  'Dim crParamDef As Object 'CRAXDRT.ParameterFieldDefinition  Dim crSecs As CRAXDRT.Sections  Dim crSec As CRAXDRT.Section  Dim crObjs As CRAXDRT.ReportObjects  Dim crSubRep As CRAXDRT.Report  'Dim crConInfo As Object 'CRAXDRT.ConnectionProperties    Dim strMessage As String  Dim i As Integer  Dim j As Integer
  On Error GoTo Connection_EH
'''''''''''''''''''''''''START: NEED TO REPLACE WITH DSN-LESS OR OLEDB CONNECTION'''''''''''''''''''''''''    ' Logon to the report tables  strMessage = "The connection to Oracle for "  RaiseEvent Status("Resetting the connection for each table in report " & strPath, 0, "", 0)  With DCMSreport.Database    For i = 1 To .Tables.Count      'CAUTION!  Designed for Oracle connections ONLY!      .Tables(i).ConnectionProperties.Item("Server") = strServer      .Tables(i).ConnectionProperties("User ID") = strUserID      .Tables(i).ConnectionProperties("Password") = strPassword    Next i  End With
'''''''''''''''''''''''''END: NEED TO REPLACE WITH DSN-LESS OR OLEDB CONNECTION'''''''''''''''''''''''''    ' Logon to the sub-reports tables  Set crSecs = DCMSreport.Sections  For i = 1 To crSecs.Count                     ' Loop through each section of the report    Set crSec = crSecs.Item(i)    Set crObjs = crSec.ReportObjects            ' The objects within the section    For j = 1 To crObjs.Count                   ' Look for a subreport in the section      If crObjs.Item(j).Kind = 5 Then 'crSubreportObject Then        ' Subreport found!        strMessage = "Resetting the connection for each table in subreport " & strPath        RaiseEvent Status(strMessage, 0, "", 0)        Set crSubRep = DCMSreport.OpenSubreport(crObjs.Item(j).SubreportName)                'Call function recursively        If FailureHasOccurred = False Then          resetCrystalSubReportConn crSubRep, strServer, strUserID, strPassword, strReportNameOnly, lngReportID, strPath        End If      End If    Next j  Next i  ExitTheProcedure:  resetCrystalSubReportConn = FailureHasOccurred  Exit Function
Connection_EH:  Call LogAnEvent(mADOConnJet.Connection, strMessage & strReportNameOnly & " failed.", "resetCrystalSubReportConn", Err.Number, Err.Description, lngReportID)  FailureHasOccurred = True  Resume ExitTheProcedure  End Function
Thanks!

The router is only able to show the 2.4Ghz and 5Ghz device statuses if they happen to be connected to the Greenwave or ActionTec router. Anything that is not directly associated with the Wi-Fi radio on the FiOS router will generally show up as a wired device, just because the router doesn't know if it sits behind a switch, behind a wireless bridge, or if it's actually a wireless device. All it knows is that the device ARPs and asked for an IP through DHCP.
For monitoring what devices are on what radio for the Apple AirPort, try Apple's AirPort Utility for OS X and Windows. The Network Map should allow you to select devices and view informtion on each device.

Similar Messages

  • Adobe FLME Error Message "Please check if video devices are connected properly and are not used by any other application."

    Hello, I'm trying to use my MAC Book Pro with Adobe FMLE. Once I select either my internal or external camera and microphone, in the live encoder I get this error message. "Please check if video devices are connected properly and are not used by any other application." The Facetime HD camera works in Photo Booth. Can someone assist me in what to do please, Thanks in advance!

    Hi all ,
    We found the solution for this issue .
    We have installed the crypto library in global executable directory and any way it will replicate those binaries to individual application servers.
    But the parameters are still looking for global executable directory for loading crypto library during time.
    So all application servers are trying to load crypto library files from global "exe" instead of local directory, which was clustered .Sometimes during  heavy network load it may cause some delays to load the libraries to individual application servers and in turn is causing the license key issues.
    Note 982056 - The license key library has not been initialized yet..
    SAP Recommend option for all SSF parameters should be instance profile parameters not in default parameters..This was mentioned in below note:
    Note 662340 - SSF Encryption Using the SAPCryptolib --- .
    But in our Environment SSF and SEC parameter were set in DEFAULT profile instead Instance profile.
    Recommendations:
    o     ssf/ssfapi_lib  = <Path and file name of SAPCRYPTOLIB>
    o     sec/libsapsecu  = <Path and file name of SAPCRYPTOLIB>
    This was mentioned in the below SAP HELP.
    http://help.sap.com/saphelp_nw04/helpdata/en/3d/bf463c6796e61ce10000000a114084/frameset.htm.

  • Ipad2 does not change orientation. I have not used the switch for lock rotation it is used for mute

    Ipad2 does not change orientation. I have not used the switch for lock rotation it is used for mute

    Is there a lock symbol at the top of the screen next to the battery indicator ? If so, and as you've got the switch set to notification mute, then have you checked the taskbar (the function that the switch isn't set to is controlled via the taskbar instead) : double-click the home button, slide the taskbar to the right, and it's the icon far left.
    If you havn't got the lock symbol at the top then try a reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.

  • I m facing problem regarding 655 movements type.i m not activate qm view fo

    Dear sir
              I m facing problem regarding 655 movements type.i m not activate qm view for that material . still i m getting lot . plz  help me

    Go to VOV6.Remove movement type 655 for schedule line category DN and assign movement type 651.(If you are using other than DN for returns, assign there.DN is standard)
    Vishal

  • Why am I being charged for data when connected to wifi AND not using my phone?!

    WHY am I being charged for data that I'm not using? At times when I'm asleep AND my phone is connected to wifi?!  This happens at really specific, alternating times like 9:54 pm every day, or 12:01 am, 6:01 am and then 12:01pm and 6:01pm. When I called I was told  "maybe your wifi at home is disconnecting" or "maybe your phone is connecting to atnt or sprint". It's not possible that my phone is disconnecting from wifi every six hours on the dot and, at that exact time, I'm always using data. I find it hard to believe that I live in a HUGE city and my phone magically connects to other networks and I NEVER notice this. Verizon is full of LIARS (and maybe’s) and I'm not convinced that these data charges are a coincidence. I was told to turn off my cellular data to see if the problem resolves itself. Why should I alter my daily life when Verizon is clearly the one with the issue? I hope there's a class action lawsuit because Verizon is trying to get over on everyone! I need answers!

        Hello NotHappy101,
    I think it's quite odd that your data usage is at very specific times. We can certainly take a closer look. Please reply to my Direct Message, so we can get some additional details.
    Thanks,
    MichelleH_VZW
    Follow us on Twitter @VZWSupport

  • BTN200 loses connection to laptop if not used for a period of time.

    Is there a way to turn off or increase the inactivity time out on this headset... seems it is too short of time... i keep having to power on the devices... it is fully charged as i received the item on Friday, charged it on Sunday and using it today for the first time so battery cannot be dead... please help it is annoying to keep having to hit power button to connect.
    Actually, working more with the device what happens is if i move away from my laptop, the connection gets lost and then the power goes off after a while in which case i have to hit the power button for few seconds to reconnect the headphones... so my question is there a way to increase the power off timing?
    well i ran some timing and the headphones will lose connection after 7mn if not within range of laptop, then shut down after 5mn... but if headphones is always near the laptop it will never lose connection so it's all good.
    Device is working great i just needed to learn how it is working.... Great device!!!!! love it!!!

    Settings/General/Reset/Erase all Contents and Settings
    Then your brother can set it up as a new iPad.
    If you do this, you will lose non-iTunes-purchased music, photos, documents, saved progression of games, saved settings on other apps, etc. unless they are backed up somewhere else such as on a computer or through iCloud. After all, you are erasing all content and settings. It won't affect your iCloud stuff such as apps and music you bought through iTunes; you can re-download all that through iTunes. You can also redownload iCloud mail from the iCloud server.

  • Procurement Type X , and not using mix product costing.

    Hi,
    Does anyone know if I set the procurement type X in the material master and not planning to do mix costing, is it possible to configure product costing to either internal or external cost estimate with procurement type X?

    Hi Alice,
    You can configure product costing even though you have not maintained costing view in the material master. I guess this is what you want to know.
    Please confirm.
    Regards,
    Satyajit

  • Index not used on view when table stats exist

    Hello,
    I would be grateful if someone comes with ideas on the following problem I'm currently facing.
    I have a table with XMLTYPE data type column:
    sql-->desc ACFBNK_STMT008
    RECID     NOT NULL     VARCHAR2(200)
    XMLRECORD XMLTYPE
    I have a view V_ACFBNK_STMT008 on that table, in which the view columns are defined as extracted tags values from the XMLTYPE field, e.g. for the view field N_BOOKING_DATE:
    numcast(extractValue(xmlrecord,'/row/c25')) "N_BOOKING_DATE"
    (note: numcast is just a simple function that returns TO_NUMBER of its input argument)
    I have also a function-based index on this field of the table:
    CREATE INDEX train4.NIX_ACFBNK_STMT008_C25
    ON train4.ACFBNK_STMT008("TRAIN4"."NUMCAST"(extractValue(xmlrecord,'/row/c25')))
    And so, I'm executing on the view the following SQL statement:
    SELECT RECID FROM V_ACFBNK_STMT008 WHERE (N_BOOKING_DATE > TO_NUMBER('20070725'));
    Now, the problem comes: when statistics exist on the view base table (that is ACFBNK_STMT008) then the above statement is not using the index and is making a "table access full". When I delete the statistics for the table then the SQL runs fast with an "index range scan".
    Which is further strange - when I change the ">" operand with a "=" the SQL statement correctly captures the index regardless of whether or not statistics exist.
    I've tried to manually rewrite the SQL and include the "numcast" function in it:
    SELECT RECID FROM TRAIN4.V_ACFBNK_STMT008 WHERE ( N_BOOKING_DATE>train4.numcast(TO_NUMBER( '20010725' ) ));
    And in this way the index is used OK even with statistics existing!
    But regretfully I don't have a way to change the application and the SQL, so the only things I can change is the view and/or the index.
    Thank you in advance,
    Evgeni
    P.S.
    I've tried gathering statistics in both the following ways but still the problem persists:
    sql-->analyze table train4.ACFBNK_STMT008 compute statistics;
    sql-->exec dbms_stats.gather_table_stats(ownname=>'TRAIN4', tabname=>'ACFBNK_STMT008', CASCADE=>TRUE, partname=>NULL);

    Oh, and I forgot to mention: I cannot change the view definition as well (for example, to remove the "numcast"), since every now and then the application would recreate it automatically with the same code. :(

  • How to change the parameter 'Default Servers To Use For Viewing And Modification' using java api dynamically.

    Hi,
    I need to change the Crystal Reports setting 'Default Servers To Use For Viewing And Modification' to a particular server.this i need to do using java api.
    could you pls provide me the sample code for this.
    Regards
    Srinivas

    The IReport interface extends IViewingServerGroupInfo interface, that allows you to specify the server group. 
    The choice selection for that interface is as follows:  0 = first available, 1 = prefer the selected server group, and 2 =  only use the selected server group.
    The server group selection is by the SI_ID for that server group InfoObject.
    Sincerely,
    Ted Ueda - Developer Support

  • Vertical Scroll bar not using all view port space

    I'm developing an ADF application in 11g to be used on a PC and under the browser on an IPAD.  My top page layout has a panel group layout of scroll.  When the page renders in IE it does not consume all the available viewport.  The vertical scroll bar stops about an inch above the bottom of the page.  On the IPAD, when I have the device in portrait orentation, I only get about half the window area.  I need to have the page render in all the available space on the viewport, especially on the IPAD.  Can anyone tell me how I can get the page to render and take up all the available space in the viewport?   

    I did try that.  I was having some issues with trying to put everything I had on the page inside of one.  I think it actuall turned out to be something else.  I was messing around with things on the page fragment.  ADF was adding a scroll bar but not using the whole page to do so.  I took the scroll panel off the page fragment and off of any other page fragment including the actual JSF page.  When I set a large heigth for the page on my top panel group, which I had on the main page that contained the bonded task flow region, I got the browser to create the scroll bar for me for the whole page.  It fixed the problem on the PC and it also fixed the issue I had with the page rendering on the IPAD.  The IPAD now allowed the whole page to be scrolled by sliding your finger. 

  • How to Change stock type of SERIAL NUMBER using IQ02 ?

    Does anyone know how I can change the stock type from stock in transfer (stock type 04) to unrestricted stock (stock type 01), using IQ02?
    Quantity of material is updated while posting document with movement 313 but the stock type of Serial is still not updated.
    I will really appreciate a response.

    Hi,
    Stock in transit is not a stock type.
    Stock in transit is "Quantity of a material that has already been withdrawn from storage at the issuing plant on the basis of a stock transport order, but has not yet arrived at the plant to which it is being transferred (receiving plant)'.
    and you can do sto only from unrestricted stock.
    There are three types of stock which are provided by SAP -
    1) Unrestricted use stock;
    2) QI (Quality Inspection) stock; and
    3) Block stock
    and Special stocks which are all coming under above three types of stocks only.
    for your problem first you do GR, in MIGO screen you can select stock types.
    if your material assigned with serial number, when doing MIGO itself, you will be asked to enter the serial numbers(if it is manual assignment).
    Edited by: Prabhaharan SAP MM on Jul 19, 2011 10:03 AM

  • Can't change change connection when DB is not available

    Hi,
    I have to change the connection of my JSP/BC4J application before I create a WAR file. The "Business Components Project Editor" of the root Appmodule does not let my change the connection because the Production-DB of the selected connection is not available.
    I'm testing my application against a Test-DB in my local network, but the Production-DB stands in a separate network only reachable via SSH/SCP.
    How can I change the connection of my application for deployment on a production system (using Tomcat as web container).
    Please, don't tell my that I can manually edit the bc4j.xcfg file. There must be a better way using JDev904. ;-)
    Thanx in advance,
    Markus

    The JPX-level connection is a design-time only connection.
    The Configuration Editor is where you would change the runtime connection information.
    Or, you could also consider using JDBC Datasources where the connection information is picked up indirectly from the container at runtime.

  • Can connect over wlan, but not using ethernet cable between mac and extreme

    Hi, I have a brand new Airport Extreme base station. Wireless LAN works well and both my wife's and my Mac can connect to the internet. When I connect the ethernet cable to my macbook, it does not connect to Extreme. Is this a feature or a required change in the setups?
    br
    Vesa

    vesaw, Welcome to the discussion area!
    On your MacBook, open System Preferences-> Network preference pane and ensure that Ethernet is enabled.

  • Business Functions of type Validation/Constraint not used when defined in the Glossary

    Hi,
    the problem is the following: in the Glossary, we have some Business Rules defined. They are of type Validation or Constraint and shall be used to validate the data in the system. These Business Rules are used in Domains in a CDM model.
    From that CDM model we are generating a PDM model (for HANA, but it's not working for any of the databases available for selection). Now: I would expect, as this has been defined in the CDM, the Business Rules replicated in the PDM model and used as constraints.
    This is unfortunately working only for Business Functions, which are directly defined in the CDM model, not for those ones, defined in the Glossary and reused in the CDM model.
    Working case:
    - define Business Rule in CDM
    - define Domain in CDM and assign Business Rule
    - assign the domain to a attribute
    - generate PDM from the CDM model
    - the Business Rule is replicated in the PDM model, the check constraint for the table is generated correctly
    NOT working case:
    - define Business Rule in Glossary
    - define Domain in CDM and assign the Business Rule from the Glossary
    - assign the domain to a attribute
    - generate PDM from the CDM model
    - the Business Rule is NOT replicated in the PDM model, the check constraint for the table is MISSING
    Do you think it's a bug, or am I doing something wrong?
    P.S.
    We are on 16.5 SP05
    Thanks,
    Rafal

    Looks like a bug to me; I would expect the source of the rule to be irrelevant, assuming the PDM has access to the relevant metadata at the time of generation. Perhaps Glossary shortcuts don't have access to all the metadata?

  • Any way to change file size display to NOT use GB or MB notation?

    I'd like to see exact byte counts for file sizes from time to time in the windows listing files (without having to Get Info). I've searched for options to change how file sizes are displayed by finder but have come up completely empty. Any chance this choice has not been completely co-opted from me by Apple's omnipotent designers?

    Welcome to Discussions.
    I believe there are 3rd-party applications that do it, such as [WhatSize|http://www.id-design.com/software/whatsize] and perhaps also [Path Finder|http://www.cocoatech.com].
    /p

Maybe you are looking for

  • Importing files with same name but different extensions

    Hope I will be clear enough. Lets say that instead of sending a file from Lightroom to an external editor, I open it directly in Photoshop. When I'm done, I save the edited photo using the same name but in a different file format : IMG_1333.cr2 > IMG

  • How to use the dynamical or static variable for ESSBASE cube name?

    Hi Experts, When I import ESSBASE Cube into physical layer, the cube name from ESSBASE is created automatically, such as H_Sales. I want to use the the static or dynamical variable for replacing the external name. So I try to create the static variab

  • Podcasts Not Showing in Playlists

    Hi All, I recently upgraded to iOS 6 on my iPhone 3GS and iTunes 10.7.0.21.  I have my podcasts divided into two playlists (one for work and another for when I'm in the car) that I can easily select and shuffle.  Now after these updates, those playli

  • Any ideas about SUBMIT  ????please Help

    Hallo everybody, I try all the time to pass parameter to the report via SUBMIT and FUNCTION MODULE the report has AT SELECTION-SCREEN code which call the screen " AT SELECTION-SCREEN ON VALUE-REQUEST FOR param2 ......" I wrote additional to the code

  • Lightroom 5 Raw files

    I shoot raw and LR says it does not recognize the files