OracleDataAdapter and DataSet

I'm beginner with ODT for VS .NET.
I can't add Oracle data adapter to dataset generated previously. As s result I have dataset that contains only one datatable. Oracle Connection is inaccessible from dataset designer or from dataset configuration vizard. How can I add in the dataset more than one datatable as it can be done with Oracle data provider for OLE DB?
Sincerely
Eugene V. Buzin.
October 4.2006.

Dear all,
I also followed now that discussion. I did it like explained above. Now I have a dataset with all the relations, but with no connection to the database. If I run this testform, both dataGridViews where displayed in a Master/Detail way, showing all columns but without data on it.
When debugging I found out, that there are no more commands in the auto-generated code which connect to DB. Also in the dataset-View I cannot configure these tables anymore ( I can add columns, but not configure )
So is this realy the best way to combine the OracleDataProvidor with MS-Visual Studio 2005 ??
If it is, I guess most of the programmers will decide for the MS-Driver for Oracle, because it is much easier to handle.
I am looking now for more then 3 weeks for a solution, also read Mark A. Williams "Pro .NET Oracle Programming" which was useful, but could not answer questions concerning the "read doing" in Visual-Studio 2005.
Please, does anybody have more detaild info how to work best with OracleDataProvidor inside VS2005.
thank you sooo much.

