How to find Oracle APEX Interactive report template - oracle

I need to make style changes to Oracle apex IR (apex version 4.2). For that purpose where can i find the template of it. ? is it saved inside table or procedure ?

Interactive reports are held in a region and the region can have a template, but has no effect on its content, such as an IR.
While you can define report templates for classic reports, this is not possible for interactive reports.
You cannot control the structure (html) it puts out.
You can however change the style of it by applying CSS to the appropriate elements. You don't have need to alter the source it puts out. Defining selectors and using your browser tools to inspect everything you can definitely influence the look and feel.
Word of warning though: heavily applying CSS will bring some trouble when upgrading to apex 5, as IRs have been changed a lot. This means you'll have to change selectors quite a bit while also doing more setup on the IR.
If you'd supply more info on the kind of change you'd want to make to the IR, answers could be more specific and concrete.

You can find Oracle Interactive reports template from
PAGE RENDERING SECTION
Right Click your INTERACTIVE REPORT
Click Edit Report Attributes
Then template is under Layout and Pagination Section
But i doubt you can edit the template in there.
If you are looking for adding a template to be used in your report then follow these steps
Go to the Main Page of your application
Then go to Shared Components
Then Search for User Interface Section
Under this section, Click Templates, this is where you can add template for any type of item(report, region, page, etc..)

Read these article for customizing report template
http://www.apexninjas.com/blog/2011/03/customizing-report-templates/
http://rimblas.com/blog/2014/05/using-conditions-with-column-templates/
http://www.eberapp.com/pls/apex/f?p=BLOG:READ:0::::ARTICLE:5976400346831048
http://apex.shak.us/post/1145946801/fully-control-your-interactive-reports-toolbar
You can create new template under apex:
Application Builder/Application #/Shared Components/Templates

Related

interactive report filter text is not getting translated in Oracle APEX Application translation

I have a problem in french translation of an application. The application is translated completely fine, but when we run an Interactive Report, the string showing current filter is still in English, not in French. See the following screen shot
Is there a way that we can translate the string showing filter text (in this example "Running" and "Highlight Failed")? Can someone please help with this?
Thanks in Advance.
Interactive Report and Interactive Grid settings are being set in the frontend rather than the backend where all the translation logic is located. Therefore, I don't think it is possible to do this with the standard APEX translation methods.
If you have a basic Report with only little customatization and you really need to translate these filters, I would suggest to create two Reports in the Backend, one for the english version, one for the french version, and use the language application item (usually FSP_LANGUAGE_PREFERENCE) to display one or another.
If you have a complicated report with several private reports or heavy customization, I would advise against this solution and just use both language to name your Report settings like you did in your example.
Another option would be to use Javascript to rename the display filter. Try $('.a-IG-controlsLabel[data-setting="highlight"]') to select the appropriate items. However, it will be kind of hard to find the correct event handlers to trigger this at the right moment.

Change Oracle APEX Search Placeholder Text

I can't seem to figure out why, but my APEX page is showing "APEX.IG.SEARCH" as the search placeholder. How can I change this? I've looked through all of their docs and haven't found anything pointing to a fix.
If I have to, I can use JavaScript to change it, but wanted to see if there's an easier fix first. Also, on 5.0.4 of APEX
It is about *translating (Apex) messages" (https://docs.oracle.com/database/apex-18.2/HTMDB/translating-messages.htm#HTMDB14004). Search that page for APEX.IG.SEARCH; you'll find it under the Interactive Grid Messages Requiring Translation section (which is quite long).
So, what to do about it and how to change it?
while in App Builder, open your application
navigate to its shared components
in there, go to the Globalization section and click Text messages
click "Create text message" and set
Name: APEX.IG.SEARCH
Language: leave it as is (English, probably)
Used in JavaScript: leave it as is (Yes)
Text: put your own message in here; for example, "Enter search criteria and push the GO button"
Apply changes
If you run the page now, you should see the new text in the Interactive Grid Search's field.

odoo / OpenERP V8 - Tutorial on QWeb Reports

I am trying to start with odoo. One of the most import thing for us would be to generate different layout for sale orders.
I've started with this document: https://github.com/odoo/odoodays-2014/blob/master/v8_reporting_engine/index.rst
It is from the "odoodays 2014" and shows how to customize an existing report. This works fine. I don't understand the points under "Generic / particular report".
Now I'm lost trying to add a new report (starting with a copy of the exisiting report) with a custom template.
I've tried to add a new item in the report view in settings, but I can't add any linked qweb views (I've added a new one, but it didn't get a new ID).
I've tried to create a copy in the views directory of the addon but it didn't help.
Is there any tutorial for this ?
Is there somebody who can give me some pointers how to add a new report ?
After searching around I've come to this solution. I've translated all the menu headers from German, because I'm using Odoo in German.
reports are listed in Settings / Reporting / Reports
you can click one of the reports
if you edit one of the reports you can click on "Search for linked QWeb Views" - you can click and change these views. They are in HTML and are used for the data in the reports
New reports are typically added with a plugin.
If you would like to change the report with the website editor you can install the website builder. If you change one of the reports from PDF to HTML (in Settings / Reporting / Reports) you get a popup when you're generating the report.
In this popup you can change the report template. With this you can change the template with the website builder tools.
These reports are saved in the database in the table ir_ui_view. If you change to another database they still have the original reports (this was my big fear - that changing the reports changes them for all databases).
Header and footer are still changed in the company settings with RDL.
So basically everything from the odoodays-2014 document is working like they've showed on this website - it was just pretty hard to find out how these things worked.

