Have an onchange event in SPD to update a list based on user selection of data view drop down?

Hoping someone can point me in the right direction: I have a list for Media announcements, each one of these announcements will have various types of documents associated (via look up field in the doc library). I am trying to have a data form web part (dropdown)
as the selector (as I am not liking the SharePoint list filter feature) to have a user be able to select the Media Title, then it refreshes the three web parts on the page (1 for the announcement, then one for type1 docs and one for type 2 docs.)
What is the best way to create an onchange event to have the selected option be connected to the first web part (media title on a list view) so that the information on the page can all be filtered?

Hi,
Would you mind providing more details about your requirement? Are there one Announcements list and two Document Library in a page?
Suppose you have one Announcements list and two Document Library in a page, then you want to add a Drop Down Menu(not the OOTB SharePoint List Filter Web Part) to filter the
three List View Web Part dynamically.
There will be two workarounds:
1. Use the OOTB “Connections” feature of the list to “Get Filter Values From” one of the three lists, then there will be a “Select” button in that list, we can click it to filter
other two lists/libraries. This is a way without code though we may not have the Drop Down Menu;
2. Add three <iframe> in a page, then add a Drop Down Menu in this page. Now, we will need some JavaScript to listen to the onchange event of this Drop Down Menu. We can
get the values populated in the Drop Down Menu from one of the column of one of the list, when making a selection in it, we can pass an URL with query strings to the three iframes which will show the three different lists or libraries.
The second way requires some code to interact with Client Object Model cause we need to get values from a list, some script to handle the onchange event, which seems more suit
with your need.
Here are some links might be helpful if you want to take the second way:
About how to find a specific element on a page using JavaScript:
http://javascript.info/tutorial/searching-elements-dom
Handle the onchange event using jQuery.change function:
http://api.jquery.com/change/
About query string to filter a list view:
http://techtrainingnotes.blogspot.com/2012/03/sharepoint-search-filter-or-sort-lists.html
About change the src attribute of iframe:
http://stackoverflow.com/questions/3730159/changing-iframe-src-with-javascript
http://www.w3schools.com/jsref/prop_frame_src.asp
Best regards
Patrick Liang
TechNet Community Support

