is there alternative module rather than computed field in Drupal 7 that allow me to get values by selecting the node field visually (GUI) instead of php code , also to be able to change the value each time i add record?
Related
I'm building a dashboard for a dataset that includes a Location column, and I would like the user to be able to filter based on location. The trouble is that some projects are happening in multiple locations, so that the column is comma separated list of locations, making the normal dropdown filter option cumbersome ("NY, Paris" and "Paris, NY" are treated as different values). While this can be overcome by adding a parameter dropdown box and allowing the user to select an option (say Paris) and then using a Contains function to filter the output, the Parameter drop down box only allows 1 selection to be made. So a search for all project happening in either Paris or New York seems like it would have to be done using 2 separate parameters. Is anyone aware of an elegant workaround for this that will allow multiple selections of locations within a single dropdown.
The inelegant solutions I've come up with are:
Use n parameter boxes and cap the locations that can be filtered in a single view at n.
Have users input a comma separated list as a parameter, parse that for locations and then show all REGEXP CONTAINS matches of that provided list.
Example dataset showing multiple locations per project in the locations column:
Edited to add a link to a sample report here. The problem, in a nutshell is that I would like people to be able to select 2 or more location parameters so that they don't have to limit themselves to viewing 1 location at a time.
One way to filter CSVs (Comma Separated Values) is by using the CSV Filter Control Community Visualisation (click on the icon on the toolbar and select to view all):
Data Tab
Column to filter on: Location
Cross-filtering: Select (☑) (this ensures that the CSV Filter Control filters other charts based on the value(s) selected)
Style Tab
OR instead of AND behaviour: Select (☑)
Editable Google Data Studio Report (Embedded Google Sheets Data Source) and a GIF to elaborate:
I want to make no of columns and column header in react ag-grid dynamic Like for example I have value coming from database as 3 so my no of columns should be 3 automatically and there name/headers should be m1, m2 , m3 respectively.
You can achieve this by dynamically updating the grid's column definition whenever required (in your case when you get new values from database).
Refer the documentation for more.
I have a calculated value in Google Data Studio that a client wants to see as follows:
Result = Value (No filters on page applied) - Value (Filters on page applied dynamically)
I don't know how to calculate or accomplish this in Google Data Studio or if this is possible. Can someone show me if this solution is possible?
There are two workarounds:
Parameters
Instead of using filters, create a parameter1 and a field with the function
Value -
case when parameter1=some_field then Value
else 0 end
Blend
Duplicate the data source and hide all field which shall not be filtered. Blend this data source with the original one and use as joining keys the dimension which are not filtered. Use the field Value in both sets as metrics and rename it as filtered / not filtered.
Add a chart and add in this chart a metric field with a formula substracting these two Value fields.
I have a report in ACCESS that Is based on a query of a table populated by a form with an Option group. ( to try to explain this better - Table is inspector qualifications, the query pulls all of the qualifications for the inspector, the qualifications are selected via option group on a form that populates the fields of the inspector qualification table.) Of course, the choices are stored as numeric values, "1, 2, 3 or 4" in the table, but 4 actually designates a N/A or NONE. Since everything is already built out this way, I am trying to write a code that will run when the report is generated (or opened,) that will take the "4" value entered (if the field equals that) and change it to a Null value /blank in the report - not in the query or table. I still want this report to generate everything else as is - show all records - just change the value if that particular option is the one shown in that field for that particular record.
Anyone know of a good way to do this? Any help would be GREATLY appreciated!!!!
You would just place an 'IIF' in the query that tests for the value you want to change, then either changes it to something else, or retains the original value. The below will test field 'Nbr1' for the presence of a 4, and if found, change it to 'N/A', otherwise it stays the same.
Note! You will need to change the control source in the report to reflect the name you provide (i.e. 'MyChange') because you can't keep the original name.
SELECT Table1.ID, Table1.EMPID, Table1.TestResult,
IIf([Nbr1]=4,"N/A",[Nbr1]) AS MyChange, Table1.Nbr2
FROM Table1;
I have a drupal 7 site with content type that has a field of type List (text) and widget is Select list, I wanted to alter the allowed values but unable to because I keep getting an error:
Allowed values list: some values are being removed while currently in use.
What do you suggest? maybe change it through PHPmyadmin for existing nodes?
If data is not much delete the field values entered earlier and
then alter the allowed values.
After that you can reenter the the field values added.