Filtering a view based on Audience Targeting

So you’ve tried the fancy Audience Targeting (AT) feature in MOSS. You probably realized it’s just this || close to useless unless you want to use that “AMAZING” content query web part. What if you want your custom view to be filtered for the user’s audience? This solution doesn’t cover all scenarios but it goes far.

What is needed:
SPD, your view needs to be converted to XSLT, and you need an audience.

What are we trying to do:
you have a doc lib with AT turned on, and you have individual docs with audiences specified. you want to show the right audience the right docs.
but you realize that this isn’t working.

What you need to do:
Create a page with two views to your doc lib.
Convert them to XSLT.
Build a basic filter in the first one (Title contains “something”) use “contains”
The Data Query is created in the XSL, where you can edit it.

In the first view: (showing just the docs for the target audience)
In the code, search for: Name="Title"
Replace the word Title with Target_x0020_Audiences
In the code search for: Type="Text">something<
replace the word something with the exact name of your Target Audience (don’t replace the spaces with _x0200_)
right click the first view in SPD and go to web part properties > advanced
specify the audience that should see only the docs targeted at it
This view will be shown to that audience only

In the second view: (showing all docs)
right click it in SPD and go to web part properties > advanced
specify the audience that should see everything
This view will be shown to that audience only

Done

Save, browse and enjoy the hack!

InfoPath 2007 – change button label on click

Without using code, this is fairly easy.

1. create a text item in your main data source to hold the button’s label, don’t forget the default value
2. create your button and set the label to the value of the text item from step 1.
3. create the rules for the button to change the text

Asterisk on an Xbox

I’ve been on vonage for a few years and it always bothered me that they won’t peer with asterisk on the residential plans. So I decided to move to voiceway which is cheaper and was able to port my number from vonage. So then I needed to actually setup an asterisk box, but I didn’t want to buy any new hardware. I decided to use my Xbox. That’s right my Xbox. After all I was going pure sip, no pstn hardware so why not use the Xbox. (BTW it’s been up for about a month) So here you go, a step-by-step of that… Read More »

How to "ping" a port from windows

I just ran into this little nugget.

portqry

Try this command: portqry -n www.cnn.com -e 80

You should get: TCP port 80 (http service): LISTENING

Then try this: portqry -n www.cnn.com -e 3389

And you should get: TCP port 3389 (unknown service): NOT LISTENING

This utility is used for port status reporting. PortQry reports the status of a port in one of the following ways:

LISTENING This response indicates that a process is listening on the target port. PortQry received a response from the target port.

NOT LISTENING This response indicates that no process is listening on the target port. PortQry received one of the following Internet Control Message Protocol (ICMP) messages from the target port:

Destination casino online costa ricarealistische internet spielbankroulette im internetbaccarat onlinecasino softwareonline kasino spielbicycle casino gamesblack jack strategiencasino online softwareroulette online kostenlosall slots casinokasino spiele onlinekostenlose kasino spieleechtes casinospielroulette spiel,roulette spiel kaufen,online roulette spielcasino online österreichvideo poker online spielenkostenlose casino onlineinternet casino pokereuropa casino bonus coderoulette kostenlos online spielencasino bonus codecasino slots downloadbest casino onlinecasino on net comblack jack spielcasino pokeronline gewinnenwinners online casinoeurovip casino netcasino bonus,online casino no deposit bonus,casino bonus codesunbegrenztes freispielgames roulette online spielekasino onnetwww casinoonline gewinn spielrussian roulettewww online casino decasino online betrugonline gewinnspielebaccarat online spielencasino games bingocasino bestcasino spiele deinternet gewinn spielevideo poker gamesspielen kasinoflash games roulettecasino bonus codesblackjack regeln unreachable

Port unreachable

FILTERED This response indicates that the target port is being filtered. PortQry did not receive a response from the target port. A process may or may not be listening on the target port. By default, PortQry queries a TCP port three times before it returns a response of FILTERED and queries a UDP port one time before it returns a response of FILTERED.

Moving SharePoint libraries

Moving libraries from one site to another isn’t a built in feature of any sort. But there is a nice way (not free) with major benefits.

The document libraries in WSS  are easy to move if you don’t have versioning turned on. In such a simple case, you just move files over from one lib to another. But to move all the extended properties you’d need to do some DB massaging. I recently purchased a product called DocAve which is a fantastic third part SharePoint backup tool, which can be used to restore all backed up items (selected individually) out of place. Meaning to any arbitrary SharePoint location. This includes different sites and subsites.  Do yourself a favor and visit http://www.avepoint.com/

SmartPart – Loading a List, Getting a Field

In this installment we look at how to access a Sharepoint list and get at a field of that list. I’m not gonna look at the security aspect of this scenario, but suffice it to say that you’ll probably need to adjust the permissions of your traget list in order for SmartPart to gain access.

Read More »

SmartPart Design Mode Prep

This is a continuation on my SmartPart web part development. In this installment I go over what I do with the Design phase to make it more controllable.

A problem that you run into with developing with SmartPart is that what you actually develop is a User Contro, which in VS 2003 is not all that advanced in terms of visual form design. THe problems I ran into were related to precise placements of buttons and text boxes, making things appear or disappear. To make things easier I do this:

The container panel (the first one) can be made to appear and disappear and you can have multiple panels each one representing a different “mode” kind of like a seperate form. You can also use this to create multiple toolbars that would appear depending on who’s logged into the SharePoint site. The Grid layout Panel from the HTML section of the toolbox is what allows me to place things as I please. This is not a very precise representation of what your page will looklike so make sure you build and deploy for a final review.