Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Im very new to sharepoint and trying to learn, just so you know :)..Im using Foundation, so please try to give answers that applies to Foundation

Alright so I made a calendar webpart. I can apply som simple text filters. But what if I want a text box, and use the value from the textbox to filter? the query code in sharepoint designer displays as:

<Where>
<Eq>
<FieldRef Name="Title"/>
<Value Type="Text">meeting</Value>
</Eq>
</Where>

So instead of "meeting" I would like a pointer to a textbox ID or something wich use the value to filter. Is this possible?...If so, could this ID be any textbox? even from another webpart?

That would be awsome since I have a ListViewByQuery web part with a searchbox to display some simple list items, wich works fine. So it would be cool if when I used the search box, the calender would also update based on the textbox value in the ListViewByQuery web part.

But the most important thing here is just to be able to control the filter by user input somehow. in sharepoint designer or visual studio :)

share|improve this question

1 Answer 1

up vote 0 down vote accepted

You can with SharePoint designer. The rendered HTML for the webpart may be what you are looking for. View source and find the ID for the textbox in the webpart. Use that as the filter (in a parameter) in SharePoint Designer to filter in the items you want on the second text box.

Check out: Customize Data Views and forms using SharePoint Designer

share|improve this answer
    
thank for your answer, I did find the button. The ID is quite long compared to what I set in visual studio(buttonID). In view source, its: "ct100_m_g_cad563" and alot of random numbers after that but ends with: "_buttonID"...Also, what parameter source should I use for my filter? ...under "Control" i find a somewwhat similar id to my button..tried that but it didnt work :/ –  Jukke Sep 20 '13 at 14:00
    
use the "ct100_m_g_cad563" as your a Control ID. –  Mike Sep 20 '13 at 21:20
    
Yea I tried that, didnt work..thanks for trying thou –  Jukke Sep 23 '13 at 13:21
    
Try to make the textbox outside of the webpart... –  Mike Sep 23 '13 at 15:58
    
Seems to be working now, thanks! –  Jukke Sep 25 '13 at 7:26

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.