Cartlanna míosúla: Nollaig 2007

Mo Mhac Hacked Gamespot

Mar sin,, ar maidin, Is é mo mhac a chinneadh a fheiceáil Halo srianta aoise déag- 3 físeán ag Gamespot. I’m outside shoveling snow, so I’m not there to help or hinder. Necessity is the mother of invention and all that … he has a eureka! moment. He realizes that even though Gamespot wants him to enter his fíor- Dáta breithe, Is féidir leis dul isteach i ndáiríre aon birth date he wants. Once he realized that, rinne sé é féin sean go leor a fheiceáil ar an físeán.

I’m not quite sure how I feel about this 🙂

Dé Domhnaigh greannmhar: “Tá sé seo Priontáil Dramhaíl”

Ag mo chéad phost amach as an choláiste i 1991, Bhí mé ádh a bheith ag obair do chuideachta déantúsaíochta le 13 suímh, not including its corporate HQ in New Jersey. I joined just when the company was rolling out a new ERP system. We were a small IT department of about ten people altogether, two of whom Did Not Travel. Part of the project involved replacing IBM System 36 boxes with HP hardware and HPUX. Everyone used green tubes to access the system.

Rollaí an tionscadal chomh maith agus tá mé ag sheoladh síos go Dún na Séad le nua comh-oibrí, Jeff. Our job was to power up the Unix box, déan cinnte an O / S bhí ag rith, shuiteáil ar an gcóras ERP, chumrú an ERP, train people on the ERP and do custom work for folks on the spot. (Bhí sé seo i gcomhair poist bhrionglóid, go háirithe ag teacht díreach amach as an choláiste). Before we could really get off the ground, is gá dúinn a unpack go léir na feadáin glas, put them on desks and wire them. And the best part was that we had to put the RJ11 connectors on ourselves.

Ar chúis éigin riamh go bhfuil mé thuig agus níor shíl i ndáiríre a iarraidh mar gheall ar an am, bhí againn go raibh roinnt cuideachta conarthachta thagann chomh maith agus a reáchtáil cábla ar fud na plandaí, but we didn’t have them put on the connectors. Mar sin,, there was a "patch box" with dozens of of unlabeled cables in the "computer room" agus snaked seo timpeall an fhoirgnimh go dtí áiteanna éagsúla san fhoirgneamh.

D'oibríomar ar ár bhealach a dhéanamh tríd sé le linn an deireadh seachtaine, tástáil gach sreang, a chur ar a cónascaire (ag déanamh cinnte go raibh sé díreach vs. thrasnaigh), cinntiú na socruithe beagán ar an feadáin glas agus printéirí a bhí ceart, labeling wires, making sure that "getty" was running correctly for each port and probably a thousand other things that I’ve suppressed since then. It all came together quite nicely.

Ach, there was one important cable that we couldn’t figure out. The plant in Baltimore had a relationship with a warehousing location in New Jersey. Some orders placed in Baltimore shipped out of that location. There were two wires that we had to connect to the HPUX box: a green tube and a printer. The green tube was easy, ach an printéir iompú isteach i nightmare trí seachtaine.

Más rud é nach bhfuil a fhios agat é, nó suppressed sé, ag déileáil le feadáin glas agus printéirí ar an mbealach seo, there are various options that you deal with by setting various pins. 8-giotán, 7-giotán, paireacht (fiú / corr / aon cheann), probably others. If you get one of those settings wrong, an fheadáin nó chuig printéir Léiríonn fós stuif, ach beidh sé gibberish iomlán, or it will be gibberish with a lot of recognizable stuff in between. Ar ndóigh,, these pins are hard to see and have to be set by using a small flat-edge screw driver. And they are never standard.

Leagtha muid suas an chéad cheann glaonna tapaidh go leor leis an Guy NJ (a hater ríomhaire grizzled a mallachtaí is dócha dúinn ar an lá seo). We got the green tube working pretty quickly, but we couldn’t get the printer to work. It kept "printing garbage". We would create a new RJ11 connector, switching between crossed and straight. We would delete the port and re-created in Unix. We went through the arduous task of having him explain to us the pin configuration on the printer, riamh cinnte i ndáiríre má bhí sé ag déanamh i gceart.

