Categories
Mastering Development

Attaching pulumi_azure.compute.LinuxVirtualMachineScaleSet instance to pulumi_azure.network.ApplicationGateway’s backend pool

I’m trying to figure out how to connect pulumi_azure.compute.LinuxVirtualMachineScaleSet instance to a backend pool of pulumi_azure.network.ApplicationGateway using Python. Looking at documentation of pulumi_azure.compute.LinuxVirtualMachineScaleSet ( https://www.pulumi.com/docs/reference/pkg/azure/compute/linuxvirtualmachinescaleset ) it seems that the chain of necessary links would be: step 1 – create LinuxVirtualMachineScaleSetNetworkInterfaceIpConfiguration instance with appropriate applicationGatewayBackendAddressPoolIds set step 2 – create LinuxVirtualMachineScaleSetNetworkInterface instance with network interface […]

Categories
Mastering Development

Angular NgRx Store TypeError: Cannot assign to read only property ‘primary’ of object ‘[object Object]’

I have an array of objects in the NgRx store like so: [ {email: ‘firstemail@domain.com’, primary: true, type: ‘WORK’}, {email: ‘secondemail@domain.com’, primary: true, type: ‘WORK’}, {email: ‘thirdemail@domain.com’, primary: true, type: ‘WORK’} ] On retrieval of the data from the store, I assign the above array into a property inside my component. I use the above […]

Categories
CMS Magento Mastering Development

Magento 2 trying to add column in installschema.php magento 2.3.5 p1

I am trying to make the length higher than 255 <?php namespace []\[]\Setup; use Magento\Framework\DB\Ddl\Table; use Magento\Framework\Setup\InstallSchemaInterface; use Magento\Framework\Setup\ModuleContextInterface; use Magento\Framework\Setup\SchemaSetupInterface; class InstallSchema implements InstallSchemaInterface { public function install(SchemaSetupInterface $setup, ModuleContextInterface $context) { $installer = $setup; $installer->startSetup(); if (version_compare($context->getVersion(), ‘0.0.1’) < 0) { $tableName = $installer->getTable(‘review_comment’); if ($installer->getConnection()->isTableExists($tableName) != true) { $table = $installer->getConnection() ->newTable($tableName) […]

Categories
CMS Magento Mastering Development

How to save data in custom table onclick custom button from Customer Edit page Adminhtml? magento 2

Basically so far I have added a custom button(highlighted in image) on admin/customer/edit page. In order to add the custom button I have overridden \vendor\magento\module-customer\view\base\ui_component\customer_form.xml TO app\code\Vendor\Customer\view\base\ui_component\customer_form.xml app\code\Vendor\Customer\view\base\ui_component\customer_form.xml <button name=”newsignupreview” class=”Vendor\Customer\Block\Adminhtml\Edit\NewSignupReviewButton”/> app\code\Vendor\Customer\etc\di.xml <preference for=”Vendor\Customer\Api\Data\NewSignupReviewInterface” type=”Vendor\Customer\Model\Customer\NewSignupReview” /> app\code\Vendor\Customer\Block\Adminhtml\Edit\NewSignupReviewButton.php <?php namespace Vendor\Customer\Block\Adminhtml\Edit; use Vendor\Customer\Api\Data\NewSignupReviewInterface; use Magento\Customer\Block\Adminhtml\Edit\GenericButton; use Magento\Customer\Api\AccountManagementInterface; use Magento\Framework\View\Element\UiComponent\Control\ButtonProviderInterface; class NewSignupReviewButton extends GenericButton implements ButtonProviderInterface { […]

Categories
CMS Magento Mastering Development

How to save data in custom table onclick custom button from Customer Edit page Adminhtml? magento 2

Basically so far I have added a custom button(highlighted in image) on admin/customer/edit page. In order to add the custom button I have overridden \vendor\magento\module-customer\view\base\ui_component\customer_form.xml TO app\code\Vendor\Customer\view\base\ui_component\customer_form.xml app\code\Vendor\Customer\view\base\ui_component\customer_form.xml <button name=”newsignupreview” class=”Vendor\Customer\Block\Adminhtml\Edit\NewSignupReviewButton”/> app\code\Vendor\Customer\etc\di.xml <preference for=”Vendor\Customer\Api\Data\NewSignupReviewInterface” type=”Vendor\Customer\Model\Customer\NewSignupReview” /> app\code\Vendor\Customer\Block\Adminhtml\Edit\NewSignupReviewButton.php <?php namespace Vendor\Customer\Block\Adminhtml\Edit; use Vendor\Customer\Api\Data\NewSignupReviewInterface; use Magento\Customer\Block\Adminhtml\Edit\GenericButton; use Magento\Customer\Api\AccountManagementInterface; use Magento\Framework\View\Element\UiComponent\Control\ButtonProviderInterface; class NewSignupReviewButton extends GenericButton implements ButtonProviderInterface { […]

Categories
CMS Magento Mastering Development

How to save data in custom table onclick custom button from Customer Edit page Adminhtml? magento 2

Basically so far I have added a custom button(highlighted in image) on admin/customer/edit page. In order to add the custom button I have overridden \vendor\magento\module-customer\view\base\ui_component\customer_form.xml TO app\code\Vendor\Customer\view\base\ui_component\customer_form.xml app\code\Vendor\Customer\view\base\ui_component\customer_form.xml <button name=”newsignupreview” class=”Vendor\Customer\Block\Adminhtml\Edit\NewSignupReviewButton”/> app\code\Vendor\Customer\etc\di.xml <preference for=”Vendor\Customer\Api\Data\NewSignupReviewInterface” type=”Vendor\Customer\Model\Customer\NewSignupReview” /> app\code\Vendor\Customer\Block\Adminhtml\Edit\NewSignupReviewButton.php <?php namespace Vendor\Customer\Block\Adminhtml\Edit; use Vendor\Customer\Api\Data\NewSignupReviewInterface; use Magento\Customer\Block\Adminhtml\Edit\GenericButton; use Magento\Customer\Api\AccountManagementInterface; use Magento\Framework\View\Element\UiComponent\Control\ButtonProviderInterface; class NewSignupReviewButton extends GenericButton implements ButtonProviderInterface { […]

Categories
Mastering Development

AWS Cognito External User Pool Identity Provider(OIDC)

I’m using Cognito App Client integration with external provider(Twitch) User authentication works fine, but as code from auth server is consumed by Cognito, I’m not sure how should I send Twitch requests with token, which I’d normally get from twitch I Cognito wouldn’t consume this code. I only have Cognito code, which I can use […]

Categories
CMS Magento Mastering Development

How to add Custom Registeration field from admin

Hi i have a form in admin and i want that when select the type this values should reflect on an appropriate selected form but am not able to do so can anyone guide me here is a screenshot InstallSchema.php <?php /** * @category Eecom * @package Eecom_CustomCustomerAttribute */ namespace Eecom\CustomCustomerAttribute\Setup; use Magento\Framework\Setup\InstallSchemaInterface; use Magento\Framework\Setup\ModuleContextInterface; […]

Categories
CMS Magento Mastering Development

How to add Custom Registeration field from admin

Hi i have a form in admin and i want that when select the type this values should reflect on an appropriate selected form but am not able to do so can anyone guide me here is a screenshot InstallSchema.php <?php /** * @category Eecom * @package Eecom_CustomCustomerAttribute */ namespace Eecom\CustomCustomerAttribute\Setup; use Magento\Framework\Setup\InstallSchemaInterface; use Magento\Framework\Setup\ModuleContextInterface; […]

Categories
CMS Magento Mastering Development

Magento 2 admin Grid form Status

Hi am new in magento and am learning module development am trying to add a status drop down button that is yes or no in mt button click form in admin grid but but my admin grid disappear. am sharing the codes below:- AddNewAttribute.php <?php namespace Eecom\CustomCustomerAttribute\Block\Adminhtml\Custom\Edit\Tab; class AddNewAttribute extends \Magento\Backend\Block\Widget\Form\Generic implements \Magento\Backend\Block\Widget\Tab\TabInterface { /** […]