Hi Gabriel,<div>I want to go to different URL for each row in a table view.</div><div>For example, in the below table, based on some criteria, first row URL needs to go to '<b>networks/[NETWORKID]/detail</b>' and second URL needs to go to '<b>networks/[NETWORKID]/other_detail</b>'.</div>
<div><br></div><div><table id="networks" class="table table-bordered table-striped" style="max-width:100%;border-spacing:0px;width:1005px;margin-bottom:25px;border:none;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:4px;border-bottom-left-radius:4px;color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:13px;line-height:18px;text-align:start;background-color:rgb(255,255,255)">
<thead><tr class="table_caption"><th class="table_header" colspan="7" style="background-color:transparent;min-height:35px;padding:8px;vertical-align:bottom;border-top-width:0px;border-right-style:none;border-bottom-style:none;border-left-style:none;border-top-left-radius:0px;border-top-right-radius:4px;border-bottom-right-radius:0px;border-bottom-left-radius:0px">
<h3 class="table_title" style="margin:0px 0px 5px;font-weight:normal;line-height:27px;font-size:24px;font-family:anivers;float:left">Networks</h3><div class="table_actions clearfix" style="float:right;min-width:0px"><a href="http://10.232.91.33/horizon/nova/networks/create" id="networks__action_create" class="btn btn-small ajax-modal btn-create" style="color:rgb(51,51,51);text-decoration:none;display:inline-block;padding:5px 9px;margin-bottom:0px;font-size:11px;line-height:16px;vertical-align:middle;background-color:rgb(245,245,245);background-image:-webkit-linear-gradient(top,rgb(255,255,255),rgb(230,230,230));border-width:1px;border-style:solid;border-color:rgb(204,204,204) rgb(204,204,204) rgb(187,187,187);border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:4px;border-bottom-left-radius:4px;float:none;margin-left:10px;background-repeat:repeat no-repeat">Create Network</a> <button id="networks__action_delete" class="btn btn-small btn-danger btn-delete disabled" name="action" value="networks__delete" type="submit" style="margin:0px 0px 0px 10px;font-size:11px;vertical-align:middle;line-height:16px;font-weight:normal;padding:5px 9px;color:rgb(255,255,255);background-color:rgb(189,54,47);background-image:none;border-width:1px;border-style:solid;border-color:rgba(0,0,0,0.0980392) rgba(0,0,0,0.0980392) rgba(0,0,0,0.247059);border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:4px;border-bottom-left-radius:4px;float:none;background-repeat:repeat no-repeat">Delete Networks</button></div>
</th></tr><tr><th class="multi_select_column" style="background-color:rgb(241,241,241);padding:8px;text-align:center;vertical-align:bottom;border-top-width:1px;border-top-style:solid;border-top-color:rgb(221,221,221);width:25px;border-top-left-radius:4px;border-left-width:1px;border-left-style:solid;border-left-color:rgb(221,221,221)">
<input type="checkbox" style="margin-right:0px;margin-left:0px;vertical-align:middle;font-weight:normal;display:inline;width:auto;height:auto;padding:0px;color:rgb(85,85,85);border:1px solid rgb(204,204,204);border-top-left-radius:0px;border-top-right-radius:0px;border-bottom-right-radius:0px;border-bottom-left-radius:0px"></th>
<th class="sortable anchor normal_column header" style="background-color:rgb(241,241,241);padding:8px;vertical-align:bottom;border-top-width:1px;border-top-style:solid;border-top-color:rgb(221,221,221);border-left-width:1px;border-left-style:solid;border-left-color:rgb(221,221,221)">
Name</th><th class="sortable normal_column header" style="background-color:rgb(241,241,241);padding:8px;vertical-align:bottom;border-top-width:1px;border-top-style:solid;border-top-color:rgb(221,221,221);border-left-width:1px;border-left-style:solid;border-left-color:rgb(221,221,221)">
Subnets Associated</th><th class="sortable normal_column header" style="background-color:rgb(241,241,241);padding:8px;vertical-align:bottom;border-top-width:1px;border-top-style:solid;border-top-color:rgb(221,221,221);border-left-width:1px;border-left-style:solid;border-left-color:rgb(221,221,221)">
Shared</th><th class="sortable normal_column header" style="background-color:rgb(241,241,241);padding:8px;vertical-align:bottom;border-top-width:1px;border-top-style:solid;border-top-color:rgb(221,221,221);border-left-width:1px;border-left-style:solid;border-left-color:rgb(221,221,221)">
Status</th><th class="sortable normal_column header" style="background-color:rgb(241,241,241);padding:8px;vertical-align:bottom;border-top-width:1px;border-top-style:solid;border-top-color:rgb(221,221,221);border-left-width:1px;border-left-style:solid;border-left-color:rgb(221,221,221)">
Admin State</th><th class="actions_column" style="background-color:rgb(241,241,241);padding:8px;vertical-align:bottom;border-top-width:1px;border-top-style:solid;border-top-color:rgb(221,221,221);border-left-width:1px;border-left-style:solid;border-left-color:rgb(221,221,221);border-top-right-radius:4px;border-right-width:1px;border-right-style:solid;border-right-color:rgb(221,221,221)">
Actions</th></tr></thead><tbody><tr id="networks__row__c15a3917-d7fa-4059-9e5c-38a2124995ef" class=""><td class="multi_select_column" style="padding:8px;line-height:18px;text-align:center;vertical-align:middle;border-top-width:1px;border-top-style:solid;border-top-color:rgb(221,221,221);width:25px;background-color:rgb(249,249,249);border-left-width:1px;border-left-style:solid;border-left-color:rgb(221,221,221)">
<input type="checkbox" name="object_ids" value="c15a3917-d7fa-4059-9e5c-38a2124995ef" style="margin-right:0px;margin-left:0px;font-size:13px;vertical-align:middle;font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;display:inline;width:auto;height:auto;padding:0px;color:rgb(85,85,85);border:1px solid rgb(204,204,204);border-top-left-radius:0px;border-top-right-radius:0px;border-bottom-right-radius:0px;border-bottom-left-radius:0px"></td>
<td class="sortable anchor normal_column" style="padding:0px;line-height:18px;vertical-align:middle;border-top-width:1px;border-top-style:solid;border-top-color:rgb(221,221,221);border-left-width:1px;border-left-style:solid;border-left-color:rgb(221,221,221);background-color:rgb(249,249,249)">
<a href="http://10.232.91.33/horizon/nova/networks/c15a3917-d7fa-4059-9e5c-38a2124995ef/detail" style="color:rgb(67,161,214);text-decoration:none;display:block;padding:8px">dsd</a></td><td class="sortable normal_column" style="padding:8px;line-height:18px;vertical-align:middle;border-top-width:1px;border-top-style:solid;border-top-color:rgb(221,221,221);border-left-width:1px;border-left-style:solid;border-left-color:rgb(221,221,221);background-color:rgb(249,249,249)">
<ul style="padding:0px;margin:0px;list-style:none"><li><a href="http://1.1.1.1/24">1.1.1.1/24</a></li></ul></td><td class="sortable normal_column" style="padding:8px;line-height:18px;vertical-align:middle;border-top-width:1px;border-top-style:solid;border-top-color:rgb(221,221,221);border-left-width:1px;border-left-style:solid;border-left-color:rgb(221,221,221);background-color:rgb(249,249,249)">
No</td><td class="sortable normal_column" style="padding:8px;line-height:18px;vertical-align:middle;border-top-width:1px;border-top-style:solid;border-top-color:rgb(221,221,221);border-left-width:1px;border-left-style:solid;border-left-color:rgb(221,221,221);background-color:rgb(249,249,249)">
ACTIVE</td><td class="sortable normal_column" style="padding:8px;line-height:18px;vertical-align:middle;border-top-width:1px;border-top-style:solid;border-top-color:rgb(221,221,221);border-left-width:1px;border-left-style:solid;border-left-color:rgb(221,221,221);background-color:rgb(249,249,249)">
UP</td><td class="actions_column" style="padding:10px;line-height:18px;vertical-align:middle;border-top-width:1px;border-top-style:solid;border-top-color:rgb(221,221,221);width:150px;min-width:140px;min-height:20px;border-left-width:1px;border-left-style:solid;border-left-color:rgb(221,221,221);background-color:rgb(249,249,249);border-right-width:1px;border-right-style:solid;border-right-color:rgb(221,221,221)">
<div class="btn-group" style><a href="http://10.232.91.33/horizon/nova/networks/c15a3917-d7fa-4059-9e5c-38a2124995ef/update" id="networks__row_c15a3917-d7fa-4059-9e5c-38a2124995ef__action_update" class="btn btn-small ajax-modal btn-edit" style="color:rgb(51,51,51);text-decoration:none;display:inline-block;padding:5px 9px;margin-bottom:0px;font-size:11px;line-height:16px;text-align:center;vertical-align:middle;background-color:rgb(245,245,245);background-image:-webkit-linear-gradient(top,rgb(255,255,255),rgb(230,230,230));border-width:1px;border-style:solid;border-color:rgb(204,204,204) rgb(204,204,204) rgb(187,187,187);border-top-left-radius:4px;border-top-right-radius:0px;border-bottom-right-radius:0px;border-bottom-left-radius:4px;float:left;margin-left:0px;background-repeat:repeat no-repeat">Edit Network</a><a class="btn dropdown-toggle ajax-modal btn-edit" href="http://10.232.91.33/horizon/nova/networks/#" style="color:rgb(51,51,51);text-decoration:none;display:inline-block;padding:4px 8px;margin-bottom:0px;font-size:13px;text-align:center;vertical-align:middle;background-color:rgb(245,245,245);background-image:-webkit-linear-gradient(top,rgb(255,255,255),rgb(230,230,230));border-width:1px;border-style:solid;border-color:rgb(204,204,204) rgb(204,204,204) rgb(187,187,187);border-top-left-radius:0px;border-top-right-radius:4px;border-bottom-right-radius:4px;border-bottom-left-radius:0px;float:left;background-repeat:repeat no-repeat"><span class="caret" style="display:inline-block;width:0px;height:0px;vertical-align:top;border-left-width:4px;border-left-style:solid;border-left-color:transparent;border-right-width:4px;border-right-style:solid;border-right-color:transparent;border-top-width:4px;border-top-style:solid;border-top-color:rgb(0,0,0);margin-top:7px;margin-left:0px"></span></a></div>
</td></tr><tr id="networks__row__f0d4201d-ddb8-4365-bd83-ef2bf0d0431c" class=""><td class="multi_select_column" style="padding:8px;line-height:18px;text-align:center;vertical-align:middle;border-top-width:1px;border-top-style:solid;border-top-color:rgb(221,221,221);width:25px;border-left-width:1px;border-left-style:solid;border-left-color:rgb(221,221,221)">
<input type="checkbox" name="object_ids" value="f0d4201d-ddb8-4365-bd83-ef2bf0d0431c" style="margin-right:0px;margin-left:0px;font-size:13px;vertical-align:middle;font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;display:inline;width:auto;height:auto;padding:0px;color:rgb(85,85,85);border:1px solid rgb(204,204,204);border-top-left-radius:0px;border-top-right-radius:0px;border-bottom-right-radius:0px;border-bottom-left-radius:0px"></td>
<td class="sortable anchor normal_column" style="padding:0px;line-height:18px;vertical-align:middle;border-top-width:1px;border-top-style:solid;border-top-color:rgb(221,221,221);border-left-width:1px;border-left-style:solid;border-left-color:rgb(221,221,221)">
<a href="http://10.232.91.33/horizon/nova/networks/f0d4201d-ddb8-4365-bd83-ef2bf0d0431c/detail" style="color:rgb(67,161,214);text-decoration:none;display:block;padding:8px">vdvxc</a></td><td class="sortable normal_column" style="padding:8px;line-height:18px;vertical-align:middle;border-top-width:1px;border-top-style:solid;border-top-color:rgb(221,221,221);border-left-width:1px;border-left-style:solid;border-left-color:rgb(221,221,221)">
<ul style="padding:0px;margin:0px;list-style:none"><li><a href="http://10.10.0.0/24">10.10.0.0/24</a></li></ul></td><td class="sortable normal_column" style="padding:8px;line-height:18px;vertical-align:middle;border-top-width:1px;border-top-style:solid;border-top-color:rgb(221,221,221);border-left-width:1px;border-left-style:solid;border-left-color:rgb(221,221,221)">
No</td><td class="sortable normal_column" style="padding:8px;line-height:18px;vertical-align:middle;border-top-width:1px;border-top-style:solid;border-top-color:rgb(221,221,221);border-left-width:1px;border-left-style:solid;border-left-color:rgb(221,221,221)">
ACTIVE</td><td class="sortable normal_column" style="padding:8px;line-height:18px;vertical-align:middle;border-top-width:1px;border-top-style:solid;border-top-color:rgb(221,221,221);border-left-width:1px;border-left-style:solid;border-left-color:rgb(221,221,221)">
UP</td><td class="actions_column" style="padding:10px;line-height:18px;vertical-align:middle;border-top-width:1px;border-top-style:solid;border-top-color:rgb(221,221,221);width:150px;min-width:140px;min-height:20px;border-left-width:1px;border-left-style:solid;border-left-color:rgb(221,221,221);border-right-width:1px;border-right-style:solid;border-right-color:rgb(221,221,221)">
<div class="btn-group" style><a href="http://10.232.91.33/horizon/nova/networks/f0d4201d-ddb8-4365-bd83-ef2bf0d0431c/update" id="networks__row_f0d4201d-ddb8-4365-bd83-ef2bf0d0431c__action_update" class="btn btn-small ajax-modal btn-edit" style="color:rgb(51,51,51);text-decoration:none;display:inline-block;padding:5px 9px;margin-bottom:0px;font-size:11px;line-height:16px;text-align:center;vertical-align:middle;background-color:rgb(245,245,245);background-image:-webkit-linear-gradient(top,rgb(255,255,255),rgb(230,230,230));border-width:1px;border-style:solid;border-color:rgb(204,204,204) rgb(204,204,204) rgb(187,187,187);border-top-left-radius:4px;border-top-right-radius:0px;border-bottom-right-radius:0px;border-bottom-left-radius:4px;float:left;margin-left:0px;background-repeat:repeat no-repeat">Edit Network</a><a class="btn dropdown-toggle ajax-modal btn-edit" href="http://10.232.91.33/horizon/nova/networks/#" style="color:rgb(51,51,51);text-decoration:none;display:inline-block;padding:4px 8px;margin-bottom:0px;font-size:13px;text-align:center;vertical-align:middle;background-color:rgb(245,245,245);background-image:-webkit-linear-gradient(top,rgb(255,255,255),rgb(230,230,230));border-width:1px;border-style:solid;border-color:rgb(204,204,204) rgb(204,204,204) rgb(187,187,187);border-top-left-radius:0px;border-top-right-radius:4px;border-bottom-right-radius:4px;border-bottom-left-radius:0px;float:left;background-repeat:repeat no-repeat"><span class="caret" style="display:inline-block;width:0px;height:0px;vertical-align:top;border-left-width:4px;border-left-style:solid;border-left-color:transparent;border-right-width:4px;border-right-style:solid;border-right-color:transparent;border-top-width:4px;border-top-style:solid;border-top-color:rgb(0,0,0);margin-top:7px;margin-left:0px"></span></a></div>
</td></tr></tbody><tfoot><tr><td colspan="7" style="padding:8px;line-height:14px;vertical-align:middle;border:1px solid rgb(221,221,221);background-color:rgb(241,241,241);font-size:11px;border-bottom-left-radius:4px;border-bottom-right-radius:4px">
Displaying 2 items</td></tr></tfoot></table><div><br></div><div>I saw the script 'dashboard/networks/url.py', but it is directing to only one page '<b>networks/[NETWORKID]/detail</b>' every time.</div><div>
Can I give different URL's dynamically to each network in networks table view, based on some criteria (Eg. based on its name).</div><div>Please help me.</div><div>Thanks in advance.</div><div><br></div>-- <br>----<div>
Srikanth.</div><br>
</div>