Skip to main content
deleted 80 characters in body
Source Link
Sumit
  • 5k
  • 2
  • 20
  • 35

I've included the following code in sales_order_grid.xml, but it's triggering a form key error. My goal is to export data to a text file. Could you please advise on how to accomplish this? Do I need to address the form key or a URL issue?

<exportButton>
            <settings>
                <options>
                    <option name="txt" xsi:type="array">
                        <item name="value" xsi:type="string">txt</item>
                        <item name="label" xsi:type="string" translate="true">TXT</item>
                        <item name="url" xsi:type="string">Vendor_Module/index/index</item>
                    </option>
                </options>
            </settings>
        </exportButton>

I've included the following code in sales_order_grid.xml, but it's triggering a form key error. My goal is to export data to a text file. Could you please advise on how to accomplish this? Do I need to address the form key or a URL issue?

<exportButton>
            <settings>
                <options>
                    <option name="txt" xsi:type="array">
                        <item name="value" xsi:type="string">txt</item>
                        <item name="label" xsi:type="string" translate="true">TXT</item>
                        <item name="url" xsi:type="string">Vendor_Module/index/index</item>
                    </option>
                </options>
            </settings>
        </exportButton>

I've included the following code in sales_order_grid.xml, but it's triggering a form key error. My goal is to export data to a text file. Could you please advise on how to accomplish this? Do I need to address the form key or a URL issue?

<exportButton>
    <settings>
        <options>
            <option name="txt" xsi:type="array">
                <item name="value" xsi:type="string">txt</item>
                <item name="label" xsi:type="string" translate="true">TXT</item>
                <item name="url" xsi:type="string">Vendor_Module/index/index</item>
            </option>
        </options>
    </settings>
</exportButton>

Export Button in sales ordeorder grid Magento 2

I am adding belowI've included the following code in sales_order_grid.xml, but it showsit's triggering a form key error. i wantMy goal is to export in txtdata to a text file. How can i achieve this. Could you please suggest.advise on how to accomplish this? Do I need to add formkeyaddress the form key or urla URL issue  ?

<exportButton>
            <settings>
                <options>
                    <option name="txt" xsi:type="array">
                        <item name="value" xsi:type="string">txt</item>
                        <item name="label" xsi:type="string" translate="true">TXT</item>
                        <item name="url" xsi:type="string">Vendor_Module/index/index</item>
                    </option>
                </options>
            </settings>
        </exportButton>

Export Button in sales orde grid Magento 2

I am adding below code in sales_order_grid.xml but it shows form key error. i want to export in txt file. How can i achieve this. please suggest. need to add formkey or url issue  ?

<exportButton>
            <settings>
                <options>
                    <option name="txt" xsi:type="array">
                        <item name="value" xsi:type="string">txt</item>
                        <item name="label" xsi:type="string" translate="true">TXT</item>
                        <item name="url" xsi:type="string">Vendor_Module/index/index</item>
                    </option>
                </options>
            </settings>
        </exportButton>

Export Button in sales order grid Magento 2

I've included the following code in sales_order_grid.xml, but it's triggering a form key error. My goal is to export data to a text file. Could you please advise on how to accomplish this? Do I need to address the form key or a URL issue?

<exportButton>
            <settings>
                <options>
                    <option name="txt" xsi:type="array">
                        <item name="value" xsi:type="string">txt</item>
                        <item name="label" xsi:type="string" translate="true">TXT</item>
                        <item name="url" xsi:type="string">Vendor_Module/index/index</item>
                    </option>
                </options>
            </settings>
        </exportButton>
Source Link
Denish Vachhani
  • 4.6k
  • 3
  • 16
  • 47

Export Button in sales orde grid Magento 2

I am adding below code in sales_order_grid.xml but it shows form key error. i want to export in txt file. How can i achieve this. please suggest. need to add formkey or url issue ?

<exportButton>
            <settings>
                <options>
                    <option name="txt" xsi:type="array">
                        <item name="value" xsi:type="string">txt</item>
                        <item name="label" xsi:type="string" translate="true">TXT</item>
                        <item name="url" xsi:type="string">Vendor_Module/index/index</item>
                    </option>
                </options>
            </settings>
        </exportButton>