on 04-07-2011 10:07 AM
Hi All,
I have been working with SAP Standard SCA IS-SRS.SCA.
There are two views which need to be modified by mapping the input field to a String field.
When I saw the code of first view: GrItemsOverviewView it's navigating to the second view: GrItemDetailView on click of the copy button at GrItemsOverviewView .
The code in GrItemsOverviewView is:
public void onActionCopyData(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
{
//@@begin onActionCopyData(ServerEvent)
wdThis.wdGetGrAppCompController().invalidateGrItemsTable();
wdThis.wdGetGrAppCompController().clearCurrentItemNumber();
wdThis.wdFirePlugItemsOverviewDone(INavCodeConstants.NAV_CODE_COPY);
//@@end
}
The Interface INavCodeConstants:
/*
* Created on 25.09.2006
*
* To change the template for this generated file go to
* Window>Preferences>Java>Code Generation>Code and Comments
*/
package com.sap.is.isr.srs.tools.constants;
/**
* @author D037195
*
* To change the template for this generated type comment go to
* Window>Preferences>Java>Code Generation>Code and Comments
*/
public interface INavCodeConstants {
// navigation codes / commands for outbound plugs
static final public String NAV_CODE_COPY = "copy";
static final public String NAV_CODE_CANCEL = "cancel";
static final public String NAV_CODE_EXIT = "exit";
static final public String NAV_CODE_OVERVIEW = "overview";
static final public String NAV_CODE_SAVE = "save";
static final public String NAV_CODE_SUSPEND = "suspend";
static final public String NAV_CODE_ADD_ITEM = "addItem";
static final public String NAV_CODE_CHANGE_ITEM = "changeItem";
static final public String NAV_CODE_DELETE_ITEM = "deleteItem";
static final public String NAV_CODE_HEADER_DETAIL = "headerDetail";
static final public String NAV_CODE_SEARCH_MATERIAL = "searchMaterial";
static final public String NAV_CODE_ITEM_DETAIL = "itemDetail";
static final public String NAV_CODE_ITEM_TEXT = "itemText";
// navigation codes for inbound plug of Article Interface View
static final public String NAV_AM_SCAN = "scanView";
static final public String NAV_AM_ADV = "advancedSearchView";
static final public String NAV_AM_ADV_KEEP_PARAM = "advancedSearchViewKeepParam"; //2007-05-25
static final public String NAV_AM_LIST = "articleList";
}
Even if we get the text itemDetail from the below; how it is actually navigating to that view.
static final public String NAV_CODE_ITEM_DETAIL = "itemDetail";
Thanks & Regards
Kaushik Banerjee
Edited by: Kaushik Banerjee on Apr 7, 2011 2:38 PM
Hi Kaushik,
From what I can read of the code provided, the actual navigation is don in this line of code:
wdThis.wdFirePlugItemsOverviewDone(INavCodeConstants.NAV_CODE_COPY);
If you open the appropriate Windows component in NWDS, you'll see a graphical representation of the navigation paths. Your view GrItemsOverviewView will have an outbound plug (red) with a navigation link to the inbound plug (blue) of view GrItemDetailView.
Apparently, the outbound plug 'ItemsOverviewDone' accepts a parameter of type String (which comes from your Constants file)
In the code of view GrItemDetailView, check method onPlug<WhateverInboundPlugIsUsedByAforementionedOutboundPlug>
I assume it will contain conditions based on the static variables in your Constants file, handling the requests
Hope this explains!
Best regards,
Robin van het Hof
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Any replies ?
Thanks & Regards
Kaushik Banerjee
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.