on 12-30-2008 5:32 AM
Hi All,
I am doing FPM application, i followed the standard example in help.sap.com too.
Please suggest me, how to implement class SFlightConstants the names of the perspectives of the application SFlightExample and the name of the user defined event type USER_EVENT_DETAIL are defined.
Thanks
Karthi D.
Hi Sowmya
Thanks for your reply
Can provide me details for the below steps in the same example (http://help.sap.com/saphelp_erp2005/helpdata/en/43/3b8e8cb4ab1800e10000000a1553f6/frameset.htm)
3. Define two more member variables in the configuration component CcSFlight. One variable of type NavigationGraph stores the navigation graph of the application and one variable of type HashMap (Java standard class) stores a list of all known perspectives.
4. Declare the member variables for the Perspectives.
5. With the member variables of the configuration component defined, implement the method loadConfiguration(), which runs on startup of the application. The method performs the following actions:
¡ Initializes member variables (especially the VACs and the perspectives)
¡ Defines the navigation graph
¡ Creates a list of all perspectives.
The navigation paths and the navigation graph for the application contain five transitions between perspectives in the roadmap (see Specifying a Self-Service Application). In addition, you need one path to find the first perspective of the application.
Use the predefined event names of interface IFPM wherever possible. Only for the transition from perspective SELECT to perspective DETAIL should you use your own event name.
6. After defining the navigation graph, implement the two methods getStartPerspective() and getNextPerspective(). The purpose of these methods is to check the navigation graph of the application and return the required perspective to the FPM.
Thanks
Karthi D.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Declare private variables of type Hashmap and Navigation graph.
Declare private variables of type VAC(for all your VAC's),Perspective(for all your perspectives)and ROPstep(for all your perspectives.
In the loadconfiguration(..)
create all your Vac's.
vacSelect = new VAC( SFlightConstants.SFLIGHT_DC,
"com.sap.xss.fpm.sflight.example.vac.select.VcSFlightSelect" );
create all perspectives.
perSelect = new Perspective(
SFlightConstants.PERSPECTIVE_SELECT,
Perspective.LAYOUT_ROW,
new VAC[] { vacSelect, vacNavi } );
store all perspectives in hashmap.
allPerspectives = new HashMap();
allPerspectives.put(SFlightConstants.PERSPECTIVE_SELECT,
perSelect );
Define the Navigation Graph for all events.
sfGraph = new NavigationGraph(
new NavigationPath[] {
// EVENT_START
new NavigationPath( "", fpm.EVENT_START,
SFlightConstants.PERSPECTIVE_SELECT ),
Define Ropsteps.
ropDetail = new ROPStep( "1",
wdTextAccessor.getText(
SFlightConstants.PERSPECTIVE_DETAIL),
null );
hi
create java clsss in src-->package folder.
File>New>other-->java ,a window will be opened.
browse your project folder,attach /src/packages to it ,
specify package(browse the package,attach .java) and class name.
add the following code in java class.
public class SFlightConstants {
public final static String SFLIGHT_DC =
"sap.com/fpmsflight"; //Dc name
// the Perspective names
public final static String PERSPECTIVE_SELECT = "SELECT";
public final static String PERSPECTIVE_DETAIL = "DETAIL";
public final static String PERSPECTIVE_REVIEW = "REVIEW";
public final static String PERSPECTIVE_CONFIRM = "CONFIRM";
// the user defined event types
public final static String USER_EVENT_DETAIL = "DETAIL";
}
you can utilise these constants directly in your components.
Regards
sowmya.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You need to have SFlightConstants.java file in your local environment under the fpm project then you will be able to use these constants.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Did you check this http://help.sap.com/saphelp_erp2005vp/helpdata/en/43/3b963eb4ab1800e10000000a1553f6/content.htm
PradeeP
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.