Elastic menu with dropdown in Flutter - flutter

I've got the next scenario for a Flutter problem:
I have to create a horizontal menu that has a list with a given number of items.
This list contains :
a specific number of items set by user which is a list of strings, so there can be n strings.
the string doesn't contain a character limit, so one string can take up all the container width.
When the number of strings displayed in the UI exceed the width of the container, I need to show the strings that have enough space to be displayed and a dropdown menu that contains all the list items.
I cannot find a good approach on this. Thanks im advance.
I've tried using the layoutbuilder.

Related

Tableau | Display different sheets by selecting option(s) from one particular filter

Is there a way to display different sheets by clicking/selecting values/options from one particular filter?
for example, if I have this filter:
and I need to display a sheet named Departments when I select Commercial from the filter shown in the PtrScn.
However, When I click/select any other options like HR, Information ...etc, I want it to display the associated sheet with the filter "Filter by Sector"
Any hints would be highly appreciated!
NOTE: I use tableau 2019.1 and it does not show "Change Parameter" that might be needed to approach this as I noticed when I have been researching for two days now!
You should use a container (say vertical) where you wanna put your N worksheets one on top of the other one without changing vertical spacing: just let Tableau do its stuff!
Be sure to remove the worksheet titles.
Once you're done, you need to create a parameter in order to handle all the N possible choices, and according to that you need to create N Calculated fields with a condition like this one:
if [Param] = 'Profit' then 'ok' else 'ko' end
Each calculated field will be used as a condition (select just ok values) in your filter selection.
Since the parameter can accept just one value a time, you will have just one of your N worksheet displaying data.
And this is the trick based on the vertical conatiner: if you hide worksheet titles, you will see "something" just for the selected worksheet and Tableau automatically will handle all the vertical space in the container.
The result will look like the following:
Adding to Fabio's great answer, these resources about collapsing containers may be useful:
Sheet swapping using collapsing containers
Automatically resize items in a Tableau container (or make disappear in your case)

How to change the column width/ratio in Flexible Column Layout?

The predefined ratios of sap.f.LayoutType for two columns in Flexible Column Layout are
67/33/- TwoColumnsBeginExpanded
33/67/- TwoColumnsMidExpanded
Is there a way to change the ratio/width of the columns?
I wanted to have a 50%/50% ratio, but it seems not possible according to Documentation
Although the FlexibleColumnLayout can display 2 or 3 pages at one
time, they can never have equal width (50%/50% or 33%/33%/33%). One of
the pages is always larger (expanded) or even takes up the full width
of the control (fullscreen). This is intentional because users should
have a clear indication of what to focus their attention on at any
given moment, for example, a list of items, one particular item, one
item’s details.
Now I'm using sap.ui.layout.ResponsiveSplitter instead.

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.

Display two fields in one line and one just if necessary

I created a standard report with jaspersoft studio.
I want to display two fields in one column (which works already). The second field in the column should just be displayed if it has data (which works too). But It seems that if the second field is not displayed it still takes up space. Or at least the first field isn't vertically aligned in the middle.
I put both in a frame and made them float. Any ideas how to make it align in the middle in the third screenshot?
As Alex K pointed out I just copied the first textfield again and put It over the old frame. When there is no data in the second field I hide the frame and show the textfield. When there is data in the second field I hide the textfield and show the frame.

Filemaker 13 Pro - Trying to create button labels from field entries

I am trying to create dynamic buttons using the entries made in a field. I have a field called shows that contains show names. I want the button labels to reflect those names.
I have looked at using text fields as the labels and Set Field, but I cannot make a loop work to get the names.
Any help or direction is appreciated.
Thanks
It looks like you are trying to do something complicated where you do not need it.
I think, you have a field where you have a list of entries separated by carriage returns and you want every entry to appear as a label on a button.
In FileMaker 13 the default button label can not be calculated, so you will need to create buttons without labels and create and place the labels on top of them.
You will have to set labels to Insert/Merge.. and decide if you use calculated fields or global variables. You will need extra fields for calculating stored labels or you will need to populate your variables through the script.
To get the list item you can use GetValue() with a list (your field) and item number (starts at 1) as parameters.
As Michael mentioned, to make it dynamic you will have to use a portal, you are better off storing your labels as separate records.