Create custom “Catalog Input Type for Store Owner” for magento 2How can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlHow to introduce a new type for widget parameter in Magento2?main.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Create “Catalog Input Type for Store Owner” for MagentoHow to add custom frontend input for “catalog input type for store owner”Magento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2 Create new “Catalog Input Type for Store Owner” Attribute

Non-inverting amplifier ; Single supply ; Bipolar input

What is this fluorinated organic substance?

Disk usage confusion: 10G missing on Linux home partition on SSD

Was Wolfgang Unziker the last Amateur GM?

Is it theoretically possible to hack printer using scanner tray?

Why are symbols not written in words?

How to idiomatically express the idea "if you can cheat without being caught, do it"

Odd PCB Layout for Voltage Regulator

Simplify the code

Old story where computer expert digitally animates The Lord of the Rings

What does this Pokemon Trainer mean by saying the player is "SHELLOS"?

Why is quantum gravity non-renormalizable?

Is it advisable to inform the CEO about his brother accessing his office?

"Best practices" for formulating MIPs

Why would Dementors torture a Death Eater if they are loyal to Voldemort?

Turing Machines: What is the difference between recognizing, deciding, total, accepting, rejecting?

Does "boire un jus" tend to mean "coffee" or "juice of fruit"?

What is the function of const specifier in enum types?

How can I know (without going to the station) if RATP is offering the Anti Pollution tickets?

Making arrow with a gradual colour

How to extract coefficients of a generating function like this one, using a computer?

Why is the saxophone not common in classical repertoire?

Emphasize numbers in tables

What's the idiomatic (or best) way to trim surrounding whitespace from a string?



Create custom “Catalog Input Type for Store Owner” for magento 2


How can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlHow to introduce a new type for widget parameter in Magento2?main.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Create “Catalog Input Type for Store Owner” for MagentoHow to add custom frontend input for “catalog input type for store owner”Magento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2 Create new “Catalog Input Type for Store Owner” Attribute













3















I need to create a special input type in adminhtml product form. My input will display as a table but save data as a standard text input.



Following the module Edge ProductAttachments I've created the module for magento 1.



Now a I'm trying to convert the module for magento 2, but when create a new product I obtain the error Class inputtable does not exist.



The steps to reproduce the error on an empty magento 2.0.2 installation:




  • Stores -> Product-> Add New Attribute

  • Set Catalog Input Type for Store Owner to Inputtable and Default label to Mytable

  • Click Save Attribute

  • Add the new attribute to Default attribute set


  • Product -> Catalog -> Add Product (simple product)

This is my code:



File: Fun/Tablegrid/etc/module.xml



<?xml version="1.0" encoding="UTF-8"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/Module/etc/module.xsd">
<module name="Fun_Tablegrid" setup_version="1.0.0">
</module>
</config>


File: Fun/Tablegrid/etc/config.xml



<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Store:etc/config.xsd">
<default>
<general>
<validator_data>
<input_types>
<tableinput>tableinput</tableinput>
</input_types>
</validator_data>
</general>
</default>
</config>


File: Fun/Tablegrid/etc/adminhtml/events.xml



<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
<event name="adminhtml_product_attribute_types">
<observer name="tablegrid" instance="FunTablegridObserverAddTableinputAttributeTypeObserver" />
</event>
</config>


File: Fun/Tablegrid/Block/Attribute/Renderer.php



<?php
namespace FunTablegridBlockAttribute;
use MagentoFrameworkCurrency;

class Renderer extends MagentoFrameworkDataFormElementText

public function getHtml()

$this->addClass('input-table');
return parent::getHtml();

//remove the other code to compact question



File: Fun/Tablegrid/Model/Catalog/ResourceModel/Attribute.php



<?php
namespace FunTablegridModelCatalogResourceModel;

class Attribute extends MagentoCatalogModelResourceModelAttribute

protected function _beforeSave(MagentoFrameworkModelAbstractModel $object)
if ($object->getFrontendInput() === 'tableinput')
$object->setBackendType('text');
$object->setFrontendInputRenderer('tablegrid/attribute_renderer');

return parent::_beforeSave($object);




File: Fun/Tablegrid/Observer/AddTableinputAttributeTypeObserver.php



<?php
namespace FunTablegridObserver;
use MagentoFrameworkEventObserverInterface;

class AddTableinputAttributeTypeObserver implements ObserverInterface

