Magento 2 data Grid with UI Component,Why not require Resource ModelMagento2: store_id in UI Listing ComponentHow can i rewrite TierPrice Block in Magento2Argument in DI.xml cannot resolve 'array' to a type definition for element 'argument'Argument problem when passed to Model in custom extensionMagento 2: What's the Difference Between the Two Grid Component Data Providers?Magento 2: Duplicate key-sequence unique identity-constraint 'uniqueVirtualType' fatal error while di:compilesorting not working magento 2Ui Template / Adminhtml issueAdminhtml Grid giving error Magento 2Error during compilation in magento 2.2.2How to allow duplicate entries in admin grid

Why is it a bad idea to hire a hitman to eliminate most corrupt politicians?

How badly should I try to prevent a user from XSSing themselves?

How can I deal with my CEO asking me to hire someone with a higher salary than me, a co-founder?

Why do I get negative height?

What is the opposite of "eschatology"?

Does the Idaho Potato Commission associate potato skins with healthy eating?

Finding the error in an argument

Theorists sure want true answers to this!

Is it possible to map the firing of neurons in the human brain so as to stimulate artificial memories in someone else?

What is a Samsaran Word™?

Are British MPs missing the point, with these 'Indicative Votes'?

Why was Sir Cadogan fired?

Why is the sentence "Das ist eine Nase" correct?

How dangerous is XSS

My ex-girlfriend uses my Apple ID to log in to her iPad. Do I have to give her my Apple ID password to reset it?

How do I exit BASH while loop using modulus operator?

how do we prove that a sum of two periods is still a period?

One verb to replace 'be a member of' a club

Why didn't Boeing produce its own regional jet?

How exploitable/balanced is this homebrew spell: Spell Permanency?

What are the G forces leaving Earth orbit?

What exactly is ineptocracy?

Was the old ablative pronoun "med" or "mēd"?

Should I tell management that I intend to leave due to bad software development practices?



Magento 2 data Grid with UI Component,Why not require Resource Model


Magento2: store_id in UI Listing ComponentHow can i rewrite TierPrice Block in Magento2Argument in DI.xml cannot resolve 'array' to a type definition for element 'argument'Argument problem when passed to Model in custom extensionMagento 2: What's the Difference Between the Two Grid Component Data Providers?Magento 2: Duplicate key-sequence unique identity-constraint 'uniqueVirtualType' fatal error while di:compilesorting not working magento 2Ui Template / Adminhtml issueAdminhtml Grid giving error Magento 2Error during compilation in magento 2.2.2How to allow duplicate entries in admin grid













0















I am developing a Module which have functionality to display,add,edit data in Grid from custom table.



I have inserted some data in table manually and with the help of di.xml and ui component xml,data is showing correctly without Model and Resource Model.



So is this possible to display data without Model and ResourceModel and Collection files?



Please see below di.xml file



<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">

<virtualType name="VendornameModulenameModelResourceModelGridGridCollection" type="MagentoFrameworkViewElementUiComponentDataProviderSearchResult">
<arguments>
<argument name="mainTable" xsi:type="string">manage_data</argument>
<!--
<argument name="resourceModel" xsi:type="string">VendornameModulenameModelResourceModelGrid</argument>
-->
</arguments>
</virtualType>
<type name="MagentoFrameworkViewElementUiComponentDataProviderCollectionFactory">
<arguments>
<argument name="collections" xsi:type="array">
<item name="grid_record_grid_list_data_source" xsi:type="string">VendornameModulenameModelResourceModelGridGridCollection</item>
</argument>
</arguments>
</type>
</config>


Please help me that how is possible this?










