several fields with a rounded edge

Hi team.

I need to create a screen with multiple fileds with rounded corners one. As to create contacts or create tasks:

Any suggestions?

Thanks for your help.

Jorge Luis

Your problem is here:

container = (VerticalFieldManager) getMainManager ();
container1 = (VerticalFieldManager) getMainManager ();

They are all two refer to the same thing now.

You must use "container = new VerticalFieldManager();" and "container1 = new VerticalFieldManager();"

Add (container1) and then add (container)

Tags: BlackBerry Developers

Similar Questions

  • Add a point to a rounded edge?

    I have a form with a rounded edge and there is an anchor point at the tip of the edge I want to use the direct Selection tool to share the anchor point upwards to make it more than a sharp edge, a little like the tip of a star. However, pulling up the point does not make a sharp point as I expected. How can I achieve this?

    Thank you.

    Active the pen tool, hold down the option (this gives you the tool "convert" an anchor), click on the point of the curve

  • "Clip" correct for background with round edge

    Hi all. I'm having a problem with a round border and a round bottom. If you look at the code below, you will see that I have a border specified with a radius of 5. If I run the present, the bottom sticks outside the border. If I put also the context in which a radius of 5, it still seems wrong since the outside of the border turns to purple while I expect it to be the red light. If I change the bottom radius of 4 then the inside of the border is not quite equal to the background.

    How to define a border and just tell the background needs to be 'cut' by it?

    Thank you, Nick.
    import javafx.application.Application;
    import javafx.scene.Scene;
    import javafx.scene.control.Label;
    import javafx.scene.layout.FlowPane;
    import javafx.stage.Stage;
    
    public class RoundTest extends Application {
        @Override
        public void start(Stage stage) throws Exception {
            FlowPane flowPane = new FlowPane();
            Scene scene = new Scene(flowPane, 500, 500);
            flowPane.setStyle("-fx-padding: 10;");
            Label label = new Label("Hello");
            label.setStyle("-fx-border-color: red; -fx-border-radius: 5; -fx-background-color: blue;");
    //        label.setStyle("-fx-border-color: red; -fx-border-radius: 5; -fx-background-color: blue; -fx-background-radius: 5;");
            flowPane.getChildren().add(label);
            stage.setScene(scene);
            stage.show();
        }
    
        public static void main(String[] args) {
            launch(args);
        }
    }

    It's actually sort of a difficult question to answer well.

    The standard style sheet caspian.css for JavaFX 2.2 almost does not use of the borders.
    The standard controls of the Caspian have things that look like borders or edges highlighted, but they are almost always implemented by stratified environments.
    For example, a ring around a button is a blue background which is placed under the bottom of the key, making the ring to resemble a border, even if it is not.

    I don't really know why the bottom layer approach was chosen on a border + approach background. The possible reasons are:
    -It is easier.
    -its performance is superior.
    -It provides a better visual experience.
    Maybe it's one or all of the above.

    Nevertheless, I think that there was probably a good reason why the bottom layer approach has been chosen, then you would probably better stick.
    One of the advantages of this approach are there are many similar examples in the caspian.css that you can copy from and use.

    An example of string of css style for your sample using boundary layers app could be something like:

    -fx-padding: 1;  -fx-background-insets: 0, 1;  -fx-background-radius: 5, 5;  -fx-background-color: firebrick, forestgreen;
    

    Playing with combinations of laminates circles, padding and background-inserts you can get, borders around your controls which can be either entirely encapsulated in layout standard of your control or outside of it (like the focus ring), so that when you add something as a focus ring around your control, it is not movement of the control on the screen - it really just surrounds the control.

    An updated version of your application example that uses it is below:

    import javafx.application.Application;
    import javafx.scene.*;
    import javafx.scene.control.Label;
    import javafx.scene.layout.StackPane;
    import javafx.stage.Stage;
    
    public class RoundTest extends Application {
      @Override public void start(Stage stage) throws Exception {
    //    System.setProperty("prism.lcdtext", "false");
        StackPane stackPane = new StackPane();
        Scene scene = new Scene(stackPane, 500, 500, true);
        stackPane.setStyle(
            "-fx-background-color: cornsilk;"
          + " -fx-border-insets: 10;"
          + " -fx-border-color: rgba(128, 128, 128, 0.5)"
        );
        Label label = new Label("Hello");
        label.setStyle(
    //        "-fx-padding: 5;"
    //      + " -fx-background-insets: 0, 5;"
    //      + " -fx-background-radius: 5, 5;"
            "-fx-padding: 1;"
          + " -fx-background-insets: 0, 1;"
          + " -fx-background-radius: 5, 5;"
          + " -fx-background-color: firebrick, forestgreen;"
          + " -fx-text-fill: whitesmoke;"
        );
    //    label.setScaleX(5);
    //    label.setScaleY(5);
        stackPane.getChildren().add(new Group(label));
        stage.setScene(scene);
        scene.setCamera(new PerspectiveCamera());
    
        stage.show();
      }
    
      public static void main(String[] args) { launch(args); }
    }
    

    Now for other questions you raise:

    If I run the present, the bottom sticks outside the border

    Yes, the background properties border radius and radius are independent, so if you use a rounded edge, you must also use a rounded background or the background will extend beyond the corners of the border.

    If I put also the context in which a radius of 5, it still doesn't seem right because outside of the border turns to purple while I expect it to be the red light

    JavaFX 2.2 uses anti-aliasing just about all of it is rendered (and even something else for lcd called sub-pixel text rendered in some cases). Your edge is a single pixel wide. If the border is not exactly sitting on a pixel boundary, it will mingle in the background. Even if the sides of the border to sit exactly on the boundary of the pixel, when the border turns corners, smoothing algorithms are suddenly stirring the corner of the border and the background around the inside edge of the corner.

    You have chosen a green background and a red border. When you mix these two colors, you get purple (which is what's happening).

    I don't know of anyway to turn on or turn off rendering of smoothing for the JavaFX scene graph objects (perhaps something to do that might come along for the ride with the support of Java 8 3D scene graph).

    Regardless, you probably want to anti-aliasing for your rendering anyway. If you develop your application, knowing that anti-aliasing will happen. To do this, choose colors that marry well when anti-aliasing. Caspian done by deriving a lot of foreign background colors inner background colors (i.e. any relief or darkening of the border). It works well because they have the same mix of basic RGB, just in different portions component, so anti-aliasing mixes seamlessly. Full of choice colors at opposite ends of the RGB Spectrum as red and blue translates jarring mixtures as violet. Even if anti-aliasing is not in question, your eyes can play you tricks and have trouble seeing clearly the boundary between this kind of colors due to the strange optics of the eyes.

    Another strategy to alleviate the nasty mix is to use more pixels, for example instead of a one pixel border, use a border of two pixels - mixture of anti-aliasing will be much less noticeable. Using the strategy of greater pixel works very well in conjunction with the new screens of higher resolution (the so-called retina displays), where the pixels themselves are so small that the human eye is unable to distinguish the pixels and how they blend together.

    All that being said - your original example with rounded edges and bottom doesn't look too bad to me :-)

    -------------

    Another question that I fell on during the test, it is that there is a css attribute - fx-border-style, that can have the values of centered, inside and outside, and when I tried to put I got messages like:

    WARNING: declaration of com.sun.javafx.css.parser.CSSParser style of analysis error CSS online ' - fx - padding: 1; -fx-background-inserts: 0, 1; -fx-background-RADIUS: 5, 5; -fx-background-color: brick refractories, forestgreen; -fx-border-style: inside; -fx-text-fill: whitesmoke;' of javafx.scene.Node$22@1bd5d8ab: not supported the of 'inside' when parsing "border - fx - style' to [1 138].

    The css reference note to guide the border feature copy of the w3c background and border features, but there is no nut, silverside, border style centered in the w3c css reference, so I guess that there is a mistake in the JavaFX 2 css documentation it around which is taken in charge and what is implemented of the w3c css reference. Note that I'm not really that JavaFX css processing must correspond to the reference of css of w3c that I find the system complicated and difficult to understand w3c.

    http://docs.Oracle.com/JavaFX/2/API/JavaFX/scene/doc-files/cssref.html#region
    http://www.w3.org/TR/CSS3-background/#border-style

    Perhaps as borders in css do not seem to be used much in JavaFX, the issue of documentation is not such a big.

  • Newb question - displays only the first of several fields

    As a first application of Bb, I write a stopwatch and I want the larger time scale and the small milliseconds. As part of what I am trying to display several bitmap or label side-by-side fields, but when I run it using the Simulator, only the first is displayed.

    So, for example, what I want is:

    1-2: 3 4:5:6 7 8 9

    with each number in own field but what I mean is just

    1

    that is the first field. If I then use buttons they all appear in the verticalFieldManager by default in horizontalField Manager but if I use labels or bitmaps, then all I get is the first field, even if I remove the horizontalFieldManager and just use the default verticalFieldManager. I googled the question, this forum and spent several hours reading the code examples and documentation, but I have yet to understand why I can't put several fields of these types of side-by-side. I have to have something between them as separators or empty fields?

    The code that I've got so far is the following...

     public TimerView()    {     super();      HorizontalFieldManager timerField = new HorizontalFieldManager();
    
          Bitmap hour10 = Bitmap.getBitmapResource("num_1.png");        Bitmap hour01 = Bitmap.getBitmapResource("num_2.png");        Bitmap minute10 = Bitmap.getBitmapResource("num_3.png");      Bitmap minute01 = Bitmap.getBitmapResource("num_4.png");      Bitmap second10 = Bitmap.getBitmapResource("num_5.png");      Bitmap second01 = Bitmap.getBitmapResource("num_6.png");      Bitmap ms100 = Bitmap.getBitmapResource("num_7.png");     Bitmap ms010 = Bitmap.getBitmapResource("num_8.png");     Bitmap ms001 = Bitmap.getBitmapResource("num_9.png");     Bitmap colon = Bitmap.getBitmapResource("Colon.png");
    
          BitmapField bfHour10 = new BitmapField(hour10);       BitmapField bfHour01 = new BitmapField(hour01);       BitmapField bfHourColon = new BitmapField(colon);     BitmapField bfMinute10 = new BitmapField(minute10);       BitmapField bfMinute01 = new BitmapField(minute01);       BitmapField bfMinuteColon = new BitmapField(colon);       BitmapField bfSecond10 = new BitmapField(second10);       BitmapField bfSecond01 = new BitmapField(second01);       BitmapField bfSecondColon = new BitmapField(colon);       BitmapField bfMs100 = new BitmapField(ms100);     BitmapField bfMs010 = new BitmapField(ms010);     BitmapField bfMs001 = new BitmapField(ms001);
    
          timerField.add(bfHour10);     timerField.add(bfHour01);     timerField.add(bfHourColon);      timerField.add(bfMinute10);       timerField.add(bfMinute01);       timerField.add(bfMinuteColon);        timerField.add(bfSecond10);       timerField.add(bfSecond01);       timerField.add(bfSecondColon);        timerField.add(bfMs100);      timerField.add(bfMs010);      timerField.add(bfMs001);
    
            add(timerField);  }
    

    I know that this code violates probably some best practices or standards, but I intend to clean later.

    -edited for spelling

    Give it a go with images of the numbers.  You have it easy with BitmapFields, because you know how much space they need with

    getPreferredHeight() and getBitmapWidth().  Then you should be able to stick them next to each other.

    If I was doing this and who are looking for a special look at the clock, which seems to be what you are doing, I would like to have the digital icons as you do, and then set an image large enough to hold the value of the clock and in my routine of painting, select draw digital icon proper, in the right place.  As long as you load the bitmaps only once, I think it's the most effective way to do it.

    Of course, a much simpler way would be to have just a RichTextField formatted as you suggest - RichTextField because you can have two different fonts in a single field.

  • Fill a field with the results of the other (sort and add custom text)

    I have a PDF form with many fields popup asking 'Yes', 'Maybe' or 'no '. I need a way to collect the answers and sorting, all the 'yes' first of all, that all the 'maybe', all the 'no '. When I need after that sort of response of three, is put in a 'Results' field with the container of the ToolTips for each popup and the ability to add a "BOLD" text, between three sorted responses.

    I have found some javascript in the forum here to collect data from field only. It seems to be easy to modify if you have several fields to collect/sorting/extract.

    Assistance or management to do will be appreciated.

    Thank you!

    Assuming that you have 50 menus named A1, A2... A50 and each drop-down list has three elements (Yes, maybe, no), you could do something like:

    Initialize object to contain the info of the answer

    var oResponse = {}

    'Yes': [],.

    "Maybe": [],.

    ['No':]

    };

    var i, f;

    Browse fields (A1, A2... A50)

    for (i = 1; i<= 50;="" i="" +="1)">

    Get a reference to the current field

    f = getField ("A" + i);

    Add ToolTip text of the current field to the corresponding table in the response object

    oResponse [f.valueAsString] .push (f.userName);

    }

    Generate the output string

    aOutput var = [];

    If (oResponse ['yes'] .length > 0) aOutput.push ("It's the priority YES\r" + oResponse ["Yes"] .join ("\r"));

    If (oResponse ["Maybe"] .length > 0) aOutput.push ("It's the priority MAYBE\r" + oResponse ["Maybe"] .join ("\r"));

    If (oResponse ['No'] .length > 0) aOutput.push ("It's the priority NO\r" + oResponse ["No"] .join ("\r"));

    Enter the results

    getField("Results").value = aOutput.join("\r\r");

  • How to fill several fields a...?


    I'm working with Acrobat 9 and try to change some fields in an existing PDF, I. I have some fields that repeat (EX: social security #) and I am trying to do it where it just fill in once and it will appear on other parts of the document. I was not the original developer of this PDF form to fill out, and the previous person has several fields that populate only randomly with information/data, when a particular field is completed. HELP PLEASE!

    The key thing to understand is that the fields with the same name will automatically have the same value. So, if you give it them the same name. If you don't want it to happen, assign each field a unique name.

  • When selecting several fields of the same type why tab formatting does not appear in the properties?

    Creating pdf with lines Qty and total order forms, I want to format the fields as number with 0 decimal places for the qty column and the sign $ and 2 decimals for the totals column.

    Why when choosing several fields quantity, then go to properties, the format tab disappear? Why do I have to choose and the format of each field one at a time? They have the same type of field.

    I'm working currently on a document with more than 200 fields are most of the quantity fields and others are total fields. I right click on each field individually.

    It's 2015! Can you imagine if Excel did it?... Adobe WTF?

    Only the Adobe developers can answer why it is like that, but it's unfortunately.

    The only solution is to use a script to set the Format setting for several fields at the same time.

    I developed such a tool, so if you are interested you can get it here: Scripts custom Adobe: Acrobat - Format applies to several text fields

  • You want to varify each form field with the value from database?

    Hello Experts,

    I have to implement a feature that will confirm the change for each text field on the form.

    Scenario:

    I have a form with several fields of database tables.

    We have set the indicator for each column of each table to Yes or no in a master table to access.

    When users navigate to any text field in any database block, procedure, or a function will varify that access is granted for the amendment of this column.

    If the access flag is set to yes, user can change. otherewise fast with the message, you are nor allow to change this field.

    I don't want to call this procedure and a function in each field.

    Also, if in the future if a new field will add to this form, there is no need to change in the code or we should not require to remember to check the indicator of access to this column.

    Please help me.

    Thank you

    Yoann

    NEXT-KEY is always triggered, then you can try to put that code in WHEN-VALIDATE-ITEM trigger. This way you can navigate on this field if it's empty DB, but can not force the user to enter data in a new record. Alternatively, you can ask again priviledge change data in your trigger KNI.

  • Conditional fields with data merge

    I have, I think, would be a common question for people using Data Merge in InDesign for cards.

    I have several fields phone, with a letter from small caps to indicate what type (mobile, direct, fax, etc.), that is:

    M < < phone > >

    D < < Tel Direct > >

    If an employee has only one phone line, how can I do so that the entire line is omitted from the final merged doc?

    In the past, I just went in the game final and quickly deleted lines / extra characters, but I know that there is a way!

    Thank you.

    mavenlink cards1.1_Page_1.jpg

    The main character must be included in the paragraph style, even if it's a Word. If deleting empty lines turned on, these main characters are removed too.

    To add the main characters in a paragraph style, you can define a list numbered without numbers but with the main character and space or tab between.

  • Create a Multiple Signature and Date fields with a custom toolbar button

    First of all, thank you in advance!  I'm a newbie script and I trudged my way through with very little experience with the scripts of any kind.  I'm good at taking and other scripts and them forming into something I need, but I can't seem to find something to do what I want.

    Use Adobe Acrobat X, I am trying to create a button in toolbar that I can press to create several signature fields and date with predetermined places.

    Here is the script that I have which strives to create a unique signature box, but I can't seem to understand the exact syntax to have this same button create several fields.  In total, it's 9 signature fields and 9 date fields must be created.  If you can give me just one example of what the button would look like with several scripts?  I'm assuming that I put multiple variables, then in ownership cExec toolbar button that I could just scream all these variables?

    var sigswm = "addField ('sigSWM', 'signature', '0', [108, 198, 494.64, 72])"

    app.addToolButton ({cName: "dotbutton", cExec: sigswm, cLabel: "place Signature and Date blocks",});

    Thanks in advance for any help you can provide.

    Billy Sweeney

    This is what works for me:

    function addSignatureAndDateFields (doc) {}

    Add a signature field and a date field

    var swmsig = doc.addField ('sigSWM', 'signature', '0', [108, 198, 494.64, 72]);

    swmsig.setAction ("MouseDown", "getField(\"dateSWM\").value = util.printd (\"mm/dd/yyyy\ ', Date() ");" ') new;

    doc.addField ('dateSWM', 'text', '0', [162, 72, 234, 54]);

    }

    app.addToolButton({)

    cName: "dotbutton."

    cLabel: "place Signature and Date blocks."

    cExec: "addSignatureAndDateFields (this)."

    cEnable: ' event.rc = app.doc; "

    cTooltext: "blocks of Signature and Date place.

    });

  • Password protected fields: cursor lost text &amp; several fields protected

    I worked on password protecting the fields, with lots of help from previous messages by George Johnson: http://forums.Adobe.com/message/3314067#3314067

    I'm doing a code request George provided to text fields, in particular, that seems to work very well. I have, however, met with two questions:

    #1: lost the cursor:

    (1.) I click on the text field

    2.), I am invited to a password

    (3.) I enter the password

    (4.) the text field is confirmed to be "disabled".

    Now, I have trouble with actually type in the text field. I can see the field has been disabled, but, once the password is entered, my text cursor is automatically in the field of disabled text. Other times, I can type the incorrect password, click 'ok' and always type in the text field. Strange, Yes? I wonder if it has problem of code or a user number (me). The latter is more likely

    #2: best way to lock/unlock several fields? :

    I have 8-10 domains that could be turned off and typed in. From now on, I think that this code should apply to each text field indivually - which is probably fine. With the form, however, a user may potentially want to type in all these areas protected by Word. Is there a way to just disable all fields of 8 with a single action - and relock then automatically their once typed in? If so, what is a clean way to do this?

    #1 is my priority. #2 is just interesting to explore

    Any help would be appreciated!

    The code you use is intended to be the #2 case that you mentioned in your initial post. In other words, it is supposed to be triggered by a button or a bookmark for lock/unlock field group.

    It seems you're wanting locking (set read-only) a field after the user enters a value, it that right? The problem is that fields that are set to ReadOnly are more interactive, so a mouse-up script cannot be triggered.

  • Update several fields... need advice.

    Hi all

    I have a bit of a problem with the update of several fields in a table...

    Lets say we have two tables. Table one is called t_employe for example:
    create table t_employe (
    year number,
    line varchar2(1),
    counter number,
    value number)
    To set random data in the table:
    insert all
    into t_employe (year, line,counter, value)
    values(2011,'3','2946','3344')
    into t_employe (year, line,counter, value)
    values(2011,'3','2947','4433')
    into t_employe (year, line,counter, value)
    values(2011,'3','2948','4455')
    into t_employe (year, line,counter, value)
    values(2011,'3','2949','5544')
    select * from dual
    OK second table would be:
    create table to_update (
    year number,
    line varchar2(1),
    counter number,
    date_pos_1 date,
    value_pos_1 number,
    date_pos_2 date,
    value_pos_2 number,
    date_pos_3 date,
    value_pos_3 number,
    date_pos_4 date,
    value_pos_4 number,
    date_pos_5 date,
    value_pos_5 number)
    Data:
    insert all
    into to_update (year, line,counter, date_pos_1,value_pos_1,date_pos_2,value_pos_2,date_pos_3,value_pos_3,date_pos_4,value_pos_4,date_pos_5,value_pos_5)
    values(2011,'3','2946',sysdate,'5434',null,null,null,null,null,null,null,null)
    into to_update (year, line,counter, date_pos_1,value_pos_1,date_pos_2,value_pos_2,date_pos_3,value_pos_3,date_pos_4,value_pos_4,date_pos_5,value_pos_5)
    values(2011,'3','2947',sysdate,'11',sysdate,'123',null,null,null,null,null,null)
    into to_update (year, line,counter, date_pos_1,value_pos_1,date_pos_2,value_pos_2,date_pos_3,value_pos_3,date_pos_4,value_pos_4,date_pos_5,value_pos_5)
    values(2011,'3','2948',sysdate,'33',sysdate,'44',sysdate,'8908',null,null,null,null)
    into to_update (year, line,counter, date_pos_1,value_pos_1,date_pos_2,value_pos_2,date_pos_3,value_pos_3,date_pos_4,value_pos_4,date_pos_5,value_pos_5)
    values(2011,'3','2949',sysdate,'1',sysdate,'2',sysdate,'343',sysdate,'78',null,null)
    select * from dual
    OK, now what I want to do is to update the fields in the table to_update where value_pos is NULL. To explain this better imagine
    Collums are from left to right in the order value_pos_1, the value_pos_2, the value_pos_3... Now, I would check for each line
    If value_pos_1 is null if it is then updated. Finist this row and move them to another. If not go to value_pos_2 in
    same rank and check again if the null value. If it's updated, if not, again to go forward. Each value_pos_X cullum has a date_pos_x cullom
    to be made same day as Value_pos_ cullums (if value_pos_X is null then date_pos_X coresponding will be null as well - is)
    a fact in my table).


    So is it feasible using only a single update?

    I managed to write a select statement by using the clause of the case that makes these things perfectly only for value_pos_X fields. I wonder if I can use in my
    Update statement?
    select 
    case when a.value_pos_1 is  null then b.value else 
         case when a.value_pos_2 is  null then b.value else
              case when a.value_pos_3 is  null then b.value else
                   case when a.value_pos_4 is  null then b.value else
                        case when a.value_pos_5 is  null then b.value else to_number('99999','9999,99')
    end
    end
    end
    end
    end  as value
    
    from to_update a,t_employe b
    where a.year = b.year
    and a.line= b.line
    and a.counter = b.counter 
    Suggestions how to extract it from?

    Thank you!
    SQL> select  *
      2    from  to_update
      3  /
    
          YEAR L    COUNTER DATE_POS_ VALUE_POS_1 DATE_POS_ VALUE_POS_2 DATE_POS_ VALUE_POS_3 DATE_POS_ VALUE_POS_4 DATE_POS_ VALUE_POS_5
    ---------- - ---------- --------- ----------- --------- ----------- --------- ----------- --------- ----------- --------- -----------
          2011 3       2946 27-AUG-11        5434
          2011 3       2947 27-AUG-11          11 27-AUG-11         123
          2011 3       2948 27-AUG-11          33 27-AUG-11          44 27-AUG-11        8908
          2011 3       2949 27-AUG-11           1 27-AUG-11           2 27-AUG-11         343 27-AUG-11          78
    
    SQL> merge
      2    into to_update a
      3    using (
      4           select  a.rowid rid,
      5                   b.value
      6             from  to_update a,
      7                   t_employe b
      8             where a.year = b.year
      9               and a.line= b.line
     10               and a.counter = b.counter
     11          ) b
     12     on (
     13         a.rowid = b.rid
     14        )
     15     when matched then update set value_pos_1 = nvl2(value_pos_1,value_pos_1,b.value),
     16                                  value_pos_2 = nvl2(value_pos_1,nvl2(value_pos_2,value_pos_2,b.value),value_pos_2),
     17                                  value_pos_3 = nvl2(value_pos_1 + value_pos_2,nvl2(value_pos_3,value_pos_3,b.value),value_pos_3),
     18                                  value_pos_4 = nvl2(value_pos_1 + value_pos_2 + value_pos_3,nvl2(value_pos_4,value_pos_4,b.value),value_pos_4),
     19                                  value_pos_5 = nvl2(value_pos_1 + value_pos_2 + value_pos_3 + value_pos_4,nvl2(value_pos_5,value_pos_5,b.value),value_pos_5)
     20  /
    
    4 rows merged.
    
    SQL> select  *
      2    from  to_update
      3  /
    
          YEAR L    COUNTER DATE_POS_ VALUE_POS_1 DATE_POS_ VALUE_POS_2 DATE_POS_ VALUE_POS_3 DATE_POS_ VALUE_POS_4 DATE_POS_ VALUE_POS_5
    ---------- - ---------- --------- ----------- --------- ----------- --------- ----------- --------- ----------- --------- -----------
          2011 3       2946 27-AUG-11        5434                  3344
          2011 3       2947 27-AUG-11          11 27-AUG-11         123                  4433
          2011 3       2948 27-AUG-11          33 27-AUG-11          44 27-AUG-11        8908                  4455
          2011 3       2949 27-AUG-11           1 27-AUG-11           2 27-AUG-11         343 27-AUG-11          78                  5544
    
    SQL> 
    

    Or yhis is perhaps more readable:

    merge
      into to_update a
      using (
             select  a.rowid rid,
                     b.value
               from  to_update a,
                     t_employe b
               where a.year = b.year
                 and a.line= b.line
                 and a.counter = b.counter
            ) b
       on (
           a.rowid = b.rid
          )
       when matched then update set value_pos_1 = case when value_pos_1 is null then b.value else value_pos_1 end,
                                    value_pos_2 = case when value_pos_1 is not null and value_pos_2 is null then b.value else value_pos_2 end,
                                    value_pos_3 = case when value_pos_1 + value_pos_2 is not null and value_pos_3 is null then b.value else value_pos_3 end,
                                    value_pos_4 = case when value_pos_1 + value_pos_2 + value_pos_3 is not null and value_pos_4 is null then b.value else value_pos_4 end,
                                    value_pos_5 = case when value_pos_1 + value_pos_2 + value_pos_3 + value_pos_4 is not null and value_pos_5 is null then b.value else value_pos_5 end
    /
    

    SY.

  • show/hide fields with percentages

    I'm trying to find a script to show/hide a field as a percentage that is located in one of the fields. The script that I usually use to base numbers is:

    var r1 = this.getField ("V1");
    var r2 = this.getField ("V2");

    R1. Hidden = true;
    R2. Hidden = true;

    If (event.value < = "100")
    {
    event.willCommit = true;
    {

    R1. Hidden = false;
    }
    }

    If (event.value > = "101")

    {

    event.willCommit = true;

    {

    R2. Hidden = false;

    }

    }

    So I need basically the same thing again but I need to be field appears if "38.00%" or above is entered. If anything lower then it is entered, I need 2 field is displayed... I can't make it work once the decimals are here.

    Thank you in advance for your help!

    The percentage format is just for display and rounds the value of the current field, the value of the actual field is the decimal number created by the division or entered by the user.

    100% is entered as 1.00 but if the result of a calculation, it could be 99, 5 - 1.4. If you want to compare the calculated value, you may need to round the value of the fields for the same number of decimal places that display area. You should be aware that using the Math.round of JavaScript method may cause an error with numbers rounding floating-point. You can use the util.printf method in Acrobat JavaScript to properly round a field value.

    I also wouldn't quotes on numeric constants.

    var r1 = this.getField ("V1");
    var r2 = this.getField ("V2");
    R1. Hidden = true;
    R2. Hidden = true;

    If (util.printf ("% 1 .2f", event.value))<= 1.00)="">
    R1. Hidden = false;
    }

    If (util.printf ("% 1 .2f", event.value) > = 1.01) {}
    R2. Hidden = false;
    }

  • Rename fields with the same name

    Hello

    I ended up creating a form with several boxes of hundreds.  In order to create, I create a few check boxes and then cut and paste to generate the rest of the form.  Unfortunately, this means that all the fields have the same name and face to the same value.  Can I write a script that will change the name of each field?  My boxes are "Yes #0", ' Yes #1 "," #2 yes ", etc.."  I want them to be 'yes0', 'yes1', "YES2", etc.  But, when I try to 'this.getField("yes#0"), we just return null.  Y at - it a syntax that I can use with getField to go individually to each box?

    I don't really want to open the properties on the + 400 boxes Editor...

    Thank you.

    You cannot rename fields with JavaScript. But you can create as many times as you need in a loop by using the doc.addField method. So could copy properties (rect, etc.) of your current fields and recreate each using the name you want. You can access instances of fields (widgets) using the getField as method:

    Get the rect of the first 'yes' field

    var Rect = getField("yes.0").rect;

    For more information, see: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.679.html

    When you are finished adding new fields, you can remove the old with the doc.removeField method.

  • Adding several fields - Script

    Hello

    I have several fields added in a batch processing script that works great except for the last field created in the script called "TodayDate2".

    This field is not added to the document.

    Can someone please look at and advise a possible solution with my script?

    Dynamically create signature fields

    var this.numPages = NUMPAGES;
    for (var i = 0; i < numpages; i ++)


    var f = this.addField ("prepared Signature", "signature", 1,
    [320, 660, 450, 640]) ;

    var g = this.addField ("Signature of revision", "signature", 1)
    [320, 630, 450, 610]) ;

    var h = this.addField ("approved Signature", "signature", 1)
    [320, 600, 450, 580]) ;

    Create the text field for the current date

    var this.numPages = NUMPAGES;
    for (var i = 0; i < numpages; i ++)


    var f = this.addField ("TodayDate1", "text", 1,
    [460, 660, 540, 640]) ;
    f.userName = "today's Date".
    f.Value = 'auto update';
    f.ReadOnly = true;
    f.textSetFieldLabel ("today's date will be entered at the signature");

    var j = this.addField ("TodayDate2", "text", 1,
    [460, 600, 540, 640]) ;
    j.userName = "today's Date".
    j.Value = 'auto update';
    j.ReadOnly = true;
    j.textSetFieldLabel ("today's date will be entered at the signature");


    Why did you use a loop on all pages when you add the fields to the second page?

    I can't get an error using the code f.setAction.

