I am using Liferay 7.2. I want to display the viewURL link of an asset publisher in a Display Page Templates page. I couldn’t solve the problem. After searching, I realized that this problem can be solved in three ways:
Method 1:
1- As and admin, in Web Content>Structures create a structure (News Article) and make a Template for that structure.
2- Create page A and add an asset publisher. In this asset publisher: In Asset Selection choose Web Content Article as Asset Type and choose News Article as sub structure. In Display Setting tab choose View in Context as Asset Link Behavior.
3-In Site Builder>Pages create a Display Page Template (page B). Edit it and add an asset publisher similar to page A. However, in page B, in Configuration of asset publisher, in Display Settings choose Show Full Content as Asset Link Behavior and tick Set as the Default Asset Publisher for This Page and Show only assets with Page B as its display page template.
4-Create some News Article. In Display Page Template section, choose Specific Display Page Template and Page B.
In page A, everything is OK. However, when I click on ViewURL of an asset entry, it will redirect to page B. But, in asset publisher section of page B, no results is shown (There are no results.). Means that the chosen asset of page A is not shown in Display Page Template of page B.
Method 2:
Maybe the simplest method is editing Display Page Template (page B) in Section Builder>Content Display add Display Page Template. However, as stated in this issue , the display page content section only shows the summary and no style can be shown. Maybe it is necessary to edit abstract.jsp file. But, I don’t know how to do this.
Method 3:
Create a Widget Template and add it to page B. The article data of the selected asset can be obtained from the URL. However, I couldn’t get the data of the selected article.
I appreciate for any help in this regard.
An Asset Publisher instantiated in a Display Page Template won't show the page Web Content. One way to show an Web Content in a Display Page Template, is to instantiate a Fragment and map the Web Content fields to it, as shown here.
So, to solve your problem, you would need to change Page's B Asset Publisher to one or more Fragments, and map your News Article fields to them.
You could also map the Web Content to your own custom Fragmets, using Fragments lfr-editable fields
<lfr-editable id="unique-id" type="text">
This is editable text!
</lfr-editable>
Another way is to get the Web Content Java Object instance inside a Freemarker (a Fragment, Widget Template, Web Content Template, etc) with this snippet (only works for 7.3+)
${Request.INFO_ITEM}
I am trying to refresh the interactive report on a parent page 1 after updating page 2 which is a modal dialog page mode. The page should close automatically after clicking the submit button (managed by a dynamic action). currently I have "apex.navigation.dialog.close(true);" as the last sequence of Dynamic true action on the modal page 2.
I also created a DA on the parent page to execute javascript code "$('#myirr').trigger('apexrefresh'); "
where #myirr is the static ID of the interactive report i want refreshed automatically. This did not work for me. Please can anyone give me some advice? Thank you for your assistance.
how to generate request pages for multiple pages as I am going to migrating multiple reports from test to prod in Maximo.
is it possible to add generate request page button in the list view of report administration application
You already can generate request page from the Report Administration screen.
Whatever is on your list view is what gets generated when you click on the Generate Request Pages button.
How do I generate a multipage report in iReport where each page contains different invoice of a customer?
Also, each invoice will get its own datasource which is the detail as well as a support form of payment.
I've found how to implement a subreport here:
http://krams915.blogspot.com/2010/12/spring-3-mvc-jasper-sub-reports-using.html but I don't know how to create the multipage.
You can use page break after subreports. The contents after page break will be displayed in another page .
I am using Report Viewer control with the MVC3. When I create a report say Report2.rdlc , and there are 150 records , the pagination of the Report viewer is done. When I click on the page 2 button, a postback function is called , which throws an error as i am using MVC3. Is there any workaround to achieve the records in the page 2 to be displayed.
Or is it possible to display all the records in one page itself? I tried
1) Increasing the height of the Report VIewer and the Report.
2) Setting the ShowPageNavigation to false.
Please Help.
Thankyou in advance.
You have the ReportViewer control inside an MVC view? I have only seen a basic implementation work with hacks/workarounds, often advanced functionality is broken as ReportViewer relies on things from WebForms that aren't available in MVC.
You best approach would be to use an iframe and a WebForm page to get the full functionality or have you tried turning on/off async rendering?