Similar Messages

  • In view drop down menue I do have fasi languagein encoding for middle east langauges

    <blockquote>Locking duplicate thread.<br>
    Please continue here: [/questions/821055]</blockquote><br>
    In view drop down menu for encoding middle east languages I don,t see Farsi language

    I have this same problem, which began precisely with the release of 33.0.1. I have been downgrading back to 32.0.3, where this problem does not occur. Each time 33 has had a build update or a release update, I've gone ahead and let the update take place, then tried again, at which this problem came back. This has been the case with 33.0.2 and 33.0.3 as well.
    I just went ahead and updated to the latest 33.1 release and found this problem still exists. Before downgrading once more back to 32.0.3, where this problem does not exists, I did a search, found this page, and followed the instructions set forth by ideato.
    However, I have concerns. Generally, hardware acceleration is something that gets used for things like--oh I don't know, watching video? Why would hardware acceleration be used to display a drop down menu??? What is wrong with this picture? And why are there no problems whatsoever in 32, but this problem manifests in every build and release of 33?
    I think there is a problem here that Firefox developers should look into more carefully. I don't think it's cool to behave dismissively toward users who have stuck with this product through thick and thin since it was still called Netscape.
    So now that I've disabled hardware acceleration in Firefox, what other problems can I expect to manifest from having done so?

  • I have Adobe Acrobat XI (ver 11.0.07).  Adobe Help instructs me to find the document comparison command at "View Compare Documents," however, this command does exist on my screen. My View drop-down list does not include a command for Compare Documents.

    I have Adobe Acrobat XI (ver 11.0.07).  Adobe Help instructs me to find the document comparison command at "View > Compare Documents," however, this command does exist on my screen. My View drop-down list does not include a command for Compare Documents.  Where else can I find this command?

    What version of Acrobat do you have? This feature is only available in the Pro version, not in the Standard version.

  • How to update a bound textField with user selection ?

    Hi all,
    I'm following an Update Database example from the JSC tutorials and have the following situation.
    I have a page displaying a row of data for a selected person (first_name, last_name, title) bound to a data provider. I have made the "title' field a TextField. I want to enable the user to edit the title field and update the information in the database.
    If I simply type a new title on the text field and click on Update, everything works fine. However, I want to make the user choose from a list of titles (in a drop down list) instead of manually editting the 'title
    field to avoid spelling errors.
    However, the textfield (title) does not display the selection from the Drop Down list.
    titleField.setText(rankdropDown.getSelected());
    It seems to me that the reason is that each time the drop down event value change event handler is executed, the Pre-render methd kicks in and restores the 'title' field to its original value (from table rowset). And the user selection is not displayed.
    public void prerender() {
    try {
    getSessionBean1().getStudent_infoRowSet1().setObject(1, getSessionBean1().getLoginBean().getUsername());
    student_infoDataProvider1.refresh();
    } catch (Exception e) {
    Can someone please suggest a solution?
    Thanks.
    Nakul

    Are you submitting the page after selecting the data from the drop down?
    The drop down does not seem to have an option of submiting the page when the value is changed. Only if you submit the page, will the data be processed and the text field updated.
    From what i see in the doc for the prerender method, this method is invoked during the renderResponse phase. Whereas the value change event is processed during the process validation phase itself of the jsf life cycle.

  • How to update records in a table based on user selection..

    Hi all,
    This time the above doubt is totally based on the logic of coding which I tried a lot but didn't get any solution. so atlast I come to sdn site.
    please help..
    The requirement is like that I have a table with 6 fields (1 primary key and other are nonkeys). If the user inputs some values in the fields on the screen, then a row will be added in the table. Upto this i have done well. but when the user want to change some value  in the existing row of the table my program unable to do so. Because I couldn't get any logic to do that as there are 5 nonkey fields, so if any one field is modified then the respective row should be selected first based on the user selection and then it should be updated.
    At this point I could not get any idea as it may take a lots of if conditions (I guess) to reach to that particular row.
    Please help..
    thanks ,
    sekhar

    Hi Sekhar,
    I am afraid, the whole design of your program is wrong, let me explain
    Let us say you have two rows(5 non key fields) that the user wants to update and the data in these five non key fields are identical and in your program you are getting a number(which is the key) using a number range object. So you will have two entries in the table for the same data.
    And on the update page when the user enters the non key fields, how will the program know(or for that matter any one of us) which record to pick, if you have two identical books and if asked for a book wouldn't you ask which one among these two do you want?
    Possible Solution: Identify a possible key maintaining the integrity of the data, that is a combination of the non key fields which will help you identify a unique row and make these fields as key fields in the table.
    A more costly solution(if you do not want to change the non key field keys to key fields) would be to, adding a check(using select statement) to see if the non key fields combination already exists in the Z table before inserting a record into the table.
    If yes, throw a message to the user and just update the values in the table, else insert the record.
    Another solution would be to, use the non key fields to generate a key(using some logic) and using this instead of the number range object.
    regards,
    Chen

  • Java has been updated as well as firefox but java refuses to run - drop down menus won't work (ebay) and pogo game windows won't load.....HELP

    Ever since I updated firefox to 3.5.16 java ahs stopped working. Drop down menu's in ebay don't, windows from links (such as tracking in ebay) don't work, pogo game windows won't load or will load the widow frame but not the game itself. I work online and run and online business and this wastes a lot of my time. Idon't want to use IE but might have to - I have looked in the forums and online and can't find a solution. Your help would be greatly appreciate it.

    To avoid confusion: http://kb.mozillazine.org/JavaScript_is_not_Java<br />
    See [[JavaScript]]
    * "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    * "Remove the Cookies" from sites that cause problems: Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]
    * [[Troubleshooting plugins]]

  • Without asking I now have a permanent Bookmarks menu on the left of my screen as well as an on-rquest drop down on the right. How do I get rid of the permanent one on the left?

    The permanent list just appeared when I loggede on, I thought that it would have the normal removal button but there is nothing to indicate how I can hide it - or remove it completely as I prefer the drop down menu initiated by the STA|R button

    To open or close the Bookmarks Sidebar, do one of the following:
    *CTFL+B will toggle the Bookmarks Sidebar on or off
    *ATL+V+E+B will toggle the Bookmarks Sidebar on or off
    *press the ALT key or the F10 key to temporarily display the Menu Bar, then while the Menu Bar is displayed, click View > Sidebar > Bookmarks (checked=display sidebar; un-checked=hide sidebar)
    **there is no equivalent on the Firefox button menu
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''

  • I have cleared my history and the history now automatically is cleared, but the ten items in the drop down menu continue to be there from weeks ago. How do I clear them?

    The ten items in the drop down History header continues to show ten sites that I several weeks ago. Any new sites that I have used recently or am currently using do not appear in this list. I have configured the history settings to clear automatically, but those ten old sites persist throughout all current use. How do I get rid of them?

    Entries in the location bar drop down list with a yellow (blue on Mac) star at the right end are bookmarks.<br />
    You can remove such a bookmarked item that shows in the list if you open that url in a tab and click the yellow star in the location bar.<br />
    This will open the "Edit This Bookmark" dialog and you can click the Remove button to remove the bookmark if you want to remove such a bookmarked entry.<br />

  • I don't have pdf documents listed as a file type in the applications drop down menu so I cannot manage the handling of these file types. How do I get the pdf file recognised?

    I don't have pdf documents listed as a file type in the drop down applications menu, so cannot handle these. How do I add a file type?

    After a little Googling, it looks like B.Media is a content management system from Wave Corporation used for making catalogs. Doubtful you'd be able to license it at less than an enterprise level.

  • Updating a table when a user selects a row (or triggers an action)

    Hi,
    i am designing a view on report builder 3, SQL Server 2008R2
    i have a shared dataset that holds customer details, and another shared dataset that holds the sales details.
    the report has a date from/to parameter and a category parameter.
    i have designed the report to have two tables one to show all customers (with their details) and the other should show the sales of the specific selected customer within the date range
    i have tried accomplishing this also by using a subreport with no luck, could you please let me know how i can this be done
    many thanks!!
    Ronen

    Hi Ronen,
    Per my understanding that you get the sales of the selected customer within the data range to display in the main report, right?
    You have mentioned that you have tried to use a subreport but failed, the issue can be caused by the wrong you have setting the subreport or the relationship between the main report and the subreport.
    As Uri Dimant suggested that we should add parameter in the subreport, details information below for your reference:
     I assumed that in the sales details table have the same fields or some relationship fields with that of the customer details table(Date, Category), so in the subreport create three parameter the same as that in the main reports and add the same filter.
    Right click the Subreport to select the subreport properties and add the parameter like below:
    Three parameter are comes from the subreport and the three fields in the value come form main report:
    Another method which is similar like that of using the subreport is to using the LookUp function, because your SSRS version is 2008 R2 and this function only supported with SSRS 2008 R2 and Later version. Details information below for your
    reference:
    Create an DataSet2 to get all the fields from Sale Details table.
    Find out the relationship field between the two table which is union (Date) to use in the expression in the main report like below:
    =Lookup(Fields!Date.Value,Fields!Date.Value,Fields!Sales.Value,"DataSetName of the SalesDetails"):
    Note: first field comes from Customer details table and second and third field comes from Sales details table.
    Detail information about using the LookUP function in below article:
    Lookup Function (Report Builder and SSRS)
    If you still have any problem, please provide the sample data of the two tables.
    Any problem, please feel free to ask.
    Regards
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • I seem to have lost "list view" for my iTunes library.  The option doen't even appear on the view drop down.  Any conncection to iCloud?

    I seem to have lost the ability to select list view for my iTunes library.  The choice for lst view doesn't even appear on the drop down when selectiogn "view".  Any ideas?  I recently enabled the cloud and subscribed to iTunes Match/  Any connection?  Thanks/

    See this thread for background on why iTunes can end up with duplicates and how they can be systematically removed. The script there is for Windows users and the "show duplicates" menus have moved around in iTunes 11,  but the advice on clearing recently made duplicates should still hold.
    As given in my older post "Reorganize library" is meant as a one time command to change the structure of a pre-iTunes 9 library into the newer layout that places music in its own subfolder of the media folder. Once used, if the option becomes available again that suggests that a file called .iTunes Preferences.plist in the media folder has been deleted or editied.
    See also this post.
    tt2

  • Have problems staying connected since I downloaded latest version... also don't like the history drop down menu now. I use yahoo because its what came with my DSL from Verizon. Can I go back to the other version of Firefox or can this be fixed?

    I can run about an hour and then it hangs up. Doesn't seem to depend on what website or program I am running. I walk away to change the laundry and come back and its hung. In the middle of a game on facebook, it hangs. Didn't have this problem with the version I used before. I have always liked Firefox and have used for a number of years. Don't want to change if it can be fixed.

    You should be able to have NoSquint working properly if you use an extension to restore the Add-on toolbar.
    *Classic Theme Restorer: https://addons.mozilla.org/firefox/addon/classicthemerestorer/
    *The Addon Bar (restored): https://addons.mozilla.org/firefox/addon/the-addon-bar/
    *https://support.mozilla.org/kb/what-happened-to-the-add-on-bar
    See also:
    *https://support.mozilla.org/kb/common-questions-after-updating-to-new-firefox
    *https://support.mozilla.org/kb/learn-more-about-the-design-of-new-firefox
    *https://support.mozilla.org/kb/how-to-make-new-firefox-look-like-old-firefox

  • Batch Updating a UDF based on user input.

    I have been asked to come up with a way to update several PO's with a update.
    We have several PO that come in on 1 container, the Container NO (UDF) is updated per PO
    Then several weeks later the Rev. Delivery Date (UDF) needs updated.
    Is there a way to update all PO's with the same container no with the new date.
    Example:
    UPDATE OPOR
    SET OPOR.U_RevDelivery = '[%0]'
    WHERE U_ContRefNo = '[%1]'
    Both the Delivery date needs to be user input and the Container No needs to be input by the user.
    Thanks,
    Craig S.

    Hi,
    Update is not not allowed you may taking a risk of losing SAP Support.
    What you can do is to query then manually edit the result of the query
    by clicking each DocNum and update U_RevDelivery manually.
    This is the safest thing to do or you can try this using SDK.
    The query:
    Select T0.DocNum, T0.U_RevDelivery FROM OPOR T0
    WHERE U_ContRefNo = '%0'
    Thanks.
    Clint

  • How to update one lov based on value selected from another lov.

    Hi ,
    I have a form in which I created the 2 LOVs for my event_date field and event_name field each which is stored in one table.
    t I want to update the event_date LOV everytime event_name is selected.
    How can I achieve this.
    Thanks.
    Neeti.

    Hi,
    You can do this using dynamic LOVs. Here are the steps for populating a employee LOV on selecting a department.
    1) Create a dynamic lov say emloyee_lov with a bind variable like this
    select empno,ename from scott.emp
    where deptno = :dept
    2) Create a form on scott.emp.
    3) In the empno field which should be a LOV type of field, associate it with
    the above employee LOV.
    4) Then set the binding(s) for the bind variable(s) defined in the lov by
    selecting the deptno column.
    This would help.
    Thanks,
    Sharmila

  • Updated to iOS 7.1.2 and my data network drops in and out every 30 seconds

    Anyone else having this problem? I've tried restarting my phone but it didn't resolve the issue.

    Thanks, but this did not work either.
    The problem seems to have resolved itself overnight though..

