Strapi is showing only the ID in a relation content type. I want to see the postalCode instead of the ID. What do I have to change/edit so that Strapi is showing me the postalCodes which I already entered instead of the IDs?
The option you are searching for is hided by the dropdown ;)
Select "Configure the view" or "Anzeige konfigurieren"
On the presented Screen you can then see under "Relational fields" your relations. Hover over the field you want to edit the display name and select it.
In the opened Modal window you can select the Attribute you want to use (highlighted in the screenshot)...
Related
In my Drupal website, I'm using the paragraphs module to build the pages's main content. One of my paragraph types is called 'News'. This paragraph type contains a field that should reference to a 'recent news items view'. This view is already created, but I can't figure out the setup to reference this view in my paragraph field. I already tried many configurations and followed a few tutorials, all with the same result.
I think the issue lies with creating the new field. When creating the field, I have to select the field type. According to me, this must be 'Reference > Content'
Thereafter I must setup the 'Field settings > Type of item to reference'. There I go for 'Content > Content'.
The problem now is that I can only select my 'content types' as a reference, while I must be able to select a view.
So my final question is; Which configuration to choose, so I can select a view as output?
Views are not referenceable by a field by default. You need either the Views Reference module:
https://www.drupal.org/project/viewsreference
... or the Block Reference module:
https://www.drupal.org/project/blockreference
This will allow you to add to your paragraph type a field that may reference your 'recent news items' view.
Instead of Reference->Content select Reference->Other.
On the next step change "Type of item to reference" from Content to View (it's at the bottom of the list).
Click "Save field settings"
On the next screen click "Save settings"
Optionally go to "Manage form display" tab and change widget for the field (by default it's autocomplete field)
I need to Show/Hide form fields based on a parent Select field.
For example, I need to show Pen name text field when pen is selected and show Pencil name text field when pencil is selected.
Any ideas?
Got a Nova package for this feature:
https://novapackages.com/packages/epartment/nova-dependency-container
Can anyone, please, help me with Libreoffice Base form creation?
I have the following tables:
And I'm trying to add a form to enter new RESOURCES record with the following fields: [RESOURCE_NAME], [CURRENCY_NAME] and [AMOUNT]. But after 10+ tries I have not succeeded. I have tried adding it via wizard, selecting RESOURCES as main form and CURRENCIES as subform and vice versa. I have tried VIEWS and forms based on them. These tries only gave to me or no possibility to enter new record, either creation of the new CURRENCY.
I don't need to create new currency via this form, I only want to enter new Resource (only enter once, not to modify, not to delete). Since I don't want to remember all the ID's I want to select currency name via DropDown list.
Can anyone provide instructions about how to do it, please?
Thanks.
You do not need a subform for this - just create your form document with RESOURCES as the main form (only form).
You will need a listbox to enter the currency item. A listbox has two fields, a display field and a field that is saved in the table. You will set it up to display CURRENCY_NAME and store CURRENCY_ID.
When you create a listbox, the wizard that pops up may get you what you want. If the wizard falls short:
Make sure the form document is open in design mode: on the "Form Controls" toolbar, the leftmost/topmost icon of a pencil with a triangle should be depressed. If this icon is grayed out, close your document, right-click on its name and choose "Edit".
Right-click on the listbox and choose "Control"; this will open the properties window
On the tab "Data" change the "Type of list contents" to "Sql"
In the field "List content" enter SELECT "CURRENCY_NAME", "CURRENCY_ID" FROM "CURRENCIES" ORDER BY "CURRENCY_NAME"
The Bound Field should default to 1. If it isn't 1, change it to 1.
Close the properties window and save your form. It should work as you want now.
If you want a listbox inside a tablegrid: after you create the table, with the form in edit mode, right-click on the column name you want to change and choose "Replace with" and then "listbox".
Edited to include comment by OP about bound field needing to be 1
Is it possible that using the SiteMap to change the name of the Opportunity button that appears in the Sales navigation pane to any custom name instead of "Opportunities" ? Or this is a fixed name based on the name of the entity ?
The easiest way to do this is to change the display name of the opportunity entity.
I am creating a maintenance page where I want to select a task using browser UI component. What I want to do specifically is to filter and show only tasks that are not done yet. Can I implement this using browser UI component? Does Exact Synergy Enterprise offer other components for this functionality?
You should create your browser Repository Explorer and use it in browsefield UI component.
Go to System tab, process to Setup tab and under the Repository section click Explorer. Locate your Repository group, enter it, click Browsers tab next to Business components, Functional components, etc.
Click Add and provide Name, Caption, Caption suffix fields. Then write your SQL query in Query field. The structure is:
SELECT <column(s)> FROM <database table> WHERE <column(s)> IS NOT NULL ORDER BY <column>.
Leave the Column info field empty for now. Fill in the Result columns field with column name which will be used as a Browser component result.
Finally, add database table name in the Table list field. Click Save + Edit column info button. Edit column names from a list shown below Information section and fill in Header/Term ID field with title, describing your columns (this will be shown in Browser UI for the front-end user). Click Save and test your newly created browser. If something went wrong, repeat steps from the start. Most of the time problem could be wrongly filled Column info field.
Now go to your ASPX page and add browsername attribute to your browsefield UI component. Doing so will set the browserfield component to your newly created browser component. This is that you want to see in your maintenance page when setting up the browsefield UI component:
<ex:cardfield runat="server" id="cf" caption="Item" captionid="0">
<ex:browsefield runat="server" id="p" browsername="pbr" datasource="bc" />
</ex:cardfield>
Hope this gives you quick idea of what you need to do in order to adjust it to your situation with tasks.