Parametervalues not filled in parameter panel after first time refresh
Hi,
I have made an Windows.Forms application in VS2008, and when I hit the refresh button for the first time and the Parameter panels pops up I want the default parameter values to be visible in the fields of the panel.
Does someone have an idea how to do this?
My sourcecode looks like this:
''' <summary>
''' </summary>
''' <param name="sender"></param>
''' <param name="e"></param>
''' <remarks></remarks>
Private Sub MainForm_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim param As New ParameterValues
param.AddValue("NL")
If Not IO.File.Exists(xmlDataSource) Then
Throw (New Exception("Unable to locate datasource file:" & vbCrLf & xmlDataSource))
End If
'Fill DataSet with xml data
tempDataSet.ReadXml(xmlDataSource)
mailDataSet.Tables(0).Merge(tempDataSet.Tables(0))
'Set Report DataSource
rpt.SetDataSource(mailDataSet.Tables(0))
rpt.DataDefinition.ParameterFields("Taal").ApplyCurrentValues(param)
crViewer.ReportSource = rpt
crViewer.ShowGroupTreeButton = False
crViewer.ShowParameterPanelButton = False
crViewer.ShowRefreshButton = False
End Sub
''' <summary>
''' </summary>
''' <param name="sender"></param>
''' <param name="e"></param>
''' <remarks></remarks>
Private Sub MainForm_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles MyBase.FormClosing
If rpt.HasSavedData Then
rpt.Dispose()
End If
End Sub
gr.
Hans
Edited by: Hans van Toorn on Jan 27, 2009 10:45 AM
Edited by: Hans van Toorn on Jan 27, 2009 10:45 AM
Try something like this.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using CrystalDecisions.CrystalReports.Engine;
using CrystalDecisions.Shared;
namespace cr12_add_default_values
public partial class Form1 : Form
private ReportDocument boReportDocument;
public Form1()
InitializeComponent();
private void Form1_Load(object sender, EventArgs e)
boReportDocument = new ReportDocument();
boReportDocument.Load(Application.StartupPath + "\\..\\..\\CrystalReport2.rpt");
// Parameter code
ParameterField boParameterField;
ParameterDiscreteValue boParameterDiscreteValue;
// Add default values to parameter1
boParameterField = boReportDocument.ParameterFields["parameter1"];
boParameterDiscreteValue = new ParameterDiscreteValue();
boParameterDiscreteValue.Value = "value 1";
boParameterField.DefaultValues.Add(boParameterDiscreteValue);
boParameterDiscreteValue = new ParameterDiscreteValue();
boParameterDiscreteValue.Value = "value 2";
boParameterField.DefaultValues.Add(boParameterDiscreteValue);
boParameterDiscreteValue = new ParameterDiscreteValue();
boParameterDiscreteValue.Value = "value 3";
boParameterField.DefaultValues.Add(boParameterDiscreteValue);
// Add default values to parameter2
boParameterField = boReportDocument.ParameterFields["parameter2"];
boParameterDiscreteValue = new ParameterDiscreteValue();
boParameterDiscreteValue.Value = 10;
boParameterField.DefaultValues.Add(boParameterDiscreteValue);
boParameterDiscreteValue = new ParameterDiscreteValue();
boParameterDiscreteValue.Value = 20;
boParameterField.DefaultValues.Add(boParameterDiscreteValue);
boParameterDiscreteValue = new ParameterDiscreteValue();
boParameterDiscreteValue.Value = 30;
boParameterField.DefaultValues.Add(boParameterDiscreteValue);
crystalReportViewer1.ReportSource = boReportDocument;
Similar Messages
-
Folio Overlay Buttons not showing up on Panels after DPS Tool update
Folio Overlay Buttons not showing up on Panels after DPS Tool update
You're going to have to do much better as far as describing the problem. A screenshot would be a good start.
Bob -
I can not purchase on ITunes for the first time because I forgot the answer to my security questions, is there a way I can log into my account and figure out the awensers to the questions?
Some Solutions for Resetting Forgotten Security Questions: Apple Support Communities
-
I have had FPCX since Sept, first used Oct. I have not had one 'movie' export properly, first time since using FPCX. Audio stops completely at some point and does not re-start. Any ideas, folks?
First, I suggest you limit the subject line of your question to a few words which will help someone identify the problem you are encountering. Putting the entire question there looks as though you are shouting.
It would help anyone to identify your problem if you were to say what video codec (file format) you are using, and describe the method you are using in your attempts to export it.
You could also list any relevant error messages you encounter.
What version of FCP X are you using?
All these things will make it easier for people to help you.
Andy -
ValueChangeListener in Radio Button not acting after first time
Hi,
I am using ADF-BC-JSF in Jdev 10.1.3.3. I have a page on which there are 2 radio buttons which show blank at first. As soon as a user selects a radio button, the valueChangeListener calls up a method in the backing bean that opens a dialog for the user. User enters some text in to the dialog and clicks OK after which the window closes. If the user clicks Cancel on the dialog page, the window is still closed but radio button value is reset to blank through javascript. the problem is that it works only first time. second time it tries to autosubmit but only the constructor of the backing bean is called and not the actual function to open the window. Following is the code snippet that may be helpful.
Radio Buttons
<af:selectOneRadio value="#{bindings.SP11WarrantDetailsViewMetallurgistReviewStatus.inputValue}"
layout="horizontal"
id="metallurgistRadioBtn"
autoSubmit="true"
valueChangeListener="#{UploadDownloadBean.exampleOpenDialog}"
disabled="#{ !UserInfo.metallurgist || bindings.SP11WarrantDetailsViewMetallurgistReviewStatus !=''}">
<af:validator binding="#{bindings.SP11WarrantDetailsViewMetallurgistReviewStatus.validator}"/>
<af:selectItem label="Approved" value="Approved"/>
<af:selectItem label="Rejected" value="Rejected"/>
</af:selectOneRadio>
Function to Open the Window
public void exampleOpenDialog(ValueChangeEvent valueChangeEvent)
// Add event code here...
FacesContext context = FacesContext.getCurrentInstance();
// Create the dialog UIViewRoot
ViewHandler viewHandler = context.getApplication().getViewHandler();
UIViewRoot dialog = viewHandler.createView(context,"/sp11/warrant/MetallurgistNotes.jspx");
HashMap properties = new HashMap();
AdfFacesContext afContext = AdfFacesContext.getCurrentInstance();
afContext.launchDialog(dialog,
null, // not launched from any component
null, // no particular parameters
true, //show in dialog
properties);
Javscript for resetting the Radiob button
function closeWindowOnCancel()
if(parent.window.opener.document.getElementById("notesValueHolder").value == '' )
parent.window.opener.document.getElementsByName("metallurgistRadioBtn")[0].checked = false;
parent.window.opener.document.getElementsByName("metallurgistRadioBtn")[1].checked = false;
Please suggest what can be the possible cause.
Regards,
NeerajHi,
I am using ADF-BC-JSF in Jdev 10.1.3.3. I have a page on which there are 2 radio buttons which show blank at first. As soon as a user selects a radio button, the valueChangeListener calls up a method in the backing bean that opens a dialog for the user. User enters some text in to the dialog and clicks OK after which the window closes. If the user clicks Cancel on the dialog page, the window is still closed but radio button value is reset to blank through javascript. the problem is that it works only first time. second time it tries to autosubmit but only the constructor of the backing bean is called and not the actual function to open the window. Following is the code snippet that may be helpful.
Radio Buttons
<af:selectOneRadio value="#{bindings.SP11WarrantDetailsViewMetallurgistReviewStatus.inputValue}"
layout="horizontal"
id="metallurgistRadioBtn"
autoSubmit="true"
valueChangeListener="#{UploadDownloadBean.exampleOpenDialog}"
disabled="#{ !UserInfo.metallurgist || bindings.SP11WarrantDetailsViewMetallurgistReviewStatus !=''}">
<af:validator binding="#{bindings.SP11WarrantDetailsViewMetallurgistReviewStatus.validator}"/>
<af:selectItem label="Approved" value="Approved"/>
<af:selectItem label="Rejected" value="Rejected"/>
</af:selectOneRadio>
Function to Open the Window
public void exampleOpenDialog(ValueChangeEvent valueChangeEvent)
// Add event code here...
FacesContext context = FacesContext.getCurrentInstance();
// Create the dialog UIViewRoot
ViewHandler viewHandler = context.getApplication().getViewHandler();
UIViewRoot dialog = viewHandler.createView(context,"/sp11/warrant/MetallurgistNotes.jspx");
HashMap properties = new HashMap();
AdfFacesContext afContext = AdfFacesContext.getCurrentInstance();
afContext.launchDialog(dialog,
null, // not launched from any component
null, // no particular parameters
true, //show in dialog
properties);
Javscript for resetting the Radiob button
function closeWindowOnCancel()
if(parent.window.opener.document.getElementById("notesValueHolder").value == '' )
parent.window.opener.document.getElementsByName("metallurgistRadioBtn")[0].checked = false;
parent.window.opener.document.getElementsByName("metallurgistRadioBtn")[1].checked = false;
Please suggest what can be the possible cause.
Regards,
Neeraj -
Not able to connect DAC client after first time
Hi ,
I am installing OBI apps 7.9.6.2 . While configuring DAC , I was able to login to DAC client
with Administrator/Administrator ( given by oracle) for the first time and started exporting the metadata .
Unfortunately my machine got shut off in between the process .
Now after re-starting my machine , I am not able to logon to DAC with the same UserID / password .
Error : "Can't Authenticate user"
Since I can not logon , I can not create any other user too ,
I have tried creating a new authentication file too .
Please let me know if I am missing anything .
Please help em on this , I need to install OBI Apps 7.9.6.2 on a urgent basisHI ,
I restarted infa services , DAC server is still not started ( I am following steps as in install guide)
and tried to re-log and configure .
No luck .
client is able to connect to database , since test connection with DAC repository schema is working ,
but it is not finding the user in repository database .
I am thinking droping the repository schema and re-create so that during configuration of DAC repository is created again .
please let me know your suggestion . -
Portlet will not post back after first time
I have a portlet that is using WC 2.2 in version 5.0.4 of the portal. The portlet renders fine and posts back fine the first time. Subsequent clicks on any button requiring a postback go nowhere (just the cursor displaying as an hourglass). No request is made to the web server so it must be hung up in the postback javascript somewhere. Has anyone experienced this issue before. Thanks in advance.
Then I don't know. In these situations I use Visual Studio to attach to IE and do client-side debugging. It's a bit tricky, but doable. Then you can trace where it goes after the second click (if anywhere). Unless someone had the same problem and knows the answer...
Although, we did have a very similar problem where second post back did not work (it would freeze with a hourglass). In our case it was because PTWC 2.2 can't handle large viewstates generated by a data grid. When we disabled the view state, it worked.
Ruslan. -
Content not appearing after first time
I could really do with some help on this one.
I have a screen (State) in my application that displays some
custom mxml components using a repeater. The first time I come to
this screen, all the data appears correctly. However if I navigate
away from this screen to another screen (State), then return to it,
all that appears is a scroll bar, with no custom components
appearing.
I would appreciate if anyone can take a peek at my code below
to try and identify the problem. Perhaps this is a problem others
have experienced?
The relevant code is as follows:
<mx:State name="ComponentFolderScreen"
basedOn="QualificationSummaryScreen">
<mx:RemoveChild
target="{qualificationSummaryScreenDG}"/>
<mx:AddChild relativeTo="{vbox1}"
position="lastChild">
<mx:Tile autoLayout="true" width="740" height="230"
id="tile1" borderStyle="none">
<mx:Repeater id="productsRepeater"
dataProvider="{this.category1}" >
<local:ComFolderItem
mouseOver="CFSMouseOver_Folder(event)"
click="CFSClick_Folder(event)"
studentName='{productsRepeater.currentItem.productName + "(" +
productsRepeater.currentItem.productPrice + ")"}'
componentStatus='{productsRepeater.currentItem.componentStatus}'
>
</local:ComFolderItem>
</mx:Repeater>
</mx:Tile>
</mx:AddChild>
</mx:State>
And here is the code that populates the ArrayCollection that
is the dataprovider
var ComponentFolderData:ArrayCollection = new
ArrayCollection();
ComponentFolderData =
_dataManager.returnComponentFolderData(componentCode);
var howManyObjects:uint = ComponentFolderData.length;
var objectInstance:Object = new Object();
category1 = new ArrayCollection();
for (var objectIndex:uint = 0; objectIndex <
howManyObjects; objectIndex++) {
objectInstance.productName =
ComponentFolderData.getItemAt(objectIndex).productName;
objectInstance.componentStatus =
ComponentFolderData.getItemAt(objectIndex).componentStatus;
category1.addItem(objectInstance);Hi there
600 seconds? Seriously? OMG, that's ten minutes!
Personally, I would never recommend having a slide longer
than maybe ten
seconds. I'm not sure how you even manage a timeline that
long.
At any rate, whatever floats your boat I suppose. My guess is
that you have some object (Click Box, Button or Text Entry Box)
that is sitting on the timeline and pausing things before the
button you wish to see has a chance to appear.
Cheers... Rick -
Airplay sound not mirroring after first time until restart
Anyone else seeing this issue?
When we connect either the iMac or the MacBook Pro to our 2nd generation apple tv via airplay the first time, the sound goes to the tv as expected.
If we try to use airplay a second time, the sound stays on the computer, though the picture shows up on the tv. If we try to change the sound in preferences to the apple tv, the airplay connection is broken. Once we restart the computer, the sound works as expected.
All of the latest system software updates have been applied.That is right - upgrade to Mac as in purchase a Mac which now have Intel processors and the ability to also install and use Windows XP or Vista along with OS X on the same computer.
I wonder if u have gone thru Apple's OS X license agreement recently?
I have gone through the Apple website recently but I don't need to. Regardless, the answer remains the same and will not change. If you want to run OS X, you need to purchase a Mac. -
I have a Mac Book Pro 2.4 GHz Intel Core i7; Memory 4 GB 1333 MHz DDR3
Mac OS X Version 10.7.5
I updated to iTunes 12.0.1.26 and I am trying to burn a playlist and I get the following message: "Disc burner or software not found" . I have burned lots of CD's and DVD's before and this is the first time I get this message and cannot burn anything. Can anybody help me, please?Hello queenabs,
It sounds like you are trying to burn a playlist to a disc in iTunes, but you are getting the error, "disc burner or software not found." I found a couple of resources that I think might help with an error like this.
I recommend starting with the steps in this article:
iTunes for Windows: Optical drive is no longer recognized, or "Disc burner or software not found" alert after install
http://support.apple.com/kb/TS2308
If you are still having trouble with burning a disc after following the steps in that article, I recommend following the steps in this article:
iTunes for Windows: Additional troubleshooting tips for burning issues
http://support.apple.com/kb/TS1374
Thank you for using Apple Support Communities.
Best,
Sheila M. -
Send a mail to the user after first time login
How to send mail to the user after the user login for the first time in oim 11g r2
How to send mail to the user after the user login for the first time in oim 11g r2
-
Multiple select list not retaining the value for the first time
Hi,
I have a 3 select list depends on each other. select_list1 -- > select_list2 --> multiselect3. I have use denes example to create them.
For the first time when I select values from 1,2,3 and runs a report based on it, it works fine but *does not retain the selected value in multiselect3.
for the second time submit the process, it retails value in multiselect3. Please tell me if you came across this issue before
Here is the code.
function get_select_list_xml_VL(pThis,pSelect,pSelect1,pSelect2){
var l_Return = null;
var l_Select = html_GetElement(pSelect);
var l_Select1 = html_GetElement(pSelect1);
var l_Select2 = html_GetElement(pSelect2);
var get = new htmldb_Get(null,html_GetElement('pFlowId').value,
'APPLICATION_PROCESS=Cascading_Select_List_VL',0);
get.add('F660_CASCADING_TEST',l_Select1.value + '_' + pThis.value + '_' + l_Select2.value);
alert(l_Select1.value + '_' + pThis.value + '_' + l_Select2.value);
// alert(document.getElementById("F660_CASCADING_TEST").value);
gReturn = get.get('XML');
if(gReturn && l_Select ){
var l_Count = gReturn.getElementsByTagName("option").length;
l_Select.length = 0;
for(var i=0;i<l_Count;i++){
var l_Opt_Xml = gReturn.getElementsByTagName("option");
appendToSelect(l_Select, l_Opt_Xml.getAttribute('value'),
l_Opt_Xml.firstChild.nodeValue)
get = null;
function appendToSelect(pSelect, pValue, pContent) {
var l_Opt = document.createElement("option");
l_Opt.value = pValue;
if(document.all){
pSelect.options.add(l_Opt);
l_Opt.innerText = pContent;
}else{
l_Opt.appendChild(document.createTextNode(pContent));
pSelect.appendChild(l_Opt);Please ask any question if you dont understand about the problem.
Thanks -
Error running Java after first time installation on shared server
Hello, I have just installed jre1.6.0_21 for the first time in my home folder on a shared Linux server. I am logged onto the server, so I am acting as the localhost. I get the following error when running java -version:
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
I am a newbie to Java. Would appreciate any advice.You are using OA?
Post in this forum: OA Framework
Timo -
Problem opening firefox again after first time
Firefox starts ok and closes ok the first time I use it but then if I try to open it again within a few mins I get this error message: " Firefox is already running, but is not responding. To open a new window, you must first close the existing Firefox process, or restart your system. " But there is nothing to close. If I restart the PC Firefoxs works fine again.
I have the exact same problem! When launching the trial Acrobat XI Pro the first time, it asks you to sign up with your username and password.
When I do so, it starts signing in.....and in the meanwhile it's taking about 45 minutes and still nothing happened.
But I have no problems signing in with the same username and password through adobe.com .....
*Update*
Opening the software offline works! -
"Permission denied" on sparsebundle after first Time Machine backup
I've been using an encrypted sparsebundle for several months. Yesterday I bought a new Apple Airport Time Capsule, and created my first Time Machine backup. Today when I double-click the sparsebundle, instead of being prompted to enter my password, I receive a Warning dialog box saying "The following disk images couldn't be opened" with the sparsebundle listed next to "Permission denied." According to Get Info, my account does have Read & Write access to the sparsebundle.
How can I get access to my 4.5 GB of encrypted data?Thanks for the response. In my case, when I booted into my cloned backup and ran from that, I was able to open the sparsebundle normally. Then when I returned to my original system, it too worked normally. Although I'm relieved I didn't lose my data, it's all very mystifying. It particularly concerns me that no online source seems to be able to explain the nature of the error message I received!
I did repair permissions before posting here, to no avail.
So that terminal command will turn your encrypted sparsebundle into an unencrypted sparsebundle, without prompting for the password? That's alarming.
Maybe you are looking for
-
Identify high volume characteristics in dimension tables
Hi, We have identified some cubes where dimension table to fact table ratio is more than 20%. Now further step is to find out characteristics in those dimension tables which we can either make as line item dimension or move to new dimension.Is there
-
HT4623 iOS 7 isn't coming up in my updates?!
Someone please help
-
CS6 Master Collection trial download not available?
I have CS6 Master Collection that is currently installed on my iMac and I need to install it on my new laptop. My serial number is valid and registered with Adobe, but because this was a downloadable version only (no disc), the way it was installed w
-
Building version control features with CF
Hi, I have a client with a wiki that I built in ColdFusion, and they'd like to be able to do collaborative document editing where changes to documents are tracked. I've seen this type of thing in Word, where changes get highlighted and you can see ol
-
ITunes Banner/Link on My Space
Hi, Can someone please advise me on how I can get an iTunes banner or link on my My Space page? Many thanks