Standard WSS / MOSS Screens Dħul ta 'Data ma jsostnux Cascading Drop-downs (jew oħrajn intra-komunikazzjoni mill-)

UPDATE (04/2008): Din l-entrata blog kbir juri approċċ ibbażat javascript tajba biex din il-problema: http://webborg.blogspot.com/2008/04/add-functions-and-events-to-sharepoint.html

AĠĠORNAMENT II: (04/2008): Din l-entrata blog tidher promettenti kif ukoll: http://www.cleverworkarounds.com/2008/03/13/free-mosswss-2007-web-part-hide-controls-via-javascript/

Diversi drabi fil-ġimgħa, jekk mhux kuljum, forum users describe a requirement that would normally be met via cascading drop-downs. Per eżempju, Għandi żewġ kontrolli drop-down:

  • Lista ta 'U.S. istati
  • Lista ta 'U.S. bliet.

Bħala fornituri UI responsabbli, irridu li jopera bħal dan:

  • Paul jagħżel U.S. state from the drop-down.
  • This causes the cities drop-down to filter only those cities that belong to the selected state.
  • Paul jagħżel belt mill-lista iffiltrat.

There is no out-of-the-box support for this feature. Fil-fatt, there is no OOB support for any kind of direct intra-form communication. This includes programmatically hiding/enabling/disabling fields in response to field changes elsewhere on the form.

L-għan reali ta 'dan l-artikolu li biex jiddeskrivi soluzzjonijiet possibbli u dawn huma l-għażliet kif naf minnhom:

  1. Develop a custom column type. As a custom-column-developer, you have full control over the "world" of that custom column. You can implement a cascading drop-down that way.
  2. Consider using workflow. In some cases, you want to automatically assign a value to field based on another field’s value. F'dan il-każ, inti normalment tipprova tuża kolonna kkalkulata, iżda xi drabi, it just won’t get the job done. SharePoint Designer workflow is a relatively administer-friendly alternative to dropping down into code and visual studio. If you go this route, ikunu konxji tal-kwistjoni indirizzata minn dan l-artikolu (http://paulgalvin.spaces.live.com/blog/cns!CC1EDB3DAA9B8AA!405.entry).
  3. Handlers Avveniment: Bħall workflow, this is an after-the-fact solution. Your event handler is a .NET assembly (C #, VB.NET) to which SharePoint passes control. The object you develop has access to the data of the list (u l-mudell oġġett sħiħ) u tista 'tagħmel kwalunkwe kalkolu meħtieġ.
  4. Use SharePoint Designer to create custom entry forms. I don’t have direct experience with this approach, but I hear they are doing good things with NewForm.aspx these days 🙂
  5. Roll ASP.NET funzjoni dħul tiegħek data (bħala paġna web stand-alone jew bħala parti web) u l-użu li minflok.

Jekk xi ħadd jaf l-oħra u / jew aħjar għażliet, jekk jogħġbok post kumment u jien ser taġġorna l-korp ta 'din il-kariga.

<aħħari />

4 ħsibijiet dwar "Standard WSS / MOSS Screens Dħul ta 'Data ma jsostnux Cascading Drop-downs (jew oħrajn intra-komunikazzjoni mill-)

  1. Paul Galvin
    Monjo,
    Grazzi għall-kumment, dan hu t-tip ta 'feedback li għalihom I kien jittama.
    Jidher li kif nikteb dan, l-ispiża hija $349 USD? Jekk iva, huwa li l-prezz għall-użu mingħajr limitu?
    Grazzi!
    –Paul
  2. Mike Mongeau

    Paul,

    Iċċekkja dan out: http://www.spsdev.com/filter.aspx .

    Mis-sit tagħhom: "SpsDev.Com’s Filter Field is a custom field type that does filtering.
    Inti tista 'żżid wieħed għal ħafna oqsma tal-filtru il-lista tiegħek jew il-librerija, u kull wieħed jista '
    be filtered based on another filtered field in the list. Pick a state in
    qasam wieħed, u l-lista ta 'bliet fil-qasam li jmiss hija ffiltrata li juru biss
    oġġetti mill-istat, per eżempju. In this release we support SQL Server
    2000 u 2005, and Xml as sources for the field data. As you change a
    għażla fi kwalunkwe mill-downs qatra, kollha tal-downs qatra taħtu huma kull
    iffiltrat biex juru biss l-għażliet xierqa bbażati fuq l-għażla li l-
    sar."

    Monjo

Ħalli Irrispondi

Your email address mhux se jkun ippubblikat. Meħtieġa oqsma huma mmarkati *