Tá sé faoi am le dul beo, Tá gach rud i nDún na Séad portaireacht, ach ní féidir linn a fháil ar an printéir cursed suas i NJ a bheith ag obair! We’ve exhausted all possibilities except for driving back up to NJ to work on the printer in person. To avoid all that driving, we finally ask him to fax us what he’s getting when it’s "garbage", ag súil go b'fhéidir go mbeidh roinnt leid sa truflais a insint dúinn cad tá ag éirí linn mícheart.

Nuair a fuair muid an facs, we immediately knew what was wrong. Féach, our method of testing whether we had configured a printer correctly was to issue an "lp" ordú mar seo:

LP / etc / passwd

Go bunúsach, we printed out the unix password file. It’s always present and out of the box, always just one page. You standard Unix password file looks something like this:

gabha:*:100:100:8A-74(oifig):/baile / gabha:/usr / bin / sh
:*:200:0::/baile / aoi:/usr/bin/sh  

We had been printing out the password file over and over again for several weeks and it was printing correctly. Mar sin féin, don úsáideoir deiridh, it was "printing garbage".

</deireadh>

Ach eile Líonra Dintiúr Il-Dúshlán Eisiúint agus Réiteach

Mo cliant suiteáilte gléas draíochta ó déanaí Juniper gur in ionad a n-aois cosúil Cisco balancer ualach líonra (NLB). At about the same time, suiteáilte againn hotfix chun aghaidh a thabhairt ar fhadhb sreabhadh oibre.

A lá nó dhó ina dhiaidh sin, faoi ​​deara fadhb againn nuair a rochtain againn ar an soláthraí seirbhíse comhroinnte (Comhpháirtíocht an Chinn Theas). We could get to it, but we would be challenged for a user ID and password many times on each page. This didn’t happen with the main portal app, nor central administration. Naturally, Ní raibh a fhios againn cé acu de na dhá (Juniper nó hotfix) a bheadh ​​ar an tsaincheist, cé go bhfuil amhras go láidir leis an hotfix, figuring nach raibh suiteáilte againn sé go leor ceart.

It turned out that Juniper had some kind of compression setting. Ceann de na figiúirí robed over in the network group turned that setting off. That solved our problem.

This is not the first time that compression has been the root cause of a SharePoint problem for me. IIS compression adversely affected a 3rd party tool from the good people at The Dot Net Factory for IE 6 brabhsálaithe (IE 7 brabhsálaithe oibrigh gan deacracht).

Mar sin,, add "compression" leis an liosta guaiseacha.

</deireadh>

Creidmheasa a: http://www.elfwood.com/art/s/h/sherry/death_colour.jpg.html

Clibeanna Technorati: ,

Ag smaoineamh Maidir Athrú Ardán Blagadóireacht

I started off my "blogging career" using Microsoft’s platform and it’s been good to me. It’s easy to post, there are good options and widgets for managing your "space", stóráil gréasáin réasúnta agus mar sin de.

Mar sin féin, I really just fell into the MS solution with almost no planning. That alone calls for me to evaluate where I am and where I’m going, in terms of a blogging platform. There are also two important limitations that bother me right now vis-à-vis Windows Live Spaces.

An Chéad, I can’t get very good statistics. There are stats but the detail is often truncated and not presented in a way that allows for any kind of analysis. There no sorting or export capability. I get many blog ideas based on the kind of information people find (nó go mainneoidh siad go háirithe chun a fháil) when they search my blog. It’s very hard to use lives spaces for that.

Dara, there does not seem to be any mechanism to "monetize" a windows live space blog. Go deimhin, d'fhonn a fháil haitheantas coibhneasta de fógraí MS (óna bhfaigheann mé aon sochar), I need to actually pay Microsoft. (Ar a laghad, go conas a thuigimse é; Bhí mé in ann a freagraí cinnte a fháil ar seo agus ceisteanna maith liom é).

Anois go bhfuil mé fuair mé patrún bunaithe agus sraith de nósanna blogging, I want to evaluate other options. I’ve done some research and there are a lot of choices, ach tá mé fiosrach i dtaobh cad eile daoine, go háirithe daoine eile sa phobal SharePoint (mar blagairí nó léitheoirí), like to use.

Má tá an leas faoi réir tú, agus tú tuairim nó atá toilteanach a roinnt do thaithí, fág nóta nó ríomhphost chugam díreach le do thoil.

Go raibh maith agat!

<deireadh />

Clibeanna Technorati:

Seol Ríomhphost Dearthóir SharePoint ???? i R-phost

