Dynamic update of list of rows

          Hi,
          I'm trying to refresh the page every 10 secs based on the latest records from
          the database,but while I refresh (which is nothing but I retrieve the records
          from the database and display onto my screen), I encounter a blank page everytime
          when I refresh. is there any way to get rid of this blank page inbetween each
          refresh. Right now I am displaying a "Data Loading" message.
          Cheers,
          Kanda.V
          

one way would be to cache on the server the rows that you know wont be
          modified for quite some time (maybe in a hastable or something)
          When you refresh your page you can get these rows from your cache and then
          retrieve the "last" row from the database
          This isnt really related to weblogic or servlets - its more a general design
          issue.
          You need to work out why your page refresh takes a long time. Is it because
          the data retrieval is lengthy or because your server connection is slow?
          A final possibility is to use frames. The top page contains the rows that
          dont require refreshing. The bottom page retrieves the "last" row every 10
          seconds.
          "kanda" <[email protected]> wrote in message
          news:[email protected]...
          >
          > basically I like to know is there any way just to update the last record
          from the
          > db into the list, rather than retrieving all records from db.
          >
          > Cheers,
          > Kanda.V
          >
          > "kanda" <[email protected]> wrote:
          > >
          > >Hi,
          > > I'm trying to refresh the page every 10 secs based on the latest
          > >records from
          > >the database,but while I refresh (which is nothing but I retrieve the
          > >records
          > >from the database and display onto my screen), I encounter a blank page
          > >everytime
          > >when I refresh. is there any way to get rid of this blank page inbetween
          > >each
          > >refresh. Right now I am displaying a "Data Loading" message.
          > >
          > >Cheers,
          > >Kanda.V
          >
          

