Saturday 28 January 2012

Create Report' button is not working

When clicking on the 'Create Report' button, the 'Query Based Report' dialog whose id is CREATEREPT will be opened.
Check if the 'CREATEREPT' dialog definition is correct.
To check this:
- Go to Application Designer.
- Do "Export System XML" and select LIBRARY.xml.
- Find id="CREATEREPT" or label="Query Based Report".
This problem can be due to either of these two reasons.
1. You cannot find any line for id="CREATEREPT" or label="Query Based Report" in LIBRARY.xml .
It means there is no definition for the 'Query Based Report' dialog.
2. beanclass, id, listeners, mboname etc. used for this dialog are incorrect .

You can fix that problem by using the line below:
<dialog beanclass="psdi.webclient.beans.report.CreateReportBean" id="CREATEREPT"
listeners="selected_field_table,available_table_field,params_table" label="Query Based Report"
mboname="USERREPORT" positionattop="true">
3. Edit library.xml using the line above.
4. Import LIBRARY.xml again in Application Designer.

P.S : This problem is not related to security settings.
If there is no access privilege for 'CREATEREPT', the 'Create Report' button would not be displayed.
XXX is the security group and YYY is the application name.
SELECT * FROM APPLICATIONAUTH WHERE GROUPNAME = 'XXX' AND OPTIONNAME = 'CREATEREPT' AND APP = 'YYY'

If a record is returned, it means that the privilege to access that button already exists.

No comments:

Post a Comment