Refresh block

Hi all,
I'm using Oracle Forms Builder 10GR2. I have a database block and a procedure which just updates the values of some fields in that DB block. The problem is that the new values don't appear immediately even i have specified commit in the procedure. I have to requery the database block to see the new values. Any ideas how this can be achieved? Also, i tried to specify an INTO clause for those fields but i think this is not working because of their database item property...
In other block, which is not database, i have something like this :
select <value> INTO :<field> FROM <table_name>and the value of that field is automatically refreshed. Is this going to work for db items? If yes, why i'm not able to compile my procedure when the syntax is the same as the non-db items? The error is : Bad bind variable....
Thanks in advance,
Bahchevanov.

Hi, this is my procedure, it's simple:
PROCEDURE set_control_balance (p_statement_header_id IN INTEGER, p_control_total_dr in integer, p_control_total_cr in integer
                                                                              ,p_control_dr_line_count in integer,p_control_cr_line_count in integer
                                                                              ,p_control_end_balance in integer )
   IS
  begin
        update ce.ce_statement_headers
             set control_total_dr                = p_control_total_dr
                   ,control_total_cr            = p_control_total_cr
                   ,control_dr_line_count = p_control_dr_line_count
                   ,control_cr_line_count = p_control_cr_line_count
                   ,control_end_balance          = p_control_end_balance
             where
                       statement_header_id      = p_statement_header_id
   exception
        when others then
        raise;
   END;i call the procedure in the WHEN-BUTTON-PRESSED trigger of a button like this:
set_control_balance(:ce_statement_headers_all.statement_header_id
                                                                  ,:ce_statement_headers_all.CTRL_TOTAL_DR
                                                                  ,:ce_statement_headers_all.CTRL_TOTAL_CR
                                                                  ,:ce_statement_headers_all.CTRL_DR_LINE_COUNT
                                                                  ,:ce_statement_headers_all.CTRL_CR_LINE_COUNT
                                                                  ,:ce_statement_headers_all.CTRL_END_BALANCE);
:SYSTEM.message_level := 25;
      COMMIT;
CLEAR_RECORD;
GO_BLOCK ('CE_STATEMENT_LINES');
            EXECUTE_QUERY;
      LAST_RECORD;
HIDE_WINDOW ('XXBG_CE_STATEMENT_LINES_NEW');
But before, pls create POST-COMMIT Trigger Form Level Sorry cannot found such trigger on form level... There is ON-COMMIT,POST-DATABASE-COMMIT,POST-FORM-COMMIT... which of them i have to use?
Thanks in advance,
Bahchevanov.