Fóram úsáideoirí a iarraidh ó am go chéile: Cén fáth a chur SharePoint Dearthóir ???? isteach i mo ríomhphost ionad luach allamuigh?

Cúis amháin a tharlaíonn sé seo toisc go bhfuil an athróg a dtagraíonn tú null.

This can happen because you are trying to reference a field from the "current item" ach an t-úsáideoir riamh tháinig ar luach isteach sa réimse bhfoirm.

<deireadh />

Clibeanna Technorati:

Déan comparáid idir / Tástáil le haghaidh Dátaí Blank i Sreabhadh Oibre Dearthóir SharePoint

Cás: I sreabhadh oibre Dearthóir SharePoint, you need to determine if a date field is blank.

Fadhb: SPD does not provide a direct method for comparing dates to anything other than a date. You cannot create a condition like this: "If [DateField] equals blank".

Réiteach: Convert the date to a string. Use string comparison to determine if the date is blank.

Shots Scáileán:

The following screen shots show how to do this. Sa chás seo, réimse ar mhír, "Environmental Permits:First Permit Reminder Date", Tá isteach agus na tinte sreabhadh oibre mar fhreagra ar.

íomhá

íomhá

Nótaí:

Nuair a rinne mé é seo, I was pleasantly surprised to learn that it works. I was worried that SharePoint Designer might disallow the string assignment (Athróg:StringReminderDateDate) ach ní raibh sé deis a thabhairt dó.

Bhí mé freisin i gceist go ligeann sé, D'fhéadfadh an luach a bheith ar neamhní agus ceachtar buille an WF ag runtime suas nó b'fhéidir an teocht domhanda a ardú 1/2 céim, ach bhí na hábhair imní gan bhunús.

</deireadh>

Clibeanna Technorati:

Barra Is Fós Pretty Ard leathnú CAONAIGH

Sa lá atá inniu, I was working with a client and describing how to modify the content query web part and display additional bits of information from a content type.

"First, chumrú tú an CQWP chun ceangal a bhfoinsí sonraí, ansin é a onnmhairiú leat chun do stáisiún oibre, mhodhnú <CommonViewFields>, uaslódáil, remove the original and now it’s ‘primed’ to display those other columns. Ar Aghaidh, open up SharePoint designer, navigate to the site collection root and locate ItemStyle.xsl. Copy one of the templates as a useful starting point. Go back and modify the CQWP to make use of this new template. Mar fhocal scoir, modify the template to render your new fields! (Don’t forget to check it back in so that other users can see the results)."

It’s all quite clear to me (and most of us SharePoint developer types) what’s going on and how it’s quite nice, i ndáiríre, that the data retrieval aspects of the CQWP are so well-separate from the data presentation aspects. Ach, it’s not so easy to explain, is it?

<deireadh />

Clibeanna Technorati: ,

Taispeáin Ábhar Torthaí Iarratas Cuid Gréasáin i Eangach / Tábla

Forbhreathnú agus Cuspóir

As an bosca, CAONAIGH’ Cuid Web Content Iarratas (CQWP) Taispeánann na torthaí i bhformáid liosta, similar to search results. It is also possible to display the results in a grid format (i.e. Bhformáid tábla HTML). Grid formats are better in some circumstances. I describe how to achieve that effect in this article.

Cás Gnó

I have worked with a client on an enterprise-wide MOSS rollout. We have designed their taxonomy such that projects are first class citizens in the hierarchy and have their own top level site. Project managers maintain a singleton list of project summary information, cosúil le teideal, buiséad, dáta críochnaithe ag súil, remaining budget and other summary type fields. By "singleton" I mean a custom SharePoint list guaranteed to contain only one item. Simplistically, tá sé cosúil leis an:

íomhá

