Re: [oxid-dev-general] New Relation Table for Articles

2015-09-03 Thread Mirza Ahtasham Ahmad
Hi Nicolas, It seems that was the problem. in the js code in tpl the container reference should point to the ajax controller in my case it was article_facility_ajax. I thought it has to point to the main controller article_extend but I was wrong. Now it works. Thanks alot. *Mit freundliche

Re: [oxid-dev-general] New Relation Table for Articles

2015-09-03 Thread Mirza Ahtasham Ahmad
Doing will get back to you... *Mit freundlichen Grüßen | **Warm Regards**,* Mirza Ahmad M +4917645387460 | Skype: ahtasham82 On Thu, Sep 3, 2015 at 10:38 AM, Nicolas Hodin wrote: > Mirza, > > There is no article_bundle controller, so I think it's another entity. The > aoc parameter

Re: [oxid-dev-general] New Relation Table for Articles

2015-09-03 Thread Nicolas Hodin
Mirza, There is no article_bundle controller, so I think it's another entity. The aoc parameter is used in the render function, when the popup is opened. I was talking about the JS initAoc function which initializes the containers, it is located in the template (article_facility.tpl). Did you just

Re: [oxid-dev-general] New Relation Table for Articles

2015-09-03 Thread Mirza Ahtasham Ahmad
Hi Nicolas, As far as I understood it, it call the actual controller like the article_extent or article_bundle and there in it there is a switch for popup tpl or normal tpl thats why the aoc. So technically the loading of categories or any relation in the left container for the popup should take

Re: [oxid-dev-general] New Relation Table for Articles

2015-09-03 Thread Nicolas Hodin
Hi Mirza, I looked at your code and also to the source code of Oxid back office and it seems that you're doing well, maybe there is just a little thing that you forgot. Did you change the code of the popups/article_facility.tpl file? I saw "container=article_extend" in the js scripts of article_ex

Re: [oxid-dev-general] New Relation Table for Articles

2015-09-03 Thread Mirza Ahtasham Ahmad
Hi Guys, So no one knows the answer? No one know how the left column is loaded in the popup? *Mit freundlichen Grüßen | **Warm Regards**,* Mirza Ahmad M +4917645387460 | Skype: ahtasham82 On Wed, Sep 2, 2015 at 11:17 AM, Mirza Ahtasham Ahmad wrote: > Hi, > > Here the code from artile_e

Re: [oxid-dev-general] New Relation Table for Articles

2015-09-02 Thread Mirza Ahtasham Ahmad
Hi, Here the code from artile_extent.tpl for the buttons.  |  I only changedd the aoc value for my new button and added an extra check for that in article_extend.php } elseif ($iAoc == 3) { $oArticleBundleAjax = oxNew('article_facility_ajax'); $this->_aViewData['oxajax'] = $oArticleB

Re: [oxid-dev-general] New Relation Table for Articles

2015-09-02 Thread Mirza Ahtasham Ahmad
Hi Tim, Here is my _getQuery() method in article_facility_ajax /** * Returns SQL query for data to fetc * * @return string */ protected function _getQuery() { $sFacilitiesTable = $this->_getViewName('facilities'); $sO2CView = $this->_getViewName('ob

Re: [oxid-dev-general] New Relation Table for Articles

2015-09-02 Thread Tim Aniol
Hi Mirza what does the _getQuery() Method in your ajax class do? If you have copied the article_extend_ajax class then it'll be select oxcategories. BR Tim Viele Grüße, Tim Aniol Senior Software-Entwickler Tel.: 0911 / 1809 45 - 30 an...@solutiondrive.de PGP-Key: F2979268

[oxid-dev-general] New Relation Table for Articles

2015-09-02 Thread Mirza Ahtasham Ahmad
Hi Everyone, I have an extra relation for articles. The new Table is named facilities and the relation table is object2facilities. I want to assign the these facilities to the articles just like the relation object2category. oxobject2category and mein object2facility are exactly the same just ins