About validation occurs a message box

ADF Faces validation and conversion run on the client side.
As soon as one component's data fails validation, a dialog displays an error message for that component.
I don't want this message box.
How can i disable this dialog?

Hello!!
AdfPage.PAGE.clearAllMessages() is good solution for this problem.
How can I let AdfPage.PAGE.clearAllMessages() automate to execute when validation failure occurs?
Thank for your help!

Similar Messages

  • Remove all message boxes

    How about replacing all the message boxes with something like (and i can't believe i'm saying this) the information bar from internet explorer in the sense that you wouldn't need to click OK or whatnot to be able to continue your work.
    Here's an example:
    With the brush tool selected, you click by mistake in the image while a vector layer is selected. What happens? you get a message box telling you to rasterize the layer to continue. You click cancel because it's a mistake and then you get another message box telling you that you can't edit the layer (isn't it fun?).
    This would be replaced by showing you a bar at the top of the image when you click on the vector layer telling you that if you click again with it on the layer you will rasterize the layer. The thing is that if you select a different tool or layer, the bar would disappear(as well as the effect of rasterizing by clicking once more in the image) without the need to click in some specific area before you can continue with your work.
    The end result is that we'll be able to work faster and smoother. No more click ok for stuff like "no pixel is more than 50% selected", "could not complete because the area is empty", "cannot paint on hidden layer", "cannot continue because no layer is selected", etc

    Here's another example where this status bar would be useful:
    With a multi-layered document you go to Image->Mode->Lab and instead of asking you whether to flatten or not, it will automatically convert the image without flattening and show the bar saying something like "if the appearance doesn't match and you want to flatten the image then click here". And if you click on the bar it would redo the conversion but this time flattening the file before going to Lab. Also add an option in the bar to reverse the behavior of the conversion so that it automatically flattens the file and gives a bar saying the opposite to make sure that you won't get any angry users that always flatten when going to Lab or some other color space
    Something similar would be when running actions that include a stop. Instead of relying on the user to know that he has to click play to continue or the creator of the action to write that when making the action, the bar would appear and tell you to click on it to continue the action after having made the necessary adjustments 
    I for one prefer the bar to appear only when needed instead of it always being onscreen and taking up screen space but at the end of the day, as long as it's implemented i won't mind the exact method of the implementation.

  • TS3212 when installing iTunes on my new laptop a message box appears saying some sort of error has occured and i have to uninstall it then reinstall it again and it still won't work what should i do?

    when installing iTunes on my new laptop a message box appears saying some sort of error has occured and i have to uninstall it then reinstall it again and it still won't work what should i do?

    Let's try a standalone Apple Application Support install. It still might not install, but fingers crossed any error messages will give us a better idea of the underlying cause of the issue.
    Download and save a copy of the iTunesSetup.exe (or iTunes64setup.exe) installer file to your hard drive:
    http://www.apple.com/itunes/download/
    Download and install the free trial version of WinRAR:
    http://www.rarlab.com/
    Right-click the iTunesSetup.exe (or iTunes64Setup.exe), and select "Extract to iTunesSetup" (or "Extract to iTunes64Setup"). WinRAR will expand the contents of the file into a folder called "iTunesSetup" (or "iTunes64Setup").
    Go into the folder and doubleclick the AppleApplicationSupport.msi to do a standalone AAS install.
    Does it install properly for you? If so, does iTunes launch properly now?
    If instead you get an error message during the install, let us know what it says. (Precise text, please.)

  • ExecValidate, but silently? (no validation/empty message boxes!!)

    Hi All
    I want to check if all fields are valid and filled in.
    I use execValidate().
    However, executing execValidate means all the validation script messages and empty messages are also displayed.
    Is there any way of checking for validity, but without the annoying message boxes popping up?
    Thanks,
    Shiv

    Hi Niall,
    Thanks for your response, but I'm already using LC Designer ES2, and my form target is Adobe Reader 9.1.
    I have a hidden boolean inside my form that I use in the following way :
    On the preSave event, I put the execValidate() result in my boolean to know if the form is "valid" or not. The form is filled in a "disconnected" mode, so there is no submit button, etc.
    What I want is the "execValidate()" to be silent for the user, so that I can have the info without any popup.
    However, I need those pop-up because there is a button "validate form" which is for the user, and i need custom warnings for some fields.
    Regards,
    Thomas

  • About message box

    hi friends,
    in my adobe forms iam having only one check box.
    if i select that check box, i should get a message box data.
    i wrote the following code for check box,
    if($.rawValue == 1) then
    Subform1.c.messageBox("this is clicked")
    endif
    iam not getting the messageBox output.
    can any one help me.

    Hello,
    If you can use JavaScript, then you can use the following code for your requirement.
    Place the following code in the Change event of you Checkbox, and select "JavaScript" as you Scripting Language:
    if ( this.rawValue == 1)
    xfa.host.messageBox("this is clicked...");
    hope this helps,
    harman

  • How to disable feature for Message box occures when pagetimes out. We get message "Stay on Page" & "Leave Page". How to disable this?

    Hello,
    I want do disable message box comes after default page times out. Such that it asks for to "stay on page " or "Leave page". i want it should be directly redirected to default setting which i have done.

    If you still have an iPhone handy and have the SIM card you used for the phone, then temporarily put your SIM into the other phone and go into Settings and turn of iMessage. If not, the only alternative that I know of is the Support profile, However, you may what to search the More Like This section on the right side of the thread to see if any of the entries there have a green checkmark meaning they are answered.

  • Null pointer exception when message box code is called.

    Hi Experts,   using NWDS 7.0.18
    I'm really stuck and wondering if someone can help me?
    I have an application that invokes a Java Bean model. The java bean invokes a web service and fetches some data.
    In my web dynpro app, in the onActionSearch method, I have a message box that informs the user if no results are returned and then they have other options via button actions from the message box that they can take.
    Here is when the error occurs,
    1) The user types in search parameters in the input fields and enters search, a valid result set is returned and displayed in the table
    2) The user changes the input parameters in the input fields that returns no results so the message box should be displayed
    Instead of the message box the following error is returned:
    java.lang.NullPointerException
         at com.sap.tc.webdynpro.clientserver.uielib.standard.uradapter.TextViewAdapter.getSelection(TextViewAdapter.java:1215)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:424)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:133)
         at com.sap.tc.ur.renderer.ie6.SapTableCellRenderer.renderSapTableGenericCellFragment(SapTableCellRenderer.java:1211)
         at com.sap.tc.ur.renderer.ie6.SapTableCellRenderer.renderSapTableCellFragment(SapTableCellRenderer.java:209)
         at com.sap.tc.ur.renderer.ie6.SapTableCellRenderer.render(SapTableCellRenderer.java:84)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:434)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:133)
         at com.sap.tc.ur.renderer.ie6.SapTableRowRenderer.renderSapTableRowFragment(SapTableRowRenderer.java:126)
         at com.sap.tc.ur.renderer.ie6.SapTableRowRenderer.render(SapTableRowRenderer.java:54)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:434)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:133)
         at com.sap.tc.ur.renderer.ie6.SapTableDefaultBodyRenderer.renderSapTableDefaultBodyFragment(SapTableDefaultBodyRenderer.java:214)
         at com.sap.tc.ur.renderer.ie6.SapTableDefaultBodyRenderer.render(SapTableDefaultBodyRenderer.java:44)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:434)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:133)
         at com.sap.tc.ur.renderer.ie6.SapTableRenderer.renderSapTableFragment(SapTableRenderer.java:795)
         at com.sap.tc.ur.renderer.ie6.SapTableRenderer.render(SapTableRenderer.java:84)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:434)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:133)
         at com.sap.tc.ur.renderer.ie6.FlowLayoutRenderer.renderFlowLayoutItemFragment(FlowLayoutRenderer.java:288)
         at com.sap.tc.ur.renderer.ie6.FlowLayoutRenderer.renderFlowLayoutFragment(FlowLayoutRenderer.java:244)
         at com.sap.tc.ur.renderer.ie6.FlowLayoutRenderer.render(FlowLayoutRenderer.java:49)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:434)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:133)
         at com.sap.tc.ur.renderer.ie6.ScrollContainerRenderer.renderScrollContainerFragment(ScrollContainerRenderer.java:512)
         at com.sap.tc.ur.renderer.ie6.ScrollContainerRenderer.render(ScrollContainerRenderer.java:74)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:434)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:133)
         at com.sap.tc.ur.renderer.ie6.FlowLayoutRenderer.renderFlowLayoutItemFragment(FlowLayoutRenderer.java:288)
         at com.sap.tc.ur.renderer.ie6.FlowLayoutRenderer.renderFlowLayoutFragment(FlowLayoutRenderer.java:244)
         at com.sap.tc.ur.renderer.ie6.FlowLayoutRenderer.render(FlowLayoutRenderer.java:49)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:434)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:133)
         at com.sap.tc.ur.renderer.ie6.GroupRenderer.renderGroupFragment(GroupRenderer.java:1194)
         at com.sap.tc.ur.renderer.ie6.GroupRenderer.render(GroupRenderer.java:74)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:434)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:133)
         at com.sap.tc.ur.renderer.ie6.GridLayoutRenderer.renderGridLayoutCellFragment(GridLayoutRenderer.java:826)
         at com.sap.tc.ur.renderer.ie6.GridLayoutRenderer.renderGridLayoutRowFragment(GridLayoutRenderer.java:424)
         at com.sap.tc.ur.renderer.ie6.GridLayoutRenderer.renderGridLayoutFragment(GridLayoutRenderer.java:336)
         at com.sap.tc.ur.renderer.ie6.GridLayoutRenderer.render(GridLayoutRenderer.java:79)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:434)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:133)
         at com.sap.tc.ur.renderer.ie6.GroupRenderer.renderGroupFragment(GroupRenderer.java:1194)
         at com.sap.tc.ur.renderer.ie6.GroupRenderer.render(GroupRenderer.java:74)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:434)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:133)
         at com.sap.tc.ur.renderer.ie6.FlowLayoutRenderer.renderFlowLayoutItemFragment(FlowLayoutRenderer.java:288)
         at com.sap.tc.ur.renderer.ie6.FlowLayoutRenderer.renderFlowLayoutFragment(FlowLayoutRenderer.java:244)
         at com.sap.tc.ur.renderer.ie6.FlowLayoutRenderer.render(FlowLayoutRenderer.java:49)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:434)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:133)
         at com.sap.tc.ur.renderer.ie6.ScrollContainerRenderer.renderScrollContainerFragment(ScrollContainerRenderer.java:619)
         at com.sap.tc.ur.renderer.ie6.ScrollContainerRenderer.render(ScrollContainerRenderer.java:74)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:434)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:133)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.UiWindowRenderer.render(UiWindowRenderer.java:52)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:434)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:133)
         at com.sap.tc.webdynpro.clientimpl.html.client.HtmlClient.sendHtml(HtmlClient.java:1058)
         at com.sap.tc.webdynpro.clientimpl.html.client.HtmlClient.fillDynamicTemplateContext(HtmlClient.java:458)
         at com.sap.tc.webdynpro.clientimpl.html.client.HtmlClient.sendResponse(HtmlClient.java:1247)
         at com.sap.tc.webdynpro.clientimpl.html.client.HtmlClient.retrieveData(HtmlClient.java:253)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doRetrieveData(WindowPhaseModel.java:595)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:156)
         at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
         at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processPhaseLoop(WebDynproWindow.java:345)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:152)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:321)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:713)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:666)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(AccessController.java:219)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)
    But if I do the search the first time around using input parameters that I know won't return a result, the message box appears fine!!!
    Any thoughts or suggestions?
    MM

    Here is the code in my onActionSearch method:
    public void onActionSearch(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionSearch(ServerEvent)
        try
         if(  null == wdContext.currentInputElement().getFName() ||
              null == wdContext.currentInputElement().getLName() ||
             "".equalsIgnoreCase(wdContext.currentInputElement().getFName().trim()) ||
             "".equalsIgnoreCase(wdContext.currentInputElement().getLName().trim()) )
              IWDControllerInfo contInfo = wdControllerAPI.getViewInfo().getViewController();
              IWDConfirmationDialog dialog = wdComponentAPI.getWindowManager()
                .createConfirmationWindow
              ("Required fields cannot be empty!", contInfo.findInEventHandlers("ok"), "OK");
              dialog.setTitle("Error:");
              dialog.show();
         else
              wdThis.wdGetCompController().invalidateDataNodes();
              wdThis.wdGetCompController().getIndData();
              if(wdContext.nodeTable().size() == 0)
                   String msg = "Did not find any records matching the supplied criteria," +
                    " would you like to request one to be created?";
                   IWDControllerInfo contInfo = wdControllerAPI.getViewInfo().getViewController();
                   IWDConfirmationDialog dialog =
                        wdComponentAPI.getWindowManager()
                          .createConfirmationWindow
                        (msg, contInfo.findInEventHandlers("yes"), "Yes");
                   dialog.addChoice(contInfo.findInEventHandlers("no"), "No");
                   dialog.setTitle("Confirmation message.");
                   dialog.show();
        catch(Exception e)
             wdComponentAPI.getMessageManager().reportException(e.getLocalizedMessage(), true);
         wdComponentAPI.getMessageManager().reportException(""+e.getCause(), true);
         e.printStackTrace();
        //@@end

  • XSchema: How to get (more) Information about validation errors?

    I changed the file car.xml to have an invalid xml-file, then
    i validate the demo car.xml using the demo programm xsdtest.
    I got the following error message:
    In line 7 of car.xml:
    LSX-00290: invalid enumeration choice "Hugo"
    LSX-00213: only 0 occurrences of particle "sequence", minimum is 1
    Validation failed, error 213
    The first 2 lines are dumped from the SchemaProzessor. Unfortunatly there is no
    possibility to get this information with a methodcall or by return value
    to use for further processing!
    The only thing i got controlled back is the error code 213.
    But how do i get the correspondening errortext ? What means error 213 ?
    So here is my suggestion:
    Please give accurate information about validation errors! Including:
    1) The position where the error occurred. (maybe in XPath notation)
    2) An error Number to classify the error (Including a possibility to resolve the errormessage via program.)
    3) An error text for the specific case : (for example : invalid enumeration choice "Hugo")
    Please give this information in a struct back or provide methods on the
    Xschema prozessor.
    Otherwise the XSchema support is useless!!!!!
    Sorry for my bad English & Greetings
    Martin Frenzel
    By the way: The XDK for Java uses a different Error Messages !!!! But there is the same problem...

    1.How to check when user last time login to database.AUDIT
    2.If user account is lock why it is locked? if it is locked by trying to loing with wrong password how to check how many times he attempted with wrong password...and other reasons alsoCheck Profile For this user and attr.
    3.Wheni was trying to select user expire date it is showing empty value...can we check expire date through querys or we need to check profile?
    SQL> select EXPIRY_DATE from dba_users ;
    EXPIRY_DA
    24-SEP-11
    24-SEP-11
    24-SEP-11
    24-SEP-11
    24-SEP-11
    24-SEP-11
    24-SEP-11
    23-MAY-13
    24-SEP-11
    24-SEP-11
    24-SEP-11 check
    expiry_date in dba_users is null
    4.How to check when he was reset his password last time.SELECT PTIME FROM SYS.USER$;

  • Pass File Path into Message Box

    Hello,
    I’m building an application that is being used to create a report for whatever date range the user chooses. After the data is exported into Excel I have a message box pop up telling the user where the file has been saved to. However, as it is now, I have
    the file path hard coded. What I want to do is have the file path chosen by the user passed into the message box and display a message with the selected path. Any help with this will be greatly appreciated.
    Dave
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.Windows.Forms;
    using System.Data.SqlClient;
    using ClosedXML.Excel;
    using DocumentFormat.OpenXml;
    using System.IO;
    namespace LoanOrig_FDIC_Codes
    public partial class Form1 : Form
    SqlCommand sqlCmd;
    SqlDataAdapter sqlDA;
    DataSet sqlDS;
    DataTable sqlDT;
    SqlCommand sqlCmdCnt;
    public Form1()
    InitializeComponent();
    //BEGIN BUTTON LOAD CLICK EVENT
    private void btnLoad_Click(object sender, EventArgs e)
    string sqlCon = "Data Source=FS-03246; Initial Catalog=ExtractGenerator; User ID=myID; Password=myPW";
    //Set the 2 dateTimePickers to today's date
    DateTime @endDate = End_dateTimePicker.Value.Date;
    DateTime @startDate = Start_dateTimePicker.Value.Date;
    //Validate the values of the 2 dateTimePickers
    if (endDate < startDate)
    MessageBox.Show("End Date must be greater than or equal to the Start Date OR Start Date must be less than or equal to the End Date ", "Incorrect Date Selection",MessageBoxButtons.OK,MessageBoxIcon.Error);
    //Reset both dateTimePickers to todays date
    Start_dateTimePicker.Value = DateTime.Today;
    End_dateTimePicker.Value = DateTime.Today;
    return;
    //End of date validation
    string sqlData = @"SELECT AcctNbr,
    CurrAcctStatCD,
    Org,
    MJAcctTypCD,
    MIAcctTypCD,
    NoteOriginalBalance,
    ContractDate,
    FDICCATCD,
    FDICCATDESC,
    PropType,
    PropTypeDesc
    FROM I_Loans
    WHERE CAST(ContractDate AS datetime) BETWEEN @startdate AND @enddate ORDER BY ContractDate";
    SqlConnection connection = new SqlConnection(sqlCon);
    SqlCommand sqlCmd = new SqlCommand(sqlData, connection);
    sqlCmd.Parameters.AddWithValue("@startDate", startDate);
    sqlCmd.Parameters.AddWithValue("@endDate", endDate);
    sqlDS = new DataSet();
    sqlDA = new SqlDataAdapter(sqlCmd); //SqlAdapter acts as a bridge between the DataSet and SQL Server for retrieving the data
    connection.Open();
    sqlDA.SelectCommand = sqlCmd; //SqlAdapter uses the SelectCommand property to get the SQL statement used to retrieve the records from the table
    sqlDA.Fill(sqlDS, "I_Loans"); //SqlAdapter uses the "Fill" method so that the DataSet will match the data in the SQL table
    sqlDT = sqlDS.Tables["I_Loans"];
    //Code section to get record count
    sqlCmdCnt = connection.CreateCommand();
    sqlCmdCnt.CommandText = "SELECT COUNT(AcctNbr) AS myCnt FROM I_Loans WHERE ContractDate BETWEEN @startDate AND @endDate";
    sqlCmdCnt.Parameters.AddWithValue("@startDate", startDate);
    sqlCmdCnt.Parameters.AddWithValue("@endDate", endDate);
    int recCnt = (int)sqlCmdCnt.ExecuteScalar();
    txtRecCnt.Text = recCnt.ToString();
    btnExport.Enabled = true;
    //End of code section for record count
    connection.Close();
    dataGridView1.DataSource = sqlDS.Tables["I_Loans"];
    dataGridView1.ReadOnly = true;
    //Reset both dateTimePickers to todays date
    Start_dateTimePicker.Value = DateTime.Today;
    End_dateTimePicker.Value = DateTime.Today;
    //END BUTTON LOAD CLICK EVENT
    //BEGIN BUTTON EXPORT CLICK EVENT
    private void btnExport_Click(object sender, EventArgs e)
    { //ClosedXML code to export datagrid result set to Excel
    string dirInfo = Path.GetPathRoot(@"\\FS-03250\users\dyoung\LoanOrig_FDIC_Codes");
    if (Directory.Exists(dirInfo))
    var wb = new XLWorkbook();
    var ws = wb.Worksheets.Add(sqlDT);
    ws.Tables.First().ShowAutoFilter = false;
    SaveFileDialog saveFD = new SaveFileDialog();
    saveFD.Title = "Save As";
    saveFD.Filter = "Excel File (*.xlsx)| *.xlsx";
    saveFD.FileName = "LoanOrig_FDIC_Codes_" + DateTime.Now.ToString("yyyy-MM-dd");
    if (saveFD.ShowDialog() == System.Windows.Forms.DialogResult.OK)
    Stream stream = saveFD.OpenFile();
    wb.SaveAs(stream);
    stream.Close();
    //End of ClosedXML code
    MessageBox.Show("File has been exported to U:\\LoanOrig_FDIC_Codes", "File Exported", MessageBoxButtons.OK, MessageBoxIcon.Information);
    else
    MessageBox.Show("Drive " + "U:\\Visual Studio Projects\\LoanOrig_FDIC_Codes" + " " + "not found, not accessible, or you may have invalid permissions");
    return;
    //END BUTTON EXPORT CLICK EVENT
    private void Form1_Load(object sender, EventArgs e)
    //Set dates to be today's date when the form is openend
    Start_dateTimePicker.Value = DateTime.Today;
    End_dateTimePicker.Value = DateTime.Today;
    private void Form1_Load_1(object sender, EventArgs e)
    // TODO: This line of code loads data into the 'dataSet1.I_Loans' table. You can move, or remove it, as needed.
    this.i_LoansTableAdapter.Fill(this.dataSet1.I_Loans);
    private void iLoansBindingSource_CurrentChanged(object sender, EventArgs e)
    private void btnExit_Click(object sender, EventArgs e)
    this.Close();
    //END THE SAVE AS PROCESS
    David Young

    Assuming I have located the part of your code you are talking about, I think you just need to replace the hard code path in the message with the path from the SaveFileDialog. You should only display the message if the use clicked OK.
    if (saveFD.ShowDialog() == System.Windows.Forms.DialogResult.OK)
    Stream stream = saveFD.OpenFile();
    wb.SaveAs(stream);
    stream.Close();
    MessageBox.Show("File has been exported to " + saveFD.FileName, "File Exported", MessageBoxButtons.OK, MessageBoxIcon.Information);

  • Notification message box of Hyperion Planning when user login

    Can we have a notification message box popup when user login Hyperion Planning or Workspace application? We would like to communicate to the end users by the system instead of just email because some end users may not check the email so frequently. It is the best to notify end users about any latest changes e.g. budget rate, etc when they login the system to check data or print reports.
    We noticed that there is a broadcast message feature but only limit to those users already online. And the message will not shown when there are some users login later. We would like to have some notice board like message instead of instant messaging.
    The online help of "broadcast message" feature:
    "Use broadcast messaging to communicate a text message to all Planning users currently logged on to an application. For example, you can send messages about system availability or periodic maintenance. You should also send broadcast messages to request that users log out before upgrading or migrating applications.
    You can send broadcast messages using the Web client or a command line utility. If you send them using the Web, they are sent to users of your current application. If you send them using the command line, you can specify any application, without being logged on to it. You can also schedule messages using standard operating system mechanisms. "
    Thanks in advance!

    I have tried the above step and it only works when i am in the advanced mode. but when i change to basic mode i can see the forms and still can access without any disturbance. for your help i am pasting the planningcentral.jsp so that you could suggest me something other.
    Thanks in advance...
    the original file :
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
    <html>
    <%@ include file="Common.jin" %>
    <% nWhichPage = HspConstants.PLANNING_CENTRAL;
    String redirectString = request.getParameter("Redirect");
    String mainFrameContentURL = (String)session.getAttribute(HspConstants.SESSION_MAIN_FRAME_CONTENT);
    String mainFrameContent = ((inAdvancedMode) && (mainFrameContentURL != null)) ? mainFrameContentURL : "SelectForm.jsp";
         String queryString = request.getQueryString();
         String mastHeadURL = "BT_Masthead.jsp" + ((queryString != null) ? "?" + queryString : "");
    %>
    <%@ include file="SessionValidate.jin" %>
    <%-- Section for Checking latest CSS version and redirecting to AppSettings.jsp --%>
    <%     if ((HspPlanning != null) && (HspPlanning.isApplicationOwner()))     {
              boolean isHubRegistered = (HspPlanning.getHubServer() != null);
              if ((!isHubRegistered) || (HspPlanning.isUserMigrationReqd())) {
                   inAdvancedMode = true;
                   redirectString = null;
                   mainFrameContent = "AppSettings.jsp?RND=" + Math.random();
    %>
    <%-- End CSS validation section --%>
    <html>
    <head>
    <title><%= HspMsgs.LABEL_WELCOME_TO_HP %></title>
    <%@ include file="PlanningLibraries.jin" %>
    <script language="JavaScript">
    var isPlanningFramework = true;
         var topFrameLoaded = false;
         var taskListViewPaneLoaded = false;
         var processBarLoaded = false;
    </script>
    </head>
    <frameset id="mainframeset" rows="72,19,*" cols="*" frameborder="NO" border="1" framespacing="0">
         <frame src="<%= mastHeadURL %>" name="topFrame" id="topFrame" scrolling="auto" noresize >
         <frame src="BT_ProcessBar.jsp" title="object palette header" id="objPaletteHeader" name="objPaletteHeader" scrolling="no">     
         <frameset id="nestedFrameSet" cols="20%,*" frameborder="NO" border="0" framespacing="0">
    <% if (inAdvancedMode) { %>
         <frame src="LP_ObjectPalette.jsp" id="leftPalette" name="leftPalette" scrolling="no">
         <frame src="<%= (redirectString != null) ? redirectString : mainFrameContent %>" id="mainFrame" name="mainFrame" scrolling="auto">
    <% } else { %>
    <%     int currentTLId = -1;
         HspTaskList thisTL = (HspTaskList)session.getAttribute(HspConstants.SESSION_TASK_LIST);
         if (thisTL != null) thisTL = HspPlanning.getTaskList(thisTL.getId());
         if (thisTL != null) {
              currentTLId = thisTL.getId();
         } else {
         Vector availableTaskLists = null;
         availableTaskLists = HspPlanning.getTaskLists();
         HspObjectPositionComparator hspObjectCompare = new HspObjectPositionComparator();
         HspCSM.sortVector(availableTaskLists, hspObjectCompare);
         if ((availableTaskLists != null) && (availableTaskLists.size() > 0))
              currentTLId = ((HspTaskList)availableTaskLists.firstElement()).getId();
         } %>
         <frame src="LP_ObjectPalette.jsp?TaskList=<%= currentTLId %>" id="leftPalette" name="leftPalette" scrolling="no">     
         <frameset id="wizardFrameSet" name="wizardFrameSet" rows="*,0" frameborder="NO" border="0" framespacing="0">
    <%     if (currentTLId != -1) {
              String wizardFrameContent = "TL_Navigator.jsp?TaskList=" + currentTLId;
              HspTask currentSessionTask = (HspTask)session.getAttribute(HspConstants.SESSION_TASK);
              if (currentSessionTask != null) {
                   wizardFrameContent = "TL_Navigator.jsp?TaskList=" + currentTLId + "&SelectedTask=" + currentSessionTask.getId() + "&ShowWizard=true";
                   mainFrameContent = "TL_Wait.jsp";
              } else {
                   mainFrameContent = "TaskListStatus.jsp?TaskList=" + currentTLId;
              %>          
              <frame src="<%= mainFrameContent %>" id="mainFrame" name="mainFrame" scrolling="auto" noresize>
              <frame src="<%= (redirectString != null) ? redirectString : wizardFrameContent %>" id="wizardFrame" name="wizardFrame" scrolling="NO" noresize>
    <%      } else { %>
              <frame src="<%= (redirectString != null) ? redirectString : "Error.jsp" %>" id="mainFrame" name="mainFrame" scrolling="auto">
    <%      } %>
    <% } %>
         </frameset>
    </frameset>
    <noframes><body>
    </body></noframes>
    </html>

  • What's the easiest way to have a message box?

    Hey, i'm making this game and i have one frame and i have and one panel inside, and when the user completes the game i want a message box to popup saying "Congratulations, You Won!"
    At the moment when the user wins the game, i've just put a "System.out.println("You've Won"); but i want a message box to appear on top of the game. What's the best and simplest way to achieve this?
    I tried replacing my "System.out.println("You've Won") with JOptionPane.showMessageDialog(null, "You Won!"); and that just caused the whole thing to freeze up.
    Thanks

    saru88 wrote:
    I did as you suggested and changed the "null" in
    JOptionPane.showMessageDialog(null, "You Won!"); to
    JOptionPane.showMessageDialog(this, "You Won!"); to refer to the JPanel which contains the game code.And? Any benefit (unlikely)?
    Sorry for my lack of explanation about freezing up, what happens is the message box appears, but the inside is completely transparent and so i can see the game display behind it. And if i click inside it, then it does nothing but change the focus to that window. When i said freeze before i meant, it becomes "non responding" and so I have to open "Task Manager" and close it that way. This sounds like a thread issue. Are you calling JOptionPane.showMessageDialog(...) off of the EDT, the Event Dispatch Thread?

  • How to insert a carriage return chr(13) to a message box

    On my form I have a button, called "Instruction".
    When the user clicks on it, I present him with a message box expalining key points about the form and the fields.
    Here a dummy example:
    xfa.host.messageBox("Hello Everyone! The form contains 5 required field identied by Red border. Make sure you fill them before submitting the form. To calculate the winner percentage you Must fill in the number of tables first."
    , "INSTRUCTION", 3);
    There must be a way to insert a line in a message box, such as chr(13).
    What's the syntax?

    To enter a CR in a string for javascript use a \n in the text of your string.
    paul

  • An error has occurred. Message on launch of FB4.5

    I own a license for FB 4 Standard and I own CS5 Production Premium. I did an upgrade to Web Premium 5.5 to get FB 4.5 Premium. I'm on a Mac Intel i7 with 10.6.7.
    I'm able to install all the software, but when I launch FB 4.5 I get "An error has occurred." message. The message says to "See the log file ... path to log" but I'm not sure what I'm looking for or how to fix it. The last section of output in the .log file says:
    !ENTRY org.eclipse.osgi 4 0 2011-05-29 08:36:20.840
    !MESSAGE Application error
    !STACK 1
    org.osgi.service.application.ApplicationException: No application id has been found.
    at org.eclipse.equinox.internal.app.EclipseAppContainer.startDefaultApp(EclipseAppContainer. java:262)
    at org.eclipse.equinox.internal.app.MainApplicationLauncher.run(MainApplicationLauncher.java :29)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLau ncher.java:110)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.jav a:79)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
    I tried uninstalling the FB 4.5 that I did with the CS5.5 Installer and reinstalling it, but the same thing happens. My next plan was to download the FB 4.5 trial and try entering my serial number.
    Any advice or guidance would be appreciated. Thanks!
    Dave

    So I tried the trial version but my serial number didn't work I guess because it's for a CS5.5 Web Premium product. I also tried uninstalling my current version of FB4 Standard, uninstalling CS5.5 and starting from scratch without any copies of FlashBuilder in my Applications folder and that didn't work, same error log message. I ended up reinstalling my original copy of FB4 Standard so I could continue working.
    The odd thing is when I went to my MacBook Pro and uninstalled the copy of FB4 Standard I have on there and installed the CS5.5 FlashBuilder 4.5 Premium it works and started up fine. So I'm guessing there's something specific about my iMac setup that's preventing launch.
    I was looking at my FB installation details, don't know if this matters but I'm running the standalone version:
    Adobe Flash Builder Localized Standalone Feature 4.0.1.277662 com.adobe.flexbuilder.feature.standalone.nl1.feature.group
    eclipse.application=com.adobe.flexbuilder.standalone.FlexBuilderApplication
    Unfortunately it's the weekend (holiday in US too). I like the weekend for trying to get these things setup but I'm on my own and feel I'm out of luck until the work week starts.
    If anyone from Adobe is reading this with a beer in one hand and hotdog in the other (or burger or veggie burger or bbq chicken leg) on a hot memorial day and have an idea on how to fix this I'd really appreciate your advice. Thanks!

  • "1 item" and pointed finger inside message box. Is there a fix for this problem?

    When I'm in e-mail, I get a hand with the pointed finger and a message box saying "1 item". The hand and box follow my pointer around the screen but I can't open up any e-mails. The only way out of it is to go up to Hotmail on top, select it and them select "In-Box." This only occurs in Firefox. Internet Explorer works fine and I never have the problem.

    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
    Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!

  • "Internal error: An unexpected exception has occurred" error message displayed when browsing a cube.

    “Internal error: An unexpected exception has occurred“ error message displayed when browsing a cube.
    The error behaviour is quite irregular and does not occur for specific condition.
    Will cumulative update 9 for SQL Server 2008 R2 (SP1) installation help to fix the issue which is provided on the below link:
    (http://support.microsoft.com/kb/2152148)
    The current version of SQL Server I am using is as below:
    Microsoft SQL Server 2008 R2 (SP1) - 10.50.2500.0 (X64)   Jun 17 2011 00:54:03   Copyright (c) Microsoft Corporation  Enterprise Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1)
    Thanks in advance for the help!

    Hi Mon,
    The hotfix you said is for Microsoft SQL Server 2008. So it will not work on your scenario since you are using SQL Server 2008 R2.
    Based on the limited information, we cannot give you the exact reason that cause this issue. In order to narrow down this issue, you can apply the latest Service Pack and Cumulative Update as GregGalloway said. Besides, you can troubleshoot this issue by
    using the Windows Event logs and msmdsrv.log.
    You can access Windows Event logs via "Administrative Tools" --> "Event Viewer".  SSAS error messages will appear in the application log.
    The msmdsrv.log file for the SSAS instance that can be found in \log folder of the instance. (C:\Program Files\Microsoft SQL Server\MSAS10.MSSQLSERVER\OLAP\Log)
    Here is a blog about data collection for troubleshooting Analysis Services issues, please see:
    Data collection for troubleshooting Analysis Services issues
    Regards,
    Charlie Liao
    TechNet Community Support

Maybe you are looking for

  • Ipod shuffle 4th gen charges plays but doesnt show up in windows or itunes

    Ipod shuffle 4th gen charges plays but doesnt show up in windows or itunes tried to check usb driver but computer says it is working properly

  • Subtitling and Audio

    Two part question here. I am on a g4 with Final Cut 3. I have a jvc deck hooked up through firewire to import. I have been importing hours of footage in korean that I didn't have to listed to because I don't know what they at talking about anyway. He

  • Hotstrings in text fields

    Is there a way to add hotstrings to a text field form. IE user types "POC" and the system expands the text to "Proof of Claim".

  • How to measure the directivit​y of microphone by pxi-4461

     i want to measure the  directivity of microphone, but how can i do it by pxi-4461 ?  i have a standard microphone, an under test microphone and pxi-4461? can you give me some ideas? thanks

  • Some fonts have disappeared..?

    I have been using CS4 Illustrator for a year now on my laptop.  Recently my laptop had to be taken to a repair shop.  All of my software was wiped whilst the laptop was being serviced.  Last week I reinstalled Adobe CS4 suite back onto my laptop, how