PowerDesigner 16 - generate a list of tables and column definitions - reporting

Does anyone know how to generate a simple report showing all tables in a model, and their columns (name and a few attributes including NOT NULL)? I worked through the Report Wizard and got totally confused.

I didn't find the previous answer to be very clear.
Select the model from the object browser.
Select Report -> List Report Wizard from the main menu.
Select "EntityAttribute" (logical model) or "Column" (physical model) in the Object Type field of the dialog box and click Next.
Select the columns to include in the report (example) and click Next.
Select the filter and/or sort columns, if any, and click Next.
Enter a name for the List Report and check the "Generate the list report to an external file" (example) if you want the report written to a file, and then click the Finish.

Related

Edit button gone in Interactive Report Oracle APEX

so im trying to create an interactive report using apex. Usually, it will automatically create CRUD operation in the report. But somehow, the edit button (pencil and paper icon) in my interactive report is gone and i don't know how to fix nor adding them manually. Before it was gone, I changed my IR to Classical report since after i upload the table, APEX doesn't show all the columns (only 8 out of 9 column showed). And after that, I return the table into IR since all the column showed, but this is where the problem started.
Any thoughts?
go to report's Attributes properties tab (on the right hand side of the Page Designer screen)
set the Link property to "Link to Custom target"
target will be "page in this application"
choose it from list of values (or type it manually, if you know its number)
as you'll want to pass item(s) value(s) from the report to form page, set items
That's all.

Pass detail items from a SSRS Matrix report

In a SSRS matrix report there is a need to click a data value and go to another report to display the details of that aggregate data.
Here is the table:
student_id course School
1 English A
2 Math A
3 English B
4 English A
The corresponding SSRS report is as following:
School English Math
A 2 1
B 1 0
requirement is: click 2 (school A with English) it will go to another report as below:
Student_id School
1 A
4 A
You need to create a sub report that takes the required parameters. It's hard to read the question as the formatting of your data sample needs cleaning up but let's assume your subreport will take parameters aclled pSchool and pSubject with values such as 'School A' and 'English'.
Create a new report and name it (e.g. mySubReport) that accepts the required parameters (e.g. pSchool and pSubject). Add whatever you need to this report so it shows the correct results and and test it as normal. This is the report that will get called when you click on the data value.
Once this is working, got back to your original report, right-click the matrix cell you want to be able to click on and click "Textbox properties".
Click the "Action" tab and choose "Go to report".
Select the subreport you created earlier (mySubReport).
In the area below the report selection, add your parameters (e.g. pSchool and pSubject) and set the values from the dropdown list. The dropdown list will show you dataset fields that your matrix is based on.
That's it!
Now when you run the man report and lick on a value, it will pass the fields you from the cell you selected to the subreport and display the results.
If this does not help, edit you question so the structure of your data is clear and I will give a full example.

Oracle Apex 5.1: Report column based on LOV(List of values) showing returned value not display value

I have created an interactive report with a form. In the form I have two select lists. The first select list is a list of values defined in the shared component. And the second select list is another list of values which is also defined in the shared component but this select list populates its LOV based on the selected item in the first select list.
Let the names of the select lists are:
Region.
Country(which is dependent on the selected item in Region field).
Now when I press save/create button in the form, a row is created in the report. The Region column and Country column in the report are both "Plain Text(based on List of Values)". But what I see is the Region column is showing the correct display value of the LOV but the Country column is showing the returned value of the LOV.
I want both of these columns show the display values rather than the returned value. Could anyone help me find the solution?
Are you using the same LOVs in form and interactive report? If so and in the conditional LOV (countries) you refer your form item (ex. PX_REGION) it will not work correctly in IR. Probably IR is showing the returned value because the option "show extra values" is checked.
If this is the case my suggestion is to change your IR and instead of a "Plain Text(based on List of Values)" you make it plain text and change the query to an inline query in IR query to obtain the value you want to show.
If you don't want/like to put your LOV queries in different places I suggest you to use this approach shared by Nick Buytaert
Hope this helps you solve your problem.

Adding tables at run time in Telerik Reporting

I've been reading Telerik's documentation and I'm not sure if this is possible: I'm being asked to add tables to a report at run time, without doing so programmatically. A query is run that fetches hierarchical data, and the report owner would like to add a new table to the report for each member of the topmost parent, so that each topmost parent has their own table, with a text box title on top of the table containing the parent's name, in the following pattern:
TopParent1
[Parent1's table]
TopParent2
[Parent2's table]
...
Does anyone know how I could go about doing that without doing so programmatically? Every example and/or bit of documentation I've seen pertains to programmatically adding tables.
It is possible to add tables to a report at run time, without doing
so programmatically?
R: It's not possible to add table with out saying programmatically : the size of each element , the exact position , etc .. .. ..
HowTo create a 'hierachical' report with conditional display ?
1/. Hierachical Report.
Read the telerik official tutorial on How to: Create a Master-Detail Report Using a SubReport Item
Using the SubReport report item you can display one report within another report. The data for each SubReport can be completely different.
But You can achiev Parent/chield relation by Passing Parameters to a SubReport.
/!\ Caution /!\
Page sections are not related to the report itself, but are relative to the paper or screen. Thus page sections of nested/detail reports are ignored and only the page sections of the main report are visible.
In order to have sections that repeat on every page similar to page sections, consider using an unbound group (no grouping criteria specified) and set the PrintOnEveryPage property of its sections to True. Be aware that you cannot use PageCount and PageNumber global objects in group sections.
2/. Conditional Display
You will need to hide Report if subreport have no result.
If you want the user to choose if he want some sub report.
You can do it by passing parameter from your calling application to your report constructor.
And use Something like a Bitfield or an enum to choose what to display.
And What about a C# controler in the master report code behind ?
public myReportConstructor(int SubreportToDisplay)
{
InitializeComponent();
Hiden_Display(SubreportToDisplay);
}
private void Hiden_Display(int _code)
{
if ((_code & (int)myEnum.InfoClient) != (int)myEnum.InfoClient)
HideNShrink(SUBREPORT_CLIENT);
if ((_code & (int)myEnum.Item) != (int)myEnum.Item)
{
HideNShrink(SUBREPORT_Product.Item1);
HideNShrink(SUBREPORT_Product.ItemTWO);
}
}
private void HideNShrink(ReportItem target)
{// http://www.telerik.com/support/kb/reporting/details/collapse-the-container-when-hiding-child-report-items-
target.Visible = false;
target.Height = Telerik.Reporting.Drawing.Unit.Pixel(1);
}
I use a little trick here in my designer every subreport item is set to public:
private Telerik.Reporting.TextBox textBox17;
public Telerik.Reporting.SubReport SubReport_Client;
public Sub_Client sub_CLI1;
When hidding Client I will use the SubReport_Client.
That is the SubReport item, the container of my SubReport Sub_Client ;
(Yes they name the container and the containt are the same name, thats confusing at First, but it's Vs/Telerik choice)
When hidding a Sub Report That is in an other Sub Report.
I use the ContaintSubReport, Container of the nested-nested SubReport.
like: sub_CLI1.nested-nested_SubReport
I was able to answer my own question as follows:
Create two blank reports.
On the report chosen to use for the detail report, remove the report header and footer.
Add data source and parameter/s to the detail report (in my case, an SQL data source) and set report data source to the data source created here.
Add group to report with the value of groupings set to the top-most result in query bound to report. (Groupings = Fields.Parent)
Create text box with the value set to the field for the top result (textbox1.Value = Fields.Parent) or use data explorer to drag and drop Fields.Parent into the group header.
Create text boxes to mimic table column heads (one text box for each title of the columns) and place them into the group header with the text box containing the topmost result (or Fields.Parent).
Drag or create text fields for the rest of the fields in the query (Fields.Child1, Fields.Child2, Fields.Child3, etc) in the detail section of the report, aligned vertically with their column header. Preview the report--it should contain a table-like structure that repeats on each top result.
Switch to other report.
Add same parameter/s to that report.
Add subreport item to the detail section of that report.
Set subreport report source to Type and report document, then select the name of the detail report (the first one created here).
Set parameter/s for subreport to the same parameter/s used in the subreport.
Using that, I was able to essentially add a table per item in the first column of the query. The report created first serves as a wrapper for the query, and because it's being placed in the other report as a subreport item with the grouping I created, it is allowed to repeat as much as it needs to in order to display all the rows in the query.
I used the Telerik documentation for master-detail reports and report structures for this.

Pass a parameter from Main Report to a Subreport

Apologies for these recent newbie questions, but I'm obviously not asking the search engines the correct questions.
I have a report I'm trying to reconstruct after upgrading from VS2008 to VS2010 introduced errors into an existing Crystal Report. So, I have a semi-working report I'm trying to duplicate.
I have a report containing some subreports. The Main Report has some parameters in queries within "Database Fields" and I need to pass those fields to a particular Subreport's "Parameter Fields" so that it can then reference those parameters in its own queries.
So, my question is: How do I create the association between the query result on the Main Report and the parameter on the Subreport?
For Crystal Reports for Visual Studio 2010 - That's the only one that works currently, isn't it?
When adding a sub-report [or changing the "Change Subreport Links" for an existing report] you can select the parameter on the subreport from the drop-down on the bottom left of the 'Links' tab (or Subreport Links dialog, if editing an existing subreport)
Once you've selected your field (or Parameter) on the left in the 'Available Fields:' list, click the > button to move it to the right and you'll see link options appear below. so this is the field from the main report you want to use as a parameter for you subreport
Underneath, on the right select the parameter (from you subreport) you wish to link it to. This is the parameter in your subreport that you want to use
does that make sense.
Maybe some images would help.
Depending on your version, the terminology might be slightly different, but you should be able to right-click on the subreport and select "Change Subreport Links".
From the Available Fields column, find your parameters and click the > button to move them over to the "Fields to Link" column. Click OK when you are done.
Now go to your subreport, and make sure that the parameters you linked are available as parameters; you should be able to use these parameters in your Record Selection for your subreport.

Resources