Is é an cur chuige teicniúil mórán mar an gcéanna a bhfuil cur síos anseo (http://paulgalvin.spaces.live.com/blog/cns!1CC1EDB3DAA9B8AA!447.entry). The CQWP uses an XSL transform to emit HTML for the browser to render.

I always envision the result before diving into the XSL because XSL is a nightmare. Here’s my desired result:

íomhá

Gineann HTML mar seo an toradh sin a:

<html>
 <comhlacht>
 <lár>
 <tábla teorann= 1>

<!-- Lipéid ->
 <tr bgcolor= Gorm>
 <td><Is iad dath= Bán><b>Ainm an Tionscadail</b></Is iad></td>
 <td ailíniúCeart><Is iad dath= Bán><b>Comhlánaigh Dáta</b></Is iad></td>
 <td ailíniúCeart><Is iad dath= Bán><b>Buiséad</b></Is iad></td>
 <td ailíniúCeart><Is iad dath= Bán><b>Costas Iarbhír</b></Is iad></td>
 <td><Is iad dath= Bán><b>Stádas Foriomlán</b></Is iad></td>
 </tr>

<tr>
 <td>Seomra ríomhaireachta Re-sreang.</td>
 <td ailíniúCeart>02/01/08</td>
 <td ailíniúCeart>22,500.00</td>
 <td ailíniúCeart>19,000.00</td>
 <td>I Dul Chun Cinn</td>
 </tr>

<tr>
 <td>Freastalaithe Soláthar le haghaidh Uasghrádú SQL</td>
 <td ailíniúCeart>04/01/08</td>
 <td ailíniúCeart>7,500.00</td>
 <td ailíniúCeart>0.00</td>
 <td>Pleanáilte</td>
 </tr>

</tábla>
 </lár>
 </comhlacht>
</html>

Cur Chuige

Lean na céimeanna seo a chruthú ar an eangach:

  1. Sainaithin na comhpháirteanna an eangach (rónna / colúin).
  2. Shainiú agus a chruthú colúin suíomh is gá.
  3. Cruthaigh suímh fho do na tionscadail agus liostaí singleton.
  4. An CQWP a chur le leathanach gréasáin agus é a chumrú chun cuardach a dhéanamh do do liostaí.
  5. Athraigh an CQWP ar XML a bhailiú suas na colúin bhreise a.
  6. Athraigh an XSL a ghiniúint tábla.

I’m going to concentrate on number six. Numbers one through four are straight-forward and something that any CQWP user has already done. Number five has been well-documented by others including this exhaustive screen-shot laden article from MSDN anseo (http://msdn2.microsoft.com/en-us/library/bb897399.aspx) agus blog Heather Sholamón ar anseo (http://www.heathersolomon.com/blog/articles/CustomItemStyle.aspx).

Cnónna Agus Bolts

Tosaigh agus a chur i céimeanna amháin trí chúig de réir an doiciméadú MSDN agus airteagal Heather Sholamón ar.

Ag an bpointe seo, Chuir tú do CQWP go dtí an leathanach agus tá tú do <CommonViewFields> cumraithe mar is gá.

Tar éis na céimeanna is gnách, Faighim na torthaí idirmheánacha:

1. Cruthaigh cineál ábhar, a templatized custom list for that content type and two sites. Here is the content type:

íomhá

Seo é an struchtúr an tsuímh:

íomhá

2. Cuir an CQWP tar éis a chruthú mo subsites tionscadail agus liostaí achoimre singleton tionscadal:

íomhá

3. Cuir an t-eolas breise a ba mhaith liom tríd an <CommonViewFields>:

        <maoin ainm="CommonViewFields" cineál="teaghrán">Project_x0020_Name;Project_x0020_Expenses;Project_x0020_Status;Project_x0020_Start_x0020_Date;Project_x0020_End_x0020_Date;Project_x0020_Budget</maoin>

Tabhair faoi deara go raibh mé a choinneáil ar na réimsí go léir mhaoin ar líne amháin nó nach mbeadh sé ag obair (Ba mhaith CQWP insint dom go ais an cheist Níl aon rud).

4. Ag an bpointe seo, we’re ready to move beyond the MSDN article and flip on over to Heather Solomon’s article. Follow her steps starting near step #5 a chruthú saincheaptha / unghosted version of ItemStyle.xsl. I follow Heather’s advice, suas trí chéim 11 agus a fháil ar na torthaí idirmheánacha:

4.1: Ainmnigh mo XSL teimpléad seo a leanas mar:

<XSL:ainm teimpléad = "Greille" mheaitseáil = "Rae[@Style=’Grid’]" mode = "itemstyle">

Liom freisin a mhodhnú beagán Mhol sí <XSL:do-gach …> ag cur le <br /> chlib a chur ar fáil ar liosta níos glaine:

    <XSL:do-gach roghnú="@ *">
      P:<XSL:luach-ar roghnú="ainm()" /><br/>
    </XSL:do-gach>

4.2: Mé a mhodhnú an chuid gréasáin, téigh go dtí cuma agus mo "Greille roghnú" stíl:

íomhá

Cuir an t-athrú agus anseo tá an toradh:

íomhá

Is féidir linn a fheiceáil ó na réimsí thuas gur mian linn a (Ainm an Tionscadail, chostas, stádas, etc) are available for us to use when we emit the HTML. Not only that, but we see the names by which we must reference those columns in the XSL. Mar shampla, Stádas againn Tionscadal tagartha mar "Project_x005F_x0020_Name".

Ag an bpointe seo, imeacht againn ó bhlag Heather agus ó na shoulders na giants, Liom a chur mo beagán féin.

ContentQueryMain.xsl

NÓTA: Nuair athruithe a dhéanamh ar an dá ContentQueryMain.xsl chomh maith le ItemStyle.xsl, gá duit a sheiceáil na comhaid ar ais i roimh a fheiceann tú ar an éifeacht do chuid athruithe.

Do-eangach a dhéanamh chun críocha, MOSS uses two different XSL files to produce the results we see from a CQWP. To generate the previous bit of output, we modified ItemStyle.xsl. MOSS actually uses another XSL file, ContentQueryMain.xsl to in conjunction with ItemStyle.xsl to generate its HTML. As its name implies, Is é an príomh-ContentQueryMain.xsl "" XSL that controls the overall flow of translation. It iterates through all the found items and passes them one by one to templates in ItemStyle.xsl. We’ll modify ItemStyle.xsl to generate the open <tábla> tag roimh astú an ró chéad na sonraí agus an spriocdháta <tábla> tag after emitting the last row. To accomplish this, ContentQueryMain.xsl atá modhnaithe go dtí dhá paraiméadair pas a fháil ar ár "greille" teimpléad i ItemStyle.xsl, "As a chéile is déanaí" and "current row". ItemStyle.xsl uses these to conditionally emit the necessary tags.

Ag baint úsáide as teicníc Heather Sholamón ar, we locate ContentQueryMain.xsl. It is located in the same place as ItemStyle.xsl. This screen shot should help:

íomhá

Ní mór dúinn a dhéanamh ar na hathruithe seo a leanas:

  • Athraigh an teimpléad XSL, "CallItemTemplate" that actually invokes our Grid template in ItemStyle.xsl. We will pass two parameters to the Grid template so that it will have the data it needs to conditionally generate opening and closing <tábla> clibeanna.
  • Athraigh eile beagán de ContentQueryMain.xsl go bhfuil gá, CallItemTemplate "" chun pas a fháil sé LastRow "" paraiméadar ionas gur féidir LastRow a chur ar aghaidh chuig ár teimpléad Eangach.

Aimsigh an teimpléad atá ainmnithe "OuterTemplate.CallItemTemplate" aitheanta ag an teaghrán:

  <XSL:teimpléad ainm="OuterTemplate.CallItemTemplate">

In ionad an teimpléad iomlán mar seo a leanas:

  <XSL:teimpléad ainm="OuterTemplate.CallItemTemplate">
    <XSL:stop a chur ainm="CurPosition" />

    <!--
      Cuir an LastRow "" paraiméadar.
      Bainimid úsáid ach amháin nuair a bhíonn sé an pas stíl mír i "Eangach".
    -->
    <XSL:stop a chur ainm="LastRow" />

    <XSL:roghnú>
      <XSL:nuair a tástáil="@ Stíl = 'NewsRollUpItem'">
        <XSL:iarratas a dhéanamh-teimpléid roghnú="." Modh="itemstyle">
          <XSL:le-param ainm="EditMode" roghnú="$cbq_iseditmode" />
        </XSL:iarratas a dhéanamh-teimpléid>
      </XSL:nuair a>
      <XSL:nuair a tástáil="@ Stíl = 'NewsBigItem'">
        <XSL:iarratas a dhéanamh-teimpléid roghnú="." Modh="itemstyle">
          <XSL:le-param ainm="CurPos" roghnú="$CurPosition" />
        </XSL:iarratas a dhéanamh-teimpléid>
      </XSL:nuair a>
      <XSL:nuair a tástáil="@ Stíl = 'NewsCategoryItem'">
        <XSL:iarratas a dhéanamh-teimpléid roghnú="." Modh="itemstyle">
          <XSL:le-param ainm="CurPos" roghnú="$CurPosition" />
        </XSL:iarratas a dhéanamh-teimpléid>
      </XSL:nuair a>

      <!--
              Staid reatha agus lastrow ar aghaidh chuig an teimpléad itemstyle.xsl Eangach.
              Beidh ItemStyle.xsl sin a úsáid chun scaoileann an oscailte agus dúnta <tábla> clibeanna.
      -->
      <XSL:nuair a tástáil="@ Stíl = 'Eangach'">
        <XSL:iarratas a dhéanamh-teimpléid roghnú="." Modh="itemstyle">
          <XSL:le-param ainm="CurPos" roghnú="$CurPosition" />
          <XSL:le-param ainm="Last" roghnú="$LastRow" />
        </XSL:iarratas a dhéanamh-teimpléid>
      </XSL:nuair a>

      <XSL:ar shlí eile>
        <XSL:iarratas a dhéanamh-teimpléid roghnú="." Modh="itemstyle">
        </XSL:iarratas a dhéanamh-teimpléid>
      </XSL:ar shlí eile>
    </XSL:roghnú>
  </XSL:teimpléad>

Cur síos ar na tuairimí chun críche na n-athruithe.

Ar ndóigh,, an OuterTemplate.CallItemTemplate "" is itself called from another template. Locate that template by searching for this text string:

<XSL:teimpléad ainm="OuterTemplate.Body">

Scrollaigh trí na treoracha i OuterTemplate.Body agus cuir isteach an paraiméadar LastRow mar seo a leanas (a thaispeántar mar a comment i gcló iodálach):

<XSL:glao-teimpléad ainm="OuterTemplate.CallItemTemplate">
  <XSL:le-param ainm="CurPosition" roghnú="$CurPosition" />
  <!-- Cuir isteach an paraiméadar LastRow. -->
  <XSL:le-param ainm="LastRow" roghnú="$LastRow"/>
</XSL:glao-teimpléad>

Tar éis seo ar fad, againn ar deireadh tá rudaí a chur ar bun i gceart ionas gur féidir ár ItemStyle.xsl scaoileann <tábla> clibeanna ag an áit cheart.

ItemStyle.Xsl

NÓTA: Arís, sheiceáil i ItemStyle.xsl tar éis aon athruithe mar sin a fheiceann tú ar an éifeacht na n-athruithe.

Tá dhá thasc anseo:

  • Replace the entire Grid template. You can copy/paste from below.
  • Cuir roinnt jumbo mumbo lasmuigh den sainmhíniú teimpléad a chuireann ar chumas "formatcurrency" template to work. (Is féidir leat insint go bhfuil mé a láimhseáil tenuous ar XSL).

An Chéad, in aice leis an barr de ItemStyle.xsl, chur leis an líne seo:

  <!-- Roinnt jumbo mumbo sin ar ár gcumas a chur ar taispeáint U.S. airgeadra. -->
  <XSL:deachúil-format ainm="foirne" dhigit="D" />

  <XSL:teimpléad ainm="Réamhshocrú" mheaitseáil="*" Modh="itemstyle">

Tabhair faoi deara gur chuir mé é díreach roimh an <XSL:ainm teimpléad = "Default" …> sainmhíniú.

Ar Aghaidh, go back to our Grid template. Replace the entire Grid template with the code below. It is thoroughly commented, Ní ach ná bíodh aon leisce ort ríomhphost chugam nó tuairimí ar mo bhlag fhágáil má tá ceisteanna agat.

  <XSL:teimpléad ainm="Greille" mheaitseáil="Rae[@ Stíl = 'Eangach']" Modh="itemstyle">

    <!--
      ContentMain.xsl Gabhann CurPos agus Deiridh.
      Bainimid úsáid as na a scaoileann coinníollach an oscailte agus dúnta <tábla> clibeanna.
    -->
    <XSL:stop a chur ainm="CurPos" />
    <XSL:stop a chur ainm="Last" />

    <!-- Na hathróga seo a leanas gan athrú ó ItemStyle.xsl caighdeánach -->
    <XSL:athróg ainm="SafeImageUrl">
      <XSL:glao-teimpléad ainm="OuterTemplate.GetSafeStaticUrl">
        <XSL:le-param ainm="UrlColumnName" roghnú="'ImageUrl'"/>
      </XSL:glao-teimpléad>
    </XSL:athróg>
    <XSL:athróg ainm="SafeLinkUrl">
      <XSL:glao-teimpléad ainm="OuterTemplate.GetSafeLink">
        <XSL:le-param ainm="UrlColumnName" roghnú="'LinkUrl'"/>
      </XSL:glao-teimpléad>
    </XSL:athróg>
    <XSL:athróg ainm="DisplayTitle">
      <XSL:glao-teimpléad ainm="OuterTemplate.GetTitle">
        <XSL:le-param ainm="Teideal" roghnú="@ Teideal"/>
        <XSL:le-param ainm="UrlColumnName" roghnú="'LinkUrl'"/>
      </XSL:glao-teimpléad>
    </XSL:athróg>
    <XSL:athróg ainm="LinkTarget">
      <XSL:más rud é tástáil="@ OpenInNewWindow = 'Fíor'" >_blank</XSL:más rud é>
    </XSL:athróg>

    <!--
      Seo linn a shainiú athróg, "TableStart".  Tá sé seo an HTML
      .  Tabhair faoi deara gur CurPos = 1, Cuimsíonn sé an HTML i tag CDATA.
      Seachas sin, beidh sé folamh.

      Is é an luach tableStart emited go ndéantar gach ItemStyle am a dtugtar trí
      .
    -->
    <XSL:athróg ainm="tableStart">
      <XSL:más rud é tástáil="$CurPos = 1">
        <![CDATA[
        <teorann tábla = 1>
          <tr bgcolor = "gorm">
            <td><cló dath = "bán"><b>Ainm an Tionscadail</b></Is iad></td>
            <td ailíniú = "ceart"><cló dath = "bán"><b>Comhlánaigh Dáta</b></Is iad></td>
            <td ailíniú = "ceart"><cló dath = "bán"><b>Buiséad</b></Is iad></td>
            <td ailíniú = "ceart"><cló dath = "bán"><b>Costas Iarbhír</b></Is iad></td>
            <td><cló dath = "bán"><b>Stádas Foriomlán</b></Is iad></td>
          </tr>
        ]]>
      </XSL:más rud é>
    </XSL:athróg>

    <!--
      Eile athróg, tableEnd Sainmhíníonn ach an chlib tábla deiridh.

      Mar is amhlaidh le tableStart, tá sé i gcónaí emited.  Sin é an fáth go bhfuil a luach.
    -->
    <XSL:athróg ainm="tableEnd">
      <XSL:más rud é tástáil="$CurPos toil; $ Last">
        <![CDATA[ </tábla> ]]>
      </XSL:más rud é>
    </XSL:athróg>

    <!--
      I gcónaí scaoileann an t-ábhar tableStart.  Más rud é nach é seo an chéad
      , ansin a fhios againn a luach
      .

      Díchumasaigh aschur éalú toisc nach nuair tableStart sé folamh, sé
      .  Má, beidh sé a ghiniúint&lt;tábla&gt;" in ionad "<tábla>".
    -->
    <XSL:luach-ar roghnú="$tableStart" dhíchumasú-aschur-éalú="yes"/>


    <tr>
      <!--
      P:Project_x005F_x0020_Name
      :Project_x005F_x0020_End_x005F_x0020_Date
      :Project_x005F_x0020_Budget
      :Project_x005F_x0020_Expenses
      :Project_x005F_x0020_Status
      -->
      <td>
        <XSL:luach-ar roghnú="@ Project_x005F_x0020_Name"/>
      </td>

      <td ailíniú="ceart">
        <XSL:luach-ar roghnú="@ Project_x005F_x0020_End_x005F_x0020_Date"/>
      </td>

      <td ailíniú="ceart">
        <XSL:glao-teimpléad ainm="formatCurrency">
          <XSL:le-param ainm="luach" 
roghnú="@ Project_x005F_x0020_Budget"></XSL:le-param> </XSL:glao-teimpléad> </td> <td ailíniú="ceart"> <XSL:glao-teimpléad ainm="formatCurrency"> <XSL:le-param ainm="luach" roghnú="@ Project_x005F_x0020_Expenses">
</XSL:le-param> </XSL:glao-teimpléad> </td> <td> <XSL:luach-ar roghnú="@ Project_x005F_x0020_Status"/> </td> <!-- Gach seo a leanas a bhfuil trácht amach chun rudaí a shoiléiriú. Mar sin féin, thabhairt ar ais agus é a stuif isteach <td> a fheiceáil ar a         . --> <!-- <div id = "linkitem" aicme = "mír"> <XSL:má tástála = "teaghrán fad-($SafeImageUrl) != 0 "> <aicme div = "íomhá i limistéar an-chlé"> <a href = "{$SafeLinkUrl}" sprioc = "{$LinkTarget}"> <img aicme = "íomhá-seasta-leithead" src = "{$SafeImageUrl}"
Poiblı = "{@ ImageUrlAltText}"/> </a> </div> </XSL:más rud é> <aicme div = "nasc-item"> <XSL:glao-teimpléad
name="OuterTemplate.CallPresenceStatusIconTemplate"/> <a href = "{$SafeLinkUrl}"
sprioc = "{$LinkTarget}" title = "Ar{@ LinkToolTip}"> <XSL:luach-ar roghnaigh = "$ DisplayTitle" /> </a> <aicme div = "tuairisc"> <XSL:luach-ar roghnaigh = "@ Cur Síos" /> </div> </div> </div>
--> </tr> <!-- Scaoileann an chlib tábla deiridh. Más rud é nach bhfuil muid ar an tsraith dheireanach, beidh sé seo a bheith folamh. --> <XSL:luach-ar roghnú="$tableEnd" dhíchumasú-aschur-éalú="yes"/> </XSL:teimpléad> <XSL:teimpléad ainm="formatCurrency"> <XSL:stop a chur ainm="luach" roghnú="0" /> <XSL:luach-ar roghnú='bhformáid-uimhir($luach, "$ DDD,DDD,DDD.DD ", "Foireann")' /> </XSL:teimpléad>

Ná Standard SSU / CAONAIGH Scrúduithe Iontráil Sonraí Tacaíocht Cascáideacha Drop-downs (nó eile laistigh den ó cumarsáide)

Suas chun dáta (04/2008): Léiríonn an iontráil seo bhlag iontach cur chuige dea-javascript bunaithe ar an bhfadhb seo: http://webborg.blogspot.com/2008/04/add-functions-and-events-to-sharepoint.html

Suas chun dáta II: (04/2008): Breathnaíonn an iontráil seo blog bhfuil tuar dóchais inti chomh maith: http://www.cleverworkarounds.com/2008/03/13/free-mosswss-2007-web-part-hide-controls-via-javascript/

Roinnt uaireanta sa tseachtain, más rud é nach laethúil, forum users describe a requirement that would normally be met via cascading drop-downs. Mar shampla, Tá mé dhá rialuithe titim síos-:

  • Liosta de U.S. stáit
  • Liosta de U.S. cities.

As responsible UI providers, we want it to operate like this:

  • Paul selects a 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 selects a city from this filtered list.

There is no out-of-the-box support for this feature. Go deimhin, 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.

The real objective of this article to to describe possible solutions and these are the options as I know them:

  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. Sa chás seo, you would normally try to use a calculated column, but some times, 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, be aware of the issue addressed by airteagal seo (http://paulgalvin.spaces.live.com/blog/cns!CC1EDB3DAA9B8AA!405.entry).
  3. Event handlers: Like 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 (and the whole object model) and can do any needed calculation.
  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 your own ASP.NET data entry function (as a stand-alone web page or as a web part) and use that instead.

If anyone knows other and/or better options, please post a comment and I’ll update the body of this post.

<deireadh />

Clibeanna Technorati:

Yes/No (sheiceáil sa bhosca) scagadh i Content Iarratas Gréasáin Cuid

To filter for a query for the Yes/No check box entitled "PG Milestone", CQWP mar seo a chumrú:

íomhá

Tá sé seo ar cheann eile de na soiléir-aon uair amháin-a-fhios-é ach crua-a-aimsiú-freagra--ar cheisteanna: Conas a scagadh ar / Níl ticbhosca Is ea baint úsáide as an t-ábhar mar chuid gréasáin cheist.

An chéad toradh an chuardaigh I find using the search term "filter yes/no content query web part" Tá árasán amach mícheart, mar sin shíl mé gur mhaith liom a chur ar an suas ann agus féach an féidir é a chur in ionad an toradh mícheart i dtorthaí cuardaigh tipiciúil.

Tá sé éasca go leor: True values = "1" and false values do not equal "1" (deas retro, iarbhír).

Sa sampla thuas,, I created site column of type "Yes/No (ticbhosca)" named "PG Milestone". I added it to a doc library, uaslódáil doiciméid cúpla, leagtar ar an luach ar feadh cúpla agus a thástáil a.

<deireadh />

Clibeanna Technorati: , ,