Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Linking to page from ComplexTableField - possible?


Reply

12 Posts   5660 Views

Avatar
a-tech

2 April 2008 at 2:21pm Community Member, 39 Posts

Thanks again ingo - after posting I make a hack in the complextablefield.js file which helped, but I will try blocking it and see if that acheives the same result without affecting too much else.

Avatar
Ney

11 June 2008 at 1:10am (Last edited: 11 June 2008 1:10am), Community Member, 8 Posts

Hello, I would like to know if u solve this problem with popups and how? I have the same problem when I want to load window different to a popup I would thank u if u can help

Avatar
ScottiouS

24 June 2008 at 12:25am Community Member, 54 Posts

I dealt with this problem like so:

The javascript that's hogging the <a> tags in the table ignores an element if it's an input tag.

So I've used the following to bypass the popup:

   $orderReport->setFieldFormatting(array(
            'Invoice' => '<input type=\"button\" name=\"OrderReport_Popup/index/$ID/\" onclick=\"location.href=this.name;\" value=\"Invoice\" />'));

Again messy code to deal with the popups but, I hope that helps.

Avatar
ScottiouS

10 July 2008 at 12:25pm Community Member, 54 Posts

Also further on this I don't know why I didn't just put:

$orderReport->setFieldFormatting(array(
'Invoice' => '<input type=\"button\" onclick=\"location.href=\'OrderReport_Popup/index/$ID/\';\" value=\"Invoice\" />'));

What was I thinking?