Magento 2: specific store selector for custom module in admin formMagento 2 - Add tree category selector on backend moduleMagento 2: store selector for custom module in admin form302 Redirects for a specific store viewHow to save stores selector result to database in magento 2?Magento 2.1 - Add category selector field in backend custom model formMagento 2 Custom Admin Grid is showing empty pageMagento2 custom form issueHow can i add custom.less file for a specific store in magento 2?how to show product sku in custom admin grid in magento2
Why is Arya visibly scared in the library in S8E3?
Enumerate Derangements
Identifying my late father's D&D stuff found in the attic
Catholic vs Protestant Support for Nazism in Germany
How can I close a gap between my fence and my neighbor's that's on his side of the property line?
Did we get closer to another plane than we were supposed to, or was the pilot just protecting our delicate sensibilities?
I caught several of my students plagiarizing. Could it be my fault as a teacher?
Point of the the Dothraki's attack in GoT S8E3?
Which industry am I working in? Software development or financial services?
Why is B♯ higher than C♭ in 31-ET?
Confused about proofs by contradiction, the Law of the Excluded Middle and existence of consistent axiomatic systems.
Why wasn't the Night King naked in S08E03?
What happens to the Time Stone
My ID is expired, can I fly to the Bahamas with my passport?
Is this homebrew life-stealing melee cantrip unbalanced?
How to reply this mail from potential PhD professor?
Why do we use caret (^) as the symbol for ctrl/control?
Do I really need diodes to receive MIDI?
In Avengers 1, why does Thanos need Loki?
Quoting Yourself
Would glacier 'trees' be plausible?
In a Latex Table, how can I automatically resize cell heights to account for superscripts?
How can I support myself financially as a 17 year old with a loan?
How could a planet have most of its water in the atmosphere?
Magento 2: specific store selector for custom module in admin form
Magento 2 - Add tree category selector on backend moduleMagento 2: store selector for custom module in admin form302 Redirects for a specific store viewHow to save stores selector result to database in magento 2?Magento 2.1 - Add category selector field in backend custom model formMagento 2 Custom Admin Grid is showing empty pageMagento2 custom form issueHow can i add custom.less file for a specific store in magento 2?how to show product sku in custom admin grid in magento2
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
Hello I how add this store selector (first in photo) to my ui_component.
Maybe someone have xml file
magento2
add a comment |
Hello I how add this store selector (first in photo) to my ui_component.
Maybe someone have xml file
magento2
add a comment |
Hello I how add this store selector (first in photo) to my ui_component.
Maybe someone have xml file
magento2
Hello I how add this store selector (first in photo) to my ui_component.
Maybe someone have xml file
magento2
magento2
asked Mar 20 at 13:49
TomaloTomalo
338
338
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Add this in your UI_component file XML
<field name="storeviews">
<argument name="data" xsi:type="array">
<item name="options" xsi:type="object">MagentoCmsUiComponentListingColumnCmsOptions</item>
<item name="config" xsi:type="array">
<item name="dataType" xsi:type="string">int</item>
<item name="label" xsi:type="string" translate="true">wybór multistora</item>
<item name="formElement" xsi:type="string">select</item>
<item name="source" xsi:type="string">block</item>
<item name="dataScope" xsi:type="string">store_id</item>
<item name="default" xsi:type="string">0</item>
<item name="validation" xsi:type="array">
<item name="required-entry" xsi:type="boolean">true</item>
</item>
</item>
</argument>
</field>
This doesn't explain where to add this code or what it does. While this may be the correct solution it offers no value to the next person who won't know what to do with the "answer" you provided.
– domdambrogia
Mar 20 at 23:05
Thank you, I corrected this
– Tomalo
Mar 21 at 21:06
Where is this file found? Why/how does this fix the issue? You didn't correct anything, you just added 7 words that have minimal substance or context to answer the question, and your original answer is a snippet of code. Since you are the author of this question, provide documentation to what led you to the answer of your own question and explain why this is a solution rather than just exclaiming that this works. You might want to look at the docs on how to write a good answer
– domdambrogia
Mar 21 at 21:56
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f266720%2fmagento-2-specific-store-selector-for-custom-module-in-admin-form%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Add this in your UI_component file XML
<field name="storeviews">
<argument name="data" xsi:type="array">
<item name="options" xsi:type="object">MagentoCmsUiComponentListingColumnCmsOptions</item>
<item name="config" xsi:type="array">
<item name="dataType" xsi:type="string">int</item>
<item name="label" xsi:type="string" translate="true">wybór multistora</item>
<item name="formElement" xsi:type="string">select</item>
<item name="source" xsi:type="string">block</item>
<item name="dataScope" xsi:type="string">store_id</item>
<item name="default" xsi:type="string">0</item>
<item name="validation" xsi:type="array">
<item name="required-entry" xsi:type="boolean">true</item>
</item>
</item>
</argument>
</field>
This doesn't explain where to add this code or what it does. While this may be the correct solution it offers no value to the next person who won't know what to do with the "answer" you provided.
– domdambrogia
Mar 20 at 23:05
Thank you, I corrected this
– Tomalo
Mar 21 at 21:06
Where is this file found? Why/how does this fix the issue? You didn't correct anything, you just added 7 words that have minimal substance or context to answer the question, and your original answer is a snippet of code. Since you are the author of this question, provide documentation to what led you to the answer of your own question and explain why this is a solution rather than just exclaiming that this works. You might want to look at the docs on how to write a good answer
– domdambrogia
Mar 21 at 21:56
add a comment |
Add this in your UI_component file XML
<field name="storeviews">
<argument name="data" xsi:type="array">
<item name="options" xsi:type="object">MagentoCmsUiComponentListingColumnCmsOptions</item>
<item name="config" xsi:type="array">
<item name="dataType" xsi:type="string">int</item>
<item name="label" xsi:type="string" translate="true">wybór multistora</item>
<item name="formElement" xsi:type="string">select</item>
<item name="source" xsi:type="string">block</item>
<item name="dataScope" xsi:type="string">store_id</item>
<item name="default" xsi:type="string">0</item>
<item name="validation" xsi:type="array">
<item name="required-entry" xsi:type="boolean">true</item>
</item>
</item>
</argument>
</field>
This doesn't explain where to add this code or what it does. While this may be the correct solution it offers no value to the next person who won't know what to do with the "answer" you provided.
– domdambrogia
Mar 20 at 23:05
Thank you, I corrected this
– Tomalo
Mar 21 at 21:06
Where is this file found? Why/how does this fix the issue? You didn't correct anything, you just added 7 words that have minimal substance or context to answer the question, and your original answer is a snippet of code. Since you are the author of this question, provide documentation to what led you to the answer of your own question and explain why this is a solution rather than just exclaiming that this works. You might want to look at the docs on how to write a good answer
– domdambrogia
Mar 21 at 21:56
add a comment |
Add this in your UI_component file XML
<field name="storeviews">
<argument name="data" xsi:type="array">
<item name="options" xsi:type="object">MagentoCmsUiComponentListingColumnCmsOptions</item>
<item name="config" xsi:type="array">
<item name="dataType" xsi:type="string">int</item>
<item name="label" xsi:type="string" translate="true">wybór multistora</item>
<item name="formElement" xsi:type="string">select</item>
<item name="source" xsi:type="string">block</item>
<item name="dataScope" xsi:type="string">store_id</item>
<item name="default" xsi:type="string">0</item>
<item name="validation" xsi:type="array">
<item name="required-entry" xsi:type="boolean">true</item>
</item>
</item>
</argument>
</field>
Add this in your UI_component file XML
<field name="storeviews">
<argument name="data" xsi:type="array">
<item name="options" xsi:type="object">MagentoCmsUiComponentListingColumnCmsOptions</item>
<item name="config" xsi:type="array">
<item name="dataType" xsi:type="string">int</item>
<item name="label" xsi:type="string" translate="true">wybór multistora</item>
<item name="formElement" xsi:type="string">select</item>
<item name="source" xsi:type="string">block</item>
<item name="dataScope" xsi:type="string">store_id</item>
<item name="default" xsi:type="string">0</item>
<item name="validation" xsi:type="array">
<item name="required-entry" xsi:type="boolean">true</item>
</item>
</item>
</argument>
</field>
edited Mar 21 at 21:55
domdambrogia
13813
13813
answered Mar 20 at 22:13
TomaloTomalo
338
338
This doesn't explain where to add this code or what it does. While this may be the correct solution it offers no value to the next person who won't know what to do with the "answer" you provided.
– domdambrogia
Mar 20 at 23:05
Thank you, I corrected this
– Tomalo
Mar 21 at 21:06
Where is this file found? Why/how does this fix the issue? You didn't correct anything, you just added 7 words that have minimal substance or context to answer the question, and your original answer is a snippet of code. Since you are the author of this question, provide documentation to what led you to the answer of your own question and explain why this is a solution rather than just exclaiming that this works. You might want to look at the docs on how to write a good answer
– domdambrogia
Mar 21 at 21:56
add a comment |
This doesn't explain where to add this code or what it does. While this may be the correct solution it offers no value to the next person who won't know what to do with the "answer" you provided.
– domdambrogia
Mar 20 at 23:05
Thank you, I corrected this
– Tomalo
Mar 21 at 21:06
Where is this file found? Why/how does this fix the issue? You didn't correct anything, you just added 7 words that have minimal substance or context to answer the question, and your original answer is a snippet of code. Since you are the author of this question, provide documentation to what led you to the answer of your own question and explain why this is a solution rather than just exclaiming that this works. You might want to look at the docs on how to write a good answer
– domdambrogia
Mar 21 at 21:56
This doesn't explain where to add this code or what it does. While this may be the correct solution it offers no value to the next person who won't know what to do with the "answer" you provided.
– domdambrogia
Mar 20 at 23:05
This doesn't explain where to add this code or what it does. While this may be the correct solution it offers no value to the next person who won't know what to do with the "answer" you provided.
– domdambrogia
Mar 20 at 23:05
Thank you, I corrected this
– Tomalo
Mar 21 at 21:06
Thank you, I corrected this
– Tomalo
Mar 21 at 21:06
Where is this file found? Why/how does this fix the issue? You didn't correct anything, you just added 7 words that have minimal substance or context to answer the question, and your original answer is a snippet of code. Since you are the author of this question, provide documentation to what led you to the answer of your own question and explain why this is a solution rather than just exclaiming that this works. You might want to look at the docs on how to write a good answer
– domdambrogia
Mar 21 at 21:56
Where is this file found? Why/how does this fix the issue? You didn't correct anything, you just added 7 words that have minimal substance or context to answer the question, and your original answer is a snippet of code. Since you are the author of this question, provide documentation to what led you to the answer of your own question and explain why this is a solution rather than just exclaiming that this works. You might want to look at the docs on how to write a good answer
– domdambrogia
Mar 21 at 21:56
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f266720%2fmagento-2-specific-store-selector-for-custom-module-in-admin-form%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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