Maybe you are looking for

  • Why my themes do not disappear when I updated Firefox?

    I've just updated Firefox after putting off during a good time. When I opened, I noticed that he had started in the default theme. So I went into modules and tried to activate the theme I used before (fractal wonderland), but he said that the theme w

  • IPhone opportunity Questions

    Hello, I'm going to get an iphone used 6 for my daughter.But before buying, I have a few questions about security... First of all, I won't jailbreak this iphone, of course I will bring the iphone completely to be course with original firmware simply

  • Firefox 4 won't let me disable the yslow plugin.

    After update for firefox 4, I noticed that yslow was out of a number of errors related to javascript. So, I tried to disable it, but failed. In my addons screen it says "YSlow has been remove...". Restart now... ", but no matter how many times I rest

  • El Capitan Apple Mail question

    Why I don't receive HTML messages in Apple Mail (9.2)? Using the latest version of El Capitan (10.11.3). I do sometimes, but more and more I'm not. This is the case on my MacBook Air and Mac. The two relatively new. This happens with links, graphics/

  • Unable to read the audio stream: no audio hardware is available, or the hardware is not responding.

    my kids are always downloading music and other things on the internet and some without reason, I lost my sound that I get an error that there is no audio device found... or being used?  This was the last message according to test of microspft race dr