માસિક આર્કાઇવ્ઝ: વર્ષનો બારમો મહિનો 2007

મારો પુત્ર ગેમસ્પોટએ ઘા મારીને હત્યા

તેથી, આ સવારે, મારા પુત્ર એક વય તેર પ્રતિબંધિત હાલો જોવા માટે નક્કી થયેલ છે 3 અંતે વિડિઓ ગેમસ્પોટએ. 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 વાસ્તવિક જન્મ - તારીખ, તેમણે ખરેખર દાખલ કરી શકો છો કોઈપણ birth date he wants. Once he realized that, તેમણે વિડિઓ જોવા માટે પૂરતી પોતે જૂના કરવામાં.

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

રવિવાર ફની: “તે કચરો છાપકામ છે”

કોલેજ બહાર મારી પ્રથમ નોકરી પર 1991, હું સાથે ઉત્પાદન કંપની માટે કામ કરવા માટે નસીબદાર હતી 13 સ્થાનો, 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.

આ પ્રોજેક્ટ સાથે પત્રકો અને હું સહ કાર્યકર સાથે એક નવી બાલ્ટીમોર નીચે મોકલી રહ્યો છું, જેફ. Our job was to power up the Unix box, જો ગુમાવનારા / S ચાલી રહ્યું હતું તેની ખાતરી, જો ERP સિસ્ટમ સ્થાપિત, જો ERP રૂપરેખાંકિત, train people on the ERP and do custom work for folks on the spot. (આ એક સ્વપ્ન નોકરી હતી, ખાસ કરીને સીધા બહાર કોલેજ આવતા). Before we could really get off the ground, અમે બધા લીલા ટ્યુબ અનપૅક કરવા માટે જરૂરી, put them on desks and wire them. And the best part was that we had to put the RJ11 connectors on ourselves.

હું તે સમયે સમજી ક્યારેય અને ખરેખર વિશે પૂછો ક્યારેય વિચાર્યું છે કે કેટલાક કારણોસર, અમે કેટલાક કરાર કંપનીએ પ્લાન્ટ સમગ્ર સાથે આવે છે અને કેબલ સ્કોર હતી હતી, but we didn’t have them put on the connectors. તેથી, there was a "patch box" with dozens of of unlabeled cables in the "computer room" અને આ ઇમારત વિવિધ સ્થળોએ મકાન આસપાસ snaked.

અમે એક સપ્તાહમાં દરમિયાન તે દ્વારા અમારી રીતે કામ કર્યું હતું,, દરેક વાયર પરીક્ષણ, એક કનેક્ટર પર મૂકે (ખાતરી કરવા રન vs હતી. ઓળંગી), લીલા ટ્યુબ અને પ્રિન્ટરો પર બીટ સેટિંગ્સ સાચી હતી તેની ખાતરી, 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.

પરંતુ, 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, પરંતુ પ્રિન્ટર ત્રણ સપ્તાહ નાઇટમેર ફેરવી.

તમે તેને ખબર ન હોય તો, અથવા તેને દબાવી દેવામાં આવી છે, લીલા ટ્યુબ અને પ્રિન્ટરો સાથે આ રીતે વ્યવહાર, there are various options that you deal with by setting various pins. 8-જરાક, 7-જરાક, સમાનતા (પણ / વિચિત્ર / કંઈ), probably others. If you get one of those settings wrong, ટ્યુબ અથવા પ્રિન્ટર હજુ સામગ્રી બતાવે છે, પરંતુ તે ખાલી બકબક કુલ હશે, or it will be gibberish with a lot of recognizable stuff in between. અલબત્ત, these pins are hard to see and have to be set by using a small flat-edge screw driver. And they are never standard.

અમે NJ વ્યક્તિ સાથે ઘણા ઝડપી કોલ્સ પ્રથમ સેટ (આ દિવસે જે કદાચ curses અમને સફેદ વાળવાળું કમ્પ્યુટર hater). 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, ખરેખર ક્યારેય તેમણે યોગ્ય રીતે તે કરી હતી, જો.

તે જીવંત જવા વિશે સમય, બાલ્ટીમોર બધું રંગબેરંગી છે, પરંતુ અમે કામ કરવા માટે NJ માં શ્રાપ પ્રિન્ટર અપ મેળવી શકતા નથી! 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", કદાચ અમે ખોટું કરી રહ્યાં છો તે અમને જણાવશે કે કચરો કેટલાક ચાવી હશે કે આશા.

અમે ફેક્સ મળી ત્યારે, we immediately knew what was wrong. જુઓ, our method of testing whether we had configured a printer correctly was to issue an "lp" આ જેમ આદેશ:

LP / etc / passwd

મૂળભૂત રીતે, 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:

સ્મિથ:*:100:100:8એ 74(કચેરી):/ઘર / સ્મિથ:/usr / bin / sh
:*:200:0::/ઘર / ગેસ્ટ:/usr/bin/sh  