Similar Messages

  • How to cancel delete in a block ?

    hi
    When we delete a record from a block, it disappear from block and when saved, it is comitted in database as well.
    I want to add 'cancel' functionality ie when i delete a record from block , and if i don't want to save it , or there is error in saving. i should cancel 'delete' and on this, block should get refreshed with original records which were before delete.
    At what 'trigger' i can execute querry to refresh block again
    null

    Hai
    Use DELETE_RECORD built in to remove from the block. The record is not directly removed from the database as soon as the delete record command is issued. It just marks the record as deleted. On the next immediate commit or rollback the action is taken. refer the help. Look for CLEAR_RECORD built in too.

  • Network Refresh on Lion?

    One of the more common hassles I deal with in Lion is the very sluggish network refresh.
    I'm on a medium-sized network composed mainly of OSX machines, and sometimes one of them will reboot and come back with a different IP address. When this happens it will take an excessive amount of time for Finder to update the new computer address on the "Shared" section.
    Can't this be done manually? How come there's no option to simply refresh all network assets?

    I have the same issue with my 2013 Mac Mini Server (top of the line specs, 16GB RAM, etc) over a GIG-E local network directly connected to the same switch. I've tried different cables and ports to ensure it's not a network issue. Ironically enough, I get a solid connection with the Windows RDP client on my laptop to a Windows VM running on that same server; but when I try to directly connect via ARD, I get the slow refresh / blocked appearance you see in the attached screenshot.

  • How can I code this in Oracle Forms?

    I have a master-detail form. In the detail block, I have several records. Here is my name table.
    ID Name_Type Name
    1 old Mike
    2 Current John
    3 old Peter
    4 old Andrew
    I would like to create a button trigger which shall perform the following:
    1) insert a record into database with a copy of current value. In the above case it will insert create a record for John as name_type = 'OLD'. So we have total of 5 records. Commit the transaction.
    2) Scroll through my detail records (5) and go to one specific record and erase the values from it. In the above case, it should find John's record with name_type = 'Current' and erase John from it.
    How can I accomplish this in Oracle forms using a button-pressed trigger?

    Hi,
    Simple, using current values you can create new id , 'old' and name so oracle will create record, now refresh block, next using next_record in loop you can find record,erase one and refresh block.
    Adinath Kamode

  • I want to allow redirects but not auto-reloading

    I'm running Yosemite on a Mac Air, with fully-updated everything.
    I'd like to stop pages reloading without my permission. This is usually an issue for me on news sites.
    In FF preferences, the option to allow or disallow auto-reloading is tied to the option to redirect. I can allow or disallow both, but not allow one and not the other.
    The net effect is, my news sites aren't automatically refreshing (yay), but other sites get stuck when a page redirect comes up. I play Scrabble online; now I have to manually allow a redirect with every play. Same with following Twitter links.
    Is there some way to kill off the auto-reloads while still allowing redirects? Maybe a whitelist for redirects, as a secondary option?
    Thanks!

    I do not know if the browser can tell the difference because it depends on the DNS server to give redirect requests back to the browser. Actually it does, 301 or 302 vs new http get request.... anyway:
    I found this add on: [https://addons.mozilla.org/en-us/firefox/addon/refreshblocker/ Refresh Blocker] and [https://addons.mozilla.org/en-US/firefox/addon/noredirect/?src=search No Redirect] which both let you control what sites to allow if there are only a few sites.
    This would only be a temporary work around however.

  • How can I make OPAC in Oracle Forms Builder

    Hello everyone,
    I'm developing a Library Management System as my project in my Oracle subject.
    Can anyone tell me how to make OPAC module of Library management system in Oracle forms builder.
    I don't have any idea because this is my first encounter in this system.
    Thanks.
    I really appreciate all your help.
    God bless ^^

    Hi,
    Simple, using current values you can create new id , 'old' and name so oracle will create record, now refresh block, next using next_record in loop you can find record,erase one and refresh block.
    Adinath Kamode

  • JWS not auto reloading servlets

    Hi all,
    We have several servlets that we have placed on the server (Solaris) with the iFS installation. This server is running the java web server 2.0 that came bundled with iFS. When we place the servlets under the ifs1.1/custom_classes directory and load them, they remain loaded in memory until the server is rebooted. This means that anytime we change one of the servlets, to get the newer version of the servlet to load, we must reboot the server. This becomes very time consuming during development.
    The java web server documentation states that if you place servlets in the root/servlets directory they will be automatically reloaded upon a time stamp change. However, when we put the servlets in the .../ifs1.1/jws/servlets directory, they are not even found.
    My question: why does the jws that comes bundled with iFS not find servlets placed in the servlet directory? Has anyone else who uses servlets to connect to iFS run into this problem?
    Thanks very much.

    I do not know if the browser can tell the difference because it depends on the DNS server to give redirect requests back to the browser. Actually it does, 301 or 302 vs new http get request.... anyway:
    I found this add on: [https://addons.mozilla.org/en-us/firefox/addon/refreshblocker/ Refresh Blocker] and [https://addons.mozilla.org/en-US/firefox/addon/noredirect/?src=search No Redirect] which both let you control what sites to allow if there are only a few sites.
    This would only be a temporary work around however.

  • Automatic page updates causing problems with your screen reader? this kind of message come when i access yahoo mail.yahoo mail page not come properly.

    Automatic page updates causing problems with your screen reader? this kind of message come when i access yahoo mail.yahoo mail page not come properly.i can't chat,compose mail nothing accessing.

    Try Refresh Blocker: https://addons.mozilla.org/firefox/addon/992

  • I see 'enq: JI - contention' when building multiple cubes/partitions

    Version 11.2.0.3
    I can successfully build multiple partitions of a cube simultaneously by supplying the degree of parallelism that I want. I can also build multiple cubes and multiple partitions of multiple cubes by submitting separate jobs (one per cube) with parallelism set in the job (for number of partitions per job/cube).
    My goal was to refresh 2 cubes simultaneously, 2 partitions in parallel each, so that 4 partitions total were refreshing simultaneously. There were sufficient hardware resources (memory and processes) to do this. I tried to submit 2 jobs, one for each cube, with parallel 2 on each.
    What happens is that 3 partitions start loading, not 4. The smaller of the 2 cubes loads 2 partitions at a time, but the larger of the cubes starts loading only 1 partition and the other partition process waits with JI - contention.
    I understand that JI contention is related one materialized view refresh blocking another refresh of the same MV. Yet simultaneous refresh of different partitions is supported for cube MVs.
    Because I see the large cube having the problem but not the smaller one, I wonder if adding more hash partitions to the AW$ (analytic workspace) table would allow more concurrent update processes. We have a high enough setting for processes and job_queue_processes, and enough available threads, etc.
    Will more hash subpartitions on the AW$ table allow for more concurrency for cube refreshes?

    It looks like the JI contention was coming from having multiple jobs submitted to update the SAME cube (albeit different partitions). Multiple jobs for different cubes (up to one job/cube each) seems to avoid this issue. I thought there was only one job per cube, but that was not true.
    Still, if someone has some insight into creating more AW hash subpartitions, I'd like to hear it. I know how to do it, but I am not sure what the impact will be on load or solve times. I have read a few sources online indicating that it is a good idea to have as many subpartitions as logical cube partitions, and that it is a good idea to set the subpartition number to a power of two to ensure good balance.

  • SAP_INFOCUBE_INDEXES_REPAIR

    Hi All,
    I have created a new sandbox BW system from a copy our BW Production. I used the Oracle database restore method for this.
    Normally, before starting the backup on Production, I do " alter database force logging" and then use that backup for restore.
    This time I forgot this and after all system copy steps were completed, I ran dbverify and it reported lots and lots of corrupt blocks due to corrupt indexes. This is a known problem and SAP note 547464 deals with it.
    I am currently running report SAP_INFOCUBE_INDEXES_REPAIR to recreate/repair all indexes.
    It has been running for a long time.
    My concern is this - this report may be able to fix the indexes, but will dbverify still report corrupt blocks.
    I get errors like:
    BV-00200: Block, dba 76030411, already marked corrupted
    Does anyone have experince with this and will this also be fixed with SAP_INFOCUBE_INDEXES_REPAIR?
    Any suggestions, please help.
    Cyrus

    Hi,
    DBV-00200 errors indicate corrupted blocks on database.
    Did you confirm if the backup restored is reliable, free of corrupted data       
    Did you perform a hardware check in this target server ?
    Many case of corrupted blocks can appear due hardware fails
    Could you please execute the consistency check using the
    analyze command ? See question 7 of note 365481.
    Additionaly you can find more details in the note 23345      
    Also Check SAP Notes 547464 and 442763.
    We came across same issue during our system refresh. Report  SAP_INFOCUBE_INDEXES_REPAIR didnt worked for us. What we did is we dropped & recreated indexes for those particular cubes & ran DB verify job. corrupt block error didn't come again.
    can you check whether any index creation/drop job ran during the backup time which you have restored.
    This worked for us.
    The cause of the problem might be that indexes on objects which trigger
    the error were created with NOLOGGING option.
    As discussed in note 442763, only the indexes are created this way,and they can be created again with the reported mentioned.
    we have resolved this issue by taking backup at that time where  no process chain runs.We restored same backup.
    after executing DB verify after the system refresh block corruption warnings didn't come.
    Additionally see :
    863417 : FAQ: Database Archive modes and redo logs
    23070 : Backup and Recovery: Basic Concepts (it is very old one but
    provides the basic concepts)
    You can use BR*Tools/BRBACKUP for database backup. See the URL :
    http://help.sap.com/saphelp_nwpi71/helpdata/en/0b/5daf09b03344ad97338f838e09b9ee/frameset.htm
    Hope this helps
    Thanks,
    Sushil
    Edited by: Sushil Suryawanshi on May 20, 2009 12:02 AM

  • Concatenation according to condition

    Hi All,
    I ahve to concatenate the rows based on other row values....
    example:
    Col1 Col2
    A X
    A Y
    B Z
    B Y
    needs to load into target table as:
    Col1 Col2
    A X:Y
    B Z:Y
    concate col2 accoring to col1
    Thanks

    1. What are your source and target databases? Are they on same instances if they are of the same technology type?
    2. I would not go to an interface if the tables are on the schema and technology would be Oracle with version later than 9i. In that case, I would use the following SQL
    INSERT INTO t2 (col1, col2)
    SELECT col1, REPLACE(WMSYS.WM_CONCAT(col2),',',':')
    FROM t1
    GROUP BY col1;
    There is a way to code this in an interface but a procedure would be simplest.
    3. In case, assumptions in point 2 failed, there is a long road to the general solution. The solution above will give you answers if you have maximum two rows with same col1 value. I am interested to explore what happens if there are n rows with same column value when n being a random number? In the following steps, I would try to outline how we need to proceed, but because this is complicated, you may have to work with me here (t1 is source, t2 is target and tech is Oracle):
    A. Create a variable v_MaxRows. In the refresh block, write:
    WITH temp AS (
    SELECT col1, count(*) as cnt_rows FROM t1 GROUP BY col1)
    select MAX(cnt_rows) FROM temp
    If technology is not Oracle, you have to adjust SQL a bit to make it work. This variable holds maximum no of rows a particular value of col1 is repeated in source t1.
    B. Create a variable v_UseRow and do not create a refresh block for it. The default value should be 1.
    C. Create a temp table (or temp tables based yellow interface) called t3 with columns col1, col2 and nrows (numerical value). Create an interface I1 with t3 as target. col1 and col2 should be mapped directly. Mapping for nrows column should be -> dense_rank() OVER(partition by col1 order by col2).
    D. 1. Create interface I2. t3 should be the target.Update key for table t3 should be (col1,nrows).
    2. Bring t3 two times to the source side (with alias t31 and t32), join them using col1. Mark the join as Left Outer Join on staging.
    3. Create a filter on t31 as t31.nrows = 1 (executable on source)
    4. Create a filter on t32 as t32.nrows = #v_UseRow+1 (executable on source)
    5. On target, map for col1 should be t31.col1, map for col2 should be -> t31.col2||(CASE WHEN t32.col2 IS NOT NULL THEN ':'||t32.col2 ELSE '' END)
    6. Column nrows should be mapped to 1.
    E. Load target t2 using interface I3 and source t3. Direct mapping should work.
    F. Create a package. Refresh #v_MaxRows and then call I1. Then define a loop where v_UseRow is set to 1, call I2, increment v_UseRow by 1, see if that is less than *#v_MaxRows*, then call I2 again else call I3 and exit. That way interface I2 would be called #v_MaxRows -1 times and all repeating values would be concatenated together.
    I am interested to know the result. Please let me know the result.

  • ODI target as flatfile --  split

    Hi can anyone let me know how to split the flatfile output in ODI. I do know that there is a tool called xmlsplit for xml files but i don't know how we can split the flatfiles. Please guide me on this. Thank you!

    1. Create 2 ODI variables min_row_count, iteration_counter. Set all of them to 1.
    2. Create another variable called max_row_count and set it to 50000.
    3. Create another variable called total_row_count and put a query in refresh block: SELECT count(*) FROM your_source_table
    3. Create a temporary interface (if you are not comfortable with that, create the target table and bring it to ODI model) that uses your table as source and map all the columns plus an extra column (let us call it rownbr) which should be mapped as row_number() OVER (ORDER BY <some other column>). Execute this if you are in 10g (no need of this if you are in 11g).
    4. Create another interface that will write to a flat file. Use your temporary interface (or the table if you created it) as source. Use flat file model as target.
    5. Create a filter like: source.rownbr between #min_row_count and #max_row_count
    6. Find a suitable standard IKM that will load to a file. use it for the interface. Generate a scenario.
    7. Create a package where you set the iteration_counter to 1. Invoke the scenario in the next step. If it succeeds, create a OS command where you will copy the output file to <some name>.#iteration_counter.dat file in the desired directory. Once the command succeeds, increment the iteration counter by 1. Increment the min_row_count and max_row_count by 50000. Test if min_row_count > total_row_count. If yes, exit the loop (and send mail or something). Else point to scenario run step again. What you have is a loop which will use iterate the scenario over your table 50k rows at a time.

  • Automatic page updates causing problems with your screen reader

    i want to know whats going on with this Automatic page updates causing problems with your screen reader and yahoo does not work and in order for me to even email you for this question i have to use internet exp I have found this complaint many times in the forum but with no real answer how to fix the dang thing will you please tell us what your doing about this problem and or do we have to go back to using internet exp there are more sights than yahoo that no longer work with mozilla please let us no what is bieng done about this problem if any thing
    == URL of affected sites ==
    http://
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SearchToolbar 1.1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30729; eMusic DLM/4; OfficeLiveConnector.1.4; OfficeLivePatch.1.3; InfoPath.3; .NET4.0C; AskTB5.8)

    Try Refresh Blocker: https://addons.mozilla.org/firefox/addon/992

  • Refresh Follow up Transaction History Assignment Block on Save

    Hi All,
              I am doing a requirement where I am creating follow up Chargeback document (marketing) from Claim on click of Save.
    I am able to create it using code written in manual button event handler, but the transaction history of the document is not refreshed immediately.
      Though when i open the follow up document it is there and when I open the original document again it is there as well. That is, though the link has been created, but how to refresh data of transaction history assignment block on click of Save button of preceding document.
       Please suggest if someone has worked on a similar scenario somewhere (may be from Lead to Oppt creation on save).
    Thanks and Regards,
    Rohit Khetarpal

    Hi Rohit
    I believe it is in the buffers so maybe you need to trigger an Server Roundtrip dude on this scenario so that refreshing happens and the same gets reflected on the UI
    (OR)
    Since it is in the overview page do a reread on the entity say in do_prepare_output to get the latest one
    (or) use the publish_current()  to publish the entity in do_prepare_output.(this will automatically do a re-read i believe)
    Thanks
    Abishek

  • Automatic Block refresh without execute_query

    Can I have my block refresh automatically without doing an execute query ? I would like to refresh only the lines that got changed or updated in the DB by another process.
    -Ramesh

    Thanks for the reply.
    I have upgraded to Patch 14 and I do commit within the Form and have the DML Returning Value = YES. I still do not see the changes in the rows until I refresh or execute the query.
    I do not want to use a timer or some kind of polling to the server to see if the changes happened on the DB. Ideal way would be to have the server (8i) send the client any changes on the DB automatically and Form accept them without any requering or refreshing.
    -Ramesh.

Maybe you are looking for

  • Problem with setting oracle type parameter in viewobject query

    Hi There, I am facing a problem with JDev1013. I have a view that has JDBC positional parameters that are supposed to be in parameters for function like: SELECT x.day, x.special_exact_period_only FROM (   SELECT x.day, x.special_exact_period_only   F

  • 11.5.9 How to select all invoices in Payment batches ??

    Hi Guys, We are working on 11.5.9 Payment batches... Could anyone help me out on how to select all the Invoices whether due or not in the Payment Batches ?? I see that unchecking only due' doesn't work...is Pay through date is the only option ?? Rgds

  • Check in is not working on Facebook

    after doing the update on Friday, neither my macbook pro nor my iphone4s will allow me to "check in" on Facebook-meaning it will show me on the small map at the top (on the phone) where I am, so the GPS is working, but it will not give me any choices

  • Maintenance cost center report

    Dear Experts, We have two cost center in Maintenance Order, one is responsible cost center (picked from Maintenance work center) other is Location cost center ( coming from Equipment) , plz tell me the exact use os the two, also the reports where i c

  • "Can't find bundle for base name" in a JavaBean called from a JSP

    I have quite a large EAR file which contains an EJB.jar file, a WAR file and various other jars used by the EJB.jar file. I the WAR file has a number of JSPs and now some JavaBeans. The JavaBeans live in their own jar which is deployed in the WEB-INF