Can any one explain in brief how the CQ5 report related components post the query to crx and renders the data .? | Adobe Higher Education
Skip to main content
Var
Level 4
October 16, 2015
Respondido

Can any one explain in brief how the CQ5 report related components post the query to crx and renders the data .?

  • October 16, 2015
  • 2 respostas
  • 901 Visualizações

Can any one explain in brief how the CQ5 report related components post the query to crx and renders the data in the report tabular format .?

Este tópico foi fechado para respostas.
Melhor resposta por Venugopal_Gumma

an example here ..

http://dev.day.com/docs/en/cq/current/developing/developing-reports.html#Creating%20Your%20Own%20Report%20-%20An%20Example

the example has outlined cq widgetscollection(nodes*) to define the query limiting the nodetype ( to  see the last line ..P:nodeTypes [String[]] = "sling:OsgiConfig")

            N:items [cq:WidgetCollection]
                N:props [cq:Panel]
                    N:items [cq:WidgetCollection]
                        N:title [cq:Widget]
                            P:path [String] = "/libs/cq/reporting/components/commons/title.infinity.json"
                            P:xtype [String] = "cqinclude"
                        N:description [cq:Widget]
                            P:path [String] = "/libs/cq/reporting/components/commons/description.infinity.json"
                            P:xtype [String] = "cqinclude"
                        N:rootPath [cq:Widget]
                            P:fieldLabel [String] = "Root path"
                            P:name [String] = "./report/rootPath"
                            P:xtype [String] = "pathfield"
                        N:processing [cq:Widget]
                            P:path [String] = "/libs/cq/reporting/components/commons/processing.infinity.json"
                            P:xtype [String] = "cqinclude"
                        N:scheduling [cq:Widget]
                            P:path [String] = "/libs/cq/reporting/components/commons/scheduling.infinity.json"
                            P:xtype [String] = "cqinclude"
        N:queryBuilder [nt:unstructured]
            P:nodeTypes [String[]] = "sling:OsgiConfig"

-Venu Gummadala

2 Respostas

Venugopal_Gumma
Level 3
October 16, 2015

Hi ,

I believe it is happening as the page is getting launched .. for e.g. have a look at the " diskusage " component located at /libs/cq/reporting/components/diskusage.

The /libs/cq/reporting/components/diskusage/diskusage.jsp is creating the table .. (look at the function updateUI) ..

in this case the whole query is  handled in jsp by traversing through the nodes .. you may not customize existing reports .. but choose to create one of your own ..

you may also write an scr component and implement your query logic in a java class instead of jsp ..

 

- Venu Gummadala

Venugopal_Gumma
Level 3
October 16, 2015

an example here ..

http://dev.day.com/docs/en/cq/current/developing/developing-reports.html#Creating%20Your%20Own%20Report%20-%20An%20Example

the example has outlined cq widgetscollection(nodes*) to define the query limiting the nodetype ( to  see the last line ..P:nodeTypes [String[]] = "sling:OsgiConfig")

            N:items [cq:WidgetCollection]
                N:props [cq:Panel]
                    N:items [cq:WidgetCollection]
                        N:title [cq:Widget]
                            P:path [String] = "/libs/cq/reporting/components/commons/title.infinity.json"
                            P:xtype [String] = "cqinclude"
                        N:description [cq:Widget]
                            P:path [String] = "/libs/cq/reporting/components/commons/description.infinity.json"
                            P:xtype [String] = "cqinclude"
                        N:rootPath [cq:Widget]
                            P:fieldLabel [String] = "Root path"
                            P:name [String] = "./report/rootPath"
                            P:xtype [String] = "pathfield"
                        N:processing [cq:Widget]
                            P:path [String] = "/libs/cq/reporting/components/commons/processing.infinity.json"
                            P:xtype [String] = "cqinclude"
                        N:scheduling [cq:Widget]
                            P:path [String] = "/libs/cq/reporting/components/commons/scheduling.infinity.json"
                            P:xtype [String] = "cqinclude"
        N:queryBuilder [nt:unstructured]
            P:nodeTypes [String[]] = "sling:OsgiConfig"

-Venu Gummadala