Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6117765
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T15:21:29+00:00 2026-05-23T15:21:29+00:00

I am working on a Magento module that has a Form where a user

  • 0

I am working on a Magento module that has a Form where a user has to enter a order number. So for this I have included a button in the form that opens a popup window that displays the list of orders.

Heres what i have done
This is the code for the button that opens the popup

<button type="button" class="form-button" onclick="window.open(\''
.Mage::helper("adminhtml")->getUrl('*/inventory_receipt/selectOrder',array()
.'\',\'\',\'height=500,width=550\');"><span>'                               
.Mage::helper('adminhtml')->__('Lookup Order')
.'</span></button>

Then i have created a selectOrder Action in the controller that displays a grid that is almost similar to the grid in the sales/order (just modified Grid.php from sales/order).

Now what i want to implement is when the user clicks on an order, the parent form should be populated with the selected order number and close the popup window.
Can any help on how to get this done? Any help would be appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T15:21:30+00:00Added an answer on May 23, 2026 at 3:21 pm

    Here is what I ended up doing.
    I Followed the steps over here, created an extra column with a button that populates the parent window.
    Code for the same is below

    public function render(Varien_Object $row)
    {
    return '<button type="button" class="form-button" onclick="opener.document.getElementById(\'reference_id\').value='.$row->getIncrementId().'; window.close();"><span>'
                .Mage::helper('adminhtml')->__('Select Order')
                .'</span></button>';
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been working on a custom module for Magento (ver. 1.8.0.0) that shows
I am working on a new payment module for Magento and have come across
I am working on a custom module in magento admin that uses the ‘sales/order_grid_collection’
I am working on ajax module for Shopping cart in Magento. Consider i have
I'm currenty working on a shipping module extension that is used for an order-import
Currenty I'm working on a webshop using an auction module. This auction module has
I am working on a Magento store that has a custom embroidery option for
I am working in a new Filter by Product module in Magento, i have
I am currently working on a Magento extension, and I have overridden a core
I'm trying to create a custom module using Magento's EAV structure and have been

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.