Monday, July 6, 2009

JICS Portal Templates

Question : I saw a reference to portal templates someplace. I'm wondering if there's anything to it.

JICS Portal Inheritance

Question : We should be able to write one portal that inherits code from another portal. However, the existance of .ascx files make this problematic, because .ascx files don't play well with inheritance. Are there any examples of this being done?

JICS : ASCX pages

With web controls, you have an .ascx page that defines how things look, and a .dll file that contains the code for the page. The info below is gleaned from JICS Portlet Creation page

Create a different .ascx file for each view.

There are two required views. Default_View, and Main_View. The ascx files for these must be located in Default_View.ascx and Main_View.ascx.

All the .ascx files for the portlet go in their own directory on the server

Every portlet has it's own directory. That directory goes in [Type]\Portal\Portlets\CUS\[Portlet name]. For more info on this directory, see "Naming Conventions"

All the .dll files for all portlets go in one directory

That directory is \Portal\bin

Question : How does the system know where our portlet's .ascx files are located?

Question : Can we build a portlet that has all the web controls defined in the .dll, and doesn't have an .ascx page?

Question : It looks like there are add-ons, such as LMS and CRM, that have their own portal directories. Do LMS portlet dll's go in LMS\Portal\bin, or is there a master \Portal\bin where all the data goes?

JICS Naming Conventions

Naming standard page : JICS Wiki

Portlets should be named :


[Two character ERP type] + [Short description] + [Institution Name]

Tables should be named :

"CUS_" + [Portlet name] + [table description]

Assemblies should be named :

"Portlet." + [Portlet name]

Root directory for .ascx files should be :

"\Portlets\CUS\" + [User-defined Subdirectory (optional)] + [Portlet name]

Question : Why are they removing the word 'portlet' from directory, namespace, and class names, but leaving it there for assembly / dll names?

Tuesday, October 21, 2008

Adobe Acrobat Javascript Links

Sample Scripts (PDFScripting.com)
PDFScripting is a subscription site with some free content. It's $100 / year, or $40 / 3 months

Acro-dialogs tool (windjack.com)

Wednesday, November 14, 2007

Decrease visual studio build time

Mark folders as hidden

This post tells you to mark folders as "Hidden" if you don't want visual studio to compile them.

Close toolbox, turn of animation, etc.
More tips

  • Remove the toolbox tab from your workspace

  • Turn off window animation by unchecking the box found under Tools … Options … Environment … General … Animate Environment

  • Disable startup page : Tools … Options … Environment … Startup

  • Disable virus checking on code directories.

  • Check for spyware

  • Remove the properties tab


Switch from a web site project to a web application project

  • Switch from a web site project to a web application project

  • Keep the number of files in /app_code small

  • Enable page level building for your web-site projects (Project-Properties-Build = Build Page, Project-Properties-Build Solution Action = unchecked)


Make sure all your projects reference the same version of references

  • If you have two projects in your solution, one of which references version 1.0 of a dll, and the other references 1.01, you can have problems

Tuesday, November 13, 2007

Cascading style sheets

I can never remember how cascading style sheets work. Usually, I find sample code on the web site I'm working on, and then mofidy it. So I don't forget, here's a style. A really ugly one, but still a style.

p {
font-family: arial;
color=red;
background-color=blue;
}

Lots of examples at w3schools.