Link to other grid

QuestionsLink to other grid
Gary Brett asked 9 years ago

Hi Abu, I have a grid which outputs staff names [Adviser], I then added a link to another grid from this column which should load only that [Adviser] records. Once clicked it loads page but no grid, the url output is http://mydomain.co.uk/adviser_detail.php/?Adviser=demo+use?

Should this work OK, the field Adviser exists in both grids?

Main Page;
$col = array();
$col["title"] = "Adviser"; // caption of column
$col["name"] = "Adviser"; // grid column name
$col["link"] = "http://mydomain.co.uk/adviser_detail.php/?Adviser={Adviser}";
$col["linkoptions"] = "target='_blank'"; // extra params with <a> tag
$cols[] = $col;

Thank you

3 Answers
Abu Ghufran answered 9 years ago

Should work ok.
Alternate of link/linkoption is:

$col["default"] = "<a target='_blank' href='http://mydomain.co.uk/adviser_detail.php/?Adviser={Adviser}'>{Adviser}</a>";

Gary Brett answered 9 years ago

Yes I thought so too but no joy, would I need a where statement in the detail page

where adviser = $adviser for example?

Abu Ghufran answered 9 years ago

I can suggest if your post / email the detail page code.

Your Answer

0 + 2 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?