August 2004 - Posts

JavaScript Trick - Closing The only open window

A Good friend asked me the other day

"How do I close a window , which is the only instance , But without the alerts "

Well Alon , my friend , here goes nothing :

<script>
function CloseMe()
{
window.opener = this ;
window.close() ;
}
</script>
<input type=button value="Close Me without Alerts" onclick="CloseMe();">

 

Hope that helped you

Adlai

with 2 Comments

HowTo apply alternating colors every other row per group in ReportingService

So you want to Color each group in the table in alternating colors ,

but each group 'instance' has different amount of items

well ... the solution is :

=iif(RunningValue(<table1_Group1 grouping expression>,CountDistinct,Nothing) Mod
2, "LightBlue", "Orange")

e.g. : =iif( RunningValue( Fields!InsuredID.Value , CountDistinct,Nothing) Mod 2 , "#F1F9FF", "#DFEBF5")

 

with 4 Comments

Biztalk Template in Visio

I was looking in the rest of scott woodgate Biztalk Webcasts

and came across Visio Template with interact with Biztalk

download from :

BizTalk Server 2004 Orchestration Designer for Business Analysts

should be very usefull , I think so any way

with 3 Comments

More Visual Studio Project Types

I was looking at the introduction to Biztalk 2004 that Scoot Woodgate did in a webcast

and I looked carfully and found two new types of projects

which I didn't know that exists

1. InfoPath Projects ( No it's not part of the Office 2003 System Projects , which are Word and Excel )

which should be relevant to sharepoint 2003 ?

2. Zing Projects

Ok what's Zing ? well the 'Overview' says the following :

Zing is a new software model checking project at Microsoft Research. Our goal is to build a flexible and scalable systematic state space exploration infrastructure for software. This infrastructure includes novel algorithms, and a modular software architecture, to push the frontier on exploring  large state spaces of software. ....

more in :

http://research.microsoft.com/zing/

( see more research.ms .... )

Download :

InfoPath 2003 Toolkit for Visual Studio .NET : Download

Zing : Download Zing model checker preview now! (for non-commercial research use only, see EULA for details).

with 3 Comments

Beta testing MS Application

It seems there are more then one side of beta testing

which MS supports :

1. The ones which go into general production in the near future

2. The ones which are still in the “university level”

this one is the 2nd

http://research.microsoft.com/research/downloads/default.aspx

with 4 Comments

C# Generics from research.ms

Hi was looking at some thing called F# , and came across this one

though it's old , I liked it

http://research.microsoft.com/projects/clrgen/

with 4 Comments

XML to RTF

A great article which I came across in the MSDN site

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odc_wd2003_ta/html/odc_WD_VBNETtoRTF.asp

pity I need the 'opposite' which is RTF to XML or WordML(!)

may be i'll do it

with 2 Comments

Some JScript/ASP(.NET) tricks

1) Printing a a page which has an <IFrame> which takes long time to load :

 

<script>

function ActivateByInterval()

{

      if (document.readyState != "complete")

            window.setTimeout(ActivateByInterval, 100);

      else

parent.PrintPageAndClose() ;

}

</script>

 

2) Closing a WebForm which hasn't finished loading

 

<script>

function CloseForm()

{

      if (!window.closed)

      {

            window.setTimeout("CloseForm()",500) ;

            window.close() ;

}

}

</script>

with 3 Comments

Biztalk WebCasts

Well , it's in the MS site , a collection of BT webcats list in one place

http://www.microsoft.com/biztalk/evaluation/introduction.asp

with 2 Comments

More reporting Services Graphs

As time goes by, I'm beginning to be more and more disappointed from the DUNDAS graphs. It seems that if you "Insert" a tool tip which "points" to "Field" for the same ( or other DataSet ) , COMPILE will throw an Error which specifies that a reference to a non existing Filed is in the report , strange don’t you think ? It took me a whole day to figure it out ( I didn’t compile right away after the change ) What can I say ….
with 4 Comments

IVCUG - Debugging in Production Systems

Hi to all the israelies who go to the user groups

especialy to the last VisualC++/C# user group

after plumbing a bit in the MS site

I think that some of the meterial which is related to

the Debugging in Production Systems , by Gad Meir given on August 18, 2004

Here's a few good links which are realted

System and Device Design: Getting Started

Debugging Tools and Symbols: Getting Started

.. and last but not least Install Debugging Tools for Windows 32-bit Version

with 4 Comments

Gradient Color For the Web

Just incase you want the
gradiant that is used in the msdn site

style="filter:progid:DXImageTransform.Microsoft.Gradient(startColorStr='#FFFFFF', endColorStr='#98B2E6', gradientType='1')"

or to be more broden

<td id="msviRegionGradient1" width="50%" style="filter:progid:DXImageTransform.Microsoft.Gradient(startColorStr='#FFFFFF', endColorStr='#98B2E6', gradientType='1')"></td>

problem ? I suspect that this works from IE 5.5+

values / properties :
startColorStr = well .. let me think .. ahh the start color in HTMLCode :) , the FROM Color
endColorStr = the same but but as a From TO Color , the TO Color
gradientType = here we have two values :
... 1) "0" which means top/bottom [Vertical]
... 2) "1" which means left/right [Horizontal]

with 0 Comments

Reporting Services Graphs

As you all well know the graphs in the RS are from www.dundas.com , but parhaps due to the fact that this V1 of the RS , and the fact that this is an out side source component , a few flows were encounted.

here's the solution to a few of them :

1. you want to create a percentage graph and the percent value ( due formating “P” is in thousands )

solution : change the format to the follwing : ##0.##,"%"

2. the X Axis title is too long ( width problem ) and you want to “insert an enter“

solution : use VBA -  & vbCrLf & - in between strings, for example :

= “My “  & vbCrLf & “ Total “  & vbCrLf & “ Customers “  & vbCrLf & “ Are “  & vbCrLf & Format( Fields!Measures_Total_Cust.Value ,"###,###,###")

3. create a pop up from the graph/report for drill options

solution :

a) create an ASP.NET project with an ASPX file RdrctWebForm1.aspx

b) goto into the HTML Source of the ASPX page and add the following

<form id="Form1" method="post" runat="server">

<script>

window.open("Drill_Report.aspx?<%= Request.QueryString.ToString() %>",'','left=250,top=200,width=600,height=400,menubar=no,toolbar=no,resizable=yes,scrollbars=yes');

self.history.go(-1);

</script>

</form>

c) Choose the wanted place for link/pop up goto “Action” properties

and add the link

e.g. : =”http://localhost/MyRSAddon/RdrctWebForm1.aspx?val1=1&val2=” & Fields!Measures_Total_Cust.Value

with 0 Comments