Domanda

In newform.aspx, I have webpart connection. I pass employee-name to the webpart and this webpart renders employee detals. Employee-name field is textbox.

Everything was working fine until I changed the employee-name to be lookup field and when page rendered it became a dropdown. Due to this the connected-webpart always shows the first record in the dropdown during on-load of the page and doesn't refresh when dropdown index is changed.

The entire newform.aspx is customized using sharepoint designer.

I am guessing, I need to write javascript(jquery/json) code and put in newform.aspx using sharepoint designer?

Please suggest.

È stato utile?

Soluzione

Web Part connections are established when the page loads. A change in your employee selection doesn't reload the page so it won't update the connection.

JavaScript/jQuery would certainly be a good choice for this client side behavior. I'd suggest that you check out SPServices on Codeplex, and in particular for your case SPServices.SPDisplayRelatedInfo

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top