public function execute(MagentoFrameworkEventObserver $observer)
$response = $observer->getEvent()->getResponse();
$types = $response->getTypes();
$types[] = [
'value' => 'tableinput',
'label' => __('Tableinput'),
];
$response->setTypes($types);
return $this;











share|improve this question
























  • I also encountered the same problem, when I created a new one "Catalog Input Type for Store Owner" It has an error "Fatal error: Uncaught TypeError: Argument 2 passed to MagentoFrameworkViewElementUiComponentFactory::argumentsResolver() must be of the type array, null given, called in /var/www/html/magento2.3.0/vendor/magento/framework/View/Element/UiComponentFactory.php on line 223 and defined in /var/www/html/magento2.3.0/vendor/magento/framework/View/Element/UiComponentFactory.php:174 Stack trace: #0 /var/www/html/magento2.3.0/vendor/magento/framework/View/Element/UiComponentFactory.php

    – David
    Jan 24 at 9:37











  • If you have a new question, please ask it by clicking the Ask Question button. Include a link to this question if it helps provide context. - From Review

    – Jai
    Jan 24 at 10:01















3















I need to create a special input type in adminhtml product form. My input will display as a table but save data as a standard text input.



Following the module Edge ProductAttachments I've created the module for magento 1.



Now a I'm trying to convert the module for magento 2, but when create a new product I obtain the error Class inputtable does not exist.



The steps to reproduce the error on an empty magento 2.0.2 installation:




  • Stores -> Product-> Add New Attribute

  • Set Catalog Input Type for Store Owner to Inputtable and Default label to Mytable

  • Click Save Attribute

  • Add the new attribute to Default attribute set


  • Product -> Catalog -> Add Product (simple product)

This is my code:



File: Fun/Tablegrid/etc/module.xml



<?xml version="1.0" encoding="UTF-8"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/Module/etc/module.xsd">
<module name="Fun_Tablegrid" setup_version="1.0.0">
</module>
</config>


File: Fun/Tablegrid/etc/config.xml



<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Store:etc/config.xsd">
<default>
<general>
<validator_data>
<input_types>
<tableinput>tableinput</tableinput>
</input_types>
</validator_data>
</general>
</default>
</config>


File: Fun/Tablegrid/etc/adminhtml/events.xml



<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
<event name="adminhtml_product_attribute_types">
<observer name="tablegrid" instance="FunTablegridObserverAddTableinputAttributeTypeObserver" />
</event>
</config>


File: Fun/Tablegrid/Block/Attribute/Renderer.php



<?php
namespace FunTablegridBlockAttribute;
use MagentoFrameworkCurrency;

class Renderer extends MagentoFrameworkDataFormElementText

public function getHtml()

$this->addClass('input-table');
return parent::getHtml();

//remove the other code to compact question



File: Fun/Tablegrid/Model/Catalog/ResourceModel/Attribute.php



<?php
namespace FunTablegridModelCatalogResourceModel;

class Attribute extends MagentoCatalogModelResourceModelAttribute

protected function _beforeSave(MagentoFrameworkModelAbstractModel $object)
if ($object->getFrontendInput() === 'tableinput')
$object->setBackendType('text');
$object->setFrontendInputRenderer('tablegrid/attribute_renderer');

return parent::_beforeSave($object);




File: Fun/Tablegrid/Observer/AddTableinputAttributeTypeObserver.php



<?php
namespace FunTablegridObserver;
use MagentoFrameworkEventObserverInterface;

class AddTableinputAttributeTypeObserver implements ObserverInterface

public function execute(MagentoFrameworkEventObserver $observer)
$response = $observer->getEvent()->getResponse();
$types = $response->getTypes();
$types[] = [
'value' => 'tableinput',
'label' => __('Tableinput'),
];
$response->setTypes($types);
return $this;











share|improve this question
























  • I also encountered the same problem, when I created a new one "Catalog Input Type for Store Owner" It has an error "Fatal error: Uncaught TypeError: Argument 2 passed to MagentoFrameworkViewElementUiComponentFactory::argumentsResolver() must be of the type array, null given, called in /var/www/html/magento2.3.0/vendor/magento/framework/View/Element/UiComponentFactory.php on line 223 and defined in /var/www/html/magento2.3.0/vendor/magento/framework/View/Element/UiComponentFactory.php:174 Stack trace: #0 /var/www/html/magento2.3.0/vendor/magento/framework/View/Element/UiComponentFactory.php

    – David
    Jan 24 at 9:37











  • If you have a new question, please ask it by clicking the Ask Question button. Include a link to this question if it helps provide context. - From Review

    – Jai
    Jan 24 at 10:01













