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
Similar Messages
-
Report Control and Multiple Datasets/Result Sets
I have four results sets, Plan, Forecast, Actual and SPLY per eight different product lines. I want to add conditional formatting of background color if actual is above or below Plan and/or Forecast. The report needs to export properly to Excel.
Is there a way I can use one control rather than multiple text boxes to display the data, allow for conditional formatting and export to Excel.? Thanks!
Environment:
SSRS 2010
SQL Server 2012Hi blairv,
If I understand correctly, you have a dataset in the report which include four fields: Plan, Forecast, Actual and SPLY. Each filed contains eight values.
In SQL Server Reporting Services (SSRS), we can use table, matrix or list display report data in cells. The cells typically contain text data such as text, dates, and numbers but they can also contain gauges, charts, or report items such as images.
Reference: http://technet.microsoft.com/en-us/library/dd220592.aspx
In your case, we can use expression to configure these items background color. Please refer to the following steps:
Click a specific text box in the report. Click BackgroundColor prompt in the Properties dialog box.
Click Expression prompt. And fill with expression below:
=IIF(Fields! Actual.Value>Fields! Plan.Valeu Or Fields! Actual.Value>Fields! Forecast.Valeu,”Red”,”Blue”)
Reference: http://msdn.microsoft.com/en-us/library/ms157328.aspx
If there are any miunderstanding, please feel free to let me know.
Regards,
Alisa Tang
If you have any feedback on our support, please click
here.
Alisa Tang
TechNet Community Support -
Creating a Month dropdown list for a report with multiple datasets
I am currently working on a report that contains many charts that rely on multiple datasets. Currently, I have parameters @StartDate and @EndDate to display the information of the previous month across all the charts as my default value. Now, I would like
to create a dropdown list so that the user can pick any month, and have the report display the data across all the charts for that particular month, while keeping the display of the previous month as the default value. Can anyone help as to how I can approach
this. Would I have to use an expression when I specify my available values, or would I have to create a dataset to get the value of all 12 months? Any help would be greatly appreciated.This is essentially where I am having some trouble, as in creating the dataset that returns the individual months of the year as I am relatively to the use of SSRS. Could you possibly elaborate on how I can do so? Thank you in advance!
Create a dataset in SSRS
Inside dataset properties map datasource and then inside give command like
DECLARE @Month int = 5 --example value
SELECT ...
FROM Table
WHERE datefield >= DATEADD(mm,DATEDIFF(yy,0,GETDATE())*12 +(@Month-2),0)
AND datefield < DATEADD(mm,DATEDIFF(yy,0,GETDATE())*12 +(@Month-1),0)
then on refresh it will take field information and parameter information by itself.
Please Mark This As Answer if it solved your issue
Please Mark This As Helpful if it helps to solve your issue
Visakh
My MSDN Page
My Personal Blog
My Facebook Page -
Lookup or Filter multiple datasets in an Expression?
Hi
I am new to Visual Studio and am trying to find my feet.
I have a totals form which I can use an Expression to select all the data from multiple datasets fine, but I am wanting to filter the results to just show a single user at a time on my form. (Dataset shows Users and Grand Totals)
Is it possible to use an Expression to say (Select ["Grand Totals" from Dataset1] where ["User" from Dataset1] = "Julie Smith") ?
Thank you
TraceyHello Tracey,
Your issue is out of support range of VS General Question forum which mainly discusses the usage issue of Visual Studio IDE such as
WPF & SL designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System
and Visual Studio Editor.
I am moving your question to the moderator forum ("Where is the forum for..?"). The owner of the forum will direct you to a right forum.
In addition, If you are working with Windows Forms app, you can consult on Windows Forms Forum:http://social.msdn.microsoft.com/Forums/windows/en-US/home?category=windowsforms
If you are working with WPF app, you can choose WPF forum:
http://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=wpf
If you are working with ASP.NET Web Application, I suggest that you can consult your issue on ASP.NET forum:
http://forums.asp.net/
for better solution and support.
Visual Studio Language Forums:
http://social.msdn.microsoft.com/Forums/vstudio/en-US/home?category=vslanguages
Best regards,
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.
Click
HERE to participate the survey. -
Multiple Datasets w/ Observers
I have a spry-ajax paging system setup so users can goto the
next 10 records, or back 10 records, etc.
it uses the onDataChanged observer to do
contentObserver.onDataChanged = function(dataSet, data){
Do some stuff
This works fine when there is one dataSet being used, but now
we need to add paging for multiple datasets, and we could have 5 or
6 on a page.
Normally, I would just do this:
contentObserver.onDataChanged = function(dataSet, data,
dataSetNumber){
But I'm new to observers, and my understanding is it doesn't
work that way. But there must be a way to know inside my function
what dataset is being returned.
So has anyone every done spry paging with multiple datasets
and could shed some light on this?Try to create a general function like this:
myDataChanged = function(dataSet, data, datasetnumber){
Do some stuff
and then call this function from within different observers:
ds1.addObserver({onDataChanged:function(ds, data){return
myDataChanged(ds, data, 1)}});
ds2.addObserver({onDataChanged:function(ds, data){return
myDataChanged(ds, data, 2)}});
ds3.addObserver({onDataChanged:function(ds, data){return
myDataChanged(ds, data, 3)}});
If this doesn't help you, please describe us the real use
case when you need multiple pagination.
Thanks,
Diana -
No content with multiple datasets in detailregion
I have a detailregion, in which I don't just want to display
data, but want to enable data maintenance via a form. There are
some dynamic select fields, so their datasets are declared together
with the main dataset when the detail region is set up. T
The code used to declare the detailregion is
<div spry:detailregion="routerlist_xml edit_country_xml
edit_region_xml">
The detailregion that should be under the list display is
well - not showing.
When I take the datasets for the select fields away so the
line looks like
<div spry:detailregion="routerlist_xml">
the detailregion displays as expected.
(Of course the browser will complain about the missing
datasets, but that is not the point here).
Is it not possible to have multiple datasets in a
detailregion? If not, what is a workaraound to get a dynamic select
into a detailed field? If yes, is there anything wrong in my code?
Or is there a bug in the Spry framework?
Any pointers are welcome.
ThanksTrial and error solved the problem.
When there is an error XML the dataset for the dynamic select
field is based on, then the whole region in to which the dataset
was linked will not be shown.
The 'error' in my case, it appears, were non-US keyboard
characters (from a german keyboard). The underlying database mysql
is set to UTF8-unicode, and the xml-export function has
$xmlExportObj->setDBEncoding("UTF-8");
$xmlExportObj->setXMLEncoding("UTF-8");
in its code.
Once those characters were removed, it all worked fine.
To make things even more confusing was the fact that the page
worked fine in Firefox when the detailed region just would not show
in IE7 due to the special characters.
A bug or a compatibality issue for the Adobe crew to check
out ?
Comments welcome... -
I have one apple ID and multiple family members share this with their individual devices. How do we keep pics and messages separate for each device?
For messages
MacMost Now 653: Setting Up Multiple iOS Devices For Messages and FaceTime
For other issue:
How to use multiple iPods, iPads, or iPhones with one computer
What is the best way to manage multiple...: Apple Support Communities -
I've been a Mac since 2008, so I know my way around the system pretty well. This issue, however, has me stumped. I had an iMac until now and only now am I experiencing some difficulty with my new MacBook Pro. The model I have is the newest 13" Macbook Pro model and I'm trying to connect a Panasonic VIERA TC-L42U30 42" HDTV as a second monitor via the Thunderbolt port.
It worked the first two times and hasn't worked since, after 10-15 attempts with different configurations, turning things on n off, restarting the mac, unplugging the cables, adapters, TV, resetting the P RAM, etc... I've used multiple hdmi-thunderbolt/mini displayport adapters and multiple hdmi cables and still no success. No matter what I do, the Macbook does not sense the TV as a second monitor anymore.
I took the MacBook Pro to the Apple Store, and their "genius" there had it working fine with a DVI connection to a regular monitor. The Panasonic TV I have has HDMI connections and one VGA connection which does not support HD, but no DVI option. I want an HD connection to mirror or extend my MacBook Pro screen. At the Apple Store, they didn't have a Thunderbolt/Mini DisplayPort to HDMI adapter, so he could not try that out for me.
Anyone else have this configuration or another similar one with a Panasonic HDTV?
Ideas? Suggestions? Anything?! Help!!
P.S. I'm running Mountain Lion, if that wasn't already obvious. Everything is up to date in my App Store as well.
Thanks!Hi There,
I have had the exact same issue but with a projector.
The issue lies with Mountian Lion 10.8.2.
I tried many a combination with no luck to get HDMI working.
Took my mac into the apple store and came to the conclusion it was the software, so I asked them to install 10.8 onto it (this is destructive so a backup is a must)
Bought my macbook home and voila, now displaying through my projector.
There is a small graphics update after 10.8.1 which seems to be the cause.
Hope this helps.
Thanks. -
Open dataset and close dataset
Hi
I need to write log file in fileshare.
I am using the following FM to create the file.
Z_FILE_OPEN_OUT_UNICODE'
I have following qns
1. do i need to use open dataset and close dataset stmts, even I create the files with the FM?Hi,
you can fill in the name of the FM in transaction SE37, then click 'Display' and look at the source code and the 'Tables' tab.
It's a custom build FM, so you might have to look at the import parameters it needs... ( Tab 'Import' and 'Tables' ).
To answer your question, as the name of the FM suggests it will write the file for you, so no open/close dataset. Please doublecheck tab 'Source code' and you might find these statements there...
hope that helps,
Rolf -
Hello, I have iMac Itel i3, from Oct, 2010 and have OS 10.6.7 and multiple users.
About 3-4 days ago the Mail icon in dock had question mark and was accidently removed, along with program on my user. Oops.
1. Mail 4.4 is on other users and works fine, but for me it does not work and tells me V4.3 does not work with latest OS X.
2. I reloaded software from my user with original disks (Oct, 2010) and got Mail 4.3 again. Mail 4.3 did not work with latest OS. I am unable to load Mail. Gives Yellow error message.
" You have Mail version 4.3 (1081/1084). It can’t be used on Mac OS X Version 10.6.7 (Build 10J869). For more information, click the Help button."
3. Tried to update software and look for update for mail 4.3 on Apple site to no success.
Hate to go to MS-Entorage ( I may need to learn something new and alien) mail program since contracts are in Mail/Address Book.
Ideas?
MattDeedsMatt,
I would download and run the 10.6.7 combo update.
http://support.apple.com/kb/DL1361
Regards,
Captfred -
Can I use one itunes account for multiple users and multiple devices
Can I use one itunes account for multiple users and multiple devices?
The iTunes EULA, as I understand it (I'm not an attorney )for Apps is basically that one person can use an App multiple devices, or multiple people can use an App one device..so one to many or many to one, but not many to many....
-
How to bundle a .FLA and multiple .SWF files in one .EXE?
Hi,
I have a .FLA file which uses loadMovieNum() to load various
.SWF files when each one is called by the user clicking on a
button. Each .SWF file also uses loadMovieNum() to call a second
.SWF file. When I publish the .FLA file as a .SWF file it all works
beautifully.
Now I need to package the entire project into a Windows
projector .EXE file for offline use on a computer without the Flash
Player. When I publish the main .FLA file as a .EXE file, the .SWF
files still load, although they blink before fully loading and
displaying steadily.
What I would really like to do is to bundle all the .SWF
files into the .EXE file so when I send the finished project to the
end user, they only have to deal with one file, rather than a
folder with the .EXE file and multiple .SWF files.
Is there a way to do this?
I am using Flash 8 Professional.
Thanks,
CamSince this isn't going to be web-based, why not include all
the external swf files into the same Flash file and then use
attachMovie?
This will allow you to create one .exe file that would
contain EVERYTHING. Since you aren't worried about loading speeds,
you don't have to load the movie clips, but can simply create one
large Flash file. -
One premium account and multiple Skype HD devices
Will one Premium account and multiple non premium HD accounts work for video calling? Basically the idea is 10 HD skype devices, the set top boxes connected to tvs will dial into one Premium Mac or PC account for multiple video conferencing.
Yes, one user needs to have a Group Video Calling subscription.
Unfortunately, not all devices support Group Video calling (TV's for example, do not).
Please see our website for more information: http://www.skype.com/en/features/group-video-chat/. -
HT4137 iCloud setup with one Apple ID and multiple devices
iCloud setup with one Apple ID and multiple devices
What, exactly, are you trying to do? You can use the same iCloud account on as many devices as you want, as long as you don't turn on iTunes Match. Once you turn on Match, you're limited to 10 devices total.
Is this what you want to do...same iCloud account, but different iTunes/App store accounts on each device? If so, you can do that also. -
I have two macs at my house, and multiple iPhones. I want to keep the same apple id as everyone else, but i want to put my own music only on my iPhone. I want to do this with my laptop which is not the family's main iTune's computer.
If you use the same Apple ID for iCloud on each device, yes. However, you can use the same Apple ID for iTunes content on each device, but different Apple ID's for iCloud, iMessage, FaceTime, etc., on each device. That way, you can have whatever iTunes content you want on each phone, but keep all of the other data separate. You can create another Apple ID here:
https://appleid.apple.com/cgi-bin/WebObjects/MyAppleId.woa/wa/createAppleId?loca lang=en_US
Must be a verified email address.
Maybe you are looking for
-
Conversion fator for Unit of Measure in BI 7.0
Hi Experts, Cud you pls tell me how Unit of measure conversion works in BI 7.0. I am getting dialog box of UOM conversion in the properties of BEX but not able to convert Conversion for Unit of measure? Thanks in advance! Sapna
-
How to store ,retreive and edit data from an xml file
I am new to XML. I am creating a phone book in JSP with backend as an XML file.How can I store retrieve and edit datas from a jsp file. Please provide me with examples.I dont want to use bean. Please provide examples
-
Handling Java Exception via WSIF
Hi all, On BPEL, I want to catch exception thrown by Java method exposed via WSIF so that I can propagate the error message to BPEL client, but it seems that instead of getting my exception, BPEL keeps getting remoteException, is it possible at all ?
-
Publishing PDF Forms on Intranet
I have these interactive PDFs that i created using designer. They work fine as pdfs, you can enter information and close out and when you reopen the information is gone and you are back to your original blank form. However, when i publish the pdf on
-
Hi, Can anyone help me on the following: I implemented ALSB-MQ Series integration as suggested by Paco Gomez. I could complete all the steps successfully. But I am getting the follwoing error when I test the Business service that sends the msg to MQ