Show APEX$ROW_ACTION on button click in Oracle Apex - sql

I have an editable Interactive Grid in a page. My page is read only on page load, and there is a separate button 'EDIT' in page, by clicking on which page becomes editable. At the moment, APEX$ROW_ACTION column of IG is visible on page load by default. I want to APEX$ROW_ACTION column only after user clicks on EDIT button.
NOTE : This EDIT button is not the default Edit button of IG

Sorry, but my Javascript is still too weak to solve this (I keep meaning to learn more!). How about going at this a different way?
What if you used 2 grids on the same page, one read-only and the other editable?
The page defaults to displaying the Read-only
They click the Edit button
That hides the Read-only and displays the Editable
This Apex Forum comment describes getting around the 1 IG per page limitation: https://community.oracle.com/tech/developers/discussion/comment/12587490#Comment_12587490

Related

Impossible to solve Sharepoint dropdown behavior

I am currently experiencing some very weird dropdown menu behavior in Sharepoint.
Summary of the issue
Dropdowns do not appear if I Ctrl+R to refresh the page. Dropdown items do appear if I click into the address bar and click enter. Also, if I make the page hit a breakpoint in developer tools while loading, the dropdown will work even when I hit Ctrl+R.
How to reproduce the issue:
Go to the website: http://www.jdaihelpdesk.org/default.aspx
Mouse over one of the menu items at the top, dropdown items will appear.
However, if you hit Ctrl+R to reload the page, when you mouse over one of the menu items, the dropdown will no longer appear.
Even weirder, if you open up developer tools and put a breakpoint on line 5 of the resource file titled http://www.jdaihelpdesk.org/ScriptResource.axd?d=mp6tevUL8oeNESOYJzVjF4zt3gpf2XdWLbE3BbLBQDYBVZVAQp00gRgopkUa1x9lC9s-iuzbDatvYvVbz7xnHLXzyr_vbt6Y91YZqrMVq_6N-PshJk3rZnu9fGlYq2Z8x9XfJo4ZhLF5WQffpPe1KcOEZvI1&t=2e2045e2
, hit Ctrl+R to refresh the page, after hitting continue, the menu item will work.
So it's like there's something to do with when resources are getting loaded or something but that's just a guess after hours of looking at this issue.
What's also weird to me is that hitting Ctrl+R will cause the dropdowns to not appear but clicking in the address bar and hitting Enter to load the page, the dropdowns will appear.
If anybody has any insights that would be awesome!

Kendo Grid page number input firing form submit

We have some search related filter controls(textbox, dropdowns etc) on a form along with Search button which is a SUBMIT button for that form. Below to this we have a Kendo grid with paging enabled.
Problem: When we enter a page number(say 5 out of 100) and hit enter it is going back to page 1 because when we press enter, it is taking form submit and refreshing the form instead of navigating to 5th page
Help me to resolve this..
Got it, took the grid out of form tag so that it works independently

PDF creation with page refresh

I have a page with a viewPanel and a dialog. When an item in the viewPanel is clicked, the dialog opens, prompting the user to make changes to that item, and offering them the option to generate a report of the item in PDF format.
At first, I tried putting the PDF creation onto a button, as described here: http://www.eknori.de/2011-10-25/xpages-to-pdf-with-itext/ However, whenever the button is pressed, I get a "NotFoundError: DOM Exception 8" which seems to stem from the dojo JS. So currently I have an alternative whereby the button simply sets some sessionScope variables and opens a pdf.xsp XPage, where the variables are read back and the PDF is created.
The PDF gets created correctly, but it also means that the page that the user is on won't be refreshed to display their new change in the viewPanel. I've tried adding page redirects at the bottom of the XPage which creates the PDF, but with no luck.
So, how can I create a PDF and prompt a user to download it, but also refresh the page that they are currently on?
Are you isseuing an partial refresh on the button to hide your dialog and to execute the code for pdf generation? If so you I think that there is your problem. What you could do is to do a partial refresh on the onClose() method of the dialog to refresh the viewpanel. In the clientside onunload method you could open a so called xAgent which renders the pdf for you in a new window (window.open(pdf.xsp?docid=xxx). Take a look here: NotesIn9: 039 Creating PDF’s with XPages Part 2
Of cours the problem with this approach is that when you have a button / image in yoru viewpanel row that displays if the report has been created is not shown because the xagent runs after the / during the time the viewpanel row is being refreshed.

How do I implement this type of dynamic UI in a Razor view?

I will start by saying that I am an absolute newbie to web development and to MVC as well.
I want to implement a view for a Subscriber page (part of an MVC4 application dealing with Email marketing). What I want to implement is:
1) When the user clicks the "+ Add a List" button, a new Category should appear on the left and the cursor should blink, meaning it should be ready to receive the name for the category from the user. I also want that whenever the user hovers over any category name on the left, a small bar containing two buttons (edit and delete) should appear which should let the user edit the category name or delete that category. The thing I want is that all of these must happen without reloading the page.
2) When the user clicks the "+ Add Contact" button, a pop up dialog box containing two tabs should appear which lets the user either manually enter the details or upload a CSV to capture the details. Whenever the user clicks the "Add Contact" button or "Upload and Add Contacts" in the pop up dialog box, I want the new contacts to display in the contact list region shown in the picture (once again, without reloading the page). I also want the same hover bar for the contacts too (same as categories).
I am confused as to how to implement this in a Razor view? What do I use - JavaScript/jQuery/AJAX?
I am pretty much lost. Can someone please guide me a little bit so that I can continue and finish my first MVC4 project?
You need some javascript libraries like jQuery UI or maybe Kendo UI, I'd recommend to use jQuery UI at this time. they have many widgets but look at these. and keep in mind that a cshtml view can be look upon like a html page, you can have all tags, css and javascript you want there:
http://jqueryui.com/dialog/
http://jqueryui.com/tabs/
http://jqueryui.com/

bring page to foreground? multipage editor

I'm develpping an RCP user interface. I have a multipage editor in which pages are editors (EditorPart). From a first page in my multipage editor I want to open a second one if a button is pressed. I've managed to do that but the problem that I'm facing is that the created page is visible only if we switch to it, i.e only the tab is visble.. what I want is to directly switch to the new page automatically after its creation. In other words, how can I bring the new page to foreground exactly when it is created.
Can you help me please
Kind Regards,
Jean
It seems to me that the calling the method org.eclipse.ui.part.MultiPageEditorPart.setActivePage(int) should do the trick.