Suppress a field and its placeholder in Crystal Reports - crystal-reports

I am working in Crystal Reports to generate a report, and I would like to add a note/remark for some records, so the record should be double-lined for these specific records and a single-line for others
the issue is that the row should be in its standard height unless a specific field has a certain value. In that case, the row should be expanded and field with red-colored note is placed in the expansion.
I tried suppressing the fields but it does not remove the placeholder
The attached is what I am aiming to do, the Zurich Record has a note in red color, announcing the trip is for ladies only.
I will be gratefull for anyone can give me a hand

There are multiple ways to accomplish the same.
Create a name field formula and append the "conditional text" based on logic
if condition then
text:=text + "*dummy text"; // this is just an example
//add conditional color logic for appended text
Create another detail section just below the existing detail, and add conditional show hide logic to suppress.
You have to check the alignment of fields in the previous detail section for "Can Grow" option- like you want "dummy text" to be aligned in height with other column data?. Because with this option, your text field will always appear to be below your row.
You can add another field and place it below Name, and add formula on its height to be suppressed, based on condition. (Again this will mess up if your name field grows into multiple lines, by overlapping this field in the process).

This could be done with a second DetailSection.
Create a new DetailSection below the existing one.
Put the note/remark in the new DetailSection
Edit the suppression-formula of the new DetailSection and insert the suppression-formula that's currently used on the note/remark-field

Related

Filemaker: Build a text from text fields in child rows

My Filemaker app wants to display a text build up from filtered child rows. It should be displayed in a scrollable text field in the layout of the parent row.
Essentially, I have a tree structure where each node contains a paragraph or two of text.
In the layout of any node, I want to display its own text plus the text of all its descendents.
But since these are text fields which can be one or more paragraphs long, the usual list view doesn't satisfy me, as it doesn't expand to show the full text, only one line. Also, it only shows the direct descendents.
I want to show the full text of all descendents, and pick two text fields from them - a headline (optional field) and the main text.
I'm new to Filemaker. Tried to google for an answer to this but could not find anything that fits. Finding the related rows is easy enough, but I can't figure out how to display them in the way I want.
You would need to display your related texts in a portal, since you want to indicate which ones you want to use. Make your portal rows tall enough for your needs and use a scroll bar on the text field if needed. You would need to gather all descendants in one table occurrence to display them in one portal as separate rows.
Alternatively, build up your list in a text field and show this field on the layout. You won't be able to mark any of the original records this way.

SSRS cannot linked text box with field

I group my table by 3 attributes, and set page break on every group, and now i want to display that three attribute outside the table. I want to place them on the top of the report, and when i type the expression and i go in run view it's display only the first value, when i go to the next page nothing change
I tried to drag field from table, from data set, and nothing working.
In expression i type
=Fields!My_Field.Value.
Also if some of that three attributes i placed in table it normally displays values, but when i try to move it somewhere it stops displaying.
The issue is that a table is associated with a dataset but a text box is not.
You can reference a field from a text box using the Dataset field ( =Sum(Fields!AMOUNT.Value, "Dataset1") ) but you need to use an aggregate function like First, Last, or SUM.
It sounds like you don't want to use an aggregate since you are grouping by these fields, though.
display the three attribute outside the table
If your trying to display the current grouping in the table at the top of each page, add a new Row in your matrix above your header row and add your group fields there.

Listing multiple values from the same record multiple times in crystal reports

I have a PDF "student record" that we need to print the values on. Because of this, all values must be printed where they are listed on the pdf and I can't just put everything in a list format. I have attached a screenshot of the bottom lefthand corner of the PDF as an example.
Obviously, grouping wouldn't allow me to print out different values of the same record like this. It probably wouldn't allow me top specify which record goes on which line exactly either.
Is it possible to make a formula field that pulls the correct record for each line?
For example, dragging the "Student.Relationship.FirstName" field always lists whatever 'first' relationship is on their record.
Can I make a formula that specifies that will pull the second relationship record instead of defaulting to the first?
Can I make a formula that can specify "student.relationship.firstname" WHERE student.relationship.type = "father"?
SUBREPORTS.. I think that is what you need. Create a grouping on STUDENT, add Extra sections for the same group and on each section insert a different Subreport that has details as required.
Pass the Student ID as the sub-report link.

