This discussion is archived
3 Replies Latest reply: Oct 28, 2013 3:15 AM by Michael Shapira RSS

refresh region

newbee Newbie
Currently Being Moderated

Hi ,

(jdev 11.1.1.7)

 

I have a read only VO and there is in this VO a transient checkbox .

i create a region based of this VO .

when i click checkbox and commit button , data save correctly .

but unfortunately rapidly region refresh and show first value (checkbox unclicked) .

but when navigate on the master table , region refreshes again and data is correct .

 

i refresh its iterator and VO programmatic but dosnt work .

 

How can i refresh data to correct values . OR

prevent bad refresh ?

 

thanks

  • 1. Re: refresh region
    Timo Hahn Oracle ACE
    Currently Being Moderated

    User, you can't save data via a read only vo.

    when i click checkbox and commit button , data save correctly

    Makes no sense. Where should the data be saved?

    How do you create the region on the vo? What is in the region?

    Which master table?  Is this table inside the region?

     

    Timo

  • 2. Re: refresh region
    newbee Newbie
    Currently Being Moderated

    Hi ,

     

    Which master table?  Is this table inside the region?

    my page is master-detail .

    master is table .

    detail is a region . in the region there is a table component .

    you can't save data via a read only vo

     

    I override setter of checkbox in VORowImpl and i do some DML to change several records in database .

    truly: region created with readonly VO ,  VO created with database view . 

    and checkbox field in the view is count(flg_incorrect) .

    when i update  flg_incorrect in data base ,  then value of count(flg_incorrect) will be changed .

    Now problem is ,

    How can i refresh region data on the page ?

     

    thanks

  • 3. Re: refresh region
    Michael Shapira Explorer
    Currently Being Moderated

    Make the transient attribute "Passivate" (you have a checkbox in attribute definition screen)

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points