Similar Messages

  • D/w  POOL and DATASET

    Hi Friends,
    Pls answer the below Questions.It's help to me.
    1) What is different b/w POOL and DATASET .
    2) How data stored in ZFS file system (Like When creating UFS file system Bootblk ,ufsboot,super block and inodes)
    3) The history command in Zpool Which file contain the history of zpool.(zpool history).
    Regards,
    K.RAJA

    Hi Mahendra,
    http://www.sap-img.com/abap/difference-between-batch-input-and-call-transaction-in-bdc.htm
    BAPI stands for Business API(Application Program Interface).
    Please check these links which will give you step by step for learning BAPI.
    http://www.erpgenie.com/sap/abap/bapi/example.htm
    http://www.sap-img.com/bapi.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/e0/9eb2370f9cbe68e10000009b38f8cf/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/43/b46c1e53c111d395fa00a0c94260a5/content.htm
    http://www.sappoint.com/abap/bapiintro.pdf#search=%22BAPI(SAP)%22
    http://www.erpgenie.com/sap/abap/bapi/index.htm
    http://www.erpgenie.com/sap/abap/bapi/conventions.htm
    http://www.erpgenie.com/sapgenie/docs/BAPI%20Programming.doc
    http://64.233.167.104/custom?q=cache:eyMZ5qPOH-0J:www.erpgenie.com/sapgenie/docs/BAPI%2520Intro.doc+bapi&hl=en&ct=clnk&cd=6&ie=UTF-8&client=pub-2723892367221695
    http://64.233.167.104/custom?q=cache:c7cwsXMxq-UJ:www.sapdevelopment.co.uk/java/jco/bapi_jco.pdf+bapi&hl=en&ct=clnk&cd=1&ie=UTF-8&client=pub-6389415953938571
    http://www.sapgenie.com/abap/bapi/example.htm
    http://www.sappoint.com/abap/bapiintro.pdf
    http://www.sappoint.com/abap/bapiprg.pdf
    http://www.sappoint.com/abap/bapiactx.pdf
    http://www.sappoint.com/abap/bapilst.pdf
    http://www.sappoint.com/abap/bapiexer.pdf
    http://service.sap.com/ale
    http://service.sap.com/bapi
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCMIDAPII/CABFAAPIINTRO.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CABFABAPIREF/CABFABAPIPG.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCFESDE8/BCFESDE8.pdf
    http://www.planetsap.com/Bapi_main_page.htm
    http://www.topxml.com/sap/sap_idoc_xml.asp
    http://www.sapdevelopment.co.uk/
    http://www.sapdevelopment.co.uk/java/jco/bapi_jco.pdf
    List of all BAPIs
    http://www.planetsap.com/LIST_ALL_BAPIs.htm

  • OracleDataAdapter and multiple datasets

    Hello
    I'd like to ask, does each dataset need its own data adapter? I'm implementing application which has a lot of datagridviews, and I wonder how to use adapter. Is it possible to have two datasets and use following scenario: fill first dataset, bind it to datagridview, then using the same adapter fill second dataset and bind it to datagridview, and after then call adapter.update for first dataset and then for second dataset - all using only one adapter. Is it possible or not?
    Thanks for advice.

    does each dataset need its own data adapter?no
    Is it possible to have two datasets and use following scenario:
    fill first dataset, bind it to datagridview, then using the same adapter
    fill second dataset and bind it to datagridview, and after then call
    adapter.update for first dataset and then for second dataset -
    all using only one adapter. Is it possible or not?yes
    Cheers,
    NH

  • Autosuggest and dataset notifications / callbacks

    Hi,
    Arnout thanks for your answer on using Javascript arrays with auto suggest.  Spot on in terms of what I needed to do in temrs of Spry datasets and I've got that part up and running now.
    The next question follows on from that.
    When a user clicks on an auto suggest from the Spry dataset thus generated it fills in the input text field as expected.  Does it do anything special with the Spry dataset such as setting the current row id / number and / or trigger any notifiers?  What I'd essentially like to do is have something that detects when a user has chosen a suggestion from auto suggest list and then pull the values from another column of the dataset / array for the same row id / number and feed that into another javascript function I have written. Possibly a notifier / callback setup ?
    Thanks
    Phil

    Seems like I completely missed your question here. I once required the same kind of functionality inside my autosuggest. I extended the autosuggest to do a fire my callback function. This is a more secure solution that adding a click handler.
    Extend the following method:
    Spry.Widget.AutoSuggest.prototype.setValue = function(str)
         if (!this.textElement)
              return;
         this.textElement.value = str;
         this.showSuggestions(false);
         if(this.callback){
              this.callback( str );
    Than in your constructor you can add the option :
    callback: function( value ){ do stuff };
    If i miss these questions in the future don't hesitate to PM me

  • Dynamic Forms and Datasets

    I have created a dynamic form in LC8.0. Distributed it to our server via Acrobat Pro 8.o. The users have Reader 8.0. There are two subforms on the page, both of which are tables which can be expanded using an addInstance button.
    Everything works well with single row entries - I receive the returned data in a mailbox, open up the file which then populates a dataset with the information from both tables. This can then be exported to an Excel spreadsheet.
    However, when the addinstance button is used by the user and an additional row of data is added to either of the tables, the following message box error appears when I try to add that data to the dataset:
    "...the form fields do not match the fields in the dataset"; followed by
    "Failed to add the returned form to the dataset file. Error code = 11".
    Does anyone have any idea what I'm doing wrong? I'm not a programmer, so please provide as much information as you can.
    Any help appreciated. Many thanks.

    Hi Jerry
    I think I managed to solve this one - though not sure I remember quite how I did it. I think it was by ensuring that only those items I wanted to export from the data set had their data bindings set to Normal. Absolutely everything else was set to None - so check that the subform that holds your addInstance button is also set to None.
    In opening the returned form a message box may appear stating:
    "Fields in the 'formname' do not exactly match the fields in the template in the data set. Do you really want to add the form to the data set?".
    When you've added it you will notice an additional column to the far left of the data view panel of the data set with the header "Has Different Fields". Depending on whether the data submitted had one or more instances added will determine whether the column has a Yes or a No in it. If there were multiple entries in that particular form, you will only see the first one until you've exported the data to your other application. The "Yes" or "No" isn't exported.
    Good luck

  • Preview and DataSets

    I have been using Crystal Reports 2008 Basic that comes with Visual Studio 2008 and have successfully been building reports. However due to the functionality restrictions in the Basic version I have decided to trial the full version. My main issue has been difficulties with formatting, particularly with charts and legend text.
    I gather with the full CR 2008 version I can change the legend text when in preview mode. However I'm having trouble using Preview mode when I have ADO.NET DataSet's as my datasource. I created an .XSD file in Visual studio to define a single table dataset schema and have designed my report around this XSD file. At runtime I populate a dataset and pass that to the CR Viewer using the SetDataSource property. All this works great. However I'm not sure what I should be doing in the designer to successfully get the Preview functionality to work. If I point my connection to the XSD file, preview returns a blank screen which is understandable as its just a schema file. Clicking use DataSet from Class seems to do nothing other than display an empty combo box. How do I get this to preview? I dont seem to have this hassle with the integrated VS designer, preview works well by just displaying dummy data in the abscence of real data. However I can't change the legend text using this designer. Can anybody help?

    Hi Mark,
    What you can do is save the dataset off as a combined XSD and XML file.  What you do is once you have retrieved the dataset in your code, just call myDataset.writeXML("MyFilePath.xml, XMLWriteMode.WriteSchema)
    This will save off an XML file that contains both the data and the XSD in it which you can then use in the report designer.
    Regards,
    Shawn

  • Trying to come to grips with sliding panels and datasets

    Hi there!
    I've just started looking into Spry (love it so far!) but
    having an issue combining the sliding panels widget and a Spry
    dataset. The widget works fine and the dataset works fine when
    seperate, but I come up against some problems when I combine them.
    As a guide, I've been using the following page:
    http://www.pixelz.co.uk/spryArticle.htm
    (copy of the article in the Spry Zip file)
    and using the Scenario 2 example at the end of the page.
    Unfortunately, there were a few bugs in it (like a colon
    where there should have been a semicolon and no titles in the
    navigation <a> tags at the top) so I did a little debugging
    and tied in my own dataset. The code that is running on this page (
    http://www.pixelz.co.uk/spryTest.html)
    looks like so:
    quote:
    <head>
    <script language="javascript" type="text/javascript"
    src="includes/xpath.js"></script>
    <script language="javascript" type="text/javascript"
    src="includes/SpryData.js"></script>
    <script language="javascript" type="text/javascript" >
    var dsTest = new Spry.Data.XMLDataSet("data/xmlTest.xml",
    "specials/menu_item");
    </script>
    <script language="javascript" type="text/javascript"
    src="includes/SprySlidingPanels.js"></script>
    <link href="includes/SprySlidingPanels.css"
    rel="stylesheet" type="text/css" />
    </head>
    <body>
    <div spry:region="dsTest" spry:repeatchildren="dsTest">
    <a href="#"
    onclick="sp1.showPanel('detail{ds_RowID}');">Page
    {ds_RowID}</a>
    </div>
    <div id="sPanel" class="SlidingPanels"
    spry:region="dsTest">
    <div class="SlidingPanelsContentGroup"
    spry:repeat="dsTest">
    <div id="detail{ds_RowID}"
    class="SlidingPanelsContent">
    <h3>{item}</h3>
    <p>{description}</p>
    <p><strong>{price}</strong></p>
    </div>
    </div>
    <script language="javascript" type="text/javascript">
    var sp1 = new Spry.Widget.SlidingPanels("sPanel");
    </script>
    </div>
    </body>
    The problem I'm having is that the panels don't change when
    the links are clicked. It seems to pull in the data fine, but the
    panels dont switch.
    When I looked at the generated source, it doesn't look quite
    right:
    quote:
    <body>
    <div id="spryregion1" class="">
    <a onclick="sp1.showPanel('detail0');" href="#">Page
    0</a>
    <a onclick="sp1.showPanel('detail1');" href="#">Page
    1</a>
    <a onclick="sp1.showPanel('detail2');" href="#">Page
    2</a>
    <a onclick="sp1.showPanel('detail3');" href="#">Page
    3</a>
    </div>
    <div id="sPanel" class="SlidingPanels" style="overflow:
    hidden;">
    <div class="SlidingPanelsContentGroup" style="left: 0px;
    top: 0px;">
    <div id="detail0" class="SlidingPanelsContent
    SlidingPanelsCurrentPanel">
    </div>
    </div>
    <div class="SlidingPanelsContentGroup" style="left: 0px;
    top: 0px;">
    <div id="detail1" class="SlidingPanelsContent
    SlidingPanelsCurrentPanel">
    </div>
    </div>
    <div class="SlidingPanelsContentGroup" style="left: 0px;
    top: 0px;">
    <div id="detail2" class="SlidingPanelsContent
    SlidingPanelsCurrentPanel">
    </div>
    </div>
    <div class="SlidingPanelsContentGroup" style="left: 0px;
    top: 0px;">
    <div id="detail3" class="SlidingPanelsContent
    SlidingPanelsCurrentPanel">
    </div>
    </div>
    </div>
    </body>
    I'm not sure, but I think the repeating region is a bit
    screwy, but I'm really not sure where to proceed from here.
    Any help would be appreciated! Thanks!
    Gareth

    Right - fixed it!
    <div class="SlidingPanelsContentGroup"
    spry:repeat="dsTest">
    <div id="detail{ds_RowID}"
    class="SlidingPanelsContent">
    should have read
    <div class="SlidingPanelsContentGroup">
    <div id="detail{ds_RowID}" class="SlidingPanelsContent"
    spry:repeat="dsTest">
    oh well...

  • Snapshot zone and dataset

    Hi,
    I (try !!) to manage a X86-64 solaris computer. and I want to create à snapshot in a secondary zone..
    That zone exist is ready and booted and I can login on it. So I use zfs snapshot koonytan/root/datatank to create the snapshot. And I got an error saying that there is no dataset for the snapshot. OK
    I search for dataset and found in an oracle/sun documentation, that I have to use zonecfg to create the data set :
    zonecfg -z koonytank
    zonecfg:zion> add dataset
    zonecfg:zion:dataset> set name=koonytank/root/dataset
    zonecfg:zion:dataset> end
    verrify, commit exit : no error.
    Then I reboot the zone with zoneadm and I get en error "the zone koonytank" could not be verify. and the zone don't boot.
    I have to remove the dataset declaration to reboot the zone.
    So my question is : How to declare a dataset. I have heard of a flag in the global zone that will be inherited by the zone but I found nothing on that.
    I thank you in advance
    Pierre Léonard

    Why do we require the reverse relation of rsign type 'A', what is the use of that?
    So that all HR objects are linked in both way... depending on your reporting need you could start looking at org. structure from the bottom (e.g. from employee point of view) or top (Org. unit point of view)....
    E.g, if you want to find the position of a given employee, better use the relation P->S (bottom up) than O->S->P (top bottom)since positon is not known...
    What is sclas in hrp1001 field for??? Should it be 'O' for all, shall I use all these 6 fields, in the select query , if i chose to solve my problem by select queries???
    Well why not just looking at his description ("Type of related object")....
    Object O can be linked to another object O (then OTYPE = "O" and sclas = "O") -> this is the case of your zone/region...
    But object O can be linked to an object S (position) (so OTYPE = "O" and SCLAS = "S") ....
    to summary:
    - SCLAS has the same meaning than OTYPE but for the linked object
    - SOBID has the same meaning that OBJID but for the linked object
    Let's say you want to check if relation exists between zone and region:
    SELECT count(*) FROM HRP1001
    WHERE OTYPE = 'O'
         AND OBJID = ID(Region)
         AND PLVAR = '01'
         AND SUBTY = 'B0002'   "(= concatenation of RSIGN and RELAT)
         AND ISTAT = '1'   "Active
         AND SCLAS = 'O'
         AND SOBID = ID(region).
    cheers, I need to go now

  • DataGrid and DataSet

    Does anyone know how to bind a dataSet to a dataGrid in
    Director?
    In Flash it's easy since you simply set the binding tab on
    the Components inspector to the DataSet... but if I import these
    flash components to Director there is no way other than using Lingo
    (or script) to bind these two together. Any ideas?

    That *is* a very interesting article. Unfortunately, it
    doesn't mention anything about DataSets. I haven't had any trouble
    getting my data into my flash application. I've also been able to
    put it into a DataGrid pretty easily (although not quite as
    elegantly as that example did).
    The problem is that I'm having issues when I introduce a
    DataSet for filtering. I can't get the data from the DataSet into
    the DataGrid like I want it. I haven't been able to hide the 'id'
    column of my data and the column names unfortunately are *exactly*
    what the Object property names are. I was hoping to put
    user-friendly column headers on their like 'Product Name' rather
    than 'name' or 'Style Number' rather than 'styleNumber'.
    Also, the concept of a schema is still somewhat beyond me. I
    tried changing the schema for my productDataSet to this and I got
    the data to display. I added 'name, 'styleNumber', and 'id'
    quote:
    <-->dataProvider : Array
    <-->deltaPacket : DeltaPacket
    <-->items : Array
    <-->selectedIndex: Number
    <-->name : String
    <-->styleNumber: String
    <-->id : Integer
    I have tried radically different shemas (schemae?) that seem
    to also get the data in there but I don't really understand what
    i'm doing here and I feel like I'm asking for trouble not knowing
    how this stuff really works.
    And, like I said before, i want to hide certain information
    that's in the DataSet so that it doesn't get displayed. I'd also
    like to Have some user-friendly names rather than the actual
    field/property identifiers.

  • Caching issues with IE and HTMLPanel and DataSet

    I have a div
    <div id="liw" class="HTMLPanel"></div>
    var liw = new Spry.Widget.HTMLPanel("liw");
    liw.loadContent("/subscriber/subscriber.py/getSubscriberHeader");
    A python method that lives at
    "/subscriber.py/getSubscriberHeader" this returns dynamic data
    based on logged in value.
    def getSubscriberHeader(req)
    if isLoggedIn(req):
    return "<p>Welcome User</p>"
    else:
    return "<p>You are not Logged In<form> login
    form here </form></p>"
    In Firefox when the user logs in with the login form and the
    pages reloads they get the welcome message. In IE even forcing a
    new page load using "ctrl F5" or "Shift reload" doesn't get the
    welcome message. Only closing IE and reopening it will get me the
    welcome message.
    Is there anything I can do about this?
    Another issue I have is with an Add/Browse page.
    I use a dataset to get me all the info on a bunch of cast
    members
    var ds2 = new
    Spry.Data.XMLDataSet("/admin/manage_cast.py/getCastMembers",
    "data/row",{sortOnLoad:"stage_name",sortOrderOnLoad:"ascending",distinctOnLoad:true,useCa che:false});
    I have a form in the same page that will add cast members to
    the same database that "/admin/manage_cast.py/getCastMembers" reads
    from.... when they add a new cast member in FireFox I see the new
    person added after page reload.... in IE I do not see the new
    person and I have to shut it down and open it to see the new data.
    Is there anything I can do about this? I am setting
    distinctOnLoad to true and useCache to false.

    For my dataset problem on the Add/Browse pages I forgot to
    mention I have tried using:
    updateContent
    Spry.Data.updateRegion
    Spry.Data.updateAllRegions
    Once that dataset is loaded I am unable to get it to fetch a
    newer version of the file, even with page reloads.

  • Lost with gridview and datasets..

    I'm trying to tie a gridview to a dataset and I can't (not a selectable option in datasource property).
    I have a datasource called qcrrDataset, with a table called employee_information. I'm trying to copy that source table into a temporary table..  The source qcrrDataset loads just fine in a gridview..
    I'm trying this:
    DataSet actualEmployeeList = new DataSet("ActualEmployeeDS");           // create dataset           
    actualEmployeeList.Tables.Add(qcrrDataset.Tables[0].Copy());                // copy one table to another.
    Ok this works, when I use the debugger, in the debug window I can see table[0] being populated from the original source.
    Great.
    Now I create a gridview, but I cannot see this new copy in the datasource properties..so I cannot bind to it.
    What in the heck am I missing?
    ~Brett

    Hi bflagg,
    I wonder if you got the original table in the actualEmployeeList. If you want to get the new copy in the datasource, I think you could try actualEmployeeList.Tables[1] in your code, you could try the code below 
    DataSet customerDataSet = new DataSet();
    customerDataSet.Tables.Add(new DataTable("Customers"));
    customerDataSet.Tables["Customers"].Columns.Add("Name", typeof(string));
    customerDataSet.Tables["Customers"].Columns.Add("CountryRegion", typeof(string));
    customerDataSet.Tables["Customers"].Rows.Add("Juan", "Spain");
    customerDataSet.Tables["Customers"].Rows.Add("Johann", "Germany");
    customerDataSet.Tables["Customers"].Rows.Add("John", "UK");
    DataSet customerDataSetcopy = new DataSet();
    customerDataSetcopy.Tables.Add(new DataTable("Customerscopy"));
    customerDataSetcopy.Tables["Customerscopy"].Columns.Add("Name1", typeof(string));
    customerDataSetcopy.Tables["Customerscopy"].Columns.Add("CountryRegion1", typeof(string));
    customerDataSetcopy.Tables["Customerscopy"].Rows.Add("Juan1", "Spain1");
    customerDataSetcopy.Tables["Customerscopy"].Rows.Add("Johann1", "Germany1");
    customerDataSetcopy.Tables["Customerscopy"].Rows.Add("John1", "UK1");
    DataSet customerDataSetcopy2 = new DataSet();
    customerDataSetcopy2.Tables.Add(new DataTable("Customerscopy2"));
    customerDataSetcopy2.Tables["Customerscopy2"].Columns.Add("Name2", typeof(string));
    customerDataSetcopy2.Tables["Customerscopy2"].Columns.Add("CountryRegion2", typeof(string));
    customerDataSetcopy2.Tables["Customerscopy2"].Rows.Add("Juan2", "Spain2");
    customerDataSetcopy2.Tables["Customerscopy2"].Rows.Add("Johann2", "Germany2");
    customerDataSetcopy2.Tables["Customerscopy2"].Rows.Add("John2", "UK2");
    customerDataSet.Tables.Add(customerDataSetcopy.Tables[0].Copy());
    customerDataSet.Merge(customerDataSetcopy2);
    foreach (DataTable dt in customerDataSet.Tables)
    string tablename = dt.TableName;
    MessageBox.Show(tablename);
    In the code above, you could use “customerDataSet.Tables[1]” or “customerDataSet.Tables["Customerscopy"]” to bind datasource. This “customerDataSet.Merge(customerDataSetcopy2);” show another way to copy one table to another.
    The link below might be helpful to you:
    # DataSet.Merge Method
    http://msdn.microsoft.com/en-us/library/system.data.dataset.merge(v=vs.110).aspx
    In addition, gridview is a control for asp.net application, you could get further support from the link below and you might post your asp.net issue in that forum.
    http://forums.asp.net
    Best Regards,
    Edward
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. <br/> Click <a
    href="http://support.microsoft.com/common/survey.aspx?showpage=1&scid=sw%3Ben%3B3559&theme=tech"> HERE</a> to participate the survey.

  • Trouble with dynamic XML and dataSets

    I am generating dynamic XML files from a datasource. When I
    try and load into a XMLDataSet I get an 'onLoadError' notification.
    Now, if I load the same dynamic content as a static XML file it
    works fine, so I know my XPath and XML structure is correct. Has
    anyone else run into this issue? I can't find anything
    online.

    Without actually seeing the file, I would say check your
    content-type and make sure it is 'text/xml'.
    You can see examples of setting the content type here:
    http://labs.adobe.com/technologies/spry/samples/utils/query2xml.html
    You can sometimes tell just by viewing the dynamic XML in the
    browser. If it shows as a XML tree, all is well. If it is a big
    blob of text, it's probably content-type...
    Let us know...
    Don

  • XML Export And Datasets

    I was going through the tutorial on exporting recordset data as xml.
    I created a page called export.asp I created a recordset, I ran the xml export, node mode, I took another page and tried to create a spry data set by using all files and choosing the export.asp page, but when I choose get schema it says:
    Unable to locate or parse the xml source(-1, -1)
    I'm connected to database recordset goes well, site is on a testing server
    localhost.. I put the spryassets folder in manually and pointed to it in that interface, Am I missing something?

    I do get an error browsing to the page, somthing like an error occured, please contact your system administrator, I have this on localhost right no if that changes anything, I also just typed the url in like http://localhost/Tport/export.asp and still cannot load the schema. Funny the tutorial did'nt mention nothing about browsing to the page and copying the url, unless I missed somthing, could it be somthing that need installed on windows vista to load locally? I am just at a loss, and realy want to get this to work, as I really see the potentual of this extention, with spry.

  • Multiple data sets: a common global dataset and per/report data sets

    Is there a way to have a common dataset included in an actual report data set?
    Case:
    For one project I have about 70 different letters, each letter being a report in Bi Publisher, each one of them having its own dataset(s).
    However all of these letters share a common standardized reference block (e.g. the user, his email address, his phone number, etc), this common reference block comes from a common dataset.
    The layout of the reference block is done by including a sub-llayout (rtf-file).
    The SQL query for getting the dataset of the reference block is always the same, and, for now, is included in each of the 70 reports.
    Ths makes maintenance of this reference block very hard, because each of the 70 reports must be adapted when changes to the reference block/dataset are made.
    Is there a better way to handle this? Can I include a shared dataset that I would define and maintain only once, in each single report definition?

    Hi,
    The use of the subtemplate for the centrally managed layout, is ok.
    However I would like to be able to do the same thing for the datasets in the reports:
    one centrally managed data set (definition) for the common dataset, which is dynamic!, and in our case, a rather complex query
    and
    datasets defined on a per report basis
    It would be nice if we could do a kind of 'include dataset from another report' when defining the datasets for a report.
    Of course, this included dataset is executed within each individual report.
    This possibility would make the maintenance of this one central query easier than when we have to maintain this query in each of the 70 reports over and over again.

  • OracleDataAdapter returning wrong number of columns

    Hello All,
    I have an issue of an oracle data adapter not returning all columns in my select statement. When I use code similar to below, the data adapter returns 2 columns per row instead of 5. And they are out of order (ie, DataRow(0) could be column 1 and DataRow(1) could be column 4 -- so I don't see which columns have been dropped without looking at the value).
    The database id XE on the local machine. The connection works fine. And the internal VS.NET PL/SQL debugger returns the query just fine.
    Some of the columns I'm trying to get are null -- in fact, most are. But they are changed during the program. So I still need them to show up in the dataset.
    BTW, I have had zero success getting OracleCommand.BindByName and OracleParameters to work, so I punted. Since I can get what I want out of readers and datasets, I can live without'em -- or can I?!?!
    I think my problem has something to do with handling null values. So I have tried the select statement with NVL wrapping the fields that could be null. But still no success.
    Any ideas?
    Table:
    account char(30) not null
    col_code as NUMBER(1,0) null ok
    columnIDontNeed as whatever null ok
    sum1 as char(1) null ok
    sum2 as char(1) null ok
    sum3 as char(1) null ok
    anotherColumnIDontNeed as whatever null ok
    Sample Code:
    dim oconn as New OracleConnection(conStrBldr.toString)
    Dim cmdLedger As OracleCommand = oconn.CreateCommand
    cmdLedger.BindByName = True ' seems to affect nothing! ever!
    cmdLedger.AddToStatementCache = False ' no noticable affect
    cmdLedger.CommandText = " SELECT account,col_code,sum1,sum2,sum3 "
    cmdLedger.CommandText &= "FROM gl.ledger "
    cmdLedger.CommandText &= "ORDER BY gl.ledger.account "
    cmdLedger.CommandType = CommandType.Text
    ' Create DataAdapter based on main Ledger SELECT
    Dim cmdLedgerDA As New OracleDataAdapter(cmdLedger)
    cmdLedgerDA.ReturnProviderSpecificTypes = True ' same results with False
    ' Create DataSet and Fill it.
    ' After this, we can now use this dataset
    ' to iterate through the GL ledger data.
    Dim cmdLedgerDS As New DataSet("GLBal")
    Try ' to fill dataset with Ledger SELECT
    ' fill dataset from OracleDataAdapter and the
    ' previously defined Oracle Command.
    cmdLedgerDA.Fill(cmdLedgerDS, "GL.LEDGER") ' tried with and without src
    Catch ex As OracleException
    ShowEx(ex)
    End Try ' to fill dataset with Ledger SELECT
    These are the typical test from within VB that I've run to check what was returned:
    console.writeline(cmdLedgerDS.Tables(0).Rows(0).ItemArray.Length)
    2
    dim row as DataRow = cmdLedgerDS.Tables(0).Rows(0)
    console.writeline(row(0).toString & row(1).toString & row(2).toString & row(3).toString & row(4).toString) ' EXCEPTION IS THROWN

    I cannot reproduce the error using basic code below. What is the specific exception you get?
    And BindByName is not necessary since you're not using bind variables
    Sub Main()
        Dim da As OracleDataAdapter
        Dim sqlstr As String
        Dim connstr As String
        Dim ds As DataSet
        Dim dr As DataRow
        Dim dc As DataColumn
        Try
            sqlstr = "select employee_id, first_name, last_name, null, salary "
            sqlstr &= "from employees where rownum < 10"
            connstr = "Data Source=xe;User ID=hr;Password=hr;"
            da = New OracleDataAdapter(sqlstr, New OracleConnection(connstr))
            ds = New DataSet("EmployeeDS")
            da.Fill(ds, "employees")
            For Each dc In ds.Tables("employees").Columns
                Console.Write(dc.ColumnName & " ")
            Next
            Console.WriteLine()
            For Each dr In ds.Tables("employees").Rows
                Console.WriteLine(dr(0).ToString & " " & _
                    dr(1).ToString & " " & dr(2).ToString & " " & _
                    dr(3).ToString & " " & dr(4).ToString)
            Next
        Catch ex As Exception
            Console.WriteLine(ex.Message)
        End Try
    End SubOutput should look like
    EMPLOYEE_ID FIRST_NAME LAST_NAME NULL SALARY
    100 Steven King  24000
    101 Neena Kochhar  17000
    102 Lex De Haan  17000
    103 Alexander Hunold  9000
    104 Bruce Ernst  6000
    105 David Austin  4800
    106 Valli Pataballa  4800
    107 Diana Lorentz  4200
    108 Nancy Greenberg  12000I am using VS2005, ODP 10.2.0.2.21 and OracleXE on remote machine.
    NH
    Message was edited by:
    nurhidayat

Maybe you are looking for

  • Possibility of AP and contracts accounts payable payments running parallel

    Hi Gurus,   My client already has a SAP system and they are planning to implement FICA for contract accounting. Is it possible to have contracts accounts payable and accounts payable systems running in parallel for the payments. Please let me know th

  • EASY DMS

    Dear all, In easy DMS , find or search document screen some of field are in grey ex. full text search wht is a reson and how i can remove it? KIndly help

  • Mapping   Execute Mapping Utilization of All Temp Space

    Background: Creating a Master Table in Data Warehouse; Containing 16 tables (3 - outer joins; Remainder are inner; Total Target table size 8.2 Million reocrds) *** I've ran successfully when I create my own Select statement {takes about 60-70 seconds

  • I can't transfer my apps downloaded from my iPod(WiFi) to my iTunes(Computer). Help!

    I can't transfer my apps to my computer and this is a problem because when you update your iPod you have to transfer your apps to your itunes I didn't have this problem with the computer that I synced the iPod to when I bought it, maybe that might be

  • SAP CRM Implementation & It's GAP

    actully i m new in SAP CRM field but having good knowledge about marketing consept. i m little confuse about the SAP CRM implimentation, I know it's a complex process and it's main motive to profit maximization & shortend the sales bind-up and many m