We had been printing out the password file over and over again for several weeks and it was printing correctly. તેમ છતાં, ઓવરને વપરાશકર્તાને, it was "printing garbage".

</અંત>

હજી બીજું નેટવર્ક ઓળખપત્રો મલ્ટી ચેલેન્જ ઇશ્યૂ અને ઉકેલ

મારી ક્લાઈન્ટ તાજેતરમાં જાદુ ઉપકરણ સ્થાપિત બારેમાસ લીલું રહેનારું ઝાડ કે દેખીતી રીતે તેમના જૂના સિસ્કો નેટવર્ક લોડ બેલેન્સર સ્થાને (NLB). At about the same time, અમે સ્થાપિત એક વર્કફ્લો સમસ્યા સંબોધવા માટે હોટફિક્સ.

એક દિવસ અથવા બે પાછળથી, અમે વહેંચાયેલ સેવા પ્રદાતા ઍક્સેસ ત્યારે અમે સમસ્યા જણાયું (સ્ટેટયુટરી સિક પે). 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, અમે ખબર ન હતી કે બે તે (જ્યુનિપર અથવા હોટફિક્સ) આ મુદ્દો હશે, હું મજબૂત હોટફિક્સ શંકા છતાં, અમે તદ્દન અધિકાર તે સ્થાપિત ન હતી figuring.

It turned out that Juniper had some kind of compression setting. જો એક 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 બ્રાઉઝર્સ (IE 7 બ્રાઉઝર્સ મુશ્કેલી વગર કામ કર્યું).

તેથી, add "compression" જોખમો સૂચિમાં.

</અંત>

ધિરાણ: http://www.elfwood.com/art/s/h/sherry/death_colour.jpg.html

Technorati ટૅગ્સ: ,

બ્લોગિંગ પ્લેટફોર્મ બદલવા વિશે વિચારવાનો

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", તેથી આગળ પ્રતિષ્ઠિત વેબ સંગ્રહ અને.

તેમ છતાં, 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.

પ્રથમ, 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 (અથવા ખાસ કરીને શોધવા માટે નિષ્ફળ) when they search my blog. It’s very hard to use lives spaces for that.

બીજું, there does not seem to be any mechanism to "monetize" a windows live space blog. હકીકતમાં, બોલ એમએસ જાહેરાતો છુટકારો મેળવવા માટે ક્રમમાં (હું કોઈ લાભ મેળવવા જેમાંથી), I need to actually pay Microsoft. (ઓછામાં ઓછું, કે હું તે સમજવા કેવી રીતે; હું આ માટે ચોક્કસ જવાબો વિચાર અક્ષમ કરવામાં આવી છે અને પ્રશ્નો તે ગમશે).

હું બ્લોગિંગ મદ્યપાન એક સ્થાપિત પેટર્ન અને સેટ મળી છે હવે કે, I want to evaluate other options. I’ve done some research and there are a lot of choices, પરંતુ હું અન્ય કયા લોકોને તરીકે વિચિત્ર છું, શેરપોઈન્ટ સમુદાયમાં, ખાસ કરીને અન્ય (બ્લોગર્સ કે વાચકો), like to use.

આ વિષય તમને રસ અને તમે એક અભિપ્રાય છે અથવા તમારો અનુભવ શેર કરવા માટે તૈયાર છે તો, એક ટિપ્પણી મૂકો અથવા સીધા મને ઇમેઇલ કરો.

આભારદર્શક શબ્દો!

<ઓવરને />

Technorati ટૅગ્સ:

શેરપોઈન્ટ ડિઝાઈનર ઇમેઇલ મોકલે છે ???? ઇમેઇલમાં

ફોરમ વપરાશકર્તાઓ ક્યારેક પૂછો: શા શેરપોઈન્ટ ડિઝાઈનર મૂકી નથી ???? તેના બદલે એક ક્ષેત્ર કિંમત મારા ઇમેઇલ માં?

જે તમે સંદર્ભ માટે ચલ નલ છે કારણ કે આ બને એક કારણ છે.

This can happen because you are trying to reference a field from the "current item" પરંતુ વપરાશકર્તા કે ફોર્મ ક્ષેત્રમાં એક મૂલ્ય દાખલ ક્યારેય.

<ઓવરને />

Technorati ટૅગ્સ:

ની સાથે સરખાવવું / શેરપોઈન્ટ ડિઝાઈનર વર્કફ્લો માં ખાલી તારીખો માટે ટેસ્ટ

દૃશ્ય લેખ: એક શેરપોઈન્ટ ડિઝાઈનર વર્કફ્લો ઈંચ, you need to determine if a date field is blank.

સમસ્યા: SPD does not provide a direct method for comparing dates to anything other than a date. You cannot create a condition like this: "If [તારીખ ક્ષેત્ર] equals blank".

ઉકેલ: Convert the date to a string. Use string comparison to determine if the date is blank.