3












3








3


1






I need to create a special input type in adminhtml product form. My input will display as a table but save data as a standard text input.



Following the module Edge ProductAttachments I've created the module for magento 1.



Now a I'm trying to convert the module for magento 2, but when create a new product I obtain the error Class inputtable does not exist.



The steps to reproduce the error on an empty magento 2.0.2 installation:




  • Stores -> Product-> Add New Attribute

  • Set Catalog Input Type for Store Owner to Inputtable and Default label to Mytable

  • Click Save Attribute

  • Add the new attribute to Default attribute set


  • Product -> Catalog -> Add Product (simple product)

This is my code:



File: Fun/Tablegrid/etc/module.xml



<?xml version="1.0" encoding="UTF-8"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/Module/etc/module.xsd">
<module name="Fun_Tablegrid" setup_version="1.0.0">
</module>
</config>


File: Fun/Tablegrid/etc/config.xml



<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Store:etc/config.xsd">
<default>
<general>
<validator_data>
<input_types>
<tableinput>tableinput</tableinput>
</input_types>
</validator_data>
</general>
</default>
</config>


File: Fun/Tablegrid/etc/adminhtml/events.xml



<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
<event name="adminhtml_product_attribute_types">
<observer name="tablegrid" instance="FunTablegridObserverAddTableinputAttributeTypeObserver" />
</event>
</config>


File: Fun/Tablegrid/Block/Attribute/Renderer.php



<?php
namespace FunTablegridBlockAttribute;
use MagentoFrameworkCurrency;

class Renderer extends MagentoFrameworkDataFormElementText

public function getHtml()

$this->addClass('input-table');
return parent::getHtml();

//remove the other code to compact question



File: Fun/Tablegrid/Model/Catalog/ResourceModel/Attribute.php



<?php
namespace FunTablegridModelCatalogResourceModel;

class Attribute extends MagentoCatalogModelResourceModelAttribute

protected function _beforeSave(MagentoFrameworkModelAbstractModel $object)
if ($object->getFrontendInput() === 'tableinput')
$object->setBackendType('text');
$object->setFrontendInputRenderer('tablegrid/attribute_renderer');

return parent::_beforeSave($object);




File: Fun/Tablegrid/Observer/AddTableinputAttributeTypeObserver.php



<?php
namespace FunTablegridObserver;
use MagentoFrameworkEventObserverInterface;

class AddTableinputAttributeTypeObserver implements ObserverInterface

public function execute(MagentoFrameworkEventObserver $observer)
$response = $observer->getEvent()->getResponse();
$types = $response->getTypes();
$types[] = [
'value' => 'tableinput',
'label' => __('Tableinput'),
];
$response->setTypes($types);
return $this;











share|improve this question
















I need to create a special input type in adminhtml product form. My input will display as a table but save data as a standard text input.



Following the module Edge ProductAttachments I've created the module for magento 1.



Now a I'm trying to convert the module for magento 2, but when create a new product I obtain the error Class inputtable does not exist.



The steps to reproduce the error on an empty magento 2.0.2 installation:




  • Stores -> Product-> Add New Attribute

  • Set Catalog Input Type for Store Owner to Inputtable and Default label to Mytable

  • Click Save Attribute

  • Add the new attribute to Default attribute set


  • Product -> Catalog -> Add Product (simple product)

This is my code:



File: Fun/Tablegrid/etc/module.xml



<?xml version="1.0" encoding="UTF-8"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/Module/etc/module.xsd">
<module name="Fun_Tablegrid" setup_version="1.0.0">
</module>
</config>


File: Fun/Tablegrid/etc/config.xml



<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Store:etc/config.xsd">
<default>
<general>
<validator_data>
<input_types>
<tableinput>tableinput</tableinput>
</input_types>
</validator_data>
</general>
</default>
</config>


File: Fun/Tablegrid/etc/adminhtml/events.xml



<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
<event name="adminhtml_product_attribute_types">
<observer name="tablegrid" instance="FunTablegridObserverAddTableinputAttributeTypeObserver" />
</event>
</config>