Maybe you are looking for

  • Legacy project vs new browsers

    Hi all, I have one client project for whom we still use TCS1, for updates about twice a year. This is the only client we use it for, so we have never upgraded. We do have a copy of RH10 standalone, but otherwise we have been increasingly using Flare

  • No Animated GIFs in Mail

    I know this is minor compared to some issues I see posted but Mail 3.0 no longer displays animated GIFs. I sent one through Gmail and it didn't display. I checked it in my webmail in Gmail and it displays fine. Something in Mail 3.0 is stopping the p

  • Added WRT54GL to Roadrunner, no internet, I've tried everything!

    I installed my Linksys wireless router to my Roadrunner connection so I can get all of my 3 computers online. I can hook one computer directly to the modem and of course it can get online, but I get nothing with the router added into the mix. I've se

  • New apple wireless keyboard & iPad 3 pairing question

    Bought a new Apple wireless keyboard this week. Had some trouble pairing with iPad 3. Took me 4-5 attempts but it finally paired successfully after 10-15 minutes. Question for all you gurus...  When the wireless keyboard arrived on Friday, I first pa

  • ABAP program to load an infocube

    Hello All, I am new to BW and have learnt the basic concepts only. I now have to write an ABAP program to load one of the infocube after receiving the data in the form of a flat file from an external system. Any ideas on how I can go about this will