સ્ક્રીન શોટ:

The following screen shots show how to do this. આ દ્રશ્ય માં, આઇટમ પર એક ક્ષેત્ર, "Environmental Permits:First Permit Reminder Date", સબમિટ અને જવાબમાં વર્કફ્લો આગ છે.

છબી

છબી

નોંધો:

હું આ પ્રયાસ કર્યો ત્યારે, I was pleasantly surprised to learn that it works. I was worried that SharePoint Designer might disallow the string assignment (પરિવર્તનશીલ:StringReminderDateDate) પરંતુ તે માટે પરવાનગી આપે કર્યું.

હું પણ તે પરવાનગી આપે છે કે જે સંબંધિત હતી, મૂલ્ય નલ હોઇ શકે છે અને ક્યાં તો રનટાઈમે WF અપ તમાચો અથવા કદાચ વૈશ્વિક તાપમાનમાં વધારો થઈ શકે છે 1/2 ડિગ્રી, પરંતુ તે ચિંતા ખોટી હતી.

</અંત>

Technorati ટૅગ્સ:

બાર હજી MOSS વિસ્તારવા પ્રીટિ ઊંચી છે

આજ, 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, તમે તેની માહિતી સ્ત્રોત સાથે જોડાવા માટે રૂપરેખાંકિત CQWP, પછી તમે તમારા વર્કસ્ટેશન નિકાસ, સંશોધિત <CommonViewFields>, અપલોડ, remove the original and now it’s ‘primed’ to display those other columns. આગામી, શેરપોઈન્ટ ડિઝાઈનર ખોલો, 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. છેલ્લે, તમારા નવા ક્ષેત્રો રેન્ડર કરવા માટે નમૂના સંશોધિત! (તે ફરી તપાસો કરવાનું ભૂલો નહિં કે જેથી અન્ય વપરાશકર્તાઓ પરિણામો જોઈ શકો છો)."

તે બધા મને ખૂબ સ્પષ્ટ છે (અને અમને મોટા ભાગના શેરપોઈન્ટ વિકાસકર્તા પ્રકારો) શું થઈ રહ્યું છે અને તે ખૂબ સરસ છે કેવી રીતે, ખરેખર, that the data retrieval aspects of the CQWP are so well-separate from the data presentation aspects. પરંતુ, તે સમજાવવા માટે કે જેથી સરળ નથી, તે છે?

<ઓવરને />

એક ગ્રીડ સમાવિષ્ટ પ્રશ્ન વેબ ભાગ પરિણામો દર્શાવો / ટેબલ

ઝાંખી અને ઉદ્દેશ

આ બોક્સની બહાર, શેવાળ’ સામગ્રી ક્વેરી વેબ પાર્ટ (CQWP) યાદી બંધારણમાં માં તેના પરિણામો દર્શાવે છે, similar to search results. It is also possible to display the results in a grid format (દાખલા તરીકે. HTML કોષ્ટક બંધારણમાં). Grid formats are better in some circumstances. I describe how to achieve that effect in this article.

વ્યાપાર પરિદ્દશ્ય

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, જેમ કે શીર્ષક, બજેટ, અપેક્ષા પૂર્ણ તારીખ, remaining budget and other summary type fields. By "singleton" I mean a custom SharePoint list guaranteed to contain only one item. Simplistically, તે આના જેવું દેખાય છે:

છબી

