Dynamic parameters data source

Database: Sybase ASA 9
Crystal: Developer 11 SP4 , activex viewer
Application: Powerbuilder 11
I am embedding crystal reports into a powerbuilder 11 application. The crystal reports (.rpt files) are created in Crystal reports developer 11 sp4. The application programmatically change the DSN for the crystal reports to connect to the database that the customer is using. This works fine except when the report contains dynamic parameters (parameter select values from table in database to select from). The dynamic parameter(s) still references the DSN used in development as appose to the new (changed) DSN , although the rest of the report use the "new" DSN. I have spend many many hours on this and are at a lost on how to fix this ?
Following is in short the code I use:
FOR li_table = 1 TO iole_crx_report.database.tables.count
// get connection properties collection for this table
iole_crx_connection_info = iole_crx_report.database.tablesli_table.connectionproperties
iole_crx_connection_info.DeleteAll()
iole_crx_connection_info.add("DSN",itrx_database_info.Lock )
iole_crx_connection_info.add("User ID",itrx_database_info.userid)
iole_crx_connection_info.add("Password", itrx_database_info.dbpass)
iole_crx_connection_info.add("UseDSNProperties",TRUE)
iole_crx_connection_info.add("AllowCustomConnection", TRUE)
NEXT
iole_crx_Database.Verify()

Hi Ludek,
Thanks for the reply.
The machine that I am testing on have an installed version of CR 11 SP4 development. I can change the report source for any report that does not have dynamic parameters. At the moment the reports that I am testing does not have subreports. It is a very simple two table report using dynamic parameters.
Changing the datasoure programmatically with both data sources (DB servers) running on the machine eveything works fine. When I refer to the two data sources I mean the data source that was used to create the report and the datatsource that I want to change to in the application to retrieve data from.
Does reports with dynamic parameters auto create subreports for the dynamic parameter(s) ?
I have tested this and it does not seem so. That could have possibly explained this.
I hope this gives you a clearer idea of what is happening?

