CoinHive

Showing posts with label apex. Show all posts
Showing posts with label apex. Show all posts

Wednesday, April 5, 2017

Recover a deleted Apex page

Sometimes, actually more than sometimes I delete stuff that should not have been deleted. I guess working with SVN and good old windows Ctrl + Z spoiled me.
So when I deleted an important page I initially thought Apex also had an "magically get my page back and save my ass" functionality.
Newsflash: Apex does not have that! ... Or does it? :)
After some googling around I found an article by Peter Raganitsch explaining how to "hack" the export page functionality to do exactly this.
Check the article for a detailed explanation and pictures. It references Apex 4, but the method is still applicable.
In simple steps:
  1. Head over to the export Page functionality
  2. Use Inspect Element on the Page select list, because your deleted page will not be in the list.
  3. Edit the HTML to add your deleted page
  4. Use the "As of xx minutes ago" field to go back in time
  5. Press the export page button and witness the magic
This functionality uses Oracle's FLASHBACK functionality, so how far you can go back is dictated by related settings. Your mileage may vary.




Wednesday, September 28, 2016

Checkboxes and values when paginating

So the basic requirement was simple: "There's this report on a page with checkboxes and these checkboxes should remain checked after pagination.". Hmmmm it's been done here, here, here and also ..... here? I think that last guy just copy pasted Martin D'Souza's blog without even a hint of crediting the original writer. Not cool dude. You could have taken the time to change the link though.

This is not the Martin you are looking for.

So, like this guy, we first used Martins method, which worked perfectly and then my colleague dropped this bomb: "Great! Now in this version of the report we also add values. Could you do the same for the text fields?". "Uuuhmmm okay, you do realize it's not that simple right?"
So long story short, with Serishma's help, I ended up modifying Joel R. Kallman's method to achieve it. I realized we could have used this method for the checkboxes too, but by then we implemented the first method on alot of pages so we didn't change it back.
I made a page on my demo app for future reference and might take the time to put all of the code on this blog.... someday. All of the code should be on the demo app.