ProgressProperty and isCancelled causing a bound value that cannot be set.

I noticed that cancelling the following application causes errors since a bound value cannot be set. I tried to add some conditions to prevent this error from happening but to no avail.
The following is the main culprit:
pb.progressProperty().bind(serv.progressProperty());You can also notice that I tried to use progressProperty and ChangeListener instead of bind method. Unfortunately unsuccessfully. Can I make progressbar functioning without bind method (code above)?
Complete error message when cancel button is pressed is the following:
Service status: SCHEDULED
Let the download begin!
Service status: CANCELLED
Service status cancelled when progress was: 0.09582292038557658
java.lang.RuntimeException: A bound value cannot be set.
     at javafx.beans.property.DoublePropertyBase.set(Unknown Source)
     at javafx.scene.control.ProgressIndicator.setProgress(Unknown Source)
     at dm.Thr$2.handle(Thr.java:73)
     at dm.Thr$2.handle(Thr.java:1)
     at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(Unknown Source)
     at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
     at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
     at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(Unknown Source)
     at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
     at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
     at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
     at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
     at com.sun.javafx.event.EventUtil.fireEventImpl(Unknown Source)
     at com.sun.javafx.event.EventUtil.fireEvent(Unknown Source)
     at javafx.event.Event.fireEvent(Unknown Source)
Cancelling!
Finished/cancelled!
     at javafx.scene.Node.fireEvent(Unknown Source)
     at javafx.scene.control.Button.fire(Unknown Source)
     at com.sun.javafx.scene.control.behavior.ButtonBehavior.mouseReleased(Unknown Source)
     at com.sun.javafx.scene.control.skin.SkinBase$5.handle(Unknown Source)
     at com.sun.javafx.scene.control.skin.SkinBase$5.handle(Unknown Source)
     at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(Unknown Source)
     at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
     at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
     at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(Unknown Source)
     at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
     at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
     at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
     at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
     at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
     at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
     at com.sun.javafx.event.EventUtil.fireEventImpl(Unknown Source)
     at com.sun.javafx.event.EventUtil.fireEvent(Unknown Source)
     at javafx.event.Event.fireEvent(Unknown Source)
     at javafx.scene.Scene$MouseHandler.process(Unknown Source)
     at javafx.scene.Scene$MouseHandler.process(Unknown Source)
     at javafx.scene.Scene$MouseHandler.access$1300(Unknown Source)
     at javafx.scene.Scene.impl_processMouseEvent(Unknown Source)
     at javafx.scene.Scene$ScenePeerListener.mouseEvent(Unknown Source)
     at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(Unknown Source)
     at com.sun.glass.ui.View.handleMouseEvent(Unknown Source)
     at com.sun.glass.ui.View.notifyMouse(Unknown Source)
     at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
     at com.sun.glass.ui.win.WinApplication.access$100(Unknown Source)
     at com.sun.glass.ui.win.WinApplication$2$1.run(Unknown Source)
     at java.lang.Thread.run(Unknown Source)Application:
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.MalformedURLException;
import java.net.URL;
import javafx.application.Application;
import javafx.concurrent.Service;
import javafx.concurrent.Task;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.scene.control.ProgressBar;
import javafx.scene.control.TextArea;
import javafx.scene.layout.VBox;
import javafx.scene.paint.Color;
import javafx.stage.Stage;
public class Thr extends Application {
     @Override
     public void start(Stage stage) throws Exception {
          final Group rootGroup = new Group();
           final Scene scene = new Scene(rootGroup, 500, 400, Color.GHOSTWHITE);
           stage.setScene(scene);
           stage.setTitle("Testing downloads from Spring");
           stage.show();
           setS(rootGroup);
     final VBox vbox = new VBox();
     final javafx.scene.control.Button btn = new javafx.scene.control.Button("START!");
     final TextArea tf = new TextArea();
     final javafx.scene.control.Button btnC = new javafx.scene.control.Button("CANCEL!");
     final ProgressBar pb = new ProgressBar();
     final FirstLineService serv = new FirstLineService();
     boolean cancelled = false;
     private void setS(Group rg) {
          tf.setPrefRowCount(5);
          vbox.getChildren().add(btn);
          vbox.getChildren().add(tf);
          vbox.getChildren().add(btnC);
          vbox.getChildren().add(pb);
          pb.setPrefWidth(450);
          rg.getChildren().add(vbox);
          btn.setOnAction(new EventHandler<ActionEvent>() {
               @Override
               public void handle(ActionEvent arg0) {
                    serv.start();
                    System.out.println("Service status: "+serv.getState());
                    tf.setText("STARTED!");
          btnC.setOnAction(new EventHandler<ActionEvent>() {
               @Override
               public void handle(ActionEvent arg0) {
                    serv.cancel();
                    System.out.println("Service status: "+serv.getState());
                    System.out.println("Service status cancelled when progress was: "+serv.getProgress());
                    tf.appendText("\nCANCELLED!");
                    pb.setProgress(serv.getProgress());
          //pb.setProgress(0);
          if (cancelled!=true) {
               pb.progressProperty().bind(serv.progressProperty());
          } else {
               pb.progressProperty().unbind();
          /*pb.progressProperty().addListener(new ChangeListener<Task>() {
               @Override
               public void changed(ObservableValue<? extends Task> arg0,
                         Task arg1, Task arg2) {
                    // TODO Auto-generated method stub
                    pb.setProgress(serv.getProgress());
     private class FirstLineService extends Service {
        protected Task createTask() {
            return new Task<Void>() {
                protected Void call() {
                     URL url;
                         try {
                              url = new URL("http://s3.amazonaws.com/dist.springframework.org/release/SPR/spring-framework-3.1.1.RELEASE.zip");
                           InputStream in = url.openStream();
                           int fileSize = url.openConnection().getContentLength()/1024;
                           File f = new File("spring.zip");
                           BufferedInputStream bin = new BufferedInputStream(in, 1024);
                           FileOutputStream fos = new FileOutputStream(f);
                           BufferedOutputStream bos = new BufferedOutputStream(fos, 1024);
                           int n=0;
                           int k=0;
                           System.out.println("Let the download begin!");
                           while(n !=-1){
                                if (isCancelled()) {
                                     cancelled = true;
                                        n=-1;
                                        System.out.println("Cancelling!");
                                   } else {
                                   k=k+1;
                                n=bin.read();
                                bos.write(n);
                                updateProgress(k/1024,fileSize);
                                //pb.progressProperty().bind(this.progressProperty());
                                //pb.setProgress(getProgress());
                           bos.close();
                           System.out.println("Finished/cancelled!");
                         } catch (MalformedURLException e) {
                              e.printStackTrace();
                         } catch (FileNotFoundException e) {
                              e.printStackTrace();
                         } catch (IOException e) {
                              e.printStackTrace();
                      return null;
     public static void main(final String[] arguments)
          Application.launch(arguments);
}

The following is the main culprit:
pb.progressProperty().bind(serv.progressProperty());I think your problem is the following line:
   pb.setProgress(serv.getProgress())  //bound value cannot be setAdd a listener to a serv. progressProperty()
  serv.progressProperty().addListener(new ChangeListener() {
                   @Override
                   public void changed(ObservableValue o, Object oldVal,
                           Object newVal) {
                      pb.progressProperty().setValue(serv.getProgress());
               });Here is the modified code:
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.MalformedURLException;
import java.net.URL;
import javafx.beans.value.*;
import javafx.application.Application;
import javafx.concurrent.Service;
import javafx.concurrent.Task;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.scene.control.ProgressBar;
import javafx.scene.control.TextArea;
import javafx.scene.layout.VBox;
import javafx.scene.paint.Color;
import javafx.stage.Stage;
public class Thr extends Application {
     @Override
     public void start(Stage stage) throws Exception {
          final Group rootGroup = new Group();
           final Scene scene = new Scene(rootGroup, 500, 400, Color.GHOSTWHITE);
           stage.setScene(scene);
           stage.setTitle("Testing downloads from Spring");
           stage.show();
           setS(rootGroup);
     final VBox vbox = new VBox();
     final javafx.scene.control.Button btn = new javafx.scene.control.Button("START!");
     final TextArea tf = new TextArea();
     final javafx.scene.control.Button btnC = new javafx.scene.control.Button("CANCEL!");
     final ProgressBar pb = new ProgressBar();
     final FirstLineService serv = new FirstLineService();
     boolean cancelled = false;
     private void setS(Group rg) {
          tf.setPrefRowCount(5);
          vbox.getChildren().add(btn);
          vbox.getChildren().add(tf);
          vbox.getChildren().add(btnC);
          vbox.getChildren().add(pb);
          pb.setPrefWidth(450);
          rg.getChildren().add(vbox);
          btn.setOnAction(new EventHandler<ActionEvent>() {
               @Override
               public void handle(ActionEvent arg0) {
                    serv.start();
                    System.out.println("Service status: "+serv.getState());
                    tf.setText("STARTED!");
                 serv.progressProperty().addListener(new ChangeListener() {
                   @Override
                   public void changed(ObservableValue o, Object oldVal,
                           Object newVal) {
                      pb.progressProperty().setValue(serv.getProgress());
          btnC.setOnAction(new EventHandler<ActionEvent>() {
               @Override
               public void handle(ActionEvent arg0) {
                    serv.cancel();
                    System.out.println("Service status: "+serv.getState());
                    System.out.println("Service status cancelled when progress was: "+serv.getProgress());
                    tf.appendText("\nCANCELLED!");
                    //pb.setProgress(serv.getProgress());n
          //pb.setProgress(0);
     //     if (cancelled!=true) {
//               pb.progressProperty().bind(serv.progressProperty());//
//          } else {
//               pb.progressProperty().unbind();
          pb.progressProperty().addListener(new ChangeListener<Task>() {
               @Override
               public void changed(ObservableValue<? extends Task> arg0,
                         Task arg1, Task arg2) {
                    // TODO Auto-generated method stub
                    pb.setProgress(serv.getProgress());
     private class FirstLineService extends Service {
        protected Task createTask() {
            return new Task<Void>() {
                protected Void call() {
                     URL url;
                         try {
                              url = new URL("http://s3.amazonaws.com/dist.springframework.org/release/SPR/spring-framework-3.1.1.RELEASE.zip");
                           InputStream in = url.openStream();
                           int fileSize = url.openConnection().getContentLength()/1024;
                           File f = new File("spring.zip");
                           BufferedInputStream bin = new BufferedInputStream(in, 1024);
                           FileOutputStream fos = new FileOutputStream(f);
                           BufferedOutputStream bos = new BufferedOutputStream(fos, 1024);
                           int n=0;
                           int k=0;
                           System.out.println("Let the download begin!");
                           while(n !=-1){
                                if (isCancelled()) {
                                     cancelled = true;
                                        n=-1;
                                        System.out.println("Cancelling!");
                                   } else {
                                   k=k+1;
                                n=bin.read();
                                bos.write(n);
                                updateProgress(k/1024,fileSize);
                                //pb.progressProperty().bind(this.progressProperty());
                                //pb.setProgress(getProgress());
                           bos.close();
                           System.out.println("Finished/cancelled!");
                         } catch (MalformedURLException e) {
                              e.printStackTrace();
                         } catch (FileNotFoundException e) {
                              e.printStackTrace();
                         } catch (IOException e) {
                              e.printStackTrace();
                      return null;
     public static void main(final String[] arguments)
          Application.launch(arguments);
}

Similar Messages

  • Can I use a inputHidden for javascript values that doesn't set the value?

    I have a hiddenInput field for each row in a datatable so I can restore default values to a date field with a javascript function. I am getting conversion errors because I don't have the right setters in the backing object - and I really don't want to put them there - but I don't want the tag to set the values! Is there any way to just set a hidden value somewhere for each row of a datatable but not have it try to set the value? Thanks in advance!

    I just realised that won't work because all the HTML tags will have the same name, whereas I need the dynamically generated suffix that a dataTable assigns to every element in the row i.e. '_id34', so I can reference the value in the javascript and compare it to entered values. Any more ideas? I am having huge memory problems when I'm submitting my form too, using up 2GB of mem and then dying! I'm not sure what's causing it, because it doesn't get as far as my action method code before it dies! It works for smaller tables but I need to be able to handle ~20 users with tables 4x the size I can process now without running out of memory :( Any help would be really really appreciated!!

  • HT4623 Somehow my mini IPad locked up and is asking for a passcode that we never set up.  What an we do to unlock the device?

    Somehow I locked up my mini I pad and it's asking for a pass code which was never set up and therefore I can't open the device.  What do I do??

    1)  Connect to iTunes on the computer you usually Sync with and Restore
    http://support.apple.com/kb/HT1414
    2)  If necessary Place the Device into Recovery mode...
    http://support.apple.com/kb/ht4097
    Note on Recovery Mode.
    You may need to try this More than Once...
    Be sure to Follow ALL the Steps...
    Once you have Recovered your Device...
    Re-Sync your Content or Restore from the most Recent Backup...
    Restore from Backup  >  http://support.apple.com/kb/ht1766
    Make sure you have the Latest Version of iTunes (v11) Installed on your computer
    iTunes free download from www.itunes.com/download
    Pankowsteve wrote:
    ... it's asking for a pass code which was never set up ...
    However... If this is your issue...
    Activation Lock in iOS 7  >  http://support.apple.com/kb/HT5818
    Then you have to use the Apple ID and Password that was Originally used to Activate the iDevice..

  • The root cause for the case that "cannot close labview-generated exe file"

    Hi All, I have a big program including a lot of things. When I converted it to an exe file, it cannot be closed properly. I used to load the dynamic vi in this program and cannot close it by clicking "X" of the window. Now I have removed that dynamic load but still cannot close the exe. Could anyone give me some advice? Thank you!

    Hi Freelance_LV, thank you for your advise, here is a program for a USB dongle. Here are the answers:
    for now, questions:
    1. how are you closing the EXE? Panel close (X) on the top right corner/stop or exit button on the GUI?
    [A] I use (X) on the top right corner but it did not work. But when I use exit button on the GUI it worked.
    2. Or are you using a FP Close invoke node?
    [A] No
    3.how are you handling the event for Panel close or for Stop/exit button?
    [A] events are inside a sequence frame
    how many loops are running in parallel inside the EXE?
    [A] It is hard to tell. I am not the original creator of this code, but the main structure is this: a big "for" loop, inside there are some sequence frame, and some events in one of the frame.
    how are you stopping those loops when the panel is closed or a Stop/Exit button is pressed.
    [A] the main loop inlcudes some events, sequence frame, and something like this. And there is a subvi from some previous people's work to close USB. 
    have you checked if all the loops are closing when you stop the EXE?
    [A] Sorry I don't know how to check all the loops are closed.
    does this work well when you run the source code?
    [A] yes source code can be always be closed well.
    have you checked for any errors when yuo stop your EXE?
    [A] sorry I don't know how to check for errors?
    when you say it cannot be closed properly, there could be two things:
    1. the front panel/GUI does not close and it stays there. you cannot perform any GUI actions, or it seems to have hung.
    [A] Yes GUI still there. But cannot perform any GUI actions.
    2. the GUI closes but you can still it in the task bar below, you will have to use the Task manager to force close the executable.
    [A] Not this case.
    Thank you very much!

  • I have a base station express that cannot be set

    The express just blinks yellow when I go to set up it just reads can not be set up by this.
    All my computers read the base station express name but they don't set up....why,

    I would suggest that you perform a "factory default" reset on the Airport Express Base Station (AX). Note: You may have to attempt this several times to make sure that it "sticks."
    Once the reset has completed, temporarily connect the AX directly to your computer via an Ethernet connection, and then, use the AirPort Utility to configure it as you require for your situation.

  • How to calculate some value that referring to another table

    Hi...
    Need help asap
    The questions are :
    Q1 : In Microsoft Excell, we can take value from one cell and use it to another cell.
    How about in BO, if we want to take value (ex. 93.75) from the other table and use or refer the value that we want to to another table (just use the value from another table)
    Just for information, we want to use the number (93.75) in another function. (if <93.75, then........) and the value (93.75) is a result from another function or calculation.
    Q2 : How to SUM from one table and show the result to another table.(We want to use the result of SUM for another calculation in different table.)
    Thanks for your kind help.

    Eva,
    In answer to your question about using a cell from report (block) as a value to be manipulated within another block, will be tricky unless you can employ the "Merge Dimensions" technique.  Working in the blind and trying to visualize what you are trying to do is very difficult, so to speak in general terms, you will have to determine a best way to merge dimensions, then build specific local variables to "flag" and extract succinct values from one data provider, and then use that local variable in applying it to the other block.  This will take some experimentation and testing before you can feel confident and get the hang of it.
    On the other hand, if you know what the threshold value is that you want to apply (like for instance 91.75), then you can either "hardcode" that in your formula(s), or build a prompt in your report that captures this tidbit from the user when the report runs, and using the UserResponse function you should be able to calculate what it is you want to do.
    Good luck and post more details (specific tables, columns, and manipulations) and perhaps some one can post a suggestion on how to best execute your report.
    Thanks,
    John

  • TS1702 Trying to download free solitaire application and error message that cannot connect to itunes store

    Please contact me ASAP - having an issue on iphone 4 - app store trying to download a free solitaire application and it give an error message that cannot connect to itunes store
    [email protected]
    817-999-1812 Joe or Jeana Jones

    Hello, perhaps this may help: http://blogs.isaserver.org/shinder/2006/03/05/explanation-on-the-502-error-to-de lta-and-sun-sites/ the comments have some specific references to iTunes.
    The issue is that it's almost certainly a problem with your firewall/proxy and not iTunes so you might be hard-pressed to find help here as suggesting help for private LAN infrastructure is not the same as suggesting help for iTunes. Usually I'd suggest turning the proxy off and work your way backwards to find out where the problem is but I guess this isn't possible.
    Anyway, have a look at the link and see if it helps.

  • "Please ensure that Classpath is set properly" then run adclonectx.pl

    Hello,
    I am working on cloning Oracle Home. When running clone context to create context file on the target system:
    [oracle@cvlx10 bin]$ perl adclonectx.pl contextfile=/v01/vdev/11.1.0/vdev/appsutil/VPRD3_cvlx30.xml template=/v01/vdev/11.1.0/vdev/appsutil/template/adxdbctx.tmp pairsfile=/v01/vdev/11.1.0/vdev/appsutil/clone/pairsfile.txt
    and received this message
    Please ensure that Classpath is set properly
    I am new to cloning, can anyone give me some idea where to check this? Thanks a lot.

    Please post the details of the application release, database version and OS.
    I am working on cloning Oracle Home. When running clone context to create context file on the target system:
    [oracle@cvlx10 bin]$ perl adclonectx.pl contextfile=/v01/vdev/11.1.0/vdev/appsutil/VPRD3_cvlx30.xml template=/v01/vdev/11.1.0/vdev/appsutil/template/adxdbctx.tmp pairsfile=/v01/vdev/11.1.0/vdev/appsutil/clone/pairsfile.txt
    and received this message
    Please ensure that Classpath is set properlyWhat does "echo $CLASSPATH" return?
    I am new to cloning, can anyone give me some idea where to check this? Thanks a lot.Please make sure you follow all the steps in Rapid Clone doc -- Rapid Clone Documentation Resources For Release 11i and 12 [ID 799735.1]
    Thanks,
    Hussein

  • ADD ITEMS TO DROPDOWN BOX FROM A TEXT FIELD(USER ENTERS THE ITEM) AND BOUND VALUE ALSO

    I WANT TO ADD ITEMS  THE DROPDOWN BOX FROM THE TEXT FIELD(ITEM NAME) WHERE USER ENTER'S THE ITEM DESCRIPTION
    AND BOUND VALUE ALSO SHOULD BE ADDED TO THE SAME ITEM.
    SAME WAY REMOVE ITEMS FROM DROPDOWN BOX
    PLEASE GIVE SAMPLE FORM OR JAVASCRIPT FOR THE ABOVE SCENARIO.....
    INDEED HELPFUL FOR MY PROJECT PLEASE SEND ATTACHED PDF FORM

    Hi Praveen,
    Your form is not shared so I have not been able to access it.  But I have updated mine.  There are now two approaches, one that follows on from the above method and updates each drop down list in each row.  The second updates a separate dataset that the drop down list is bound to.  This second approach requires the remerge() method which can cause problems if your code has updates some form properties like a borders color as these will be reset, but the code is simplier and you will only have one list to maintain.  The add button click code is;
    var particulars = xfa.datasets.resolveNode("particulars");
    if (particulars === null)
        particulars = xfa.datasets.createNode("dataGroup","particulars");
        xfa.datasets.nodes.append(particulars);    
    var particular = xfa.datasets.createNode("dataValue","particular");
    particular.value = ItemName.rawValue;
    var boundValue = xfa.datasets.createNode("dataValue","id");
    boundValue.value = BoundValue.rawValue;
    particular.nodes.append(boundValue);
    boundValue.contains = "metaData";
    // find sorted position to insert
    for (var i = 0; i < particulars.nodes.length; i++)
        p = particulars.nodes.item(i);
        if (p.value > particular.value)
          particulars.nodes.insert(particular, p);       
                 break;
    // add to end if greater than all existing items
    if (particular.parent === null)
        particulars.nodes.append(particular);
    // clear source fields
    ItemName.rawValue = null;
    BoundValue.rawValue = null;
    // remerge form data to pick up new item
    xfa.form.remerge();
    And the binding looks like;
    I have updated my sample to include both methods, https://workspaces.acrobat.com/?d=OwysfJa-Q3HhPtFlgRb62g
    Regards
    Bruce

  • NLS_LANG value that suits Forms 10G and Database 11G wanted !

    I can't believe how bad is to install Oracle Database and Oracle Forms on the same Windows Vista machine!
    I had a problem in Oracle Forms 10g that prevents many items in the Form Builder menu from appearing in English Language and also prevents anything in the web-based forms runtime from appearing in English. I searched the forum for a solution and found that I have to set a NLS_LANG value in the environment variables equal to the following: AMERICAN_AMERICA.WE8MSWIN1256.
    I did this and my Forms builder looked great. Everything in english with no problems. But now what ?! The Oracle Database itself refused to connect from all clients! It refused to connect from Forms Builder, SQL Deeveloper, and even from SQL PLUS! The error given is: ORA-12705: Cannot access NLS data files or invalid environment specified.
    It seems that what I exactly need is a NLS_LANG value that will satisfy both Oracle Forms 10G and Oracle Database 11G that both are installed on the same Vista machine. The question is: What could this NLS_LANG value be?!
    Thank you in advance

    If you have connected to the database on which the form is based, prior to running the form from the Builder, the uname and password will automatically be passed in at startup and you will not be prompted.
    If you would rather hard code a username and password, enter it in formsweb.cfg. For example:
    SYNTAX:
    userid=<USERNAME>/<PASSWORD>@<DB NAME>
    EXAMPLE:
    userid=scott/tiger@orcl
    Remember that this change will only impact runtime and have no effect on the Builder.

  • I tried updating to iOS 8.1 but it have the apple symbol and a blue screen pops up and it restarts the process and its been going on about 3 weeks already. I dont know what to do? Is my iPad broke cause I just got that iPad in August.

    I tried updating to iOS 8.1 but it have the apple symbol and a blue screen pops up and it restarts the process and its been going on about 3 weeks already. I dont know what to do? Is my iPad broke cause I just got that iPad in August.

    Hi You may have a hardware fault take ipad to Apple Store. Ring then first to make an Appointment take box and you purchase paperwork they may give you A replacement. Before you do that Try a Reboot hold down power button & menu button hold both down until you see Apple Logo you may need to hold down for up to 30 Seconds But you may need to do this more than once. If it doesn't work take back to Apple Store. Cheers Brian

  • Retrieve list items from the textbox text value and display the dropdownlist item for that particular list item

    hi,
     I have created a custom list in my sharepoint :
    List1 name:   employeedepartment  -
                   Title       empdepartment
                   A             D1
                   B             D2
                   C             D3 
    List2  name:  employeedetails  
     emptitle            empname       empdepartment(lookup) --> from the list "employeedepartment"
       x                     Ram                 D1
       y                     Robert             D2
       z                     Rahim              D3
    My task is to create a custom webpart that will be for searching this employee details by entering emptitle
    For this, i have created a visual webpart using visual studio 2010, my webpart will be like this:
    emptitle  --->  TextBox1                        Button1--> Text property : Search
    empname---> TextBox2
    empdepartment-->  DropDownList1
    For this, i wrote the code as follows:
    protected void Button1_Click(object sender, EventArgs e)
                using (SPSite mysite = new SPSite(SPContext.Current.Site.Url))
                    using (SPWeb myweb = mysite.OpenWeb())
                        SPList mylist = myweb.Lists["employeedetails"];
                        SPQuery query = new SPQuery();
                        query.Query = "<Where><Eq><FieldRef Name='Title'/><Value Type='Text'>" + TextBox1.Text.ToString() + "</Value></Eq></Where>";
                        SPListItemCollection myitems = mylist.GetItems(query);
                        if (myitems.Count > 0)
                            foreach (SPListItem item in myitems)
                                string a1 = Convert.ToString(item["empname"]);
                                string a2 = Convert.ToString(item["empdepartment"]);
                                TextBox2.Text = a1;           // displaying   properly                    
                                //DropDownList3.SelectedIndex = 1;                           
     It is showing the list item in textbox according to the item entered in the textbox1... But I am stuck to show in the dropdown list. 
    Suppose, if i enter X in textbox and click on search, then dropdownlist need to show D1,
                               for Y --> D2 and for Z-> D3... like that.
    What code do i need to write in the button_click to show this... 
    Please don't give any links...i just want code in continuation to my code.

    Hi,
    Since you have got the data you want with the help of SharePoint Object Model, then you can focus on how to populate values and set an option selected in the Drop Down List.
    With the retrieved data, you can populate them into the Drop Down List firstly, then set a specific option selected.
    Here is a link will show how to populate DropDownList control:
    http://www.dotnetfunda.com/articles/show/30/several-ways-to-populate-dropdownlist-controls
    Another link about select an item in DropDownList:
    http://techbrij.com/select-item-aspdotnet-dropdownlist-programmatically
    Best regards
    Patrick Liang
    TechNet Community Support

  • Which formula(a) do I use to select any value that is than 0 but 7 out of a range of cells and sum them.

    I'm working on a sheet that I want to use to select a specific part based on values created by the sum of values in other cells. I am down to the point where I need to select a low range of numbers
    If the sum of cell D5 equals any sum between 1-15 will equal = part 1
    If the sum of cell D5 equals any sum between 16-23 will equal = part 2 ,
    If the sum of cell D5 equal antsy sum between 24-32 will equal part 3.
    I'm at a loss how to make one formula or combination of formulas do this.
    Thanks in advance.
    Big Al Hur

    Hi Al,
    The confusion arises from your having asked two separate questions, one in the subject line, the other in the body of your initial post.
    1.
    How do I sum only the values greater than zero and less than 7 in a range of cells?
    This formula supplied by SGIII does what you have asked there:
    =SUMIFS(A,A,">0",A,"<7")
    The syntax is:
    SUMIFS(sum-values, test-values, condition, test-values, condition…)
    sum-values ( A ) is the range of cells containing the values to be summed (all the body cells in column A)
    test-values and condition come in pairs. the first names the range of values to be tested, the second names the condition that must be met.
    In this formula, the test-values in each pair are the same as the sum values.
    condition ( ">0" ) is the first condition that must be met by these values. (greater than zero)
    the second condition ( "<7" ) is the second condition that must be met (less than seven)
    To be included in the sum, a value in the list must meet both conditions: It must be greater than 0 AND less than 7. IN SG's example, there are two values that meet both conditions, 2 in A2 and 6 in A5, that meet both conditions. Their sum, 8, is shown in A10, whch is the cell containing the formula.
    2
    If the sum of cell D5 equals any sum between 1-15 will equal = part 1
    If the sum of cell D5 equals any sum between 16-23 will equal = part 2 ,
    If the sum of cell D5 equals any sum between 24-32 will equal part 3.
    This formula supplied by SGIII, and the Lookup table that goes with it, does what you have asked here.
    =VLOOKUP(D5,Lookup::A:B,2,close-match)
    Close-match means 'the largest value that is less than or equal to' the search-value.
    The search-value is the value in D5
    VLOOKUP searches in the leftmost column (A) of the lookup table (columns A and B of the table named Lookup).
    With "close-match" specified:
    any value that is equal to or greater than 0 and less than 16 will be matched by the 0 in A2. VLOOKUP will return the value in the same row of column 2 (B) of the table: "Part 1"
    any value that is equal to or greater than 16 and less than 24 will be matched by the 16 in A3. VLOOKUP will return the value in the same row of column 2 (B) of the table: "Part 2"
    any value that is equal to or greater than 24 will be matched by the 24 in A4. VLOOKUP will return the value in the same row of column 2 (B) of the table: "Part 3"
    While this is not an exact match with your description above, it will perform exactly as you requested IF the value in D5 is never less than 1 and never greater than 32.
    If the possible range is greater than that, I would suggest the changes shown below to the formula and to the lookup table. The column containing numbers is column D, and represents values in D5. Column E shows the result for each value using the given formula and lookup table (LU A). Column F shows results for the same values using the revised formula and lookup tble (LU B):
    Original                              =VLOOKUP(D,LU A :: A:B,2,1)
    Revised formula: =IFERROR(VLOOKUP(D,LU B :: A:B,2,1),"N//A")
    In the revision, IFERROR takes care of the negative values in D2 and D3. The zero value in D4 and in the last row of column D and the overflow values (greater than 32) are handled by the revisions to the lookup table.
    Regards,
    Barry

  • Read the signal value that pass over the upper and lower limit..

    how to create the system which can read the signal value that pass the lower and upper limit? i've try but the system only read the value that in range of upper and lower limit..thanks..

    Im not very sure if this system can read the value that pass over the limit..because at the save file data so many value(i will attach that file)..and i dont know how to setting to get the failure values only..
    Actually i want to build some system that can read and save value that pass over the limit..i take the signal from simulation sine signal..no hardware required..
    im very new with this software and im in learning process..
    A very big thanks to all that helping me..
    save file data from the system
    Channels 8
    Samples 1 1 1 1 1 1 1 1
    Date 2012/03/05 2012/03/05 2012/03/05 2012/03/05 2012/03/05 2012/03/05 2012/03/05 2012/03/05
    Time 12:30:11.099999 12:30:11.216 12:30:11.216 12:30:11.216 12:30:11.099999 12:30:11.216 12:30:11.216 12:30:11.216
    X_Dimension Time Time Time Time Time Time Time Time
    X0 1.0000000000000001E-1 1.0000000000000001E-1 1.0000000000000001E-1 1.0000000000000001E-1 1.0000000000000001E-1 1.0000000000000001E-1 1.0000000000000001E-1 1.0000000000000001E-1
    Delta_X 0.001000 0.001000 0.001000 0.001000 0.001000 0.001000 0.001000 0.001000
    ***End_of_Header***
    X_Value Sine (Negative Peak) Failures (Negative Peak) Upper Limit (Negative Peak) Lower Limit (Negative Peak) Sine (Positive Peak) Failures (Positive Peak) Upper Limit (Positive Peak) Lower Limit (Positive Peak) Comment
    0.100000 -6.999066 -6.999066 5.000000 -5.000000 6.999136 6.999136 5.000000 -5.000000
    0.200000 -6.998993 -6.998993 5.000000 -5.000000 6.999204 6.999204 5.000000 -5.000000
    0.300000 -6.998917 -6.998917 5.000000 -5.000000 6.999269 6.999269 5.000000 -5.000000
    0.400000 -6.998838 -6.998838 5.000000 -5.000000 6.999331 6.999331 5.000000 -5.000000
    0.500000 -6.998756 -6.998756 5.000000 -5.000000 6.999391 6.999391 5.000000 -5.000000
    0.600000 -6.998672 -6.998672 5.000000 -5.000000 6.999447 6.999447 5.000000 -5.000000
    0.700000 -6.998585 -6.998585 5.000000 -5.000000 6.999501 6.999501 5.000000 -5.000000
    0.800000 -6.998495 -6.998495 5.000000 -5.000000 6.999552 6.999552 5.000000 -5.000000
    0.900000 -6.998403 -6.998403 5.000000 -5.000000 6.999601 6.999601 5.000000 -5.000000
    1.000000 -6.998307 -6.998307 5.000000 -5.000000 6.999646 6.999646 5.000000 -5.000000
    1.100000 -6.998209 -6.998209 5.000000 -5.000000 6.999689 6.999689 5.000000 -5.000000
    1.200000 -6.998108 -6.998108 5.000000 -5.000000 6.999729 6.999729 5.000000 -5.000000
    1.300000 -6.998005 -6.998005 5.000000 -5.000000 6.999766 6.999766 5.000000 -5.000000
    1.400000 -6.997898 -6.997898 5.000000 -5.000000 6.999801 6.999801 5.000000 -5.000000
    1.500000 -6.997789 -6.997789 5.000000 -5.000000 6.999833 6.999833 5.000000 -5.000000
    1.600000 -6.997677 -6.997677 5.000000 -5.000000 6.999862 6.999862 5.000000 -5.000000
    1.700000 -6.997563 -6.997563 5.000000 -5.000000 6.999888 6.999888 5.000000 -5.000000
    1.800000 -6.997445 -6.997445 5.000000 -5.000000 6.999912 6.999912 5.000000 -5.000000
    1.900000 -6.997325 -6.997325 5.000000 -5.000000 6.999932 6.999932 5.000000 -5.000000
    2.000000 -6.997202 -6.997202 5.000000 -5.000000 6.999950 6.999950 5.000000 -5.000000
    2.100000 -6.997076 -6.997076 5.000000 -5.000000 6.999965 6.999965 5.000000 -5.000000
    2.200000 -6.996948 -6.996948 5.000000 -5.000000 6.999978 6.999978 5.000000 -5.000000
    2.300000 -6.996817 -6.996817 5.000000 -5.000000 6.999988 6.999988 5.000000 -5.000000
    2.400000 -6.996683 -6.996683 5.000000 -5.000000 6.999994 6.999994 5.000000 -5.000000
    2.500000 -6.996546 -6.996546 5.000000 -5.000000 6.999999 6.999999 5.000000 -5.000000
    2.600000 -6.996546 -6.996546 5.000000 -5.000000 7.000000 7.000000 5.000000 -5.000000
    2.700000 -6.996683 -6.996683 5.000000 -5.000000 6.999994 6.999994 5.000000 -5.000000
    2.800000 -6.996817 -6.996817 5.000000 -5.000000 6.999988 6.999988 5.000000 -5.000000
    2.900000 -6.996948 -6.996948 5.000000 -5.000000 6.999978 6.999978 5.000000 -5.000000
    3.000000 -6.997076 -6.997076 5.000000 -5.000000 6.999965 6.999965 5.000000 -5.000000
    3.100000 -6.997202 -6.997202 5.000000 -5.000000 6.999950 6.999950 5.000000 -5.000000
    3.200000 -6.997325 -6.997325 5.000000 -5.000000 6.999932 6.999932 5.000000 -5.000000
    3.300000 -6.997445 -6.997445 5.000000 -5.000000 6.999912 6.999912 5.000000 -5.000000
    3.400000 -6.997563 -6.997563 5.000000 -5.000000 6.999888 6.999888 5.000000 -5.000000
    3.500000 -6.997677 -6.997677 5.000000 -5.000000 6.999862 6.999862 5.000000 -5.000000
    3.600000 -6.997789 -6.997789 5.000000 -5.000000 6.999833 6.999833 5.000000 -5.000000
    3.700000 -6.997898 -6.997898 5.000000 -5.000000 6.999801 6.999801 5.000000 -5.000000
    3.800000 -6.998005 -6.998005 5.000000 -5.000000 6.999766 6.999766 5.000000 -5.000000
    3.900000 -6.998108 -6.998108 5.000000 -5.000000 6.999729 6.999729 5.000000 -5.000000
    4.000000 -6.998209 -6.998209 5.000000 -5.000000 6.999689 6.999689 5.000000 -5.000000
    4.100000 -6.998307 -6.998307 5.000000 -5.000000 6.999646 6.999646 5.000000 -5.000000
    4.200000 -6.998403 -6.998403 5.000000 -5.000000 6.999601 6.999601 5.000000 -5.000000
    4.300000 -6.998495 -6.998495 5.000000 -5.000000 6.999552 6.999552 5.000000 -5.000000
    4.400000 -6.998585 -6.998585 5.000000 -5.000000 6.999501 6.999501 5.000000 -5.000000
    4.500000 -6.998672 -6.998672 5.000000 -5.000000 6.999447 6.999447 5.000000 -5.000000
    4.600000 -6.998756 -6.998756 5.000000 -5.000000 6.999391 6.999391 5.000000 -5.000000
    4.700000 -6.998838 -6.998838 5.000000 -5.000000 6.999331 6.999331 5.000000 -5.000000
    4.800000 -6.998917 -6.998917 5.000000 -5.000000 6.999269 6.999269 5.000000 -5.000000
    4.900000 -6.998993 -6.998993 5.000000 -5.000000 6.999204 6.999204 5.000000 -5.000000
    5.000000 -6.999066 -6.999066 5.000000 -5.000000 6.999136 6.999136 5.000000 -5.000000
    5.100000 -6.999136 -6.999136 5.000000 -5.000000 6.999066 6.999066 5.000000 -5.000000
    5.200000 -6.999204 -6.999204 5.000000 -5.000000 6.998993 6.998993 5.000000 -5.000000
    5.300000 -6.999269 -6.999269 5.000000 -5.000000 6.998917 6.998917 5.000000 -5.000000
    5.400000 -6.999331 -6.999331 5.000000 -5.000000 6.998838 6.998838 5.000000 -5.000000
    5.500000 -6.999391 -6.999391 5.000000 -5.000000 6.998756 6.998756 5.000000 -5.000000
    5.600000 -6.999447 -6.999447 5.000000 -5.000000 6.998672 6.998672 5.000000 -5.000000
    5.700000 -6.999501 -6.999501 5.000000 -5.000000 6.998585 6.998585 5.000000 -5.000000
    5.800000 -6.999552 -6.999552 5.000000 -5.000000 6.998495 6.998495 5.000000 -5.000000
    5.900000 -6.999601 -6.999601 5.000000 -5.000000 6.998403 6.998403 5.000000 -5.000000
    6.000000 -6.999646 -6.999646 5.000000 -5.000000 6.998307 6.998307 5.000000 -5.000000
    6.100000 -6.999689 -6.999689 5.000000 -5.000000 6.998209 6.998209 5.000000 -5.000000
    6.200000 -6.999729 -6.999729 5.000000 -5.000000 6.998108 6.998108 5.000000 -5.000000
    6.300000 -6.999766 -6.999766 5.000000 -5.000000 6.998005 6.998005 5.000000 -5.000000
    6.400000 -6.999801 -6.999801 5.000000 -5.000000 6.997898 6.997898 5.000000 -5.000000
    6.500000 -6.999833 -6.999833 5.000000 -5.000000 6.997789 6.997789 5.000000 -5.000000
    6.600000 -6.999862 -6.999862 5.000000 -5.000000 6.997677 6.997677 5.000000 -5.000000
    6.700000 -6.999888 -6.999888 5.000000 -5.000000 6.997563 6.997563 5.000000 -5.000000
    6.800000 -6.999912 -6.999912 5.000000 -5.000000 6.997445 6.997445 5.000000 -5.000000
    6.900000 -6.999932 -6.999932 5.000000 -5.000000 6.997325 6.997325 5.000000 -5.000000
    7.000000 -6.999950 -6.999950 5.000000 -5.000000 6.997202 6.997202 5.000000 -5.000000
    7.100000 -6.999965 -6.999965 5.000000 -5.000000 6.997076 6.997076 5.000000 -5.000000
    7.200000 -6.999978 -6.999978 5.000000 -5.000000 6.996948 6.996948 5.000000 -5.000000
    7.300000 -6.999988 -6.999988 5.000000 -5.000000 6.996817 6.996817 5.000000 -5.000000
    7.400000 -6.999994 -6.999994 5.000000 -5.000000 6.996683 6.996683 5.000000 -5.000000
    7.500000 -6.999999 -6.999999 5.000000 -5.000000 6.996546 6.996546 5.000000 -5.000000
    7.600000 -7.000000 -7.000000 5.000000 -5.000000 6.996546 6.996546 5.000000 -5.000000
    7.700000 -6.999994 -6.999994 5.000000 -5.000000 6.996683 6.996683 5.000000 -5.000000
    7.800000 -6.999988 -6.999988 5.000000 -5.000000 6.996817 6.996817 5.000000 -5.000000
    7.900000 -6.999978 -6.999978 5.000000 -5.000000 6.996948 6.996948 5.000000 -5.000000
    8.000000 -6.999965 -6.999965 5.000000 -5.000000 6.997076 6.997076 5.000000 -5.000000
    8.100000 -6.999950 -6.999950 5.000000 -5.000000 6.997202 6.997202 5.000000 -5.000000

  • I have an iMac and under devices in the sidebar that name has changed from iMac to iMac(1) to iMac(2)...and is now at iMac(9).  What is causing this and how do I correct it?

    I have an iMac and under devices in the sidebar that name has changed from iMac to iMac(1) to iMac(2)...and is now at iMac(9).  What is causing this and how do I correct it?

    Sometimes this message means that you have two simultaneous connections to the same local network: probably Ethernet and Wi-Fi. If applicable, disconnect the Ethernet cable or turn off Wi-Fi.
    Sometimes it happens because a device that gets its network address from the router wakes from sleep, and the address it was using before has been assigned to another device.
    A third-party wireless router that has incompatible settings or firmware may be the cause. In that case, refer to the manufacturer or ISP for support. Restarting the router may help, temporarily.
    Rename the computer in the Sharing preference pane.

Maybe you are looking for

  • How do I find a photo file in the Finder + future migration question

    Being a recent Mac convert, I am just getting used to the 'complete control' approach to photo management that iPhoto has. I'm used to knowing where my photos physically reside on my computer - this is useful for doing things like uploading photos to

  • Access vis NULL object reference.

    Hi experts, I have a component having context->node1->usernr usernr is one of the attributes in node1. node1 has cardinality 0..n I have two views, view1 and view2 in the window. both the view contexts have mapping with node1 of component controller

  • Problems when Booting my Mac/ Partitioning for Windows 7

    Hello Community, 3 months ago, i bought a MacBook Pro mid 2012-model. I was very satisfied until a really big problem occured. The first time I recognized a boot-problem was when I restarted my Mac, a screen with the "forbidden-symbol" came up, after

  • How to display subtitles over videoComponent from getVisualComponent - JMF

    I'm writting video player and I have encountered a problem. Is there a possibility to add Component (or something else what could display text in) to Component that I got from JMF method getVisualComponent(). As this method returns Component I can't

  • AIR 4.0 captive runtime won't run: "requires a version of Adobe AIR" alert

    I'm creating an AIR captive runtime application, and it won't run on a target Windows* machine. It displays the following alert instead: This application requires a version of Adobe AIR which cannot be found. Please download the latest version of thi