crystal report - repeat group header across multiple column

I have a report that has 3 columns and it is grouped by a value that i display in the group header. The report is setup to run down then across.
If the details span across multiple columns, how do I repeat that group header on the next column.
I have already checked "repeat group header on each page" in the group expert.
I have already checked "format groups with multiple column" in the Layout tab of the details section.
It will not let me insert a text object in the group header of each column.
Not sure how to do this. I could write a formula to only show at the top of each column, but not sure if there is a function to find out when the second column has started.
edit
What i want is below
Group Header Text Group Header Text Group Header Text
Detail Values Detail Values Detail Values
Detail Values Detail Values Detail Values
I would like to have the Group Header Text show at the top of each column. Doesn't matter if its the start of a new group or in the middle of the group.
thanks.
okay, I have your solution, the field, that you are grouping by , just place it on to the page header and it will repeat itself on every page until the columns of that group are finished.
Lets say you are grouping by Employee Names, just put the Employee Name field on to the page header and it should solve the issue, I jsut tried it and it worked, thanks.
There is Previous() function available in formulas that allows to show-hide a Text Object based on the change of specific field value from previous to current record.
Is this what are you looking for? Can you edit you question drawing a sample af what you have and what you want?

Prevent a text field within a portal from being truncated, filtering portal contents to display in another layout

I am already using Filemaker Pro 10, I have two questions:
I have a text field in a portal, and whenever I am entering values like "B12C45" in it, it works well, but when the string is longer like "BC12F42, B45z87" it doesn't show whole the strings and omits the letters from it. what Can I do?
My second question is that: I have a portal in a layout, in this portal every row has an id sometimes the id is repeated in other rows but the value of another field called Position is changing. Now I want to have those rows of this portal which have the same id in another layout. I have tried using scripts for it, but scripts don't work well in this case, and they are entering whole the portal in the new layout not the parts I want . How can I write a script which does this?
I will really appreciate any help.
For the first question there are many ways you could display more data in a field and the best one will depend on the particular implementation in your database. There are three main ways to solve this problem: field-size adjustments, text-size adjustments and programming adjustments to dynamically change the text-size.
Field-size adjustments include:
Making the field longer
Using the autosizing aspect of a field so that as the window grows, so does the field
Text-size adjustments include:
Making the font size for that field smaller.
Setting the font style for that field to condensed.
Programatically, though, three things stand out to me as possibilities. I like the third one the best for most of my solutions:
Set the tooltip for the field to "Self" (without the quotes). A user can see the entire contents of the field by hovering the mouse over the field.
In "Define Database" set the field's calculated value to: "TextStyleAdd(self;Condense)" (without the quotes) and make certain that "Do not replace existing value of field" is turned off
Use Conditional formatting to add the Condense style or use a smaller font when the number of the characters in the field gets long.
The steps for using conditional formatting are as follows:
In layout mode select the field and select 'Conditional Formatting...' from the pop-up menu
Add a new condition
Change the condition to 'Formula is'
In the text field enter "Length(Self) > 8" (without the quotes)
Press the "More Formatting..." button
Select "Condense" as the Style from the text
You can add multiple conditions, so you might have "Condense" only for Length(Self) > 8 and another condition for Length(Self) > 16 where you set both "Condense" and reduce the Font Size.
As for your second question, I'm not able to get a picture of what you're trying to do from the question you asked. You might be able do the following in a script:
Go to Related Record [the portal relationship]
Sort Records [by ID]
And then use a summary field (Count of ID) to determine how many of each ID you have.
If you clarified what you were trying to do, gave more information about your tables and table occurrences, we might be able to provide a better answer for this instance.