Friday, May 14, 2010

Creating library project in flex

Creating library project:
  • Open Flex builder 3
  • Navigate to File->New->Flex Library Project
  • In the New Flex Library Project dialog
  1. Enter the project name as "FirstLibProject"
  2. Click on Next
  3. Select the Classes tab
  4. In the Main source folder item click on Browse
  5. In select Source folder dialog select the project
  6. Click on New button
  7. A new folder will be added under the projects
  8. Click Ok
  9. Select the checkbox for the src folder (All the classes in this folder will be included in library swc)
  10. Click on Finish button
  • Create an mxml component under src folder by right clicking on src folder and name it "LibrarySample.mxml"
  • Create an Action script class under src and name it as "LibraryAS.as"
  • In the bin folder a swc file will be created by name FirstLibProject.swc

In our mxml if we want to use these Files which we created above we can include the swc file to our project.


Including the swc file in a project:
In the project "Xyz" which we want to include the swc copy the swc which we created above:

  • Copy the FirstLibProject.swc to some path (c:\lib)
  • Open the project "Xyz" in Flex builder
  • Right click on the project "Xyz" (in navigator view) click on Properties
  • Select Flex Build Path in the Properties dialog
  • Select Library path tab
  • Click on Add SWC and browse for C:\temp\FirstLibProject.swc and click Ok
  • In this project we can use the classes LibrarySample and LibraryAS

Wednesday, May 12, 2010

Find in CF

Finds the first occurrence of a substring in a string, from a specified start position. The search is case-sensitive.
A number; the position of substring in string; or 0, if substring is not in string.
Syntax:
Find(substring, string [, start ])

Parameter Description
substring A string or a variable that
contains one. String for which to search.
string A string or a variable that contains one.
String in which to search.
start Start position of search.

Program :


#find("the",stringToSearch)#

#find("the",stringToSearch,35)#

#find("no such substring",stringToSearch)#



Source :
http://livedocs.adobe.com/coldfusion/6.1/htmldocs/functi80.htm#wp1104451

Monday, May 10, 2010

MVS SYSTEM CODES-S813

The data set name in the JCL did not match the data set name on the tape.

1. The JCL volume serial number was wrong.
2. The data set name in the JCL was misspelled.
3. The wrong tape was mounted.
4. The incorrect data set sequence number was specified in the label parameter.
5. The data set does not exist on the magnetic tape. Verify that the JCL is correct, and resubmit the job.

Ref: www.ibmmainframes.com

Saturday, May 08, 2010

How to find out Version Of Oracle Application in Unix-2

c. Class file version
Step 1. Go to the UNIX box
Step 2. Go to the class file location
$strings -a grep Header

d. Apachhe Version
Step 1. Go to the UNIX box
Step 2. Go to the $iAS or $IAS_CONFIG_HOME
Step 3. Then go to Apachhe/Apachhe/bin directory
Step 4. run the following Command
$httpd -version

The output will be
bash-2.03$ httpd -version
Server version: Oracle HTTP Server Powered by Apache/1.3.19 (Unix)
Server built: Jan 26 2005 11:06:44 (iAS 1.0.2.2.2 rollup 5)

Thursday, May 06, 2010

How to find out Version Of Oracle Application-1

Whenever you are working in oracle application you will face some situation where you have to know the version of the products you are using in your Oracle Application. Though the env file help you a lot to reduce the need of the versions as it makes the system user friendly. In some issue solving cases such as upgrade, patching or some specific issues you must have to know the versions.

The products we are using can be of almost three types -
1. Components related to Application
2. Components related to Database
3. Components related to some useful utilities and OS

Components related to Application:
a. The version of the oracle application.
Step 1. First open the Oracle Application Frontend
Step 2. Open any form session in it
Step 3. Go to help
Step 4. Click on "About Oracle Application"

b. Version of Oracle Application Forms or Reports.
Step 1. Go to the UNIX box
Step 2. Go to the $CUSTOM_TOP location
Step 3. Then go to /11.5.0/forms/US/
Step 4. Run the following command

Tuesday, May 04, 2010

Call a class private method from another class

while googling, i have came accross a interesting thing, these blog is just to share the information with you all.
Here i am calling private method method1() in PrivateMethodClass from another class CallingMethod. the below is the source code, which i tried.

Source Code:
PrivateMethodClass.java

package com.src;
public class PrivateMethodClass {
private void method1(int a,int b){
System.out.println("Var:a:"+a+"::Var b:"+b);
int c = a+b;
System.out.println("Var c:"+c);
}

public void method2(int a,int b){
System.out.println("Var:a:"+a+"::Var b:"+b);
int c = a+b;
System.out.println("Var c:"+c);
}
}

CallingMethod.java
package com.src;
import java.lang.reflect.Method;
public class CallingMethod {
public static void main(String[] args) {
Class klass;
try {
klass = PrivateMethodClass.class;
PrivateMethodClass pmc = new PrivateMethodClass();
Class[] param = {Integer.TYPE,Integer.TYPE};
Method m[] = klass.getDeclaredMethods();
int c =0;
int a[] = {1,2};
for(int i=0;i System.out.println("Method name is "+m[i].getName());
m[i].setAccessible(true);
m[i].invoke(pmc,1,2);
}
} catch (Exception e) {
System.out.println("Exception::"+e.getMessage());
}
}
}

The Output Result:
Method name is method1
Var:a:1::Var b:2
Var c:3
Method name is method2
Var:a:1::Var b:2
Var c:3

Source: http://vishalnjain.blogspot.com/

Sunday, May 02, 2010

MVS SYSTEM CODES-S913

An error occurred in opening a magnetic tape data set.

1. The error occurred during open or end-of-volume processing. The data set was password protected, and a correct password was not entered.

2. The error occurred in opening a checkpoint data set which was concatenated to a non-checkpoint data set.


1. Supply the correct password, and resubmit the job.

2. Eliminate any concatenations of checkpoint and non-checkpoint data sets.


Ref: www.ibmmainframes.com

Computers Add to Technorati Favorites Programming Blogs - BlogCatalog Blog Directory