Tuesday, October 30, 2012

Loading EIP on Win 7

The IIS 7 LODESTAR virtual site was never created.

Here is what I had to check:

Withing the add components - IIS - app dev - check all boxes

Wednesday, May 23, 2012

Random value in a range

Update a value in SQL Server 2008 with a random value in a range:

ABS(CHECKSUM(NEWID())) % 300 + 110 (that will add numbers between 110 and 409

Monday, May 21, 2012

Worket Custom Function

Here is how to create a custom function to manipulate 2 or more cuts in a workset in LODESTAR 1.6
Files needed to change:
FuncProg2.asp
functions.xsd
dictionary.dic
Function.asp
FunctionCuts.xslt

To add scalar operators: add to:

 


































To create the custom function, add this to the functions.xsd file.

                 
            Cut2 = CreateCopy();
            
       
       
            
              
              
              
              
              
              
              
              
              
              
            
            
        

cut 1 = current cut
cut 2 = cut that is created after math operation
cut 3 = second selected cut for operation
New Function in funcprog2.asp

Tuesday, March 29, 2011

CSS style for native framework date popups (date picker)

.numeric { behavior: url(/lodestar/Classic/controls/numeric.htc); ls-digits: 2; ls-decimal: .; ls-lead: ; ls-validrange: "Valid range is";}
.date { behavior: url(/lodestar/Classic/controls/date.htc); ls-delimiter: /; ls-popupfolder: /lodestar/Classic; ls-posdate: 1; ls-posmonth: 0; ls-posyear: 2; ls-maskabbrev: dd,MM,yyyy,HH,mm,ss; ls-validrange: "Valid mask is"; ls-months: "January,February,March,April,May,June,July,August,September,October,November,December"; ls-days: "Sun,Mon,Tue,Wed,Thu,Fri,Sat"; ls-navtitle: "Previous Month,Next Month,Previous Year, Next Year, Click to select month, Click to select year"; ls-p_clear: Clear; ls-p_today: Today;}
.datetime { behavior: url(/lodestar/Classic/controls/datetime.htc); ls-sdate: /; ls-stime: :; ls-popupfolder: /lodestar/Classic; ls-posdate: 1; ls-posmonth: 0; ls-posyear: 2; ls-maskabbrev: dd,MM,yyyy,HH,mm,ss; ls-validrange: "Valid mask is"; ls-months: "January,February,March,April,May,June,July,August,September,October,November,December"; ls-days: "Sun,Mon,Tue,Wed,Thu,Fri,Sat"; ls-navtitle: "Previous Month,Next Month,Previous Year, Next Year, Click to select month, Click to select year"; ls-p_clear: Clear; ls-p_today: Today; ls-dayend: End of Day;}
.monthyear { behavior: url(/lodestar/Classic/controls/monthyear.htc); ls-delimiter: /; ls-maskabbrev: dd,MM,yyyy,HH,mm,ss; ls-validrange: "Valid mask is"; ls-months: "January,February,March,April,May,June,July,August,September,October,November,December"; ls-days: "Sun,Mon,Tue,Wed,Thu,Fri,Sat"; ls-navtitle: "Previous Month,Next Month,Previous Year, Next Year, Click to select month, Click to select year"; ls-p_clear: Clear; ls-p_today: Today;}

Monday, December 6, 2010

Custom Theme in 1.6.1

Create folder under App_Themes, then modify or add Custom.ThemeTab, this file controls where the custom theme will appear.

Tuesday, May 12, 2009

Window.onLoad problems

Not related to LODESTAR development but something that annoyed the hell out of me.
On one my pages the Body onLoad stop working, did not fire anymore.
So I used the script window.onload = function.
but first I used window.onload = function() and get a error message
not implemented' javascript error
BECAUSE I USED THE PARENTHESES ........WTF!!

correct syntax = window.onload = function