I need to edit the manufacturer input type from dropdown to multiselect.How to do update this from admin?
screenshot:
http://s33.postimg.org/zdhzam5wv/Capture.png
note:
this is duplicate question of In magento how to change the Manufacturer attribute input type from dropdown to multiselect from admin but i have no idea how to do it at magento 2.
there is no option in Magento2 to change attribute input type from dropdown to multiple select
however you can delete and create new attribute with same attribute code from admin.
or If you want to change same attribute than you need to change it directly in Database as below
: frontend_input = 'multipleselect' and backend_type = 'varchar'
Yes, frontend_input should be 'mulitselect' and you need to update your frontend_model to 'Magento\Eav\Model\Entity\Attribute\Backend\ArrayBackend' and NULL out the source_model in the 'eav_attribute' table.
The other 2 answers are both incomplete. So here is a combination of both
Replace YOUR_ATTRIBUTE_ID_INTEGER with your attribute_id like 355
UPDATE `eav_attribute` SET `backend_model`="Magento\\Eav\\Model\\Entity\\Attribute\\Backend\\ArrayBackend",`backend_type`="varchar",`frontend_input`="multiselect", `source_model`=NULL WHERE `attribute_id`=YOUR_ATTRIBUTE_ID_INTEGER LIMIT 1
Related
In TYPO3 9.5 LTS, Is there a TCA option to change the inline new relation btn (1) to something like the form suggest (2) so that a popup does not appear?
Actually, clicking on button (1) opens a popup to select the product to add. I need to avoid this popup with a solution like the one of input field (2) where editor can type some letters and a list of records containing those letters appear. Is not mandatory that the selection is same as (2), even a select field populated with the products could do the job. The important thing is that it doesn't open a popup.
I'm not entirely sure what you want to archive. I'd suggest you install the typo3/cms-styleguide package (version ^9.2 should be suitable for TYPO3 9.5).
In the TCA section you can see examples of all possibilities you have with TCA.
Solved changing the TCA type of the column uid_local that references to the product records from type group to type select and adding the parameter foreign_table with the name of the products table.
This is the result:
Now, to select a product, the editor just have to choose one from the list. No more popup.
How can we notify a user to select a value to a drop-down field in Azure DevOps work item without making it a required field.
The reason of not making it mandatory is because it is not a compulsory information.
But the reason for this 'way to notify' is to make sure that this value is to be filled when it is relevant (which is most of the time - but not all the time).
There is no option to add a notification on a field without making it mandatory, but there is a workaround to force the user to think about the value of the field.
You can add an additional boolean field who is enabled by default. This field can be used to create a rule for your original field, to indicate if it is required or not.
So to set this up you have to add the following fields/rules to your work item type:
2 fields:
originalFieldName (the field with extra attention)
booleanFieldName (Boolean, default value: true)
2 Rules:
When a work item is created
Then set the value of booleanFieldName to 1
When the value of booleanFieldName Equals 1
Then make originalFieldName required
With this solution the user always have to fill in the field or make the field is optional by deselecting the boolean field.
If you just want a message to be displayed in the work item to notify user to select a value. There is a workaround that you can create a customized process. You can customize the fields and pages in the your custom process.
For testing, i create a custom process and add a notification text to a group name to indicate use to select a value for a field. Please refer to below step.
1, Go to the Process section in the Organization Settings, and select the process that you want your custom process inherit from.
2, Then choose the work item type you want to edit. You can edit or add a fields or group to the work item type. For below example, i edit the title for Planning group to add a notification message.
For more information about custom process please refer the official documents.
If you already choose a process to your project. You can refer the detailed steps here to change your project process to the customized process.
Hope you find above helpful.
How I can pass a parameter to a LOV query in SPagoBI?
I am creating a LOV using query ... something like this:
select id, name
from table1
where parent_id = ${parent_id}
When I click on "Test before save" to evaluate query appears window with title "Profile attributes to fill" asking me to put value for parameter parent_id
Here is a text which appears on that page:
The lov needs some profile attributes.
Your personal profile doesn't contain all the necessary attributes.
To proceed with the test assign a value to the missing profile attributes.
After filling with value and click on Test appears loading icon and stays stucked. I have checked logs. There is no error info in any of the following log files: SpagoBI.log, catalina.out, SpagoBI_[1]_OperatorTrace.log, SpagoBIBirtReportEngine.log
I can see via Express Profiler that query is executed using valid passed parameter but why window stay stucked?
You cannot pass parameter from report to the lovs.
The example given before is of the profile attributes which are passed on the basis of the user logged in.
see the below images for using profile attributes.
first create profile attribute you want to use.
Then you have to fill all the profile attribute corresponding to the user
Then create a lov using profile attribute you want i have created using venueId
see the below image
Now test the lov you will get the response see below image.
Use profile attributes when you want report that is specific to the user.
you can use profile attribute in Dataset query like;
select id, name
from table1
where parent_id = '${parent_id}'
and use the created dataset in LOV.
Please note if query returns only 1 row analytical driver linked to document wont be visible, but will function as expected.
You need to wrap the attribute shortcode with single quotes in the query statement
like this
select id, name
from table1
where parent_id = '${parent_id}'
I want to insert todays date in a field in all the Contacts that are in a Target List.
What would be the best way? SQL somehow/somewhere, existing plugin, other ideas?
I am often seeing the use of BeanFactory when I google Sugar Customisations, but has no clue where to insert this code in the sugar files to acomplish what I want.....
Using SugarCRM CE 6.5.8, and Kinamu Reports module to generate the Target List.
Rgds
Petter
Export the Target List so that you get a CSV file
Ensure the CSV contains the Contact records' ID and name fields
Update the CSV to include a column for whatever field you're updating, and add the value you want all records to have
Contacts -> Import Contacts and select Insert & Update to update the records with the new values.
you can add date field in mass update panel
Only fields with the types of relate, parent, enum, contact_id, assigned_user_name, account_id, account_name and date can be added to the mass update panel. Of these you can only create types date and enum with the studio editor (I think).
You would just add 'massupdate' => true to the field description in vardefs.php.
If it's a custom field than search that field file in custom/Extension folder,
and add 'massupdate' => true there do repair and rebuild !
How can I populate the form when the page is loaded
I have tried an query base form, and a automatic fetch, but neither will display any data when the page loads.
You must create "Automated Row Fetch" process on the page. For each item on page change the "Source Type" to "Database column", and enter column name in "Source value or expression".
When using the page wizard to create a query based form, the query given in the wizard is only used to define the fields on the form and create the corresponding page items. It is not used to subsequently populate data.
For that you need to add a process in a region above/before your form. Make the process PL/SQL type and provide your query there. Assuming your form is on page 2 and has fields ID and Name, use:
select name into :P2_NAME from my_table where id = :P2_ID;
The page or link that calls page 2 will need to set the value for P2_ID.