share|improve this question


























    0















    I am developing a Module which have functionality to display,add,edit data in Grid from custom table.



    I have inserted some data in table manually and with the help of di.xml and ui component xml,data is showing correctly without Model and Resource Model.



    So is this possible to display data without Model and ResourceModel and Collection files?



    Please see below di.xml file



    <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">

    <virtualType name="VendornameModulenameModelResourceModelGridGridCollection" type="MagentoFrameworkViewElementUiComponentDataProviderSearchResult">
    <arguments>
    <argument name="mainTable" xsi:type="string">manage_data</argument>
    <!--
    <argument name="resourceModel" xsi:type="string">VendornameModulenameModelResourceModelGrid</argument>
    -->
    </arguments>
    </virtualType>
    <type name="MagentoFrameworkViewElementUiComponentDataProviderCollectionFactory">
    <arguments>
    <argument name="collections" xsi:type="array">
    <item name="grid_record_grid_list_data_source" xsi:type="string">VendornameModulenameModelResourceModelGridGridCollection</item>
    </argument>
    </arguments>
    </type>
    </config>


    Please help me that how is possible this?










    share|improve this question
























      0












      0








      0








      I am developing a Module which have functionality to display,add,edit data in Grid from custom table.



      I have inserted some data in table manually and with the help of di.xml and ui component xml,data is showing correctly without Model and Resource Model.



      So is this possible to display data without Model and ResourceModel and Collection files?



      Please see below di.xml file



      <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">

      <virtualType name="VendornameModulenameModelResourceModelGridGridCollection" type="MagentoFrameworkViewElementUiComponentDataProviderSearchResult">
      <arguments>
      <argument name="mainTable" xsi:type="string">manage_data</argument>
      <!--
      <argument name="resourceModel" xsi:type="string">VendornameModulenameModelResourceModelGrid</argument>
      -->
      </arguments>
      </virtualType>
      <type name="MagentoFrameworkViewElementUiComponentDataProviderCollectionFactory">
      <arguments>
      <argument name="collections" xsi:type="array">
      <item name="grid_record_grid_list_data_source" xsi:type="string">VendornameModulenameModelResourceModelGridGridCollection</item>
      </argument>
      </arguments>
      </type>
      </config>


      Please help me that how is possible this?










      share|improve this question














      I am developing a Module which have functionality to display,add,edit data in Grid from custom table.



      I have inserted some data in table manually and with the help of di.xml and ui component xml,data is showing correctly without Model and Resource Model.



      So is this possible to display data without Model and ResourceModel and Collection files?



      Please see below di.xml file



      <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">

      <virtualType name="VendornameModulenameModelResourceModelGridGridCollection" type="MagentoFrameworkViewElementUiComponentDataProviderSearchResult">
      <arguments>
      <argument name="mainTable" xsi:type="string">manage_data</argument>
      <!--
      <argument name="resourceModel" xsi:type="string">VendornameModulenameModelResourceModelGrid</argument>
      -->
      </arguments>
      </virtualType>
      <type name="MagentoFrameworkViewElementUiComponentDataProviderCollectionFactory">
      <arguments>
      <argument name="collections" xsi:type="array">
      <item name="grid_record_grid_list_data_source" xsi:type="string">VendornameModulenameModelResourceModelGridGridCollection</item>
      </argument>
      </arguments>
      </type>
      </config>


      Please help me that how is possible this?







      magento2 uicomponent






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 18 hours ago









      akgolaakgola

      1,452520




      1,452520




















          0






          active

          oldest

          votes












          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%2f268344%2fmagento-2-data-grid-with-ui-component-why-not-require-resource-model%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          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%2f268344%2fmagento-2-data-grid-with-ui-component-why-not-require-resource-model%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

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

          Circuit construction for execution of conditional statements using least significant bitHow are two different registers being used as “control”?How exactly is the stated composite state of the two registers being produced using the $R_zz$ controlled rotations?Efficiently performing controlled rotations in HHLWould this quantum algorithm implementation work?How to prepare a superposed states of odd integers from $1$ to $sqrtN$?Why is this implementation of the order finding algorithm not working?Circuit construction for Hamiltonian simulationHow can I invert the least significant bit of a certain term of a superposed state?Implementing an oracleImplementing a controlled sum operation

          Magento 2 “No Payment Methods” in Admin New OrderHow to integrate Paypal Express Checkout with the Magento APIMagento 1.5 - Sales > Order > edit order and shipping methods disappearAuto Invoice Check/Money Order Payment methodAdd more simple payment methods?Shipping methods not showingWhat should I do to change payment methods if changing the configuration has no effects?1.9 - No Payment Methods showing upMy Payment Methods not Showing for downloadable/virtual product when checkout?Magento2 API to access internal payment methodHow to call an existing payment methods in the registration form?