Similar Messages

  • Dynamically update values in Text Lists for typed measures

    Hi,
    We have an alpha-numeric data column in our fact table. This is a data coulmn and we want to store its content as data value in one of the measures. The value in this column is highly dynamic and it is not restricted to a fixed set of values. To store the values we need to use typed measures, but is there way in which I can define the text list itself dynamically? Meaning, we will build the text list dynamically as and when the data comes in the fact table. Is this possible. We are using 11.1.2.1.
    Regards,
    Krishna

    I don't think we have a MaxL (I can be worng) to update Text Lists. You can try creating .slt file dynamically and then manually import them before data load.
    .slt will have entries like
    #MISSING NoData
    #OUTOFRANGE OutOfRange
    3 Bad
    2 Average
    1 Good
    Edited by: Celvin Kattookaran on Mar 21, 2013 12:33 PM

  • How Do I Dynamically Update a PDF Textbox Using Excel Like Columns Which Automatically Wrap and Size

    I am trying to dynamically display a list rooftop units to which are associated to each product our company produces.
    Our website is database driven and each product has a link to a PDF file which explains the product, and a "List" of each rooftop unit which this product can be used upon. This "List" of units is changing and are updated constantly. We are currently manually updating each PDF. We have thousands and it has become unmanageable. In some cases this "List" may contain only be several units, in others the "List" will contain hundreds. Additionally, the rooftop units when described are anywhere from 6 to 50 characters long. Therefore, we can't just dedicate a set window to populate the information. The list must flow into the window in columns and be smart enough to best consolidate and wrap itself, so not to use countless pages. We prefer the first page to describe the product and the second page to contain all the associated units in columns with an auto font capability.
    We have Acrobat X Pro version 10. We are considering LiveCycle. Everything and everyone says yes it can do this; however, no one can tell us specifically how or show us examples.
    I have figured out how to create the "List" in a comma separated string, but it is very confusing and hard to read. Does anyone know how to list the data in a table... in flowing columns similar to an Excel spreadsheet?

    I understand why you need updated running headers in your book. To a sighted reader these serve as a guide to where you are and help you find things quickly.  In addition, if you are exporting your data to XML or HTML from the tagged PDF it would also be important to have these in the proper location. 
    But for accessibility purposes, it doesn't have to be there because the screen reader reads everything in linear order, line by line.  No one is looking at the page.  A user listening to the screen reader read the page is going to hear this heading, just before the actual word itself. So they will hear the first word on the page twice.  It's not the end of the world if it's there, but such headings are not necessary for accessibility unless they are not repetitive and contain information that is not otherwise available.
    So I would say, fine if you need them or want them there, it's just one word. 
    I think you should try exporting your book to PDF (or even just a chapter of the book) and look at the tags panel in Acrobat to see if you are getting the result you want.  I can't tell you exactly what you should do to get those results, you are using a plug-in I don't have. 
    I can tell you I didn't have to add the headers to any article at all, they just automatically export if the other articles in the file are added and you don't select the header style option "not for export as XML."
    You may not experience the same results with your plug-in, but I think it will probably work the same way. 
    Give it a try and best of luck.

  • How can i dynamically update a table in my program?

    Hi there!
    I would like to know if anyone can assist me with advice on how to dynamically update
    a table within my program, with new values from the database?
    Thanking You all.

    Add rows to its model.
    Kind regards,
    Levi

  • HTTPS, DNS and dynamically updating DNS records

    Hello to you all, if you are able to help with a DNS problem that I'm having then please accept my thanks and appreciation in advance.
    First some background information, I recently  moved my server from my studio to my house where a new purpose built studio will soon be erected. At my old studio any requests for myurl.com came in via the IP (whether that be http, https, ftp etc) from the domain registrar and the router would send the request to the relevant port number whether that be 80 for http or 443 for https etc and all was well as this location had a fixed IP address. Unfortunately at my new location whilst I have a much faster connection I do not have a fixed IP. To get around this I have the following set up (not ideal for a business I know but perfectly OK for home hosting); I set up two psuedo nameservers at no-ip.com (ns1myurl.com and ns2myurl.com) which tracks the changes in my IP address and updates its records accordingly, my registrar then sends any requests to these 'nameservers' and no-ip then forwards it on to my server. So far so good.
    The problem arises once the requests get to my server, whilst I have DNS set up, I can only recieve requests from a straight request to the server ie myurl.com will display the site without any problem, but if I then put a www in front of that or try to access the https part of my site (which is set up as a seperate site on the same server) then the server throws an error. I have tried to put an alias (CNAME) into the zone but it does not want to resolve the request. I have searched around but to no avail, I am totally new to DNS so am currently on a steep learning curve and fumbling around in the dark.
    The first thing that I need to get working is the request to be resolved correctly and then (and this is where the real fun starts!) is to dynamically update the IP in the DNS records as the IP changes. I will probably have to get help in on this as I understand that this requires BIND of which I know nothing about, first though I'd like to get the pages to be served up correctly. Advice, hints, tips or links to tutorials all greatly appreciated. Full set up listed below.
    Many thanks, David.
    Xserve PPC G5 running 10.5.8 unlimited set up as standalone OD master
    Xraid
    APC UPS
    CradlePoint MBR1200 Gateway router which acts as the DHCP
    http://myurl.com and https://myurl.com set up as 2 seperate sites and located on the Xraid
    Current DNS setup:
    Primary Zone name: myurl.com with nameservers ns1myurl.no-ip.info and ns2myurl.no-ip.info and allow zone transfers in checked
    Then
    Name
    Type
    Value
    myurl.com
    Primary Zone
            ns1myurl.no-ip.info
            Machine
    12.34.56.78 (external IP)
            ns2myurl.no-ip.info
            Machine
    12.34.56.78 (external IP)
            myurl.com.
            Machine
    12.34.56.78 (external IP)
            www.myurl.com.
            Alias
    myurl.com.
    With the reverse zone looking thus with allow zone transfers being checked
    Name
    Type
    Value
    56.34.12.in-addr.arpa.
    Reverse Zone
            12.34.56.78
            Reverse mapping
            myurl.com.

    Thanks for the reply Camelot, that part though I had already figured out. I now have this working, all I did was change the external IP to the internal one of the server with resolves with the .local machine name and all is working just fine (for now!). As long as I have primary zones set for each site and any alias or services set up on them then everything works well.. The real test will be when my ISP changes the IP, whilst my tests have proved successful the proof will be when they update the address.
    Thanks anyway. David.

  • Dynamic retrieval in list boxes using JSP

    Dear All,
    I have a list box in a form which is created by extracting data from oracle database. There are approximately 26000 records which are added dynamically in the list box. There are five rows in the form and each row has to have a list box with all records. Now if i retrieve all records for all list boxes, the page takes high time to load. I also tried using String array to read once and write them using loops in list box. But even then the loading time is quiet high. Is there some better way so that the page loads fast enough. I am using Oracle Database and the table is indexed.
    Thanks & Regards,
    Gagan Arora

    Well, it's big enough to make any page slow... but you can try to load all the list boxes in the client side with javascript.
    i make that usually, create a javascript strings array and on the "onLoad" event fill all the list boxes with the values in that array.
    but anyway is too much data.

  • Dynamic update to TextArea?

    Heres a brief scenario
    Stage - Scene has 2 component -
    JTextArea - its text variable is binded to *'textAreaContent'*
    Button.
    On click of a button (onMouseClicked) - I am performing a FTP process - lets say that takes upto 10 seconds.
    during this FTP process - I constantly add log information to *'textAreaContent'* - which is expected to update JTextArea since it is binded.
    But JTextArea is only updated in one shot after completion of onMouseClicked method.
    but i want to show data in JTextArea everytime *'textAreaContent' is updated
    any ideas?

    I did resolve my issue after lots of hours of research.
    Just wanted to post this, if somebody has a better solution or someone might need this.
    Basically Event Dispatch Thread - EDT - was not letting me update any element in GUI dynamically. It would update at the end of the EDT process.
    After reading around few pages of threading in Swing - since javafx is like swing - a single threaded application. I bumped into SwingWorker.
    SwingWorker is used for any background process. And allows dynamic update to GUI element.
    Heres my TaskJava class which extends SwingWorker and is called from EDT
    EDT - onMouseClicked()
    var task = new UploadTask( textArea); - // Here a swing thread is spooned, but i am passing the instance of JTextAreaTaskJava
    package SwingWokerTask
    * @author Abhishek
    public class UploadTask extends SwingWorker<String, String> {
        private JTextArea textArea;
        // A calling application must pass a JTextArea
        public UploadTask(JTextArea textArea) {
            this.textArea = textArea;
        @Override
        protected String doInBackground() throws FTPException, IOException {
            publish("Getting Ready to upload files"); // public will invoke process - which will be update JtextArea
               Thread.sleep(1000);
                publish("Categories retrieved from Cache.");
               Thread.sleep(1000);
                publish("FTP Connection established");
               Thread.sleep(1000);
                publish("Entered incoming folder");
               Thread.sleep(1000);
                publish("--------------------------------");
               Thread.sleep(1000);
            return null;
        @Override
        protected void done() {
            if (isCancelled())
                publish("Cancelled !");
                else
            publish("Done !");
        @Override
        protected void process(List<String> strings) {
            StringBuilder strBuilder = new StringBuilder();
            for (String str : strings) {
                    strBuilder.append(str).append('\n');
            textArea.append(strBuilder.toString());
    }

  • Dynamic update  of cursor records when table gets updated

    Hi,
    I am having a table with 4 columns as mentioned below
    For a particular prod the value greater less than 5 should be rounded to 5 and value greater than 5 should be rounded to 10. And the rounded quantity should be adjusted with in a product starting with orderby of rank with in a prod else leave it
    Table1
    Col1     prod     value1     rank
    1     A     2     1          
    2     A     6     2
    3     A     5     3
    4     B     6     1
    5     B     3     2
    6     B     7     3
    7     C     4     1
    8     C     2     2
    9     C     1     3
    10     C     7     4
    Output
    Col1     prod     value1     rank
    1     A     5     1          
    2     A     5     2
    3     A     3     3
    4     B     10     1
    5     B     0     2
    6     B     6     3
    7     C     5     1
    8     C     5     2
    9     C     0     3
    10     C     4     4
    I have taken all the records in to a cursor. Once after rounding the request of 1st rank and adjusting the values of next rank is done. Trying to round the value for 2nd rank as done for 1st rank. Its not taking the recently updated value(i,e adjusted value in rounding of 1st rank).
    This is becoz of using a cursor having a value which is of old value.
    Is there any way to handle such scenario's where cursor records gets dynamically updated when a table record is updated.
    Any help really appreciated.
    Thanks in Advance

    Hi,
    Below is the scenario. Which I am looking for.
    ITEM_ID(A)
    ITEM_ID Value Date
    A          3     D1     
    A          5     D2
    A          3     D3     
    A          5     D4
    A          3     D5     
    A          5     D6
    Rounding for Item A has to be done for the rows less then D2 and rounding value is
    x and value adjustment to be done from very next row.
    --For record D1 rounding to be done and value adjustment is to be done from D2 to till the end untill the adjustment value is 0.
    --For record D2 (updated value has to be taken from rounding which updated in D1 row rounding) and the adjustment has to be done from very next row D3 to till the end or adjustment value is o.
    --For D3 row onwards no rounding has to be done.
    ITEM_ID(B)
    B          7     D1     
    B          8     D2
    B          9     D3     
    B          5     D4
    B          4     D5     
    B          3     D6
    Rounding for Item has to be done for the rows less then D3 and rounding value is
    y and value adjustment to be done from very next row.
    --For record D1 rounding to be done and value adjustment is to be done from D2 to till the end untill the adjustment value is 0.
    --For record D2 (updated value has to be taken from rounding which updated in D1 row rounding) and the adjustment has to be done from very next row D3 to till the end or adjustment value is o.
    --For record D3 (updated value has to be taken from rounding which updated in D2 row rounding) and the adjustment has to be done from very next row D4 to till the end or adjustment value is o.
    --For D4 row onwards no rounding has to be done.
    Thanks in Advance
    Edited by: unique on Apr 16, 2010 11:20 PM

  • Dynamic update in Oracle 9i Release 9.2

    Hi all,
    The update statement I want to execute depends on three variables. The statement is like this :
    update fichier_tempo
                   set flag = 0
                   where substr(texte,7,2) = pcode_enreg
                   and flag = 1
                   and v_id = vcode;
    In this statement : pcode_enreg , v_id and vcode are variables.
    The statement may affect many rows.
    I have already thought about using the execute immediate statement but it requires that the update affects only one row with the returning into clause.
    So how to execute this dynamic update ?
    Thank you very much indeed.

    You have lots of errors in that code.
    One of them is indeed the dynamic update where you say that the string "substr(texte,20,13)" should be equal to the string that's in vcode (in my example below: abcdefghijklm). This is probably not what you want.
    First I'll show you a variant of your code, which lots of areas in it to improve on, but hey: it works ;-)
    Then I'll show you one merge statement that does it all in once.
    Hope it helps.
    SQL> create table fichier_tempo
      2  as
      3  select 'xxxxxx50xxxxxxxxxxxabcdefghijklm' texte, 1 flag, 5 num from dual union all
      4  select 'xxxxxx50xxxxxxxxxxxabcdefghijklm', 1, 4 from dual union all
      5  select 'xxxxxx50xxxxxxxxxxxabcdefghijklm', 0, 3 from dual union all
      6  select 'xxxxxx50xxxxxxxxxxxabcdefghijklm', 1, 2 from dual union all
      7  select 'xxxxxx53xxxxxxxxxxxzyxwvutsrqpon', 0, 11 from dual union all
      8  select 'xxxxxx53xxxxxxxxxxxzyxwvutsrqpon', 1, 12 from dual union all
      9  select 'xxxxxx53xxxxxxxxxxxzyxwvutsrqpon', 0, 13 from dual
    10  /
    Tabel is aangemaakt.
    SQL> create or replace procedure p_test397(pcode_enreg varchar2)
      2  is
      3    --vmotif conrej_fic.crf_lib_err%type := get_motif_rejet('397');
      4    v_id varchar2(40);
      5    vsql varchar2(4000);
      6    c_div sys_refcursor;
      7    vcode varchar2(13);
      8    nb number;
      9    vsql_div varchar2(4000);
    10    updt_div sys_refcursor;
    11  begin
    12    select case pcode_enreg
    13    when '50' then 'substr(texte,20,13)'
    14    when '53' then 'substr(texte,20,4)'
    15    when '56' then 'substr(texte,20,4)'
    16    end
    17    into v_id
    18    from dual;
    19
    20    vsql := 'select '||v_id||',count(*) '||
    21    'from fichier_tempo '||
    22    'where flag = 1 '||
    23    'and substr(texte,7,2) = '||pcode_enreg||' '||
    24    'and num > 0 '||
    25    'having count(*) > 1 '||
    26    'group by '||v_id;
    27
    28    open c_div for vsql;
    29
    30    loop
    31      fetch c_div into vcode,nb;
    32      exit when c_div%notfound;
    33
    34      -- This is the dynamic update
    35      execute immediate
    36      'update fichier_tempo ' ||
    37      'set flag = 0 ' ||
    38      'where substr(texte,7,2) = ' || pcode_enreg || ' ' ||
    39      'and flag = 1 ' ||
    40      'and '||v_id||' = '''||vcode||''''
    41      ;
    42    end loop;
    43    close c_div;
    44  end;
    45  /
    Procedure is aangemaakt.
    SQL> select * from fichier_tempo
      2  /
    TEXTE                                                              FLAG                                 NUM
    xxxxxx50xxxxxxxxxxxabcdefghijklm                                      1                                   5
    xxxxxx50xxxxxxxxxxxabcdefghijklm                                      1                                   4
    xxxxxx50xxxxxxxxxxxabcdefghijklm                                      0                                   3
    xxxxxx50xxxxxxxxxxxabcdefghijklm                                      1                                   2
    xxxxxx53xxxxxxxxxxxzyxwvutsrqpon                                      0                                  11
    xxxxxx53xxxxxxxxxxxzyxwvutsrqpon                                      1                                  12
    xxxxxx53xxxxxxxxxxxzyxwvutsrqpon                                      0                                  13
    7 rijen zijn geselecteerd.
    SQL> exec p_test397('50')
    PL/SQL-procedure is geslaagd.
    SQL> select * from fichier_tempo
      2  /
    TEXTE                                                              FLAG                                 NUM
    xxxxxx50xxxxxxxxxxxabcdefghijklm                                      0                                   5
    xxxxxx50xxxxxxxxxxxabcdefghijklm                                      0                                   4
    xxxxxx50xxxxxxxxxxxabcdefghijklm                                      0                                   3
    xxxxxx50xxxxxxxxxxxabcdefghijklm                                      0                                   2
    xxxxxx53xxxxxxxxxxxzyxwvutsrqpon                                      0                                  11
    xxxxxx53xxxxxxxxxxxzyxwvutsrqpon                                      1                                  12
    xxxxxx53xxxxxxxxxxxzyxwvutsrqpon                                      0                                  13
    7 rijen zijn geselecteerd.
    SQL> exec p_test397('53')
    PL/SQL-procedure is geslaagd.
    SQL> select * from fichier_tempo
      2  /
    TEXTE                                                              FLAG                                 NUM
    xxxxxx50xxxxxxxxxxxabcdefghijklm                                      0                                   5
    xxxxxx50xxxxxxxxxxxabcdefghijklm                                      0                                   4
    xxxxxx50xxxxxxxxxxxabcdefghijklm                                      0                                   3
    xxxxxx50xxxxxxxxxxxabcdefghijklm                                      0                                   2
    xxxxxx53xxxxxxxxxxxzyxwvutsrqpon                                      0                                  11
    xxxxxx53xxxxxxxxxxxzyxwvutsrqpon                                      1                                  12
    xxxxxx53xxxxxxxxxxxzyxwvutsrqpon                                      0                                  13
    7 rijen zijn geselecteerd.
    SQL> rollback
      2  /
    Rollback is voltooid.
    SQL> create procedure mytest397 (pcode_enreg in varchar2)
      2  is
      3  begin
      4    merge into fichier_tempo f1
      5    using ( select a, rid
      6              from ( select count(*) over
      7                            ( order by
      8                                case pcode_enreg
      9                                when '50' then substr(texte,20,13)
    10                                when '53' then substr(texte,20,4)
    11                                when '56' then substr(texte,20,4)
    12                                end
    13                            ) a
    14                          , rowid rid
    15                       from fichier_tempo
    16                      where flag = 1
    17                        and num > 0
    18                        and substr(texte,7,2) = pcode_enreg
    19                   )
    20             where a > 1
    21          ) f2
    22    on (f1.rowid = f2.rid)
    23    when matched then
    24      update set flag = 0
    25    when not matched then
    26      insert values (null,null,null)  -- dummy line for version 9i
    27    ;
    28  end;
    29  /
    Procedure is aangemaakt.
    SQL> select * from fichier_tempo
      2  /
    TEXTE                                                              FLAG                                 NUM
    xxxxxx50xxxxxxxxxxxabcdefghijklm                                      1                                   5
    xxxxxx50xxxxxxxxxxxabcdefghijklm                                      1                                   4
    xxxxxx50xxxxxxxxxxxabcdefghijklm                                      0                                   3
    xxxxxx50xxxxxxxxxxxabcdefghijklm                                      1                                   2
    xxxxxx53xxxxxxxxxxxzyxwvutsrqpon                                      0                                  11
    xxxxxx53xxxxxxxxxxxzyxwvutsrqpon                                      1                                  12
    xxxxxx53xxxxxxxxxxxzyxwvutsrqpon                                      0                                  13
    7 rijen zijn geselecteerd.
    SQL> exec mytest397('50')
    PL/SQL-procedure is geslaagd.
    SQL> select * from fichier_tempo
      2  /
    TEXTE                                                              FLAG                                 NUM
    xxxxxx50xxxxxxxxxxxabcdefghijklm                                      0                                   5
    xxxxxx50xxxxxxxxxxxabcdefghijklm                                      0                                   4
    xxxxxx50xxxxxxxxxxxabcdefghijklm                                      0                                   3
    xxxxxx50xxxxxxxxxxxabcdefghijklm                                      0                                   2
    xxxxxx53xxxxxxxxxxxzyxwvutsrqpon                                      0                                  11
    xxxxxx53xxxxxxxxxxxzyxwvutsrqpon                                      1                                  12
    xxxxxx53xxxxxxxxxxxzyxwvutsrqpon                                      0                                  13
    7 rijen zijn geselecteerd.
    SQL> exec mytest397('53')
    PL/SQL-procedure is geslaagd.
    SQL> select * from fichier_tempo
      2  /
    TEXTE                                                              FLAG                                 NUM
    xxxxxx50xxxxxxxxxxxabcdefghijklm                                      0                                   5
    xxxxxx50xxxxxxxxxxxabcdefghijklm                                      0                                   4
    xxxxxx50xxxxxxxxxxxabcdefghijklm                                      0                                   3
    xxxxxx50xxxxxxxxxxxabcdefghijklm                                      0                                   2
    xxxxxx53xxxxxxxxxxxzyxwvutsrqpon                                      0                                  11
    xxxxxx53xxxxxxxxxxxzyxwvutsrqpon                                      1                                  12
    xxxxxx53xxxxxxxxxxxzyxwvutsrqpon                                      0                                  13
    7 rijen zijn geselecteerd.Regards,
    Rob.

  • Dynamic Update Failed. Evend ID 8011

    Our environment uses Active Directory, DNS servers (not AD integrated) and static IP Addresses (not DHCP). All of them are Windows 2012 R2.
    The DNS zone accepts dynamic update and the client is configured to register on the correct DNS Zone name.
    We are getting error when trying to dynamic register new machines on DNS. Event ID 8011 has been registered at client machine as follows:
    The system failed to register pointer (PTR) resource records (RRs) for network adapter
    with settings:
               Adapter Name : {23F8758F-E242-4473-BE3A-DDB4A7E32DE8}
               Host Name : serverA
               Adapter-specific Domain Suffix : company.com.br
               DNS server list :
    171.10.0.1, 171.10.0.2
               Sent update to server : <?>
               IP Address :
                 171.10.0.3
    The reason that the system could not register these RRs was because (a) either the DNS server does not support the DNS dynamic update protocol, or (b) the authoritative zone where these records are to be registered does not allow dynamic updates.
    To register DNS pointer (PTR) resource records using the specific DNS domain name and IP addresses for this adapter, contact your DNS server or network systems administrator.
     Somebody could help me ?
    Thanks in advance
    Augusto

    Hi,
    Confirm that if the DNS zone has been configured to allow dynamic update:
    Right click zone – Properties – General – Dynamic Update – Nonsecure and secure.
    Besides, check firewall settings or other security mechanism to see if TCP/UDP port 53 is opened.
    Then run “ipconfig /registerdns” on client and force it to register its DNS record.
    If the problem still exits, confirm that if any log is recorded in DNS server’s event log. 
    Best Regards,
    Eve Wang
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Creating a Dynamic Update Statement based on Select

    hi,
    i'm trying to create a dynamic update statement based on select statement
    my requirment is to query a joint tables and get the results then based on the results i need to copy all the data and create an update statement for each row
    for ex
    the update statement should look like this
    update iadvyy set SO_SWEEP_CNT = '1' where inst_no = '003' and memb_cust_no = 'aaaaaaaaaaaaaaaa';
    and the select statement like the following
    select substr(key_1,11,9) account_no,sord_mast SO_SWEEP_CNT from
    select acct_no,count(*) sord_mast from
    (select from_acct_no acct_no,update_mast
    from sord where FROM_SYS in ('DEP','INV') and TERM_DATE > 40460
    union all
    select to_acct_no acct_no,update_mast
    from sord where TO_SYS in ('DEP','INV') and TERM_DATE > 40460)
    group by Acct_no)
    right outer join
    invm
    on
    key_1 = '003'||acct_no
    where sord_mast > 0;
    so taking the above two columns from the above select statement and substitue the values as separate update statement.
    is that doable , please share your knowledge with me if poosible
    thanks in advanced

    is that doable , please share your knowledge with me if poosibleyes
    The standard advice when (ab)using EXECUTE IMMEDIATE is to compose the SQL statement in a single VARCHAR2 variable
    Then print the SQL before passing it to EXECUTE IMMEDIATE.
    COPY the statement & PASTE into sqlplus to validate its correctness.

  • DNS replicating but not being dynamically updated by other DCs

    Background on setup:
    Our campus runs BIND for the DNS solution
    Campus servers do not allow for dynamic updates of the root zone (school.university.edu), but are set to allow dynamic updates of the AD-related zones (_msdcs, _sites, _tcp, _udp, DomainDnsZones, ForestDnsZones)
    We run Active Directory (2008R2/2012R2 Mixed Mode) with DNS
    Our DCs are all listed in the NS tab of our zones, but are not truly authoritative...campus BIND servers are
    We only have the default zones setup in our DNS, all allow for Dynamic updates (Secure Only)
    DNS zones are ADI and replicate to all DNS servers in the domain (All 6 DCs are DNS servers)
    Clients do not register with our DNS, they use the campus BIND servers.  Only AD domain controllers are registered in our zones and allowed to dynamically update
    Once upon a time, this setup worked without an issue.  Dynamic updates worked without an issue within our ADI zones, as well in the campus BIND servers.  When we started to add the new 2012R2 domain controllers into the mix, we noticed that this
    was no longer the case.  Since we don't often add or remove DCs from our setup, we do not know exactly when this broke.
    The issue is that our campus BIND DNS servers show all of the appropriate DNS records flawlessly.  We manually requested entries at the root (looks fine) and all AD zones updated dynamically with all expected records.  Our AD DNS servers on the
    other hand have a fair number of incorrect and missing records.  The only one of the three new servers to have records in our AD DNS is the server we moved all of our FSMO roles to before our technician noticed the DNS issues.  The other two have
    no records dynamically generated in our AD DNS zones.  We pulled one of the old 2008R2 DCs out of the domain using dcpromo since it had some other issues.  As expected, it pulled all of its records out of campus BIND cleanly but left all of its records
    in our AD DNS.
    If we manually add/remove an entry (PTR, CNAME, A, SRV), the change replicates appropriately across the domain.  However, we do not want to put a Band-Aid fix on this and manually enter all of the records.  We want to figure out why these two servers
    are not pushing their records into AD DNS despite updating them flawlessly in campus BIND servers.
    DNS is not my forte, so I'd welcome any advice on what I can as my best next steps.  I have played around a lot with modifying DNS servers listed in the DC network settings, and register this connection.  We can confirm that replication seems to
    be working fine.  We can manually add records.  DNS shows no errors in event log.  When using dcdiag dns test, it shows that we have missing records in our DNS but no other issues are displayed.  NSLOOKUP reveals campus DNS to be correct. 
    Any assistance would be appreciated...even if just to point me to a better tool for diagnostics.  We have not yet tried reinstalling DNS on any of the DCs and wish to avoid that if possible.

    Greg:
    Thank you for taking the time to respond.  I believe I have found a pseudo-solution earlier this week, but I find myself slightly confused by the solution.  On our network connections for the DCs, we had been making the BIND servers the primary
    and secondary DNS servers, then each of our DCs point to two of the other DCs for their tertiary and quaternary DNS servers.  Since the BIND servers have all of the correct records, we flipped those to make the DCs our primary and secondary before BIND
    servers.  This got all of the records into our AD correctly.
    It was my understanding that if you checked the "Register this connection in DNS" checkbox that it would register itself in all of the DNS servers in the list, but based off the above it seems it only registers in the first DNS server it successfully connects
    to; assuming it expects that primary server to replicate the records to others.  If this new assumption is true, then I am trying to figure out how I am supposed to get my DCs to dynamically update both AD-DNS and BIND when I make changes.  This
    may be best suited in another thread, so I'll gladly break it out into another if needed.  I do not have control over the BIND DNS servers, except for the fact that my DCs are allowed to dynamically update the AD subzones.  I have full control over
    my AD-DNS, but my clients computers are required to point to BIND for their DNS.

  • Dynamically updating UI (binding, maybe?)

    So I am writing an export plugin for lightroom. I need to update the export UI dynamically after getting a result from Lrhttp.post. The code is underlined below. Basically, how can I display to the user that their login is successful by dynamically updating the export UI after they click the submit button (I want the last row to display whether the login was a success or not)? I could not find a UI refresh function in the LR API.
    I tried looking at Lr.Binding to try to bind resultlogin but that did not work as intended. Any suggestions? Thanks!
    ExportDialogSections = {}
    function ExportDialogSections.sectionsForTopOfDialog(f, propertyTable)
               return {
                                  title = "...",
                                  f:row {
                                            spacing = f:control_spacing(),
                                            f:static_text {
                                                      title =  "Username",
                                                      width = share 'labelWidth',
                                                      alignment = 'right',
                                            f:edit_field {
                                                      value = bind 'Username',
                                                      width_in_chars = 40
                                  f:row {
                                            spacing = f:control_spacing(),
                                            f:static_text {
                                                      title = "Password",
                                                      width = share 'labelWidth',
                                                      alignment = 'right',
                                            f:password_field {
                                                      value = bind 'Password',
                                                      width_in_chars = 40
                                  f:push_button{
                                            title="Submit",
                                            action = function( button )
                                                      import "LrTasks".startAsyncTask( function()
                                                                resultlogin = LrHttp.post(...)
                                                      end )
                                                      if resultlogin == "success" then
                                                                --send username to exporttask and display username is valid
                                                                sendUsername(...)
                                                      else
                                                                sendUsername(...)
                                                      end
                                            end,
                                  f:row {
                                            spacing = f:control_spacing(),
                                            f:static_text {
                                                      title = resultlogin,
                                                      width = share 'labelWidth',
                                                      alignment = 'right',
    end
    return ExportDialogSections

    You have to assign resultLogin as a member of a (observable) property table, then bind to that member by name, for example:
    f:static_text {
        title = LrView.bind( 'resultlogin' ),
        width = share 'labelWidth',
        alignment = 'right',
    In the case of export dialog box, the export settings themselves are a usable property table. In other cases, you may need to create one yourself - see LrFunctionContext, in which case the only trick is to make sure that the property table is specified as bind_to_object.
    There are examples galore in my plugin's source code:
    http://www.robcole.com/Rob/ProductsAndServices
    Rob

  • Vpnv4 prefix dynamic update on export-map changes

    Hi guys,
    I have a 76k running 12.2(33)SRE9a with this vrf configuration:
    ip vrf B
    rd 2:2
    export map RM-R3
    route-target import 2:2
    route-map RM-R3 permit 10
    match ip address prefix-list PL-R3
    set extcommunity rt 4:4  2:2  additive
    route-map RM-R3 permit 15
    set extcommunity rt 2:2
    ip prefix-list PL-R3 seq 5 permit 172.3.3.3/32
    ip prefix-list PL-R3 seq 10 permit 172.33.33.33/32
    So I expect that prefixes matching prefix-list PR-R3 will have route-target 2:2 4:4, and all other prefixes will have route-target 2:2.
    The question is: What happens if I remove this line of the prefix list?
    no ip prefix-list PL-R3 seq 10 permit 172.33.33.33/32
    Will there be any dynamic update? Do I have to clear bgp or ip routing table?
    Thanks!
    Diego.

    Hi Diego,
    I checked in IOU with SRE9a image and observed that there is no dynamic update and we need to do "clear ip bgp <as> soft out from CE side.
    Topology
    R1--ebgp--[vrf CUST-A] R3----vpnv4 ibgp -----R4
    ip vrf CUST-A
     rd 300:1
     export map RM-R3
     route-target export 300:1
     route-target import 300:1
    R3#show route-map RM-R3
    route-map RM-R3, permit, sequence 10
      Match clauses:
        ip address prefix-lists: PL-R3 
      Set clauses:
        extended community RT:300:1 RT:300:2 additive
      Policy routing matches: 0 packets, 0 bytes
    route-map RM-R3, permit, sequence 15
      Match clauses:
      Set clauses:
        extended community RT:300:2
      Policy routing matches: 0 packets, 0 bytes
    R3#show ip prefix  PL-R3
    ip prefix-list PL-R3: 1 entries
       seq 5 permit 172.16.17.0/24
       seq 10 permit 172.16.19.0/24
    R3#
    R4#show ip b vpnv4 all 172.16.19.0/24
    BGP routing table entry for 300:1:172.16.19.0/24, version 34
    Paths: (1 available, best #1, table CUST-A)
      Not advertised to any peer
      100
        3.3.3.3 (metric 11) from 3.3.3.3 (3.3.3.3)
          Origin IGP, metric 0, localpref 100, valid, internal, best
          Extended Community: RT:300:1 RT:300:2
          mpls labels in/out nolabel/36
    R4#
    R3(config)#no ip prefix-list PL-R3 seq 10 permit 172.16.19.0/24
    R3(config)#end
    after 10 min
    R4#show ip b vpnv4 all 172.16.19.0/24
    BGP routing table entry for 300:1:172.16.19.0/24, version 34
    Paths: (1 available, best #1, table CUST-A)
      Not advertised to any peer
      100
        3.3.3.3 (metric 11) from 3.3.3.3 (3.3.3.3)
          Origin IGP, metric 0, localpref 100, valid, internal, best
          Extended Community: RT:300:1 RT:300:2
          mpls labels in/out nolabel/36
    R4#
    R1#clear ip bgp 300 soft out
    R1#
    R4#show ip b vpnv4 all 172.16.19.0/24
    BGP routing table entry for 300:1:172.16.19.0/24, version 50
    Paths: (1 available, best #1, table CUST-A)
      Not advertised to any peer
      100
        3.3.3.3 (metric 11) from 3.3.3.3 (3.3.3.3)
          Origin IGP, metric 0, localpref 100, valid, internal, best
          Extended Community: RT:300:2
          mpls labels in/out nolabel/36
    R4#
    I hope it helps

  • ECMA/CSOM script to update multiple list items

     i am trying update multiple list items using CSOM/ECMA script but it updates only first record. can help out .how to update multiple list item records 
    Note(sharepoint hosted APP) only client side coding solution 
    function updateListItems() {
    var itemArray = [];
    var clientContext = SP.ClientContext.get_current();
    var oList = clientContext.get_web().get_lists().getByTitle('TestList');
    for(var i = 1; i<= 5; i++){
    var oListItem = oList.getItemById(i);
    oListItem.set_item('Title', 'My Updated Item!' + i);
    oListItem.update();
    itemArray[i] = oListItem;
    clientContext.load(itemArray[i]);
    clientContext.executeQueryAsync(onQuerySucceeded, onQueryFailed);
    function onQuerySucceeded() {
    alert('Items Updated');
    function onQueryFailed(sender, args) {
    alert('Request failed. ' + args.get_message() + '\n' + args.get_stackTrace());
    updateListItems();

    Have a look at the following link for your reference
    https://social.msdn.microsoft.com/Forums/office/en-US/fc91b7b5-6300-4302-af93-4fc697131ec5/client-object-model-update-multiple-list-items?forum=sharepointdevelopment
    You can modify CAML query to fetch rows that you want to fetch.
    Geetanjali Arora | My blogs |

Maybe you are looking for