વર્ણવ્યા અનુસાર ટેકનિકલ અભિગમ ખૂબ જ છે અહીં (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:

છબી

આ જેમ HTML કે પરિણામ પેદા:

<HTML>
 <સંસ્થા>
 <કેન્દ્ર>
 <ટેબલ સરહદ= 1>

<!-- લેબલ્સ ->
 <ટીઆર bgcolor= વાદળી>
 <ટીડી><ખિસ્ત્રી દેવળનું પવિત્ર જલપાત્ર રંગ= સફેદ><બોલ્ડ>પ્રોજેક્ટ નામ</બોલ્ડ></ખિસ્ત્રી દેવળનું પવિત્ર જલપાત્ર></ટીડી>
 <ટીડી એક હારમાં લાવવું= અધિકાર><ખિસ્ત્રી દેવળનું પવિત્ર જલપાત્ર રંગ= સફેદ><બોલ્ડ>તારીખ પૂર્ણ</બોલ્ડ></ખિસ્ત્રી દેવળનું પવિત્ર જલપાત્ર></ટીડી>
 <ટીડી એક હારમાં લાવવું= અધિકાર><ખિસ્ત્રી દેવળનું પવિત્ર જલપાત્ર રંગ= સફેદ><બોલ્ડ>બજેટ</બોલ્ડ></ખિસ્ત્રી દેવળનું પવિત્ર જલપાત્ર></ટીડી>
 <ટીડી એક હારમાં લાવવું= અધિકાર><ખિસ્ત્રી દેવળનું પવિત્ર જલપાત્ર રંગ= સફેદ><બોલ્ડ>વાસ્તવિક ખર્ચ</બોલ્ડ></ખિસ્ત્રી દેવળનું પવિત્ર જલપાત્ર></ટીડી>
 <ટીડી><ખિસ્ત્રી દેવળનું પવિત્ર જલપાત્ર રંગ= સફેદ><બોલ્ડ>એકંદર સ્થિતિ</બોલ્ડ></ખિસ્ત્રી દેવળનું પવિત્ર જલપાત્ર></ટીડી>
 </ટીઆર>

<ટીઆર>
 <ટીડી>ફરી વાયર કોમ્પ્યુટર રૂમ.</ટીડી>
 <ટીડી એક હારમાં લાવવું= અધિકાર>02/01/08</ટીડી>
 <ટીડી એક હારમાં લાવવું= અધિકાર>22,500.00</ટીડી>
 <ટીડી એક હારમાં લાવવું= અધિકાર>19,000.00</ટીડી>
 <ટીડી>પ્રગતિ</ટીડી>
 </ટીઆર>

<ટીઆર>
 <ટીડી>એસક્યુએલ સુધારા માટે જોગવાઈ સર્વર્સ</ટીડી>
 <ટીડી એક હારમાં લાવવું= અધિકાર>04/01/08</ટીડી>
 <ટીડી એક હારમાં લાવવું= અધિકાર>7,500.00</ટીડી>
 <ટીડી એક હારમાં લાવવું= અધિકાર>0.00</ટીડી>
 <ટીડી>આયોજિત</ટીડી>
 </ટીઆર>

</ટેબલ>
 </કેન્દ્ર>
 </સંસ્થા>
</HTML>

માર્ગ

ગ્રીડ બનાવવા માટે આ પગલાંઓ અનુસરો:

  1. ગ્રીડ ની ઘટકો ઓળખો (પંક્તિઓ / કૉલમ્સ).
  2. જરૂરી સાઇટ કૉલમ નિર્ધારિત અને બનાવો.
  3. પ્રોજેક્ટ અને singleton યાદી ઉપ સાઇટ્સ બનાવો.
  4. વેબ પૃષ્ઠ પર CQWP ઉમેરો અને તેને તમારા યાદીઓ શોધવા માટે રૂપરેખાંકિત.
  5. વધારાના કૉલમ અપ ભેગા કરવા CQWP માતાનો XML બદલો.
  6. એક કોષ્ટક પેદા કરવા માટે XSL બદલો.

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 અહીં (http://msdn2.microsoft.com/en-us/library/bb897399.aspx) અને હિથર સોલોમનના બ્લોગ અહીં (http://www.heathersolomon.com/blog/articles/CustomItemStyle.aspx).

બદામ અને બોલ્ટ્સ સામેલ

પગલાંઓ એમએસડીએન દસ્તાવેજીકરણ અને હિથર સોલોમન લેખ મુજબ પાંચ મારફતે એક કરવાનું શરૂ કરો અને અમલ.

આ બિંદુએ, તમે પૃષ્ઠ પર તમારા CQWP ઉમેર્યા છે અને તમારી પાસે તમારી <CommonViewFields> જરૂરી તરીકે રૂપરેખાંકિત.

સામાન્ય પગલાંઓ અનુસરીને, હું આ મધ્યવર્તી વિચાર પરિણામો:

1. સામગ્રી પ્રકાર બનાવો, a templatized custom list for that content type and two sites. Here is the content type:

છબી

અહીં સાઇટ માળખું છે:

છબી

2. મારા પ્રોજેક્ટ subsites અને singleton પ્રોજેક્ટ સારાંશ યાદીઓ બનાવવા પછી CQWP ઉમેરો:

છબી

3. વાયા હું માંગો બધા વધારાની માહિતી ઉમેરો <CommonViewFields>:

        <મિલકત નામ="CommonViewFields" પ્રકાર="સ્ટ્રિંગ">Project_x0020_Name;Project_x0020_Expenses;Project_x0020_Status;Project_x0020_Start_x0020_Date;Project_x0020_End_x0020_Date;Project_x0020_Budget</મિલકત>

હું એક વાક્ય પર બધી મિલકત ક્ષેત્રો રાખવા હતું કે નોંધ અથવા તે કામ કરશે નહિં (CQWP ક્વેરી કોઈ આઇટમ પરત કે મને કહી હોત).

4. આ બિંદુએ, 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 વૈવિધ્યપૂર્ણ બનાવવા માટે / unghosted version of ItemStyle.xsl. I follow Heather’s advice, પગલું દ્વારા અપ 11 અને આ મધ્યવર્તી વિચાર પરિણામો:

4.1: મારા XSL નમૂના તરીકે નીચે નામ:

<xsl:template name="Grid" match="Row[@Style=’Grid’]" mode="itemstyle">

હું પણ સહેજ તેના સૂચન સંશોધિત <xsl:-દરેક માટે …> એક ઉમેરીને </ બીઆર> એક ક્લીનર યાદી પૂરી પાડે છે ટૅગ:

    <xsl:-દરેક માટે પસંદ કરો="@ *">
      પી:<xsl:કિંમત ઓફ પસંદ કરો="નામ()" /><બીઆર/>
    </xsl:-દરેક માટે>

4.2: હું વેબ ભાગ સંશોધિત, go to appearance and select my "Grid" શૈલી:

છબી

ફેરફાર લાગુ પડે છે અને અહીં પરિણામ છે:

છબી

અમે ક્ષેત્રો અમે માંગો છો તે ઉપરથી જોઈ શકો છો (પ્રોજેક્ટનું નામ, મૂલ્ય, સ્થિતિ, વગેરે) 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. ઉદાહરણ તરીકે, we reference Project Status as "Project_x005F_x0020_Name".

આ બિંદુએ, અમે હિથર માતાનો બ્લૉગ અને આ ધ શોલ્ડર્સ ઓફ જાયન્ટ્સ થી પ્રયાણ, હું મારા પોતાના થોડુંક ઉમેરો.

ContentQueryMain.xsl

નોંધ: બંને ContentQueryMain.xsl ફેરફારો કર્યા છે તેમજ ItemStyle.xsl ત્યારે, તમે તમારા ફેરફારો અસર જોવા પહેલાં તમે પાછા તે ફાઇલો તપાસ કરવાની જરૂર.

ગ્રીડ નિર્માણ હેતુ માટે, 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, ContentQueryMain.xsl is the "main" 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 <ટેબલ> માહિતી પ્રથમ પંક્તિ સ્રાવ બહાર કાઢે છે તે પહેલાં ટૅગ અને બંધ <ટેબલ> tag after emitting the last row. To accomplish this, ContentQueryMain.xsl is modified to pass two parameters to our "grid" ItemStyle.xsl માં નમૂનો, "last row" and "current row". ItemStyle.xsl uses these to conditionally emit the necessary tags.

હિથર સોલોમનના ટેકનીકની મદદથી, we locate ContentQueryMain.xsl. It is located in the same place as ItemStyle.xsl. This screen shot should help:

છબી

અમે નીચેના ફેરફારો કરવાની જરૂર છે:

  • એક 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 <ટેબલ> ટૅગ્સ.
  • Modify another bit of ContentQueryMain.xsl that calls the "CallItemTemplate" to pass it a "LastRow" LastRow અમારા ગ્રીડ નમૂના પર પસાર કરી શકે છે કે જેથી પરિમાણ.

Locate the template named "OuterTemplate.CallItemTemplate" શબ્દમાળા ક:

  <xsl:નમૂનો નામ="OuterTemplate.CallItemTemplate">

નીચે પ્રમાણે સમગ્ર નમૂનો બદલો:

  <xsl:નમૂનો નામ="OuterTemplate.CallItemTemplate">
    <xsl:પરમ નામ="CurPosition" />

    <!--
      Add the "LastRow" પારમિતિ.
      We only use it when the item style pass in is "Grid".
    -->
    <xsl:પરમ નામ="LastRow" />

    <xsl:પસંદ કરો>
      <xsl:ક્યારે પરીક્ષણ="@ પ્રકાર = 'NewsRollUpItem'">
        <xsl:-નમૂનાઓ અરજી પસંદ કરો="." રીત="itemstyle">
          <xsl:સાથે પરમ નામ="EditMode" પસંદ કરો="$cbq_iseditmode" />
        </xsl:-નમૂનાઓ અરજી>
      </xsl:ક્યારે>
      <xsl:ક્યારે પરીક્ષણ="@ પ્રકાર = 'NewsBigItem'">
        <xsl:-નમૂનાઓ અરજી પસંદ કરો="." રીત="itemstyle">
          <xsl:સાથે પરમ નામ="CurPos" પસંદ કરો="$CurPosition" />
        </xsl:-નમૂનાઓ અરજી>
      </xsl:ક્યારે>
      <xsl:ક્યારે પરીક્ષણ="@ પ્રકાર = 'NewsCategoryItem'">
        <xsl:-નમૂનાઓ અરજી પસંદ કરો="." રીત="itemstyle">
          <xsl:સાથે પરમ નામ="CurPos" પસંદ કરો="$CurPosition" />
        </xsl:-નમૂનાઓ અરજી>
      </xsl:ક્યારે>

      <!--
              આ ગ્રીડ itemstyle.xsl નમૂના પર વર્તમાન સ્થિતિ અને lastrow પસાર.
              ItemStyle.xsl ઓપન અને બંધ સ્રાવ બહાર કાઢે છે કે ઉપયોગ કરશે <ટેબલ> ટૅગ્સ.
      -->
      <xsl:ક્યારે પરીક્ષણ="@ પ્રકાર = 'ગ્રીડ'">
        <xsl:-નમૂનાઓ અરજી પસંદ કરો="." રીત="itemstyle">
          <xsl:સાથે પરમ નામ="CurPos" પસંદ કરો="$CurPosition" />
          <xsl:સાથે પરમ નામ="અંતિમ" પસંદ કરો="$LastRow" />
        </xsl:-નમૂનાઓ અરજી>
      </xsl:ક્યારે>

      <xsl:અન્યથા>
        <xsl:-નમૂનાઓ અરજી પસંદ કરો="." રીત="itemstyle">
        </xsl:-નમૂનાઓ અરજી>
      </xsl:અન્યથા>
    </xsl:પસંદ કરો>
  </xsl:નમૂનો>

ટિપ્પણીઓ ફેરફારો હેતુ વર્ણન.

અલબત્ત, the "OuterTemplate.CallItemTemplate" is itself called from another template. Locate that template by searching for this text string:

<xsl:નમૂનો નામ="OuterTemplate.Body">

OuterTemplate.Body માં સૂચનો મારફતે સ્ક્રોલ અને LastRow પરિમાણ તરીકે નીચે દાખલ કરો (ત્રાંસા એક ટિપ્પણી તરીકે દર્શાવવામાં):

<xsl:કોલ નમૂનો નામ="OuterTemplate.CallItemTemplate">
  <xsl:સાથે પરમ નામ="CurPosition" પસંદ કરો="$CurPosition" />
  <!-- જો LastRow પરિમાણ શામેલ કરો. -->
  <xsl:સાથે પરમ નામ="LastRow" પસંદ કરો="$LastRow"/>
</xsl:કોલ નમૂનો>

આ બધા પછી, અમે છેલ્લે વસ્તુઓ યોગ્ય રીતે જેથી અમારી ItemStyle.xsl સ્રાવ બહાર કાઢી શકે છે કે જે સુયોજિત છે <ટેબલ> જમણી સ્થળ પર ટૅગ્સ.

ItemStyle.Xsl

નોંધ: ફરી, તમે તે ફેરફારો અસર જોવા કે જેથી કોઇ પણ ફેરફારો કર્યા પછી ItemStyle.xsl ચેક.

અમે અહીં બે કાર્યો છે:

  • Replace the entire Grid template. You can copy/paste from below.
  • Add some mumbo jumbo outside the template definition that enables "formatcurrency" template to work. (તમે મને XSL પર બારીક હેન્ડલ છે કે કહી શકો છો).

પ્રથમ, ItemStyle.xsl ટોચ નજીક, આ લીટી ઉમેરો:

  <!-- અમને યુ.એસ. પ્રદર્શિત કરવા માટે સક્રિય કરે છે કે જે અમુક mumbo જમ્બો. ચલણ. -->
  <xsl:દશાંશ ફોર્મેટ નામ="સ્ટાફ" અંક="ડી" />

  <xsl:નમૂનો નામ="મૂળભૂત" મેળ ખાતી="*" રીત="itemstyle">

હું પહેલાં સીધા ઉમેરવામાં નોંધ કરો કે <xsl:template name="Default" …> વ્યાખ્યા.

આગામી, go back to our Grid template. Replace the entire Grid template with the code below. It is thoroughly commented, પરંતુ મને ઇમેઇલ અચકાવું અથવા તમે પ્રશ્નો હોય, તો મારા બ્લોગ પર ટિપ્પણીઓ નથી.

  <xsl:નમૂનો નામ="ગ્રિડ" મેળ ખાતી="પંક્તિ[@ પ્રકાર = 'ગ્રીડ']" રીત="itemstyle">

    <!--
      ContentMain.xsl CurPos અને છેલ્લું પસાર.
      અમે શરતી ઓપન અને બંધ સ્રાવ બહાર કાઢે છે આ વાપરો <ટેબલ> ટૅગ્સ.
    -->
    <xsl:પરમ નામ="CurPos" />
    <xsl:પરમ નામ="અંતિમ" />

    <!-- નીચેના ચલો પ્રમાણભૂત ItemStyle.xsl માંથી સુધાર્યા વિના છે -->
    <xsl:પરિવર્તનશીલ નામ="SafeImageUrl">
      <xsl:કોલ નમૂનો નામ="OuterTemplate.GetSafeStaticUrl">
        <xsl:સાથે પરમ નામ="UrlColumnName" પસંદ કરો="'ImageUrl'"/>
      </xsl:કોલ નમૂનો>
    </xsl:પરિવર્તનશીલ>
    <xsl:પરિવર્તનશીલ નામ="SafeLinkUrl">
      <xsl:કોલ નમૂનો નામ="OuterTemplate.GetSafeLink">
        <xsl:સાથે પરમ નામ="UrlColumnName" પસંદ કરો="'LinkUrl'"/>
      </xsl:કોલ નમૂનો>
    </xsl:પરિવર્તનશીલ>
    <xsl:પરિવર્તનશીલ નામ="DisplayTitle">
      <xsl:કોલ નમૂનો નામ="OuterTemplate.GetTitle">
        <xsl:સાથે પરમ નામ="શીર્ષક" પસંદ કરો="@ શીર્ષક"/>
        <xsl:સાથે પરમ નામ="UrlColumnName" પસંદ કરો="'LinkUrl'"/>
      </xsl:કોલ નમૂનો>
    </xsl:પરિવર્તનશીલ>
    <xsl:પરિવર્તનશીલ નામ="LinkTarget">
      <xsl:જો પરીક્ષણ="@ OpenInNewWindow = 'સાચું'" >_blank</xsl:જો>
    </xsl:પરિવર્તનશીલ>

    <!--
      અહીં આપણે એક ચલ વ્યાખ્યાયિત, "tableStart".  આ એચટીએમએલ પડે
      .  નોંધ કરો કે જો CurPos = 1, જો તે CDATA ટૅગ માં HTML સમાવેશ થાય છે.
      અન્યથા, તે ખાલી રહેશે.

      TableStart ની કિંમત દર વખતે ItemStyle મારફતે કહેવાય છે emited છે
      .
    -->
    <xsl:પરિવર્તનશીલ નામ="tableStart">
      <xsl:જો પરીક્ષણ="$CurPos = 1">
        <![CDATA[
        <ટેબલ સરહદ = 1>
          <tr bgcolor="blue">
            <ટીડી><font color="white"><બોલ્ડ>પ્રોજેક્ટ નામ</બોલ્ડ></ખિસ્ત્રી દેવળનું પવિત્ર જલપાત્ર></ટીડી>
            <td align="right"><font color="white"><બોલ્ડ>તારીખ પૂર્ણ</બોલ્ડ></ખિસ્ત્રી દેવળનું પવિત્ર જલપાત્ર></ટીડી>
            <td align="right"><font color="white"><બોલ્ડ>બજેટ</બોલ્ડ></ખિસ્ત્રી દેવળનું પવિત્ર જલપાત્ર></ટીડી>
            <td align="right"><font color="white"><બોલ્ડ>વાસ્તવિક ખર્ચ</બોલ્ડ></ખિસ્ત્રી દેવળનું પવિત્ર જલપાત્ર></ટીડી>
            <ટીડી><font color="white"><બોલ્ડ>એકંદર સ્થિતિ</બોલ્ડ></ખિસ્ત્રી દેવળનું પવિત્ર જલપાત્ર></ટીડી>
          </ટીઆર>
        ]]>
      </xsl:જો>
    </xsl:પરિવર્તનશીલ>

    <!--
      અન્ય ચલ, tableEnd ખાલી બંધ ટેબલ ટૅગ વ્યાખ્યાયિત.

      TableStart સાથે, તે હંમેશા emited છે.  તેની કિંમત છે આ શા માટે છે
      .
    -->
    <xsl:પરિવર્તનશીલ નામ="tableEnd">
      <xsl:જો પરીક્ષણ="$CurPos છેલ્લું $ =">
        <![CDATA[ </ટેબલ> ]]>
      </xsl:જો>
    </xsl:પરિવર્તનશીલ>

    <!--
      હંમેશા tableStart સમાવિષ્ટો સ્રાવ બહાર કાઢે છે.  આ પ્રથમ નહિં હોય, તો
      , પછી અમે તેની કિંમત ખબર
      .

      બહાર નીકળતો આઉટપુટને નિષ્ક્રિય કારણ કે જ્યારે tableStart તે ખાલી નથી, તે
      .  જો
      , it will generate
      stuff like "&એલટી;ટેબલ&જીટી;" instead of "<ટેબલ>".
    -->
    <xsl:કિંમત ઓફ પસંદ કરો="$tableStart" અક્ષમ-આઉટપુટ-નીકળતો="હા"/>


    <ટીઆર>
      <!--
      પી:Project_x005F_x0020_Name
      :Project_x005F_x0020_End_x005F_x0020_Date
      :Project_x005F_x0020_Budget
      :Project_x005F_x0020_Expenses
      :Project_x005F_x0020_Status
      -->
      <ટીડી>
        <xsl:કિંમત ઓફ પસંદ કરો="@ Project_x005F_x0020_Name"/>
      </ટીડી>

      <ટીડી એક હારમાં લાવવું="અધિકાર">
        <xsl:કિંમત ઓફ પસંદ કરો="@ Project_x005F_x0020_End_x005F_x0020_Date"/>
      </ટીડી>

      <ટીડી એક હારમાં લાવવું="અધિકાર">
        <xsl:કોલ નમૂનો નામ="formatcurrency">
          <xsl:સાથે પરમ નામ="કિંમત" 
પસંદ કરો="@ Project_x005F_x0020_Budget"></xsl:સાથે પરમ> </xsl:કોલ નમૂનો> </ટીડી> <ટીડી એક હારમાં લાવવું="અધિકાર"> <xsl:કોલ નમૂનો નામ="formatcurrency"> <xsl:સાથે પરમ નામ="કિંમત" પસંદ કરો="@ Project_x005F_x0020_Expenses">
</xsl:સાથે પરમ> </xsl:કોલ નમૂનો> </ટીડી> <ટીડી> <xsl:કિંમત ઓફ પસંદ કરો="@ Project_x005F_x0020_Status"/> </ટીડી> <!-- નીચેની બધી વસ્તુઓ સ્પષ્ટ કરવા માટે બહાર ટિપ્પણી થયેલ છે. તેમ છતાં, તેને પાછું લાવવા અને તેને સામગ્રી <ટીડી> તેના માટે જુઓ         . --> <!-- <div id="linkitem" class="item"> <xsl:if test="string-length($SafeImageUrl) != 0"> <div class="image-area-left"> <a href="{$SafeLinkUrl}" target="{$LinkTarget}"> <img class="image-fixed-width" src="{$SafeImageUrl}"
alt="{@ ImageUrlAltText}"/> </એક> </div> </xsl:જો> <div class="link-item"> <xsl:કોલ નમૂનો
name="OuterTemplate.CallPresenceStatusIconTemplate"/> <a href="{$SafeLinkUrl}"
target="{$LinkTarget}" title="{@ LinkTooltip}"> <xsl:value-of select="$DisplayTitle"/> </એક> <div class="description"> <xsl:value-of select="@Description" /> </div> </div> </div>
--> </ટીઆર> <!-- બંધ ટેબલ ટૅગ સ્રાવ બહાર કાઢે છે. અમે લોડ પંક્તિ પર ન હોય તો, આ ખાલી રહેશે. --> <xsl:કિંમત ઓફ પસંદ કરો="$tableEnd" અક્ષમ-આઉટપુટ-નીકળતો="હા"/> </xsl:નમૂનો> <xsl:નમૂનો નામ="formatcurrency"> <xsl:પરમ નામ="કિંમત" પસંદ કરો="0" /> <xsl:કિંમત ઓફ પસંદ કરો='બંધારણમાં નંબર($કિંમત, "$DDD,DDD,DDD.DD", "staff")' /> </xsl:નમૂનો>

ધોરણ WSS / MOSS ડેટા એન્ટ્રી સ્ક્રીન કાસ્કેડિંગ ડ્રોપ ડાઉન્સ આધાર આપતા નથી (અથવા સંચાર ઇન્ટ્રા અન્ય)

અપડેટ (04/2008): આ મહાન બ્લોગ એન્ટ્રી આ સમસ્યા માટે આ બોલ પર કોઈ JavaScript આધારિત અભિગમ બતાવે છે: http://webborg.blogspot.com/2008/04/add-functions-and-events-to-sharepoint.html

અદ્યતન II: (04/2008): આ બ્લોગ એન્ટ્રી તેમજ આશાસ્પદ દેખાય: http://www.cleverworkarounds.com/2008/03/13/free-mosswss-2007-web-part-hide-controls-via-javascript/

ઘણી વખત એક સપ્તાહ, દૈનિક જો નહિં, તો, forum users describe a requirement that would normally be met via cascading drop-downs. ઉદાહરણ તરીકે, હું બે ડ્રોપ ડાઉન નિયંત્રણો હોય છે:

  • યુ.એસ. યાદી. રાજ્યો
  • યુ.એસ. યાદી. 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. હકીકતમાં, 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. આ કિસ્સામાં, 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 આ લેખ (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.

<ઓવરને />

Technorati ટૅગ્સ:

Yes/No (બોક્સ તપાસો) સામગ્રી ક્વેરી વેબ ભાગ ફિલ્ટરિંગ

To filter for a query for the Yes/No check box entitled "PG Milestone", આ જેમ CQWP રૂપરેખાંકિત:

છબી

આ તે સ્પષ્ટ-એકવાર તમે જાણતા તે પણ હાર્ડ માટે શોધવા-એક જવાબ થી પ્રશ્નોના અન્ય એક છે: સામગ્રી ક્વેરી વેબ ભાગ મદદથી હા / ના ચેક બોક્સ પર ફિલ્ટર કરવા માટે કેવી રીતે.

The first search result I find using the search term "filter yes/no content query web part" is flat out wrong, so I thought I’d put this up there and see if it can replace the incorrect result in typical search results.

It’s quite easy: True values = "1" and false values do not equal "1" (pretty retro, actually).

In the above example, I created site column of type "Yes/No (checkbox)" named "PG Milestone". I added it to a doc library, uploaded a few documents, set the value for a couple and tested it.

<ઓવરને />