File: Fun/Tablegrid/Block/Attribute/Renderer.php



<?php
namespace FunTablegridBlockAttribute;
use MagentoFrameworkCurrency;

class Renderer extends MagentoFrameworkDataFormElementText

public function getHtml()

$this->addClass('input-table');
return parent::getHtml();

//remove the other code to compact question



File: Fun/Tablegrid/Model/Catalog/ResourceModel/Attribute.php



<?php
namespace FunTablegridModelCatalogResourceModel;

class Attribute extends MagentoCatalogModelResourceModelAttribute

protected function _beforeSave(MagentoFrameworkModelAbstractModel $object)
if ($object->getFrontendInput() === 'tableinput')
$object->setBackendType('text');
$object->setFrontendInputRenderer('tablegrid/attribute_renderer');

return parent::_beforeSave($object);




File: Fun/Tablegrid/Observer/AddTableinputAttributeTypeObserver.php



<?php
namespace FunTablegridObserver;
use MagentoFrameworkEventObserverInterface;

class AddTableinputAttributeTypeObserver implements ObserverInterface

public function execute(MagentoFrameworkEventObserver $observer)
$response = $observer->getEvent()->getResponse();
$types = $response->getTypes();
$types[] = [
'value' => 'tableinput',
'label' => __('Tableinput'),
];
$response->setTypes($types);
return $this;








magento2 module adminhtml product-attribute






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 9 '18 at 14:11









nikin

8103 silver badges15 bronze badges




8103 silver badges15 bronze badges










asked Feb 23 '16 at 11:31









Carmelo CatalanoCarmelo Catalano

165 bronze badges




165 bronze badges












  • I also encountered the same problem, when I created a new one "Catalog Input Type for Store Owner" It has an error "Fatal error: Uncaught TypeError: Argument 2 passed to MagentoFrameworkViewElementUiComponentFactory::argumentsResolver() must be of the type array, null given, called in /var/www/html/magento2.3.0/vendor/magento/framework/View/Element/UiComponentFactory.php on line 223 and defined in /var/www/html/magento2.3.0/vendor/magento/framework/View/Element/UiComponentFactory.php:174 Stack trace: #0 /var/www/html/magento2.3.0/vendor/magento/framework/View/Element/UiComponentFactory.php

    – David
    Jan 24 at 9:37











  • If you have a new question, please ask it by clicking the Ask Question button. Include a link to this question if it helps provide context. - From Review

    – Jai
    Jan 24 at 10:01

















  • I also encountered the same problem, when I created a new one "Catalog Input Type for Store Owner" It has an error "Fatal error: Uncaught TypeError: Argument 2 passed to MagentoFrameworkViewElementUiComponentFactory::argumentsResolver() must be of the type array, null given, called in /var/www/html/magento2.3.0/vendor/magento/framework/View/Element/UiComponentFactory.php on line 223 and defined in /var/www/html/magento2.3.0/vendor/magento/framework/View/Element/UiComponentFactory.php:174 Stack trace: #0 /var/www/html/magento2.3.0/vendor/magento/framework/View/Element/UiComponentFactory.php

    – David
    Jan 24 at 9:37











  • If you have a new question, please ask it by clicking the Ask Question button. Include a link to this question if it helps provide context. - From Review

    – Jai
    Jan 24 at 10:01
















I also encountered the same problem, when I created a new one "Catalog Input Type for Store Owner" It has an error "Fatal error: Uncaught TypeError: Argument 2 passed to MagentoFrameworkViewElementUiComponentFactory::argumentsResolver() must be of the type array, null given, called in /var/www/html/magento2.3.0/vendor/magento/framework/View/Element/UiComponentFactory.php on line 223 and defined in /var/www/html/magento2.3.0/vendor/magento/framework/View/Element/UiComponentFactory.php:174 Stack trace: #0 /var/www/html/magento2.3.0/vendor/magento/framework/View/Element/UiComponentFactory.php

– David
Jan 24 at 9:37





I also encountered the same problem, when I created a new one "Catalog Input Type for Store Owner" It has an error "Fatal error: Uncaught TypeError: Argument 2 passed to MagentoFrameworkViewElementUiComponentFactory::argumentsResolver() must be of the type array, null given, called in /var/www/html/magento2.3.0/vendor/magento/framework/View/Element/UiComponentFactory.php on line 223 and defined in /var/www/html/magento2.3.0/vendor/magento/framework/View/Element/UiComponentFactory.php:174 Stack trace: #0 /var/www/html/magento2.3.0/vendor/magento/framework/View/Element/UiComponentFactory.php

– David
Jan 24 at 9:37













If you have a new question, please ask it by clicking the Ask Question button. Include a link to this question if it helps provide context. - From Review

– Jai
Jan 24 at 10:01





If you have a new question, please ask it by clicking the Ask Question button. Include a link to this question if it helps provide context. - From Review

– Jai
Jan 24 at 10:01










2 Answers
2






active

oldest

votes


















0














In Fun/Tablegrid/Model/Catalog/ResourceModel/Attribute.php, try:



protected function _beforeSave(MagentoFrameworkModelAbstractModel $object)
if ($object->getFrontendInput() === 'tableinput')
$object->setBackendType('text');
/* Use setData() and specify full class name below */
$object->setData('frontend_input_renderer', 'EndertechNumericBlockAdminhtmlAttributeNumeric');

return parent::_beforeSave($object);






share|improve this answer

























  • This solution is not working

    – Ramesh
    May 10 '18 at 6:15


















0














I have followed same process to create the custom input type and getting below error:




Fatal error: Uncaught TypeError: Argument 2 passed to
MagentoFrameworkViewElementUiComponentFactory::argumentsResolver()
must be of the type array, null given, called in
/var/www/html/envio/vendor/magento/framework/View/Element/UiComponentFactory.php
on line 222 and defined in
/var/www/html/envio/vendor/magento/framework/View/Element/UiComponentFactory.php:174
Stack trace: #0
/var/www/html/envio/vendor/magento/framework/View/Element/UiComponentFactory.php(222):
MagentoFrameworkViewElementUiComponentFactory->argumentsResolver('specification',
NULL) #1
/var/www/html/envio/vendor/magento/module-ui/Component/Form/Field.php(85):
MagentoFrameworkViewElementUiComponentFactory->create('specification',
'groupped_text', Array) #2
/var/www/html/envio/vendor/magento/framework/View/Layout/Generator/UiComponent.php(164):
MagentoUiComponentFormField->prepare() #3
/var/www/html/envio/vendor/magento/framework/View/Layout/Generator/UiComponent.php(161):
MagentoFrameworkViewLayoutGeneratorUiComponent->prepareComponent(O
in
/var/www/html/envio/vendor/magento/framework/View/Element/UiComponentFactory.php
on line 174




Have there anyone fix this issue?? Please help..






share|improve this answer

























  • This section is for answering question not to post question here. you can ask new question and add link of this question to your question post.

    – Jai
    Jun 24 at 15:56













Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f102997%2fcreate-custom-catalog-input-type-for-store-owner-for-magento-2%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














In Fun/Tablegrid/Model/Catalog/ResourceModel/Attribute.php, try:



protected function _beforeSave(MagentoFrameworkModelAbstractModel $object)
if ($object->getFrontendInput() === 'tableinput')
$object->setBackendType('text');
/* Use setData() and specify full class name below */
$object->setData('frontend_input_renderer', 'EndertechNumericBlockAdminhtmlAttributeNumeric');

return parent::_beforeSave($object);






share|improve this answer

























  • This solution is not working

    – Ramesh
    May 10 '18 at 6:15















0














In Fun/Tablegrid/Model/Catalog/ResourceModel/Attribute.php, try:



protected function _beforeSave(MagentoFrameworkModelAbstractModel $object)
if ($object->getFrontendInput() === 'tableinput')
$object->setBackendType('text');
/* Use setData() and specify full class name below */
$object->setData('frontend_input_renderer', 'EndertechNumericBlockAdminhtmlAttributeNumeric');

return parent::_beforeSave($object);






share|improve this answer

























  • This solution is not working

    – Ramesh
    May 10 '18 at 6:15













0












0








0







In Fun/Tablegrid/Model/Catalog/ResourceModel/Attribute.php, try:



protected function _beforeSave(MagentoFrameworkModelAbstractModel $object)
if ($object->getFrontendInput() === 'tableinput')
$object->setBackendType('text');
/* Use setData() and specify full class name below */
$object->setData('frontend_input_renderer', 'EndertechNumericBlockAdminhtmlAttributeNumeric');

return parent::_beforeSave($object);






share|improve this answer















In Fun/Tablegrid/Model/Catalog/ResourceModel/Attribute.php, try:



protected function _beforeSave(MagentoFrameworkModelAbstractModel $object)
if ($object->getFrontendInput() === 'tableinput')
$object->setBackendType('text');
/* Use setData() and specify full class name below */
$object->setData('frontend_input_renderer', 'EndertechNumericBlockAdminhtmlAttributeNumeric');

return parent::_beforeSave($object);







share|improve this answer














share|improve this answer



share|improve this answer








edited Jun 20 '16 at 23:30

























answered Jun 17 '16 at 23:34









Vasily802Vasily802

1471 silver badge11 bronze badges




1471 silver badge11 bronze badges












  • This solution is not working

    – Ramesh
    May 10 '18 at 6:15

















  • This solution is not working

    – Ramesh
    May 10 '18 at 6:15
















This solution is not working

– Ramesh
May 10 '18 at 6:15





This solution is not working

– Ramesh
May 10 '18 at 6:15











0














I have followed same process to create the custom input type and getting below error:




Fatal error: Uncaught TypeError: Argument 2 passed to
MagentoFrameworkViewElementUiComponentFactory::argumentsResolver()
must be of the type array, null given, called in
/var/www/html/envio/vendor/magento/framework/View/Element/UiComponentFactory.php
on line 222 and defined in
/var/www/html/envio/vendor/magento/framework/View/Element/UiComponentFactory.php:174
Stack trace: #0
/var/www/html/envio/vendor/magento/framework/View/Element/UiComponentFactory.php(222):
MagentoFrameworkViewElementUiComponentFactory->argumentsResolver('specification',
NULL) #1
/var/www/html/envio/vendor/magento/module-ui/Component/Form/Field.php(85):
MagentoFrameworkViewElementUiComponentFactory->create('specification',
'groupped_text', Array) #2
/var/www/html/envio/vendor/magento/framework/View/Layout/Generator/UiComponent.php(164):
MagentoUiComponentFormField->prepare() #3
/var/www/html/envio/vendor/magento/framework/View/Layout/Generator/UiComponent.php(161):
MagentoFrameworkViewLayoutGeneratorUiComponent->prepareComponent(O
in
/var/www/html/envio/vendor/magento/framework/View/Element/UiComponentFactory.php
on line 174




Have there anyone fix this issue?? Please help..






share|improve this answer

























  • This section is for answering question not to post question here. you can ask new question and add link of this question to your question post.

    – Jai
    Jun 24 at 15:56















0














I have followed same process to create the custom input type and getting below error:




Fatal error: Uncaught TypeError: Argument 2 passed to
MagentoFrameworkViewElementUiComponentFactory::argumentsResolver()
must be of the type array, null given, called in
/var/www/html/envio/vendor/magento/framework/View/Element/UiComponentFactory.php
on line 222 and defined in
/var/www/html/envio/vendor/magento/framework/View/Element/UiComponentFactory.php:174
Stack trace: #0
/var/www/html/envio/vendor/magento/framework/View/Element/UiComponentFactory.php(222):
MagentoFrameworkViewElementUiComponentFactory->argumentsResolver('specification',
NULL) #1
/var/www/html/envio/vendor/magento/module-ui/Component/Form/Field.php(85):
MagentoFrameworkViewElementUiComponentFactory->create('specification',
'groupped_text', Array) #2
/var/www/html/envio/vendor/magento/framework/View/Layout/Generator/UiComponent.php(164):
MagentoUiComponentFormField->prepare() #3
/var/www/html/envio/vendor/magento/framework/View/Layout/Generator/UiComponent.php(161):
MagentoFrameworkViewLayoutGeneratorUiComponent->prepareComponent(O
in
/var/www/html/envio/vendor/magento/framework/View/Element/UiComponentFactory.php
on line 174




Have there anyone fix this issue?? Please help..






share|improve this answer

























  • This section is for answering question not to post question here. you can ask new question and add link of this question to your question post.

    – Jai
    Jun 24 at 15:56













0












0








0







I have followed same process to create the custom input type and getting below error:




Fatal error: Uncaught TypeError: Argument 2 passed to
MagentoFrameworkViewElementUiComponentFactory::argumentsResolver()
must be of the type array, null given, called in
/var/www/html/envio/vendor/magento/framework/View/Element/UiComponentFactory.php
on line 222 and defined in
/var/www/html/envio/vendor/magento/framework/View/Element/UiComponentFactory.php:174
Stack trace: #0
/var/www/html/envio/vendor/magento/framework/View/Element/UiComponentFactory.php(222):
MagentoFrameworkViewElementUiComponentFactory->argumentsResolver('specification',
NULL) #1
/var/www/html/envio/vendor/magento/module-ui/Component/Form/Field.php(85):
MagentoFrameworkViewElementUiComponentFactory->create('specification',
'groupped_text', Array) #2
/var/www/html/envio/vendor/magento/framework/View/Layout/Generator/UiComponent.php(164):
MagentoUiComponentFormField->prepare() #3
/var/www/html/envio/vendor/magento/framework/View/Layout/Generator/UiComponent.php(161):
MagentoFrameworkViewLayoutGeneratorUiComponent->prepareComponent(O
in
/var/www/html/envio/vendor/magento/framework/View/Element/UiComponentFactory.php
on line 174




Have there anyone fix this issue?? Please help..






share|improve this answer















I have followed same process to create the custom input type and getting below error:




Fatal error: Uncaught TypeError: Argument 2 passed to
MagentoFrameworkViewElementUiComponentFactory::argumentsResolver()
must be of the type array, null given, called in
/var/www/html/envio/vendor/magento/framework/View/Element/UiComponentFactory.php
on line 222 and defined in
/var/www/html/envio/vendor/magento/framework/View/Element/UiComponentFactory.php:174
Stack trace: #0
/var/www/html/envio/vendor/magento/framework/View/Element/UiComponentFactory.php(222):
MagentoFrameworkViewElementUiComponentFactory->argumentsResolver('specification',
NULL) #1
/var/www/html/envio/vendor/magento/module-ui/Component/Form/Field.php(85):
MagentoFrameworkViewElementUiComponentFactory->create('specification',
'groupped_text', Array) #2
/var/www/html/envio/vendor/magento/framework/View/Layout/Generator/UiComponent.php(164):
MagentoUiComponentFormField->prepare() #3
/var/www/html/envio/vendor/magento/framework/View/Layout/Generator/UiComponent.php(161):
MagentoFrameworkViewLayoutGeneratorUiComponent->prepareComponent(O
in
/var/www/html/envio/vendor/magento/framework/View/Element/UiComponentFactory.php
on line 174




Have there anyone fix this issue?? Please help..







share|improve this answer














share|improve this answer



share|improve this answer








edited Jun 24 at 15:45









Jai

3,6518 gold badges31 silver badges64 bronze badges




3,6518 gold badges31 silver badges64 bronze badges










answered Jun 24 at 11:46









Santosh Kumar SinghSantosh Kumar Singh

384 bronze badges




384 bronze badges












  • This section is for answering question not to post question here. you can ask new question and add link of this question to your question post.

    – Jai
    Jun 24 at 15:56

















  • This section is for answering question not to post question here. you can ask new question and add link of this question to your question post.

    – Jai
    Jun 24 at 15:56
















This section is for answering question not to post question here. you can ask new question and add link of this question to your question post.

– Jai
Jun 24 at 15:56





This section is for answering question not to post question here. you can ask new question and add link of this question to your question post.

– Jai
Jun 24 at 15:56

















draft saved

draft discarded
















































Thanks for contributing an answer to Magento Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f102997%2fcreate-custom-catalog-input-type-for-store-owner-for-magento-2%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Get product attribute by attribute group code in magento 2get product attribute by product attribute group in magento 2Magento 2 Log Bundle Product Data in List Page?How to get all product attribute of a attribute group of Default attribute set?Magento 2.1 Create a filter in the product grid by new attributeMagento 2 : Get Product Attribute values By GroupMagento 2 How to get all existing values for one attributeMagento 2 get custom attribute of a single product inside a pluginMagento 2.3 How to get all the Multi Source Inventory (MSI) locations collection in custom module?Magento2: how to develop rest API to get new productsGet product attribute by attribute group code ( [attribute_group_code] ) in magento 2

Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

Magento 2.3: How do i solve this, Not registered handle, on custom form?How can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2.3 : File Upload issue in UI Component FormMagento2 Not registered handleHow to configured Form Builder Js in my custom magento 2.3.0 module?Magento 2.3. How to create image upload field in an admin form