Possible to include an image in the meta data in code? VS 2013

I would like to be able to include a screenshot of a control inside my code, this way making control identification easier for new members on my team, is such a thing possible?
Maybe even the ability to just have the image on a network share with the path in a comment, and then have a plugin that when hovering over the link brings up the image?
EDIT (More detail):
I'm creating a test project, the application under test has over 1000 controls, some of them are similar in name and purpose, this can make it difficult at times for developers to reuse the API I am creating because the control name is simply not enough for quick identification of the control in use.
I use the word API very loosely too, none of this stuff will be consumed in web services, and it will always be white box with developers including a project reference and have direct access to the source code.
For every form in my application (The test one), I have a controls.cs file where all the controls for that form in the application under test are listed - This is where I want the hover to screenshot ability in the control definitions.
Another sure factor is that all developers will be using VS2013 (For now the base version), later this could be update 1 or 2.
As the initial author and senior developer on this project, these hover / image references (in the code) will be as useful to me personally as any 3rd party developers, or any later developers to join the initiative.
Thanks again, and I added a bounty!
I believe you can use Whole Tomato's free SourceLinks Visual Studio extension to do what you want - or at least get pretty close to it.
Built-in Functionality:
Out of the box, the extension allows you to specify comment patterns you want users to be able to take an action on. Once the patterns are specified, SourceLinks will highlight any occurrences of those patterns in the text editor. You will be able to double click the highlighted items and perform a pre-configured action (such as opening a link in an internal/external browser, or launching an executable).
You can see an example in the SourceLinks configuration dialog shown below:
(source: wholetomato.com)
So you could use this feature pretty painlessly to define a keyword such as Control Image and then put comments like the following in your code:
// Control Image: my_smart_list.jpg
SourceLinks would allow you double click this text, and you could have that configured to launch the image (using a file:// or http:// url depending on how and where your images are stored) either inside Visual Studio in it's internal browser, or in an external browser.
Custom Tooltips!
Now, if you want to put in some more effort into this and actually write some code, then SourceLinks allows you to create API Extensions to display custom tooltips when the user hovers over the marked text in the editor. The default installation of SourceLinks comes with sample API extensions that you can copy to create your own. See the article linked at the very top of the answer for more details on these samples.
This post in the SourceLinks forum informs us that SourceLinks expects the custom API Extension to return the tooltip value as FlowDocument XAML text. This is awesome news for us, because a FlowDocument can contain many types of elements, including formatted text, hyperlinks, and images.
Imanges in a Flow document can be specified both inline as well as externally.
Hope this helps!
I would use doxygen -- create the images somewhere in the source tree and use doxygen comments. You can embed the \image command in source comments (see docs) and doxygen will generate all the HTML documentation from there. I think doxygen is a great tool for documenting a codebase as you can generate the documentation directly from comments in the source and distribute or host the HTML separately.

Drupal Display Suite Custom View Modes stopped appearing

I have recently noticed something odd with Display Suite. I am rather new to Drupal so if its something on my mistake please do not make fun of me.
But I have noticed that no new custom display settings (view nodes are being added to either node or field collection) previously it worked perfectly but now if I create a new view mode and attaching it to the node / field collection it seems it does not apply to it.
See the photos attached. Any suggestion?
http://oi59.tinypic.com/727fqp.jpg
http://oi59.tinypic.com/jb44cj.jpg
P.S. I have cleared drupal cache but it still keeps not working.
Thanks in advance
Fist I'd say that if you're a new user to Drupal, using Display Suite is really jumping into the deep end. It's a really powerful module and creating View Modes is just the tip of the iceberg of what it can do. Second, when you create a new View Mode, you're doing it for an Entity (such as Content Types, Users, Comments, File - but not so much a single node, nor a field). You can find more info on what View Modes and entities are here. You don't need Display Suite to activate other View Modes but if all you're wanting to do is create a custom view mode, the lightweight module to use for that is Entity View Mode. Lullabot does a nice job of explaining this module here.
Anyhow, modules aside, note that the controls for turning View Modes on and off are only found on the 'Default' view mode for a given content type, ie: when on the Manage Display page of whatever content type you're working with, at the top right under the main tabs, you'll see your activated view modes. If you select 'Default' then you will see the control to turn on/off other view modes.
Now, maybe you're wondering how do you see what a particular View Mode looks. To do this, you're best off using Views as it ties in nicely with View Modes.
Hope that helps.

Resources