Similar Messages

  • Crystal Reports dynamic parameters data source

    Database: Sybase ASA 9
    Crystal: Developer 11 SP4 , activex viewer
    Application: Powerbuilder 11
    I am embedding crystal reports into a powerbuilder 11 application. The crystal reports (.rpt files) are created in Crystal reports developer 11 sp4. The application programmatically change the DSN for the crystal reports to connect to the database that the customer is using. This works fine except when the report contains dynamic parameters (parameter select values from table in database to select from). The dynamic parameter(s) still references the DSN used in development as appose to the new (changed) DSN , although the rest of the report use the "new" DSN. I have spend many many hours on this and are at a lost on how to fix this ?
    Following is in short the code I use:
    FOR li_table = 1 TO iole_crx_report.database.tables.count
    // get connection properties collection for this table
    iole_crx_connection_info = iole_crx_report.database.tables[li_table].connectionproperties
    iole_crx_connection_info.DeleteAll()
    iole_crx_connection_info.add("DSN",itrx_database_info.Lock )
    iole_crx_connection_info.add("User ID",itrx_database_info.userid)
    iole_crx_connection_info.add("Password", itrx_database_info.dbpass)
                                                  iole_crx_connection_info.add("UseDSNProperties",TRUE)
                                  iole_crx_connection_info.add("AllowCustomConnection", TRUE)
    NEXT
    iole_crx_Database.Verify()

    Hi, Johan;
    There is no SDK option to change the datasource that the dynamic parameters are based on. Your only option would be to change the DSN itself to point to the new database. Or, not use dynamic parmeters.
    Regards,
    Jonathan

  • Question on Dynamic Query Data Source and Form Folders in Oracle Forms 6i

    Hi there -
    I have one interesting requirement in Oracle Forms.
    This is what I wanted to do.
    1. Have a LOV and Go button on Form.
    2. From LOV, I will select a pre-defined custom table and click Go.
    3. Based on the selected custom table, I have to populate the Block (Tabular Format).
    4. User should be able to do update, delete, insert on this block.
    5. User should be able to use the Oracle Form folders functionality (select only necessary column and save views etc. Std folder functionality).
    6. If user selects a different custom table name in the LOV on top, I need to refresh the data from the block based on this new table. Remaining functionality should be as it is (steps 3 to 5).
    You can see here, I am going to have dynamic query data source (Table Name as well as column mapping) on the block. I do not know before hand how many columns the user selected table has!
    This is what I have planned for this so far but I have some major questions before I can move on with this design:
    1. I am going to create a table structure with fixed number of column in form (40 cols assuming that the custom table will not have more that 40 cols). (Kind of limitation but it's okay as of now).
    2. Dynamically populate the block based on the table name selected by the user from LOV. Dynamically change the table column names based on the table selected etc.
    3. Perform insert, update, delete using PL/SQL package.
    So far it looks okay.
    Now my real question is,
    Can user still be able to user "Folders" functionality here? I have never done this kind of development before and I doubt the dynamic column naming, dynamic column data source will really work for "folders"!
    Also, I am not really sure whether user will be able to save these "folder" queries?
    Okay so form experts, can you ppl suggest me if this is really going to work? Are there any better ways to do this?
    Initially I tried to do this in OA Framework but I got stuck at because as per OAF developer guide "I cannot user OAF personalization for dynamic items, regions etc".
    For more info on that thread see this link...
    Re: setUserCustomizable issue!
    Thanks in advance for the help.

    Any suggestion anyone?

  • Report painter -output parameters,Data source,Extract parameter, report

    Hi expert,
    1)What report painter -output parameters,Data source,Extract parameter, report mean for and what are the difference?
    2)I have create new report painter and transport to  Test server using T-code:GCTR and I find that the T-code always point to old report. As I had check the SE93 the D_SREPOVARI-REPORT is point to report group.Why this happen?
    3) Does creation of new report or modification of the report always need to select the extraction option so that it will able to display the relected changes? Because, I have done modification on the report but it is not reflected the changes even i save until i have to create the extraction is able to display the report but every time i run the report need to select the extraction with option to choose new extract or old. Kindly advice how to save and create the report painter and save will display reflected result .
    Please help

    Hi BR Christian,
    Thank you for the prompt reply.
    I have few querys as below:
    1)Do we every time create new report by copying the existing report painter need to select output parameter, data source and extract parameter in order to be able to display the new report?
    2)when modify existing report painter and save it do we need to select output parameter, data source and extract parameter in order to be able to display the modify report correctly?
    3) What are the different between right click copy the report inreport painter compare with create report painter with copy GRR1?
    4) What are the T-code for modify the report group?
    5) When I create a new report with the right click copy in GRR1 and modify the report painter column only and everything remain the same just the report name different why when execute the report it always appear in the selection screen with report button which have option button to select the 2 version  of report which one is the destination report that I copy from and one is the new report? How to set the report when execute will only display the new report only without need to select the option with just new report only?
    6)For transferring reports you can use GR37 (export) and GR38 (import) can be use to transport from one client to another client? What is difference between GR37 compare with  GCTR?
    7) If I use GR37 and GR38 it is mean no need to create the transport request which as usual we create transport se10?
    we can directly import to another client ussing GR38?
    8)When we create a new report with copy with the existing report with just modify the report colunm and the report name difference only what are the setting example: report,report group need to be selected to be include to export/transport to another client?
    9) What are the difference between library and report group?
    10) Can we set Se93 to execute only report not report group? How?
    11) when using GR37 to transport it is also include the report group,library and the particular report?
    12) Can I include the variable in the column header to display fiscal year which I have selected from the selection screen?
    How and which variable should i use?
    please help.
    many thanks
    Edited by: KH on Jun 18, 2011 6:52 AM
    Edited by: KH on Jun 18, 2011 6:55 AM
    Edited by: KH on Jun 18, 2011 7:06 AM

  • Dynamically modify data sources

    We have a need to dynamically modify our data sources and I need to know if this is possible and what the syntax is?  Can we do this as a transaction and/or in the javascript / jquery logic of the UI?  I know that basically everything is configurable as a transaction or as a script.  I need a little assistance in configuring the below items for a data source.
    DaysRetention   
    Description   
    IP   
    MaxRetryCount   
    Port   
    QueryTimeout   
    RetryInterval   
    ServerPackage   
    Writable

    Data server configuration properties are easily modifed from the editor page in the Menu, and is typically an initial or configuration setting made before building application content (query templates). 
    At runtime overloading the Server property within or in addition to a query template is quite easy, but no standard provisions are in place for modifying the data server configuration itself.
    Why would you have a need to modify them dynamically through code?

  • Dynamic Recipients Data Source LOST

    BO 4.0
    I am losing my mind.  I have lots of publications, some Crystal reports with Crystal Dynamic Recipients, some WEBI with WEBI Dynamic Recipients.
    For no apparent reason, publications will just lose their dynamic recipient report mapping and start failing.  I know it's not because they are too large.  Today's was only 7 recipients.
    Then when you try to fix it, it always takes multiple tries to get the list of reports to display when selecting WEBI as a Dynamic Recipients data soiurce.  Then when I am finally able to get the list to display and select one, I click OK and never get the 'Use Entire List' box, so the request never registers.  That means there is no report to map personalization to.  This is a MAJOR problem.
    Why do mappings get lost?
    Why does the report list not display?
    Why does the List from the recipients report not display?
    Why is it happening with WEBI but not Crystal?
    Is there a publication service setting that needs to be adjusted?

    Can you check out "ADAPT01718815
    Description:
    When a user promotes or migrates a publication, certain personalized fields (such as specific document names or dynamic recipient information) are not preserved at the destination. This problem occurs in both enterprise recipient and dynamic recipient publications.
    New Behavior:
    The issue is resolved." from BI4.1 SP4 release note if your publication dynamic recipient information is lost after promotion/migration?
    Hope this helps,
    Jin-Chong

  • Dynamic data source on 10g requires valid data source associated in report

    I'm currently using the dynamic JDBC data source feature of PublicReportService_v11 in BI Publisher 10.1.3.4.1 (March 2011 patch applied) and it seems that the BIP report still requires a valid JDBC data source associated with it before the specified dynamic one can be properly used.
    Using SoapUI, I tried sending a runReport request with a dynamic JDBC data source for a BIP report that is associated to an invalid/dummy JDBC data source and got the following fault string:
    oracle.apps.xdo.webservice.exception.OperationFailedException: PublicReportService::generateReport failed: due to java.sql.SQLException: ORA-01017: invalid username/password; logon deniedAssociating the BIP report to a valid JDBC data source but different from the specified one on the runReport request does make this feature work - data in the BIP report does come from the specified dynamic JDBC data source. I'm just wondering if this is the right behavior for this feature? It seems a little counter intuitive because you already specified a JDBC data source in the request message which I'm assuming will be used by the report you're requesting instead of whatever is the currently associated data source on the report.

    If it is open, then try
    Named range: ConsolLink = Range("Consol File.xlsm'!Source_OpexConsol")
    And if it is not currently open, then try
    Dim W As Workbook
    Set W = Workbooks.Open("R:\Root\Sub1\Sub2\Consol
    File.xlsm")
    Named range: ConsolLink =
    Range("Consol File.xlsm'!Source_OpexConsol")
    W.Close False

  • Error while creating data source using Oracle Enterprise Manager 10g

    Hi,
    I have deployed my web application developed on OC4J 9.0.4 stand alone (Win2K) to an integrated OC4J version(Solaris) using Oracle Enterprise Manager 10g.
    However, I get an error when I try to create a data source.
    The data source I want to create would have the following parameters (as seen in data-sources.xml on the stand alone version):
         <data-source
              class="com.evermind.sql.DriverManagerDataSource"
              name="TestDS"
              location="jdbc/OracleCoreDS"
              xa-location="jdbc/xa/OracleXADS"
              ejb-location="jdbc/TestDS"
              connection-driver="oracle.jdbc.driver.OracleDriver"
              url="jdbc:oracle:thin:@hostName:1521:test"
              username="user"
              password="password"
              min-connections="5"
              max-connections="20"          
              inactivity-timeout="30"
         />
    When I entered the above data on the Enterprise Manager Data Sources page, I got the following error:
    quote:
    Error saving Data Source Properties. - Entity et="system";ei="0",et="application";ei="48",et="data-sources";ei="167":child:data-sourcechild key:location:jdbc/OracleCoreDS; class:com.evermind.sql.DriverManagerDataSource; already exists in the repository. Resolution: Please check the code base.
    unquote:
    Could somebody tell me what I'm doing wrong ?
    I tried to manually edit the data-sources.xml file but the data source didn't show up on the Enterprise Manager.
    I'm using a new OC4J instance (on the Solaris machine) for my applications. Is the data source error related to this?
    Any help will be greatly appreciated.
    Thanks,
    Shyam

    Thanks for your reply , Steve.
    I noticed that there is a default datasouce on the EM with the following parameters:
    <data-source
              class="com.evermind.sql.DriverManagerDataSource"
              name="OracleDS"
              location="jdbc/OracleCoreDS"
              xa-location="jdbc/xa/OracleXADS"
              ejb-location="jdbc/OracleDS"
              connection-driver="oracle.jdbc.driver.OracleDriver"
              username="scott"
              password="->pwForScott"
              url="jdbc:oracle:thin:@localhost:1521:oracle"
              inactivity-timeout="30"
         />
    The location and xa-location attributes that I use for my "test" data source are the same as the default one. So, could this be the issue?
    What should be the values for location and xa-location attributes from my "test" data source?
    Any help will be greatly appreciated.
    Thanks,
    Shyam

  • Can we set the dynamic data source when using getReportParameters() ?

    Hello!
    I have a report where one of its parameters refers to a list of values (LOVs). This list of values is an SQL Query type. When the data source used in the report is defined in the BI Publisher server, I'm able to get the report parameters using the getReportParameters() function in my application. However, if the data source is not defined the function throws an exception, which is understandable.
    I decided to dynamically set the data source so that even if the data source used by the report is not defined in the BI Publisher server, it still will be able to get the LOVs for the parameter. I tried setting the JDBCDataSource of the dynamicDataSource for the ReportRequest object that I passed to the getReportParameters() function. Please see the sample code below:
    reportRequest.dynamicDataSource = new BIP10.BIPDataSource();
    reportRequest.dynamicDataSource.JDBCDataSource = new BIP10.JDBCDataSource();
    setReportDataSource(reportRequest.dynamicDataSource.JDBCDataSource, connectstr, jdbc, dc); //function to set the values for JDBCDataSource object
    reportParams = webrs.getReportParameters(reportRequest, uid, pwd); //call the getReportParameters
    I was expecting this to work as this is what I did to dynamically set the data source before calling the runReport function. So, my question is -- can we set the dynamic data source when using getReportParameters() ? I tried this both in versions 10g and 11g. It does not seem to work on both versions.
    Regards,
    Stephanie

    report_id column of apex_application_page_ir_rpt can help us uniquely identify each saved report.
    We can assign this report_id value to a page item and this page item can be put in the Report ID Item text box of the Advanced section of the Report Attributes page of the IR.
    This should load the saved report identified by report_id and you can get rid of javascript
    Regards,
    Vishal
    http://obiee-oracledb.blogspot.com
    http://www.packtpub.com/oracle-apex-4-2-reporting/book
    Kindly mark the reply as helpful/correct if it solves your problem

  • How to select column dynamically with sharepoint list as data source in ssrs report

    Hi all,
    I am creating reports from SharePoint list but i have requirements to select the column name dynamically with SharePoint list as data source. I didn't find any way of doing this.. 
    Can anyone help me to resolve this issue..
    There is no way of specifying column name dynamically here in data set query
    <RSSharePointList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      <ListName>test list</ListName>
      <ViewFields>
        <FieldRef Name="ID" />
        <FieldRef Name="ContentType" />
        <FieldRef Name="Title" />
        <FieldRef Name="Modified" />
        <FieldRef Name="Created" />
        <FieldRef Name="Author" />
        <FieldRef Name="Editor" />
        <FieldRef Name="_UIVersionString" />
        <FieldRef Name="Attachments" />
        <FieldRef Name="Edit" />
        <FieldRef Name="LinkTitleNoMenu" />
        <FieldRef Name="LinkTitle" />
        <FieldRef Name="DocIcon" />
        <FieldRef Name="ItemChildCount" />
        <FieldRef Name="FolderChildCount" />
        <FieldRef Name="test_x0020_date" />
        <FieldRef Name="title2" />
      </ViewFields>
    </RSSharePointList>

    Hi MNRSPDev,
    Sorry for the delay.
    According to the current description, I understand that you want to specify column name in dataset query designer dynamically when using SharePoint list data source.
    Based on my research, this is not supported by default. As a workaround, you can use XML data source. The XML content can be embedded directly within the query. This lets you use the expression capabilities within the processing engine to build queries and
    data dynamically within the report. And it can be used for retrieving XML data directly from an external data source, passing it using parameters, and embedding it within the query.
    Reference:
    http://www.codeproject.com/Articles/56817/Dynamic-Reports-with-Reporting-Services
    Hope this helps.
    Regards,
    Heidi Duan
    Heidi Duan
    TechNet Community Support

  • Change data source dynamically

    is it possible to change data source dynamically when using ibatis frame work...?

    We don't need a Java reporting tool to change data source dynamically.
    In Oracle Reports we can use:
    - lexical parameters
    - dynamic ref cursors
    - XML runtime customization
    Regards

  • Reporting Services: XML Data Source and Parameters

    I’ve created an XML service (asmx) in ASP.Net that I want to use as a data source for an SQL Reporting Services report. The report and service work just fine if I use a Method from the service that does not have parameters. However, if I use a Method that
    needs a parameter, the query/report fails. My investigation makes it seem that the parameter is not getting passed to the Method at all. (The parameter is a DateTime and it always ends up uninitialized and the WebMethod throws an exception.)
    I’ve exhausted all my TechNet resources and Googled this excessively. It would seem that I am doing this correctly, based on all the examples I’ve seen, but I still can’t get it to work.
    I've done a lot of different permutations, but this is where I’m at right now.
    (Note: I've changed the Web Method's parameter to be a String instead of a DateTime. I did this as part of my trial-and-error process. Once I get this figured I'll return it to a DateTime.)
    I'm trying to include everything here that will help you help me (see attached image). I had to obfuscate a few things (not sure if that is necessary).
    See attached image:
    Created Shared Data Source in SQL Report Services
    Create Report Parameter (matching Web Method parameter)
    Created a data set in Report Builder (with Query, and parameter - matching Web Method parameter)
    Query in Data Source
    <Query>
    <Method Name="GetDueDateAging" Namespace="http://zzz.com/vvv">
    <Parameters>
    <Parameter Name="cutoffDate">
    <DefaultValue></DefaultValue>
    </Parameter>
    </Parameters>
    </Method>
    <SoapAction>http://zzz.com/vvv/GetDueDateAging</SoapAction>
    <ElementPath IgnoreNamespaces="true">*</ElementPath>
    </Query>
    This is where I needed the most help, and I don't totally understand it. But again, the parameter-less Method worked. I've tried adding different things in the <DefaultValue> tag (like @cuttoffDate and constant values), with no success.
    WebMethod Code
    [WebMethod]
    public List<AgingInvoice> GetDueDateAging(string cutoffDate)
    DateTime cd = DateTime.MinValue;
    if (!DateTime.TryParse(cutoffDate, out cd))
    cd = DateTime.Now;
    Shared.DueDateAging aging = new Shared.DueDateAging();
    return aging.GetDueDateAging(cd, Settings.Default.ConnectionString);
    I've looked at every online resource that I could find, but I'm striking out right now. Any help or hints would be greatly appreciated.
    Thanks.
    Derrick

    Hi Derrick,
    In your case, please refer to the following method to troubleshooting this problem:
    We can use Fiddler2 to monitor the HTTP post, and check whether the parameter is being sent. The Fiddler tool can helps us debug web applications by capturing network traffic between the Internet and test computers. If the parameter is being sent, please
    debug the web service to ensure the method has values return.
    Regards,
    Alisa Tang
    Alisa Tang
    TechNet Community Support

  • How to dynamically populate data from a data source

    What I am trying to do:
    I am building a simple blog reader application with two screens, 'Home' and 'FeedR'.
    The data needed for this to work is an excel table 'Blogs'; which has the following columns:
    BlogName, image, Source
    I have created about 6 REST data sources from the RSS feeds of these blogs and added their names into the excel table.
    The home has an "Image Gallery with Text", which has the blog image and BlogName on it. On the select event, I want to navigate to the second screen and populate the text gallery with the feed details.
    The Problem:
    So, when I have only feed, I can do something like:
    'Navigate(FeedR, ScreenTransition!UnCover);Collect([@blogposts], rss_aspx!channel!item)'.
    When I have more than one feed; I would like to be able to do something like:
    'Navigate(FeedR, ScreenTransition!UnCover);Collect([@blogposts],
    (Blogs!Source)!channel!item)'.
    The Question:
    Is dynamically populating the name of the data source work? If yes, how do I do it? If no, is there a way around it?
    I was looking at UpdateContext(), but does not seem like a feasible option.
    Thanking you...
    Hemanth

    you wanted a onchange for a htmlb:inputfield which would also trigger server event. try the following code.
    <htmlb:inputField id            = "test"
                                alignment     = "LEFT"
                                size          = "6"
                                required      = "TRUE"
                                doValidate    = "TRUE"
                                type          = "INTEGER"
                                 />
    <bsp:htmlbEvent id="myid" onClick="myonclick" name="ValueChanged" />
      <script for="test" event=onchange type="text/javascript">
    alert(this.value);
    ValueChanged();
    </SCRIPT>
    if the value in the inputfield is changed it would trigger a alert at the client side and also trigger a server event. now you can caputre the value in oninputprocessing.
    Hope this helps.
    do let us know if you need help in how to capture this value in oninputprocessing.
    Regards
    Raja

  • Dynamic File Name in Data Source?

    In Data Model, there is a option "File" as Type. My question is can file name be dynamic, say I set a parameter "ReportID", can this parameter be part of file name. something like
    {$ReportID}.xml
    or
    {:ReportID}.xml
    If yes, what is the syntax.
    Thanks.

    I don't think you can do that. When you speficy 'File' as the type for the Data source, it expects an existing XML data file stored in the directory that has been set up by the Administrator.
    There is no way to define a parameter for the file name and then use this instead..
    Thanks!
    Edited by: BIPuser on Mar 1, 2010 1:10 PM

  • Even with parameters, reports reading entire data source and then filtering

    I'm working with an Oracle database (read-only access) and Crystal Reports 2008.  I have created a report and added three parameters for which I have already done all necessary steps in the select expert.  But when I do a Print preview of the report, and after selecting the parameter values, the report tries to read all of the data source records before the parameters are utilized by the report.  In other words, if the data source has 100,000 records, the report will return (in the background) all 100,000 records and then filter among these returned records to present/display the data according to the provided parameter values.  Instead, I would like it to use the parameters first so that only those records that meet the parameter value criteria are read into the report from the "get go"...Since I only have read only access to the Oracle database, I cannot write a stored procedure either...(company policy)...Can parameters be used to read in only pertaining records instead of filtering already read in records in a given report?  Is there some syntax that can be entered into a Command type connection to do this?

    I've tried that but I'm now getting an error on line 6...
    Crystal Reports Error:
    Failed to retrieve data from the database.
    Details: HYooo:[Oracle][ODBC][Ora]ORA-00911: invalid character
    ORA-06512: at line 6
    [Database Vendor Code: 911 ]
    for the following syntax: (Not sure why...any help would be extremely appreciated!)
    DECLARE
    varCCN CHAR(7);
    varMASLOC char(3);
    varWO char(10);
    BEGIN
    EXECUTE IMMEDIATE '
    SELECT Trim(DB.D_WO.SERIAL) AS Serial,
    Trim(DB.WO.WO_NUM) AS WO,
    DB.WO.WO_LINE AS Line,
    DB.WO_HDR.WO_DESCRIPTION,
    DB.WO.ITEM,
    DB.WO.REVISION,
    CASE WHEN DB.WO.ITEM=' || '''\''' || 'THEN DB.WONSD.DESC_ ELSE DB.ITEM.DESCRIPTION END AS Item_Description,
    DB.WO.ORD_QTY,
    DB.WO.START_DATE,
    DB.WO.DUE_DATE,
    DB.WO_RTG.OPERATION,
    DB.D_OPERNM.D_OPER_NUM_SEQ,
    DB.WC.DESCRIPTION AS WC_Description,
    DB.WO.CCN,
    DB.WO.MAS_LOC,
    DB.D_WKINST.D_WORK_INSTRUCTION,
    DB.D_WORTG.NA_OPER,
    DB.D_WORTG.D_OPER_GROUP,
    DB.GLOVCLB.CONTENT,
    DB.D_WOHDR.D_J_MACHINE,
    DB.D_WOHDR.D_H_MACHINE,
    DB.D_WOHDR.D_STD_ASSEMBLY,
    DB.D_WOHDR.D_T_C_A_ASSEMBLY,
    DB.D_WOHDR.D_T_C_B_ASSEMBLY,
    DB.D_WOHDR.D_B_S_ASSEMBLY
    FROM DB.WO_HDR
    LEFT JOIN DB.WO
    ON DB.WO_HDR.CCN = DB.WO.CCN
    AND DB.WO_HDR.MAS_LOC = DB.WO.MAS_LOC
    AND DB.WO_HDR.WO_NUM = DB.WO.WO_NUM 
    LEFT JOIN DB.D_WO
    ON DB.WO.WO_LINE = DB.D_WO.WO_LINE
    AND DB.WO.WO_NUM = DB.D_WO.WO_NUM
    AND DB.WO.MAS_LOC = DB.D_WO.MAS_LOC
    AND DB.WO.CCN = DB.D_WO.CCN
    LEFT JOIN DB.WONSD
    ON DB.WO.WO_LINE = DB.WONSD.WO_LINE
    AND DB.WO.WO_NUM = DB.WONSD.WO_NUM
    AND DB.WO.MAS_LOC = DB.WONSD.MAS_LOC
    AND DB.WO.CCN = DB.WONSD.CCN
    LEFT JOIN DB.ITEM
    ON DB.WO.REVISION = DB.ITEM.REVISION
    AND DB.WO.ITEM = DB.ITEM.ITEM
    LEFT JOIN DB.WO_RTG
    ON DB.WO.WO_LINE = DB.WO_RTG.WO_LINE
    AND DB.WO.WO_NUM = DB.WO_RTG.WO_NUM
    AND DB.WO.MAS_LOC = DB.WO_RTG.MAS_LOC
    AND DB.WO.CCN = DB.WO_RTG.CCN
    LEFT JOIN DB.D_WORTG
    ON DB.WO_RTG.OPERATION = DB.D_WORTG.OPERATION
    AND DB.WO_RTG.WO_LINE = DB.D_WORTG.WO_LINE
    AND DB.WO_RTG.WO_NUM = DB.D_WORTG.WO_NUM
    AND DB.WO_RTG.MAS_LOC = DB.D_WORTG.MAS_LOC
    AND DB.WO_RTG.CCN = DB.D_WORTG.CCN
    LEFT JOIN DB.WC
    ON DB.WO_RTG.WC = DB.WC.WC
    AND DB.WO_RTG.CCN = DB.WC.CCN
    LEFT JOIN DB.D_OPERNM
    ON DB.WO_RTG.OPERATION = DB.D_OPERNM.OPERATION
    AND DB.WO_RTG.WO_LINE = DB.D_OPERNM.WO_LINE
    AND DB.WO_RTG.WO_NUM = DB.D_OPERNM.WO_NUM
    AND DB.WO_RTG.MAS_LOC = DB.D_OPERNM.MAS_LOC
    AND DB.WO_RTG.CCN = DB.D_OPERNM.CCN
    LEFT JOIN DB.D_WKINST
    ON DB.D_WORTG.D_WORK_INSTRUCTION = DB.D_WKINST.D_WORK_INSTRUCTION
    LEFT JOIN DB.WOLN_TXT
    ON DB.WO.WO_LINE = DB.WOLN_TXT.WO_LINE
    AND DB.WO.WO_NUM = DB.WOLN_TXT.WO_NUM
    AND DB.WO.MAS_LOC = DB.WOLN_TXT.MAS_LOC
    AND DB.WO.CCN = DB.WOLN_TXT.CCN
    LEFT JOIN DB.GLOVCLB
    ON DB.WOLN_TXT.OBJECT_ID = DB.GLOVCLB.OBJECT_ID
    LEFT JOIN DB.D_WOHDR
    ON DB.WO.CCN = DB.D_WOHDR.CCN
    AND DB.WO.MAS_LOC = DB.D_WOHDR.MAS_LOC
    AND DB.WO.WO_NUM = DB.D_WOHDR.WO_NUM
    WHERE DB.WO_HDR.CCN=' || varCCN || ';
    AND DB.WO_HDR.MAS_LOC=' || varMASLOC || ';
    AND TRIM(DB.WO_HDR.WO_NUM)=' || varWO || ';';
    END;
    Edited by: lirizarry on Nov 6, 2009 4:37 PM

Maybe you are looking for

  • How to set file names?

    Using TCS 5, RH11, FM12, all patched up, if I set a marker, such as "Filename" in FrameMaker, can RoboHelp use the contents of that marker to set the file name of the HTML file it creates? How? Thoughts? Cheers, Sean

  • PXI 2515 Bus to Dut Connection

    Hi all, I'm trying to make a connection from an SMU through the PXI 2515 to an IC pin to do a continuity test (protection diodes), I've already confirmed their presence on benchtop equipment. I'm using the "niSwitch Making Connections on a Switch" VI

  • Opening a webapplication in PDF (Urgent please)

    Hello Experts, I have created a web template and now I want to convert the results in to PDF format. I have created a bookmark on the results. now How I will open the URL now in adobe reader (7.0). I dont see any option of opening an URL in adobe rea

  • [Blackberry 8100] What are the best pic sizes for the blackberry?

      Hi, I am the proud owner of a new blackberry 8100 and I have a few questions.   When I upload an image of 600x450 pixels to the media card, They display well, but when using the Zoom feature, the image starts to get blurry.  Now with a 600x450pixel

  • SMARTFORM DYNAMIC WINDOW

    HI ALL, >>> Is it possible to create Dynamic window in SMARTFORM? >>> How it is possible? ( Window may be set as per TEXT size ) Thanks With Regards