Wednesday, August 13, 2008

Localization in flex

1) compile the application with the following compiler options
-locale= -resource-bundle-list myres.txt

Now myres.txt will be created in the bin directory.

2) Create the resource swf file using the following command.
mxmlc -locale=en_US -source-path+=locale/{locale} -include-resource-bundles={contents of myres.txt} -output en_US_ResourceModule.swf

The output swf should have the format {locale string}_ResourceModule.swf.

Tuesday, August 12, 2008

Calling PHP page in Flex and binding to combobox

using HTTPService components, you can call php page. The php page response to flex, sends the result in the form of xml.

E.g.,

1) Use this code to call a php page
mx:httpservice id="xmlRPC" url="http://localhost/PHP/GetCountry.php" />

2) Use this code to bind the result to combobox:
mx:combobox id="Country" prompt="Select" width="210" y="177" x="125" dataprovider="{xmlRPC.lastResult.Country.CountryDetails}" labelfield="CountryCode"/>

The GetCountry.php response should be like this:

country>
countrydetails>
countrycode>US
/countrydetails>
countrydetails>
countrycode>IN
/countrydetails>
/country>

TypeError: Error #1009: Cannot access a property or method of a null object reference.

This error usually gets, when some changes had made to project properties.
for e.g., changing compiler settings from locale en-US to locale.

When applying localization like this validation controls will not work in flex.

To make this work, do not change any settings in project properties.

Passing data with URL in flex

1) Include creationComplete="init(event);" in mx:Application

2) Include this script in mx:script tag
import mx.managers.BrowserManager;
import mx.managers.IBrowserManager;
import mx.utils.URLUtil;

private var bm:IBrowserManager;
[Bindable]
private var fName:String;
[Bindable]
private var lName:String;

private function init(e:Event):void {
bm = BrowserManager.getInstance();
bm.init("", "Welcome!");

/* The following code will parse a URL that passes firstName and lastName as
query string parameters after the "#" sign; for example:
http://www.mydomain.com/MyApp.html#firstName=Nick&lastName=Danger */
var o:Object = URLUtil.stringToObject(bm.fragment, "&");
fName = o.firstName;
lName = o.lastName;
}
]]>

3) use fName and lName with the text property of any control. for e.g.,
mx:Label text ={fName}

Thursday, August 7, 2008

Corner radius property in flex

To make the corner radius property for any layput control to work, first you need to set the borderstyle property to solid then,
it is possible to see the rounded corners for a layout.

Wednesday, July 30, 2008

Project Server 2007 Configuration

1) To access Project Professional 2007

Goto Server settings->EnterPrise Global->Click Configure Project Professional
To create a new project : Project -> Proposals and Activities -> Click on New -> Activity
Enter project Name, Description and Work Order Number = 74250 ( a valid one in Internap Web site)
Now Press Save and in the Grind View click on 'Build Team'.
Add a user and press 'Save'
Click on 'Resource Plan' -> Build Team -> Select User and Add him
Press Save and Close
Add Task(s) and press 'Save and Publish' To add a resource.

2) To add a resource:

Go to the Resources->Resource Center in the left frame.
Go to New->Resources
Enter all the details and click save.

Repeat the above steps to add more resources.

3) To add a Project:

Go to the Projects ->Proposals and Activities in the left frame.
Click New->Activities. Enter the Project name and project details, click Save and then Click Save and publish button

Repeat the above steps to add more projects.

4) To add the Resources to the Project

Select the newly created Project and click Build Team button.
Select the Resource name and click Add button.
Click Save button.
Now click cancel button to come back to previous page.

Repeat the above steps to add more

5) To create a new task

Click on newly created project name->navigates to the task list page.
Enter the task and assign the task to the resources under the Resource plan column.
Click Save button and then click Save and Publish button.
Click Close button to go back to project page.

Repeat the above steps to add more

6) To publish resource plan for a project

Select Project Name, click Resource Plan link, Select the Resource name and click Add button.
Click Save button.and Save and publish button, click close button to go back to main page.

Repeat the above steps to add more.

7) To see the configured projects

1. Projects->Project Center-> Click on the project name (e.g. Virtualization) : This will show the project plan as shown in MS Project.
2. Double clicking on the project icon will show the work details.


8) To delete a project, go to Server Settings->Delete Enterprise Objects ->Select the Project

9) To Define a mandatory field for a project, goto Server Settings -> Enterprise Custom Field Definition ->New Field ->Enter Name -> select Entity(Project) ->Select Type(like Number or Text)-> Required Can be checked if that field has to be mandatory -> Click Save

Tuesday, July 29, 2008

Upgrade from a trial version of Office SharePoint Server 2007

Use the following procedure to convert a license type and enter the product key.
Convert a license type and enter the product key

1.In Central Administration, on the top link bar, click Operations.
2.On the Operations page, in the Upgrade and Migration section, click Convert license type.
3.On the Convert License Type page, in the Enter the Product Key box, type the new product key.

Reffer: http://technet.microsoft.com/en-us/library/cc263204.aspx