Please help improve the JavaScript script

Please help improve the JavaScript scriptA.JPG

Hello

to increase or decrease the height of a subform, you use the following syntax in the click of + and - button

cmdAdd::JavaScript

_Row1.addInstance (1);

var b is parseFloat (Subform3.h) - 6.5;.

If (b<>

b = 0;

}

Subform3.h = b + "mm";

cmdRemove::JavaScript

If (_Row1.count > 1) {}

var b is parseFloat (Subform3.h) + 6.5.;

Subform3.h = b + "mm";

_Row1.removeInstance (this.parent.index);

}

This should do the trick, I hope this will help you

Tags: Adobe LiveCycle

Similar Questions

  • Please help improve the query with the analytic function

    The mentioned below query takes about 10 hours to complete (10.2.0.4).

    There are 3 tables (table t has a relationship 1: n with table e and k table also has a relationship 1: n with table e).
    Table a contains 200,000 lines. (this table is truncated and inserted several times a week)
    E table contains rows of 1Mio.
    K table contains rows of 170Mio.

    drop table t;
    create table t
    (
       t_id number,
       constraint t_pk primary key (t_id)
    );
    
    drop table e;
    create table e
    (
       e_id number,
       e_doc nvarchar2(16),
       e_date date,
       constraint e_pk primary key (e_id)
    );
    
    drop table k;
    create table k (
       t_id number,
       e_id number
    );
    
    create unique index k_i1 on k(t_id, e_id);
    
    exec dbms_stats.gather_table_stats(user, 'T');
    exec dbms_stats.gather_table_stats(user, 'K');
    exec dbms_stats.gather_table_stats(user, 'E');
    
    
    
    -- Sample data:
    
    insert into t(t_id) values (100);
    insert into t(t_id) values (101);
    insert into t(t_id) values (102);
    insert into t(t_id) values (103);
    
    
    insert into e(e_id, e_doc, e_date) values (200, 'doc 200', to_date('01.01.2010', 'DD.MM.YYYY'));
    insert into e(e_id, e_doc, e_date) values (201, 'doc 201', to_date('02.01.2010', 'DD.MM.YYYY'));
    insert into e(e_id, e_doc, e_date) values (202, 'doc 202', to_date('03.01.2010', 'DD.MM.YYYY'));
    insert into e(e_id, e_doc, e_date) values (203, 'doc 203', to_date('04.01.2010', 'DD.MM.YYYY'));
    insert into e(e_id, e_doc, e_date) values (204, 'doc 204', to_date('05.01.2010', 'DD.MM.YYYY'));
    insert into e(e_id, e_doc, e_date) values (205, 'doc 205', to_date('06.01.2010', 'DD.MM.YYYY'));
    insert into e(e_id, e_doc, e_date) values (206, 'doc 206', to_date('07.01.2010', 'DD.MM.YYYY'));
    insert into e(e_id, e_doc, e_date) values (207, 'doc 207', to_date('08.01.2010', 'DD.MM.YYYY'));
    
    insert into k(t_id, e_id) values (100, 200);
    insert into k(t_id, e_id) values (100, 201);
    insert into k(t_id, e_id) values (100, 202);
    insert into k(t_id, e_id) values (100, 203);
    
    insert into k(t_id, e_id) values (101, 203);
    insert into k(t_id, e_id) values (101, 204);
    
    
    
    
    
    select k.t_id, e.e_date,  e.e_id, e.e_doc
    from   e, k, t
    where  k.e_id = e.e_id
    and    k.t_id = t.t_id
    order by k.t_id, e.e_date desc;
    
    
          T_ID E_DATE         E_ID E_DOC
    ---------- -------- ---------- ----------------
           100 04.01.10        203 doc 203
           100 03.01.10        202 doc 202
           100 02.01.10        201 doc 201
           100 01.01.10        200 doc 200
           101 05.01.10        204 doc 204
           101 04.01.10        203 doc 203
    I need a query that takes the latest 3 posts for a given t_id:
          T_ID E_DOC_LIST
    ---------- -----------------------
           100 doc 200/doc 201/doc 202
           101 doc 203/doc 204
    
    
    Sample query:
    
    select t_id, e_doc_list
       from (
       select  k.t_id,
            row_number() over(partition by k.t_id order by k.t_id, e.e_date desc) r_num, 
            rtrim(       lag(e.e_doc, 0) over(partition by k.t_id order by k.t_id, e.e_date) || 
                  '/' || lag(e.e_doc, 1) over(partition by k.t_id order by k.t_id, e.e_date) || 
                  '/' || lag(e.e_doc, 2) over(partition by k.t_id order by k.t_id, e.e_date), 
                  '/') e_doc_list
         from  e,
               k,
               t
         where  k.e_id = e.e_id
         and    k.t_id = t.t_id
         order by k.t_id, e.e_date desc
    ) where  r_num = 1   ;
    
    
          T_ID E_DOC_LIST
    ---------- --------------------------------------------------
           100 doc 203/doc 202/doc 201
           101 doc 204/doc 203
    The example query takes several hours in production.
    The r_num = 1 filter is applied quite late. Is there another way to generate the query or even review the tables.
    For the sample query:
    
    -----------------------------------------------------------------------------------------
    | Id  | Operation                        | Name | Rows  | Bytes | Cost (%CPU)| Time     |
    -----------------------------------------------------------------------------------------
    |   0 | SELECT STATEMENT                 |      |     6 |   468 |     6  (50)| 00:00:01 |
    |*  1 |  VIEW                            |      |     6 |   468 |     6  (50)| 00:00:01 |
    |*  2 |   WINDOW SORT PUSHED RANK        |      |     6 |   216 |     6  (50)| 00:00:01 |
    |   3 |    WINDOW SORT                   |      |     6 |   216 |     6  (50)| 00:00:01 |
    |   4 |     NESTED LOOPS                 |      |     6 |   216 |     4  (25)| 00:00:01 |
    |   5 |      MERGE JOIN                  |      |     6 |   198 |     4  (25)| 00:00:01 |
    |   6 |       TABLE ACCESS BY INDEX ROWID| E    |     8 |   208 |     2   (0)| 00:00:01 |
    |   7 |        INDEX FULL SCAN           | E_PK |     8 |       |     1   (0)| 00:00:01 |
    |*  8 |       SORT JOIN                  |      |     6 |    42 |     2  (50)| 00:00:01 |
    |   9 |        INDEX FULL SCAN           | K_I1 |     6 |    42 |     1   (0)| 00:00:01 |
    |* 10 |      INDEX UNIQUE SCAN           | T_PK |     1 |     3 |     0   (0)| 00:00:01 |
    -----------------------------------------------------------------------------------------
    
    Predicate Information (identified by operation id):
    ---------------------------------------------------
    
       1 - filter("R_NUM"=1)
       2 - filter(ROW_NUMBER() OVER ( PARTITION BY "K"."T_ID" ORDER BY
                  "K"."T_ID",INTERNAL_FUNCTION("E"."E_DATE") DESC )<=1)
       8 - access("K"."E_ID"="E"."E_ID")
           filter("K"."E_ID"="E"."E_ID")
      10 - access("K"."T_ID"="T"."T_ID")
    
    
    and for query in production
    
    ---------------------------------------------------------------------------------------
    | Id  | Operation                 | Name         | Rows  | Bytes |TempSpc| Cost (%CPU)|
    ---------------------------------------------------------------------------------------
    |   0 | SELECT STATEMENT          |              |  3118K|   425M|       |   160K  (1)|
    |   1 |  VIEW                     |              |  3118K|   425M|       |   160K  (1)|
    |   2 |   SORT ORDER BY           |              |  3118K|   163M|   383M|   160K  (1)|
    |   3 |    WINDOW SORT PUSHED RANK|              |  3118K|   163M|   383M|   160K  (1)|
    |   4 |     WINDOW SORT           |              |  3118K|   163M|   383M|   160K  (1)|
    |   5 |      HASH JOIN            |              |  3118K|   163M|    40M| 33991   (1)|
    |   6 |       TABLE ACCESS FULL   | E            |  1053K|    28M|       |  4244   (1)|
    |   7 |       NESTED LOOPS        |              |  3118K|    80M|       | 21918   (1)|
    |   8 |        TABLE ACCESS FULL  | T            |   144K|  1829K|       |   282   (2)|
    |   9 |        INDEX RANGE SCAN   | K_I1         |    22 |   308 |       |     1   (0)|
    ---------------------------------------------------------------------------------------
    
     

    TimWong765 wrote:
    ...
    Table a contains 200,000 lines. (* this table is truncated and inserted several times a week *)

    You could be in one of the rare cases where the index should be rebuild, take a look in the following thread:
    http://asktom.Oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:6601312252730 #69571308712887 (search for 'index of Sweeper')
    Make sure that you have checked if you are in this case before going for an expensive index rebuild.

    Nicolas.

  • Please help me fix my script!

    Please help me fix my script

    I use this script that copy from the adobe forum:

    app.findGrepPreferences.findWhat = "\\r";

    app.changeGrepPreferences.changeTo = "\\r\\r";

    app.changeGrep ();

    app.findGrepPreferences = app.changeGrepPreferences = null;

    to change my back one or two, but it will always change all my documents.

    How can I tell the script that I only want to change the selection?

    Hello

    Note the syntax ==> target changeGrep()

    If the target is app ==> it runs through the entire application of the ways each open document

    If the target is doc ==> it runs through all doc

    It can be called for textFrame, story, paragraph..., any text object.

    In your use case

    App.Selection [0] .changeGrep ();

    or browse the selection and appeal

    App.Selection [i] .changeGrep ();

    Jarek

  • HP mini 110 c: Hi, please help unlock the password of bios compaq mini 110 c.

    Hi, please help unlock the password of bios compaq mini 110 c.

    fatal error system stopped

    CNU93133K2

    Hello

    Enter: e9lof3ffs7 (3rd charater is a lowercase L)

    Kind regards

    DP - K

  • When I opened outlook express Inbox, all messages have been deleted, please help restore the same

    When I opened outlook express Inbox, all messages have been deleted, please help restore the same

    Go to view | Current view | Show all messages to make sure that you have just selected 'Hide read messages.

    If this does not help, check your Recycle Bin, the bak files which are dbx files, you can restore backups.  See www.oehelp.com/OETips.aspx#2

    If this does not help, then you will probably need my program DBXpress (www.oehelp.com/DBXpress/), which will extract the messages from individual dbx files, and if messages are no longer in the files, it can extract from the disc itself.

    Steve

  • Please help find the driver win 7 for sharp AM-400 MFP

    I have Windows XP driver for my Sharp AM - 400 multifunction printer. I tried to install it in different compatibility mode to work on win 7 but without success.  Please help find the driver win 7 for sharp AM-400 MFP. Regarding the LEP

    Think that its too old. I think its time to get another printer

  • Hello! A few days ago, I, disabled Photoshop subscription (CC of Lightroom and Photoshop CC) Act in accordance with your instructions, I have not be enabled. Please help solve the problem.

    Hello! A few days ago, I, disabled Photoshop subscription (CC of Lightroom and Photoshop CC) Act in accordance with your instructions, I have not be enabled. Please help solve the problem?

    Contact support - for the link below, click on the still need help? option in the blue box below and choose the option to chat or by phone...

    Make sure that you are logged on the Adobe site, having cookies enabled, clearing your cookie cache.  If it fails to connect, try to use another browser.

    Creative cloud support (all creative cloud customer service problems)

    http://helpx.Adobe.com/x-productkb/global/service-CCM.html ( http://adobe.ly/19llvMN )

  • Error 213:10 on windows 10. Please help solve the problem

    Error 213:10 on windows 10. Please help solve the problem

    Different code, but can help - error 213:19 license https://forums.adobe.com/thread/1907953 because of write permissions

    Run all programs as Administrator http://forums.adobe.com/thread/969395 to assign FULL... Permissions said yet, but it is sometimes necessary for Adobe

  • Please help me, the round sign of gum disappear (yesterday I upgraded to 2015 worm)

    Please help me, the round sign of gum disappear (yesterday I upgraded to 2015 worm)

    Wassakorni55174346

    Reset the Eraser tool.  Click on the gum and choose Reset tool.

  • Please help restore the security questions for me.

    I'm trying to restore security questions via the website, but there is no success. Please help me to reset for me.

    You must ask security team account Apple to reset your security questions. To contact them, click here and choose a method; If this page does not list one for your country or if you are unable to call, complete and submit this form.

    (144314)

  • T430s - BSOD (of driver power state failure). Please help identify the driver

    I meet regularly with BSOD on my T430s / Win7 when switching mode standby (Fn + F4). The error message is driver_power_state_failure. This happens almost every day. Driving me crazy!

    I know it's a common problem (I also had with a former T500, but not on T420). After Googling around, I discovered WinDBG and how to identify the faulty driver that is causing the problem.

    However, I could not install the tool - or debuggers package (referenced on windbg.org), nor the tool set + a .NET framework from the Microsoft Web site. The old guard quit the installer with no message (although the Remove Programs dialog shows the thing installed, it seems to be no program to run), the latter does install without no diagnosis (installation only, tried the debugging tools tried to install the complete package - same result).

    So, can someone please help to analyze the memory dump and to identify the faulty driver? What file is needed for this - the memory full image (from folder/Windows /, ~ 500 MB in size) or the minidump file (from/Windows Minidump file / / /, ~ 700 KB in size)? Or both?

    Help a fellow fan of ThinkPad enjoy his work tool

    Several days after, I don't get BSOD more, even though I kept pushing the laptop "standby mode" on a regular basis, with or without food. Since already BSOD passed almost every day (to, like, try every 3rd or 4th go to sleep) and now there is none, I would try and call this problem is "solved".

    Let's see if just once he returns

    I'm not really sure what has helped exactly - I've only updated (a little) drivers manually (after Lenovo update system running with only a few boxes checked). These pilots were audio, video and network ones. USB 3.0 driver has been updated before, but that alone did not effect.

    I've also updated the BIOS via the Lenovo system update (strange, but it worked, unlike my manual attempt via downdloading non-bootable-CD version of the Lenovo Web site).

    Hope this helps other people are having the same problem.

  • Help with the Powershell script to collect logs from all domain controllers

    I am writing a script to retrieve the last 5 days of application, security and log files from all domain controllers. The script runs, but fire the logs from the local server only. The variable $Computer has all of my DC so it's the fine mark. I guess it's a problem with my line ForEach-Object, but is not error. See the below script.

    $log = 'application '.
    $date = get-date-format MM-DD-YYYY
    $now = get-date
    $subtractDays = new-object System.TimeSpan 5,0,0,0,0
    $then = $Now.Subtract ($subtractDays)
    $Computers = get-ADDomainController-filter *.
    ForEach-Object - InputObject $Computers - process {Get-EventLog - LogName $log - after $then - before $now - EntryType error | select EventID, MachineName, Message, Source, TimeGenerated |} ConvertTo-html | {Out-file $env:TEMP\Applicationlog.htm}
    Invoke-Expression $env:TEMP\Applicationlog.htm

    Thank you

    Rich

    Hello

    To help with the repost the question script to the script Center Forum

    http://social.technet.Microsoft.com/forums/scriptcenter/en-us/home

  • Please help with the problems of Vista SP2

    So I spent all day on the forums here and I'm head over heels.  I had problems with Windows update and some other problems on my Dell Studio XPS.  It is a tower with double HDs in RAID mirror running Vista 64-bit with SP2.

    I got it for 3 years and I thought that I clean and correct certain defects to go back to the original Dell factory condition.  That did not fix the update install problem I did cleaning.  Now it's worse.

    I'm trying to install SP2 and get a catastrophic failure 0x8000ffff error-UNEXPECTED

    The onlychange is that several months ago, one of my WD 640 GB drives factory failed and I replaced it with a Seagate Barracuda 1 TB since I couldn't find a 640 GB drive.

    I tried to stop and restart all services BITS, etc. no luck.

    I tried to run among the MS FixIt for the problem of update, but it fails because it says that it cannot initialize the powershell.

    Help, please... I'm hopelessly lost and can not spend more money on this thing.

    Thank you!

    If you need additional help with the clean install, please start your own, new topic in this forum: http://answers.microsoft.com/en-us/windows/forum/windows_vista-system

    If these procedures look too complex - and there is no shame in admitting this isn't your cup of tea - take the machine to a local, good reputation and independent (i.e., not a BigBoxStore or a Geek Squad) computer repair shop & ask them to do the job.

  • Please help find the serial number for Adobe Creative Suite CS 5.5

    Buy Adobe Creative Suite CS 5.5 on an Apple Store at 20/08/2011. Part Number: H5958LL/A. I received and can not find the serial number Adobe to reinstall the software on my new computer, now that it has been stolen. Please help me

    Yoav

    < deleted by the moderator >

    Hello

    You can access the following link and go through the steps to get the product serial key Adobe CS 5.5.

    Find the serial number of your Adobe product quickly

    You can also contact us at the Support from Adobe on the cat to be helped in the series license key.

    Contact the customer service

    Thank you.

  • Help improve the performance of a procedure.

    Hello everyone,

    First of all to introduce myself. My name is Ivan and I recently started to learn the SQL and PL/SQL. Then don't go hard on me. :)

    Now let's move on to the problem. What we have here is a table (a large, but we will need only a few fields) with some information about the calls. 'S called it table1. There is also another, absolutely the same structure, which is empty and we must transfer the recordings of the first.
    The calls short (less than 30 minutes) have segmentID = "C1".
    Longer calls (over 30 minutes) are saved as multiple records (1 for every 30 minutes). The first record (the first 30 minutes of the call) a segmentID = "C21". It's the first time we have only one of them for each different call. Then we have the next parts (the middle one) of the appeal, having segmentID = "C22". We have more than 1 middle part and once again the maximum minutes in every 30 minutes. Then we have the last part (new max 30 minutes) with segmentID = "C23. As with the first, we can have that last part.
    So far so good. Now we need to insert these call records in the second table. The C1 are easy - a record = one call. But those partial we must combine so that they become a single whole call. This means that we must be one of the first pieces (C21), find if there is a middle part (C22) with the same caller/called numbers and with the difference in 30 minutes time, then additional research if there is an another C22 and so on. And finally, we search for the last part of the call (C23). As part of this research we sum the length of each part, so we can have the duration of the call at the end. Then, we are ready to be inserted into the new table as a single record, just with the new duration.
    But here's the problem with my code... The table a LOT of files and this solution, despite the fact that it works (at least in tests I've done so far), it is REALLY slow.
    As I said I am new to PL/SQL and I know that this solution is really newbish, but I can't find another way to do this.

    So I decided to come here and ask for some advice on how to improve the performance of this.

    I think you're getting confused already, so I'll just put some comments in the code.

    I know this isn't a procedure as at present, but it will be once I have create better code. I don't think it's important for now.
    DECLARE
    
    CURSOR cur_c21 IS
        select * from table1
        where segmentID = 'C21'
        order by start_date_of_call;     // in start_date_of_call is located the beginning of a specific part of the call. It's date format.
        
    CURSOR cur_c22 IS
        select * from table1
        where segmentID = 'C22'
        order by start_date_of_call;
        
    CURSOR cur_c22_2 IS
        select * from table1
        where segmentID = 'C22'
        order by start_date_of_call;   
        
    cursor cur_c23 is
        select * from table1
        where segmentID = 'C23'
        order by start_date_of_call;
    
    v_temp_rec_c22 cur_c22%ROWTYPE;
    v_dur table1.duration%TYPE;           // using this for storage of the duration of the call. It's number.
    
    BEGIN
    
    insert into table2
    select * from table1 where segmentID = 'C1';     // inserting the calls which are less than 30 minutes long
    
    -- and here starts the mess
    
    FOR rec_c21 IN cur_c21 LOOP        // taking the first part of the call
       v_dur := rec_c21.duration;      // recording it's duration
    
       FOR rec_c22 IN cur_c22 LOOP     // starting to check if there is a middle part for the call 
          IF rec_c22.callingnumber = rec_c21.callingnumber AND rec_c22.callednumber = rec_c21.callednumber AND  
            (rec_c22.start_date_of_call - rec_c21.start_date_of_call) = (1/48)                 
    /* if the numbers are the same and the date difference is 30 minutes then we have a middle part and we start searching for the next middle. */
          THEN
             v_dur := v_dur + rec_c22.duration;     // updating the new duration
             v_temp_rec_c22:=rec_c22;               // recording the current record in another variable because I use it for the next check
    
             FOR rec_c22_2 in cur_c22_2 LOOP
                IF rec_c22_2.callingnumber = v_temp_rec_c22.callingnumber AND rec_c22_2.callednumber = v_temp_rec_c22.callednumber AND  
                  (rec_c22_2.start_date_of_call - v_temp_rec_c22.start_date_of_call) = (1/48)         
    /* logic is the same as before but comparing with the last value in v_temp... 
    And because the data in the cursors is ordered by date in ascending order it's easy to search for another middle parts. */
                THEN
                   v_dur:=v_dur + rec_c22_2.duration;
                   v_temp_rec_c22:=rec_c22_2;
                END IF;
             END LOOP;                      
          END IF;
          EXIT WHEN rec_c22.callingnumber = rec_c21.callingnumber AND rec_c22.callednumber = rec_c21.callednumber AND  
                   (rec_c22.start_date_of_call - rec_c21.start_date_of_call) = (1/48);        
    /* exiting the loop if we have at least one middle part.
    (I couldn't find if there is a way to write this more clean, like exit when (the above if is true) */
       END LOOP;
                  
       FOR rec_c23 IN cur_c23 LOOP              
          IF (rec_c23.callingnumber = rec_c21.callingnumber AND rec_c23.callednumber = rec_c21.callednumber AND 
             (rec_c23.start_date_of_call - rec_c21.start_date_of_call) = (1/48)) OR v_dur != rec_c21.duration           
    /* we should always have one last part, so we need this check.
    If we don't have the "v_dur != rec_c21.duration" part it will execute the code inside only if we don't have middle parts
    (yes we can have these situations in calls longer than 30 and less than 60 minutes). */
          THEN
             v_dur:=v_dur + rec_c23.duration;
             rec_c21.duration:=v_dur;               // updating the duration
             rec_c21.segmentID :='C1';
             INSERT INTO table2 VALUES rec_c21;     // inserting the whole call in table2
          END IF;
          EXIT WHEN (rec_c23.callingnumber = rec_c21.callingnumber AND rec_c23.callednumber = rec_c21.callednumber AND 
                    (rec_c23.start_date_of_call - rec_c21.start_date_of_call) = (1/48)) OR v_dur != rec_c21.duration;                  
                    // exit the loop when the last part has been found. 
       END LOOP;
    END LOOP;
    
    END;
    I'm using version 1.5.5 Developer SQL and Oracle 11 g.

    This is my first post here so I hope it's the right subforum.
    I tried to explain it as deep as possible (sorry if it's too long) and I kinda think that code got a bit hard to read with all these comments. If you want I can delete them.
    I know that I'm missing a lot of knowledge for all the help is really appreciated.

    I thank very you much in advance!

    Hi and welcome to the forums.

    Thanks for posting your code (and using code tags... it's a miracle of a novice!).

    What would be nice would be if you could provide some example data and expected results; as described in the FAQ: {message identifier: = 9360002}

    Your code is very likely to be slow because of the number of nested loops cursor that you use. Which is known in the trade as treatment of rank by rank (more affectionately known as slow-by-slow transformation, as he was known to be slow). It is slow because the PL engine must keep going back and forth between himself and the SQL engine and the INSERT you in a loop called SQL much time to insert data.

    Usually this kind of thing can be achieved by using something like a single INSERT... ... SELECT statement where the SELECT all the treatment that you put in the language PL, or sometimes a SQL MERGE statement if a conditional is sort of insert/update.

    If you post your data so people can get an idea of what is the logic (and have something to test with and know what results should be) then we can help.

Maybe you are looking for