Is it possible to change Overridden Qualified Table Name in code?

Hi,
Environment: Crystal Reports XI R2, 2008, Sql Server 2005
I had about 1000 reports to change. Several changes are the standard, so i had created several tools that i use to make that change in all reports.
However i can't find a way to change Overridden Qualified Table Name and remove the Catalog and Owner information, so it seems that the only way is using CR editor and make these changes one by one... not a good idea!
Does anyone managed to do this???
Thanks,
Carlos Crespo

Hi,
<P>Thanks for your input.</P>
<P>I use CR in two ways:<BR>
a) to develop reports to use in our projects - In this case we don't have major issues with this, and we chance the location of the database in code at runtime;<BR>
b) to develop reports to use in ERP softwares from third parties - and here we are having some issues - not always but some times.<BR>
We know that they change the location of the DB in code also (no specific info however).<BR>
<P>An example:<P>
We change a report on my development PC, against a DB called TEST;<BR>
We send the report to the customer, who runs it on its system, trying to read data from a db XYZ;<BR>
If the customer also has a TEST db, in some reports the system reads some tables from XYZ, but others he gets the info from TEST db. In one example our customer has an invoice where all data was from the production DB, except the COUNTRY table that was read from a copy of the TEST db. After TEST was removed, the data was read from the production DB....<BR><BR>
And to get you an idea: we're talking about hundreds of customers - some of them have 600 SQL DBs in the same server (small Dbs, around 70/500 MB in size) - so we can only hope that the user doesn't create a DB with the same name we used to develop the report...<BR><BR>
And what i don't understand is WHY we can define Overridden Qualified Table Name  in same tables, and not in others.<BR><BR>
Example:<BR><BR>
One of the reports has 6 sub-reports. <BR>
I can define Overridden Qualified Table Name  in the main report (except for a View), and in 2 of the subreports - but not in the other 4...<BR>
The zero in front of the table name shows  a table where Overridden Qualified Table Name has been defined, and the original Catalog and Owner was removed - the 2 shows a table where Overridden Qualified Table Name has been defined, but the original catalog (PRITESTEDOC75) and owner (dbo) remains.<BR><BR>
I even tried to export the sub-reports, change this info in the sub-report, and then import it again (a suggestion from Business Object support), but it doesn't work...<BR><BR>
Main Report:<BR>
Artigo     0     <BR>     
CabecDoc     0     <BR>     
LinhasDoc     0     <BR>     
ModosExp     0          <BR>
Clientes     0          <BR>
CondPag     0          <BR>
DocumentosVenda     0     <BR>     
Moedas     0          <BR>
MoradasAlternativasClientes     0     <BR>     
OutrosTerceiros     0<BR>          
ArtigoIdioma     0          <BR>
Paises     0          <BR>
ArtigoLote     0     <BR>     
TDU_CC_INFODOCVND     0     <BR>     
Clientes_Fac     0     <BR>     
Paises_Fac     0          <BR>
V_Entidades     2     PRITESTEDOC75     dbo        (V_Entidades is a View, not a Table)<BR><BR>
Sub-Report 1:<BR>
GCP_VND_CalculaTotaisDocumento     2     PRITESTEDOC75     dbo (GCP_VND_CalculaTotaisDocumento is a SP)<BR><BR>
Sub-Report 2:<BR>
CnfTabLigCBL     2     PRITESTEDOC75     dbo<BR><BR>
Sub-Report 3:<BR>
LinhasNumSerie     2     PRITESTEDOC75     dbo<BR><BR>
Sub-Report 4:<BR>
ResumoRetencao     0          <BR>
Historico     0          <BR>
OutrosTerceiros     0          <BR>
EntidadesPublicas     0          <BR>
Clientes     0          <BR><BR>
Sub-Report 5:<BR>
1 ResumoRetencao     0     <BR>     
2 Historico     0          <BR>
3 OutrosTerceiros     0          <BR>
4 EntidadesPublicas     0     <BR>     
5 Clientes     0     <BR><BR>
Sub-Report 6:     <BR>
1 ResumoIva     2     PRITESTEDOC75     dbo<BR>
2 CabecDoc     2     PRITESTEDOC75     dbo<BR>
3 Iva     2     PRITESTEDOC75     dbo<BR><BR>
Best Regards,<BR><BR>
Carlos Crespo<BR>

