How to give link to a Lookup field in sharepoint?

Hi,

     This is my first time in working in sharepoint and i am also learning sharepoint. I have a Parent List named "Orders" and "Tasks" as child list. I was able to link both the list. In the Orders list, i have a lookup colums that shows the count of Tasks for that Order. In that column, it just showing nos but what i need is that when i click on the no, i should show the list of tasks related to that Order in a popup window. How should i do that?

Thanks.

Rajagopalan.

February 18th, 2015 12:17pm

hi

to open a page and filter based on Order values

create a new aspx page, form1.aspx , wich will show all Tasks's items

add a param as querystring , name it param_Orders , insert as filter for the DFWP orders to be equal to param_Orders

open the page using SharepoinDesigner

go to code and select nos

add this code

<a href =/path/form1.aspx?param_orders={@order} " target="_blank"> < xslt:value-of select="@Nos"/></a>

This way you will open a new window with tasks's items filtered by order name value

Similar , you can use javascript to open a modalwindow ( a eral example you can see on my site )

If you need more details , let me know

Free Windows Admin Tool Kit Click here and download it now
February 18th, 2015 3:42pm

Hi,

    I am having a problem of adding the above code for a href inside my List AllItems.aspx page. I am using Sharepoint Designer 2010.  When i edit the AllItems.aspx, i saw that the list is in the form of "WebPartPages:XsltListViewWebPart". How should i add the a href code inside that webpart?

Thanks,

Rajagopalan.

February 18th, 2015 11:24pm

Hi

i recommend you to customize your allitems.aspx form with a DFWP ( DataFormWebPart)

Free Windows Admin Tool Kit Click here and download it now
February 19th, 2015 2:08am

Hi,

    Thanks for your help. i was able to give a href to the lookup column by creating a new blank DFWP.

Thanks,

Rajagopalan.

February 19th, 2015 7:01am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics