Friday, March 13, 2009

Solved!!!!!!!!!! Reload mask from popup

I solved it!!!!!!!!! yay me!!!!!!!! :) after days if not weeks of trying to figure out what i was doing wrong, i figured it out. it was a matter of placement with the code (below) i had.

after i saved the record, i was trying to reload the mask that called the other mask and it wouldnt work. I figured that that was because it was the parent mask and it was still active - the child mask was still open. so i saved the record, closed the child mask and then reload the parent mask. i didnt see it that way before.

Code snippet
$this->saveRow();
if($this->setLastUpdated()){
$this->p4a->closePopup();
$this->destroy();
$this->p4a->masks->records->doRefreshOriginalPage();
}

i think i have published the code for the doRefreshOriginalPage some time ago on my blog.

it works!!!!!

No comments: