[Solved] Auto Sizing Results
[Solved] Auto Sizing Results
I have 2 fields "First Name" and "Last Name". As we know names are all different lengths. What I am trying to accomplish is to have the results in my report display with appropriate spacing between the names.
What I am getting is:
Mothers Name: firstname lastname
And what I would like to get is:
Mothers Name: firstname lastname
How do I control this so when the report runs it applies correct space between the two fields in regards to the number of characters in the names. One mothers name might be Meg while anothers name might be Margaret. If I set field size too small it cuts off part of the name but if I set it too big then it creates too much space between names. Is there a way to have this size accordingly automatically?
Thanks!
JAGS
What I am getting is:
Mothers Name: firstname lastname
And what I would like to get is:
Mothers Name: firstname lastname
How do I control this so when the report runs it applies correct space between the two fields in regards to the number of characters in the names. One mothers name might be Meg while anothers name might be Margaret. If I set field size too small it cuts off part of the name but if I set it too big then it creates too much space between names. Is there a way to have this size accordingly automatically?
Thanks!
JAGS
Last edited by Hagar Delest on Sun Dec 15, 2013 12:58 pm, edited 1 time in total.
Reason: tagged [Solved].
Reason: tagged [Solved].
Open Office 4.0 on Windows 7 - 64 Bit
Re: Auto Sizing Results
This forum did not show what I am getting results correctly - I have many spaces between first and last name.
Open Office 4.0 on Windows 7 - 64 Bit
Re: Auto Sizing Results
When you need to display that sort of formatting, use the Code button on the Post a Reply or Full Menu screens. or surround your formatted string withJAGS wrote:This forum did not show what I am getting results correctly - I have many spaces between first and last name.
Code: Select all
[code] Formatted string
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
Re: Auto Sizing Results
Your report, should NOT take the data directly as defined in your table. Instead, it should be either from a Query, or, a View . . . and . . . that Query or View will 'calculate' the name for you, including the space.
For example:
The above, will take, whatever text is in the field "First Name", concatenate ( || ) one space ( ' ' ) . . . that is . . . one single quote, a space, one single quote . . . followed by "Last Name". You can assign, in the Query or View, a column name of "Mother Name" . . . or . . . whatever else you desire, and, use that calculated output in your report.
I hope this helps, please be sure to let me / us know.
Sliderule
Thanks to ad [Solved] in your 1st post Subject (edit buton top right) if this isue has been resolved.
For example:
Code: Select all
"First Name" || ' ' || "Last Name"
I hope this helps, please be sure to let me / us know.
Sliderule
Thanks to ad [Solved] in your 1st post Subject (edit buton top right) if this isue has been resolved.
Re: Auto Sizing Results
I added the report builder extension and am building this in design view. Is this what I should be doing? or are you saying I need to be doing this someplace else. I am sorry I am a bit of a newbie to this and am confused.
Thanks
Thanks
Open Office 4.0 on Windows 7 - 64 Bit
Re: Auto Sizing Results
What I am saying is . . . your report . . . should use either a Query, or, a View as the data source. And, that Query or View will 'calculate' the data by combining the "First Name", a space, and, "Last Name" for you . . . therefore . . . the report writer . . . displays that calculated field.
The calculated field . . . may have a length of UP to the maximum length of "First Name" + 1 + maximum length of "Last Name".
I hope this helps, please be sure to let me / us know.
Sliderule
Thanks to add [Solved] in your 1st post Subject (edit buton top right) if this isue has ben resolved.
The calculated field . . . may have a length of UP to the maximum length of "First Name" + 1 + maximum length of "Last Name".
I hope this helps, please be sure to let me / us know.
Sliderule
Thanks to add [Solved] in your 1st post Subject (edit buton top right) if this isue has ben resolved.
Re: Auto Sizing Results
So how do I change my reports source to a query from a table?
Open Office 4.0 on Windows 7 - 64 Bit
Re: Auto Sizing Results
If you have an existing report . . . created using the Oracle Report Writer . . .JAGS wrote:So how do I change my reports source to a query from a table?
- Create and save your Query or View . . . with whatever name you want
- Open your Report in Edit mode
- Open the Report Navigator . . . Press F5 . . . or . . . from the Menu: View -> Report Navigator
- At the top of the Navigator Window . . . click on Report
- In the Data tab that, choose your data source . . . whether a Query or a View
- Place the fields you want on the report.
Sliderule
Thanks to ad [Solved] in your 1st post Subject (edit buton top right) if this isue has ben resolved.
Re: Auto Sizing Results
Ok I have created my query and changed my source to it. How do I add this formula you have given to create a result on the report? Do I add a text box?
I am sorry I am such a newbie - I am trying to do this for a non-profit organization for their membership report. I appreciate your patience.
I am sorry I am such a newbie - I am trying to do this for a non-profit organization for their membership report. I appreciate your patience.
Open Office 4.0 on Windows 7 - 64 Bit
Re: Auto Sizing Results
Just to be clear . . . well . . . at least as clear as mud . . . the Query you have created, it includes the new 'calculated' field of:JAGS wrote:Ok I have created my query and changed my source to it. How do I add this formula you have given to create a result on the report? Do I add a text box?
Code: Select all
"First Name" || ' ' || "Last Name"
The next step is, to REMOVE from your report . . . like you described in your first here . . .
Mothers Name: firstname lastname
So, instead, your revised report . . . take the 'calculated' value, from the Query, for column "Mother Name":
Mothers Name: "Mother Name"
I hope this helps, please be sure to let me / us know.
Sliderule
Thanks to ad [Solved] in your 1st post Subject (edit buton top right) if this isue has ben resolved.
Re: Auto Sizing Results
WOW I am getting it - Thank You So Much
One other question - can I build my report off of multiple sources or just one?
One other question - can I build my report off of multiple sources or just one?
Open Office 4.0 on Windows 7 - 64 Bit
Re: Auto Sizing Results
Just one source . . . that can be either:JAGS wrote:One other question - can I build my report off of multiple sources or just one?
- Table
- View
- Query
- Select statement . . . raw SQL code
Sliderule
Thanks to ad [Solved] in your 1st post Subject (edit buton top right) if this isue has ben resolved.