Similar Messages

  • How can I change Overridden Qualified Table Name with a programm

    Hallo have the the Problem
    to change more then 500 Reports more than one time
    I want to change to change qualified Tabelname with a programm ( I wan't del the qualifier )
    manuel with the report designer I set the replace qualified Tablename and then verifiy Database is ok
    I want to do this with a program but the Qualifiers is write protected
    How can I change the Qualifier by programm.
    thanks for help

    Hello, Jörg;
    As I mentioned, you can remove the Qualifier in the report designer but we do not recommend it. It is not supported at runtime in an application. We expect a table location to be fully qualified or you may get incorrect data.
    There is a way to change the fully qualified location at runtime and get and set the qualifier. The following code gets what is saved in the report.
    'Definitions in Module.bas
    Public crxApplication As New CRAXDRT.Application
    Public External_Report As CRAXDRT.Report
    Public ReportFileName As String
    Public crxTable As CRAXDRT.DatabaseTable
    Private Sub Get_Qualifiers()
    'Get the fully qualified table location
    'Change it if necessary and set the new location "owner.dbo.tablename"
    'Verify the Database
    ' Assemble the qualified table name for each table.
    For Each crTable In External_Report.Database.Tables
        Dim strQualTableNamePart As Variant
        Dim strQualTableName As String
        strQualTableName = ""
        ' Obtain the table's qualifiers.
        Dim i As Integer
        For i = 1 To crTable.Qualifiers.Count
            If i > 1 Then
            strQualTableName = strQualTableName + "."
        End If
        strQualTableNamePart = crTable.Qualifiers.Item(i)
        strQualTableName = strQualTableName + strQualTableNamePart
        Next
        ' Obtain the table's name.
        If (strQualTableName <> "") Then
            strQualTableName = strQualTableName + "."
        End If
        strQualTableName = strQualTableName + crTable.Location
        ' Display the fully qualified table name.
        MsgBox "Fully qualified location " + strQualTableName
        crTable.Location = strQualTableName
    Next
    'Should be the equivalent of:
    'External_Report.Database.Tables(1).Location = "Xtreme1.dbo.Customer"
    'If the structure of the database has changed, verify the database
    'External_Report.Database.Verify
    End Sub
    Elaine

  • Catalog and owner remain after setting Overridden Qualified Table Name-2008

    Hi all - when using Crystal Reports 10, I could remove the hardcoded catalog and owner (database and owner/schema) for a table or view by setting the "Overridden Qualified Table Name" to be the same as the table or view listed in "Table Name".  (This is in the Set Datasource Location, properties of an individual table or view).
    When using Crystal Reports 2008, when I set the "Overridden Qualified Table Name", the Catalog and Owner remain.  This is causing a problem for the processes that we use to actually run our reports as the reports are trying to be run against the database listed in catalog.
    Is there some setting in Crystal Reports 2008 which is needed in order for these hardcoded database names to be removed as they were in Crystal 10?
    Thank you

    Hi Sharon, thank you for the reply.  I did not verify the database after making the change as this was not necessary in Crystal Reports version 10.  I just did that now and reopened the "Set Datasource Location" section and it appears to be the same in that the catalog and owner are still present.
    I found this thread - Delete catalog and owner info from tables on ODBC (RDO) report - which is the same question that I have, but it was never answered either.
    Any thoughts are appreciated.
    Thanks!

  • How to use full qualified table names in RPD

    Hi,
    We are implementing the BI Financial Analytics, we have a requirement to use diffrent user accounts for DAC , ETL and OBIEE
    DAC, ETL we are using user as XXOBI
    For OBIEE RPD we have to use user with read only access such as XXOBI_APP
    How can i make the changed to BI server / RPD to use full qualified names.
    I have tried to select the Full Qualified table name property in Oracle Datawarehouse connection pool setting.
    If i enable that all my sql query is showing tables as catalog.dbo.w_party_d ( my tables in physical layer showing under catalaog -> dbo -> all tables and joins)
    Any help in this is appreciated.
    Thanks
    Kris

    kmangamuri wrote:
    Hi,
    We are implementing the BI Financial Analytics, we have a requirement to use diffrent user accounts for DAC , ETL and OBIEE
    DAC, ETL we are using user as XXOBI
    For OBIEE RPD we have to use user with read only access such as XXOBI_APP
    How can i make the changed to BI server / RPD to use full qualified names.
    I have tried to select the Full Qualified table name property in Oracle Datawarehouse connection pool setting.
    If i enable that all my sql query is showing tables as catalog.dbo.w_party_d ( my tables in physical layer showing under catalaog -> dbo -> all tables and joins)
    Any help in this is appreciated.
    Thanks
    KrisAre you saying you just need to access the database using different accounts? If that is the case, why dont you just update the connection pool settings like username and password with XXOBI_APP account which you are supposed to be using for OBIEE?

  • Is it possible to change the predetermined file name?

    Hello everybody:
    When I'm using the classical " app.execMenuItem("SaveAs"); " saving button, I always get the original file name in the dialog saving box (in order to save it locally). Is it possible to change this predetermined file name? where can I change it?
    Thanks a lot,
    Javier

    Adobe does not support this option. You have to live with it. Any way users get choice to change location and file name in the SaveAs window.

  • Is it possible to change dynamicaly VC table view size (width/heigth)?

    Hi gurus!
    So the question is: Is it possible to change dynamicaly Visual Composer table view size?
    Particularly I'm interested in changing table-view height; the objective is not to use table-view paging option, instead to show all returned data rows at once.
    Thanks in advance!
    --- Kaspars

    Hi Kaspars,
    I would say there is atm no possibility to change the table view size dynamicly, because you can't input a formula into the size field so the size is fixed as you enter it.
    Best Regards,
    Marcel

  • Change Table Names in Universe to a Fully Qualified Table Name

    We have implement the HR Rapid Datamart. The table names just have the table. We need programmically to have the table use a fully qualified name. Example Company table needs to read the schema.table name DM.Company. Is there a way to set it in the Custom Parameters section of the Edit connection window to automatically add the schema name to the table name programmically without having to rename the table names in the universe?

    You can add the schema name for all tables in one pass if you select all of them (press the CTRL key while selecting them) and them go to the properties window and type in the schema name in the owner field.
    Regards,
    Stratos

  • PL/SQL cursor question (possible to pass in the table name?)

    I want to pass the name of a table to a cursor and select from that,
    Is this possible in PL/SQL?
    CURSOR get_rows(table_name IN VARCHAR2) IS
    SELECT * FROM table_name;
         The actual sql statement that will be used is more complex.
         I have 18 tables for which the same query would work varrying only in the name of the table.
    I get an error when I try to do the above.

    >
    I am not quite sure how you can derive anything from the design given the example that has all other details stripped out
    >
    What Justin said is pretty clear
    >
    If you are really doing a SELECT * and you have 18 different tables, it seems unlikely that all tables would always have exactly the same set of columns. If they do, that is almost certainly an indication that the data model is incorrect.
    >
    A data model that includes 18 tables with the same set of columns has something wrong with it. You explained that by clarifying that it is only TWO columns in each of the 18 tables that is the same. Perhaps the tables have one-to-many relationships and the two columns are the key columns. That is different.
    >
    The 'select *' will actually pull back only two columns, both of which are primary keys (long). I need to select all rows into a data structure that is global that I can iterate through at a later time. So given that I can use a ref cursor and have a dynamic table name, how would I select into a data structure that is of two primary keys and make that global to be used in another method at a later time?
    >
    Why not use an actual table to store the column data? An index-organized table would be perfect for that use and won't use up valuable user memory.
    And by global do you mean the data needs to be accessible by a different session than the one that collected the data?
    And what do you mean by 'later'? Tomorrow or next week?
    The use case you describe sounds like you are having to update primary key values in tables that have parent-child foreign key constraints. Is that what you are doing? Can you do this offline and defer or disable the constraints, perform an update (rather than insert/delete) and then reenable the constraints?

  • Is it possible to change  color on the line strip/code view in CS6?

    Hello -
    I did some research on this and cant seem to see if this can be done - I was hoping to change the color of the blue line menu on the code view screen.
    Eric

    I take it you're referring to that vertical line in the left hand side of Code View? I don't think it's possible to change the color.  If you disable line numbers (#), it's a bit less noticeable.
    Nancy O.

  • Is possible to change the order of name and last n...

    After to have installed: "Nokia PC Suite 6.84.10.3 ita", I have noticed that the names in the Contacts folder, come lists to you with the following order: "name for first and last name for second". I have tried to change this order, opening Nokia Contacts Editor, selecting Options > Order names > Last name for first, rebboting Nokia Phone Browser and Nokia Contacts Editor in order to render effective the modifications, but nothing
    to make. Why in the previous versions of PC Suite, it was possible to change this order (Name for first or Last name for first), and instead in the version "Nokia PC Suite 6.84.10.3" it is not possible? Someone of You have the same problem? How I could resolve it? Thanks in
    advance!!

    vCard file is in plain text. you can edit it using text editor - find field like:
    N:han;abrash
    the first name and last name is seperated by ';' there. and you can reorder it to:
    N:abrash:han
    done
    What's the law of the jungle?

  • Is it possible to get the containing table name of a UDT with ToCustomObj?

    Hi,
    I got several UDTs that I use in various different tables, in order to update them I need to know which table they came from (I handle updates manually). I'm looking for a way to store the table name the UDT came from in the ToCustomObject method during mapping. Is it possible to do that?

    Acutally, i wanna make clear about the concept of a "Thread"
    Is it true that ..
    the main() method is a thread , once I create another thread in the program , both of (or all of them) will contains it owns stack exception information ?
    My english is poor, please try to understand it. Thx

  • Fully qualified table name

    Hi,
    say I am doing a generic program that must retreive the table/view names and the number rows they hold.
    I am using the DatabaseMetaData.getTables to grab each table name, along with its schema and catalog.
    Then, I would send a request "SELECT COUNT(*) FROM "+myFullyQualifiedTableName to get the number of rows.
    My question is : given a table name with its schema and catalog names, whar is the value of the variable myFullyQualifiedTableName ?
    is it <catalog>.<schema>.<table> ?
    <schema>.<catalog>.<table> ?
    something else ?
    and what if there is no catalog and/or no schema name ?
    thanks for your help,
    cd

    This is true on Oracle only, AFAIK.
    anyway, on oracle, if you connect as user1, you can see the tables belonging to user2, provided you are granted for that. The User is the schema
    On M$SQLServer, you can see all the tables in all the databases hosted on the server you are connected to. theDatabase is the schema.

  • Is it possible to change pernr of table VBPA using BAPI_SALESORDER_CHANGE ?

    Dear All,
    I want to change the Personal Number field of Table VBPA using BAPI BAPI_SALESORDER_CHANGE.
    I am trying, but its not working fine.
    Some one who has used the BAPI in same scenario, please come up.
    I think there is some problem in the parameters passed to the BAPI.
    Thanking You All.

    Dear Madhu,
    Thanks for replying,
    pernr field exists in "partnerchanges" tables parameter of the BAPI.
    In this tables parameter , the fields P_NUMB_NEW and P_NUMB_OLD exists for pernr.
    I think, I should properly pass value in UPDATEFLAG filed of the same paramter, but I do not know the exact value that I need to pass, I am passing 'X', but its not working.
    I am getting  FB call: insufficient parameters error in BAPI Return.

  • IS IT POSSIBLE to change SCREEN's RESOLUTION thru JAVA code?

    Can I change the screen resolution of the PC (through my Java code) where my application will run? is there any possible way to do this?

    Hi.
    Sure it's possible if you use JDK 1.4, you can switch to fullscreen mode and change the displayModes throug methods like :
    java.awt.GraphicsDevice :
    public void setDisplayMode(DisplayMode dm)
    public DisplayMode getDisplayMode()
    public DisplayMode[] getDisplayModes()
    You can browse to for more information
    http://java.sun.com/j2se/1.4/docs/guide/awt/AWTChanges.html
    Regards, Mart�n

  • Is it possible to change my Administrator account name?

    I have just set up my account on my new Mac using my first, last and middle names, but have now decided I don't want the middle name included.
    I can't find any way to change it  .  .  .  is it possible?

    See Kingoftypos response here:
    how to change my username on OS X Yosemite?

Maybe you are looking for

  • My ipad2 has locked. When I switch on its asks me to connect to iTunes which it does. Prompts me to restore and then gives an error message (11)

    My ipad2 has crashed. Tried to do an update last night. Upload bar moved 1cm then locked stayed like that all night. I have switched off and then on again and its prompting me to connect to itunes. Once connected it says to restore. It starts this pr

  • Passing Payload data to alert container for all SAP PI erros

    Hi All,    I have a alert requirement as follows. One alert has to be raised for all PI errors including Integration Engine errors and Adapter Engine errors. The scenario  is  ABAP PROXY >XI->SOAP. Payload will have n number of fields including Deliv

  • Smarform for Payment Notice/Account statement

    Hi , Please let me know if there is any Smartform & print program of Smartform available for Payment notice (Tcode - OB78 and OB96). If you have developed any smartform/Print program then please let  me know. Thank you in advance. Regards, Umesh Sawa

  • Error ORA-0942 during navigation

    I am getting an error an table not found error (ORA-00942) when navigating through Raptor. I am only moving from one pane to another but I get the error everytime the pane refreshes. I don't know what table it is looking for, so any help would be app

  • ISIS Redistribution

    I'm having a couple problems with mutual redistribution between ISIS and EIGRP. A little setup, I was trying to redistribute only level-1 routes into EIGRP and it would redistribute both L1 and L2 routes. I know that I have both L1 and L2 routes in t