In an alv report how to get data in next and previous pages.
in my alv report i require the output such that
when i will press the next button in the application tool bar the alv report will be displayed for the next inventory document number in the next page. like wise previous
would anybody please help me out.
thanks and regards
papps
In your servlet you could set the arraylist into the HttpRequest object so that it is visible in the JSP you are forwarding to.
RegistrationDAO rdao=new RegistrationDAO();
ArrayList arr1=rdao.getsearchresults(af);
request.setAttribute("someArrayList",arr1);Then in the JSP you could use JSTL 1.1 and jsp:useBean tag to access the ArrayList like this
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<jsp:useBean id="someArrayList" class="java.util.ArrayList" scope="request"/>
<c:forEach var="currentRecord" items="${someArrayList}">
Some property of the AddressForm object: ${currentRecord.propertyName} <br/>
Another property of the AddessForm object : ${currentRecord.someOtherPropertyName} <br/>
<hr/>
</c:forEach>I guess you are using struts, so instead of JSTL there might be some struts tags that do the same as above JSTL tags. You can research further on that.
If you can't use struts tags or JSTL tags then you could write it with JSP scriptlets (highly discouraged option).
Similar Messages
-
In alv report , how to reserve 20 lines from beginning of page
hi experts
in alv report , how to reserve 20 lines from beginning of page.
regards
subhasis.If by reserve you mean should not move on scrolling then make them KEY from fieldcatalog.
But I think maximum of 10-12 can be handled by that.
Regards,
Amit
Reward all helpful replies. -
How to get Data Source Name and Source System for InfoPackage
Hello Guys,
I'm creating a routine that can be use by any InfoPcakges...
how can I get the Source System and Data Source in a Routine?Hi
Please check the table RSLDPIO,
In this table search with Info Package-->You will get Data source related to this info package
then goto RSDS >here search with Data source>you will get from which Source system this is extracting data
Hope this helps
Regards,
Venkatesh -
How to get data from file and save it in my DB
Hi for all,
my problem is :
i have file in text format and this file have
data .
i want to insert this data into my database
using forms .
how i can do this .Hello,
You can do this by :
1. Command Host and u excecute SqlLoader
Or
2. Read the text file sequentially with text.io and insert data while not eof.
Hope help u with this.
null -
How to get next and previous page in a Train Flow .
Hi,
For creating record I am using multi-step flow (train).
I have three page and I want to navigate the page via multi-step flow (train).
I followed the steps given in the Toolbox Tutorial of create purchase order and
Locator Element: Page/Record Navigation in developer's guide.
page1=/uttara/oracle/apps/uttaraimc/createcitizen/webui/PropertyCreatePG
page2=/uttara/oracle/apps/uttaraimc/createcitizen/webui/HouseDetailsCreatePG"
page3=/uttara/oracle/apps/uttaraimc/createcitizen/webui/EducationCreatePG"
The page1 is navigated via 'Create' button in CitizenSearchPG
Now on this Page1, when I clicks on the 'Next' button (to navigate to the next page in the same multi-step flow) I am getting following exception and its not navigating to page2.
Error: Cannot Display Page
You cannot complete this task because one of the following events caused a loss of page data:
* You accessed this page using the browser's navigation buttons (the browser Back button, for example).
* Your login session has expired.
* A system failure has occurred.
To proceed, please select the Home link at the top of the application page to return to the main menu. Then, access this page again using the application's navigation controls (menu, links, and so on) instead of using the browser's navigation controls like Back and Forward.
Here is the code for CreateFooterCO,
public void processRequest(OAPageContext pageContext, OAWebBean webBean)
super.processRequest(pageContext, webBean);
OANavigationBarBean navBean =
(OANavigationBarBean)webBean.findChildRecursive("NavBar");
if (navBean == null)
MessageToken[] tokens = { new MessageToken("OBJECT_NAME", "NavBar") };
throw new OAException("AK", "FWK_TBX_OBJECT_NOT_FOUND", tokens);
// Determine which page we're on so we can set the selected value. Each
// time we navigate to and within the flow, the URL includes a parameter
// telling us what page we're on.
int step = Integer.parseInt(pageContext.getParameter("ccStep"));
navBean.setValue(step);
// Figure out whether the "Submit" button should be rendered or not;
// this should appear only on the final page (Step 3).
OASubmitButtonBean submitButton =
(OASubmitButtonBean)webBean.findIndexedChildRecursive("Submit");
if (submitButton == null)
MessageToken[] tokens = { new MessageToken("OBJECT_NAME", "Submit") };
throw new OAException("AK", "FWK_TBX_OBJECT_NOT_FOUND", tokens);
if (step != 3)
submitButton.setRendered(false);
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
super.processFormRequest(pageContext, webBean);
OAApplicationModule am = pageContext.getApplicationModule(webBean);
int currentStep = Integer.parseInt(pageContext.getParameter("ccStep"));
// This button should only be displayed on the final page...
if (pageContext.getParameter("Submit") != null)
// Simply telling the transaction to commit will cause all the Entity Object validation
// to fire.
// Note that you must commit before asking WF for the next page, because
// asking for the next page at this point will transition the WF to a
// completed state, which means you won't be able to navigate back
// if there are errors during the commit processing.
am.invokeMethod("apply");
TransactionUnitHelper.endTransactionUnit(pageContext, "citizenCreateTxn");
// Don't forget to call this even on the last page so the activity associated with
// this page completes and the Workflow transitions appropriately.
String nextPage = OANavigation.getNextPage(pageContext);
// For the final page, Workflow should be returning null -- and the user
// can select the "Submit" button only on the last page. Something's
// wrong.
if (nextPage != null)
throw new OAException("AK", "FWK_TBX_T_WF_UNEXPECTED_TRANS");
else // we've just completed the flow
// Assuming the "commit" succeeds, we'll display a Confirmation dialog that takes
// the user back to the main "Purchase Orders".
/* String poNumber = (String)pageContext.getTransactionValue("PO_NUMBER");
MessageToken[] tokens = { new MessageToken("PO_NUMBER", poNumber),
new MessageToken("PO_APPROVER", pageContext.getUserName()) };
OAException confirmMessage = new OAException("AK", "FWK_TBX_T_PO_CREATE_CONFIRM", tokens);
OADialogPage dialogPage = new OADialogPage(OAException.CONFIRMATION,
confirmMessage,
null,
pageContext.getApplicationJSP() + "?OAFunc=FWK_TOOLBOX_PO_SUMMARY_CR&retainAM=Y",
null);
pageContext.redirectToDialogPage(dialogPage);
else if ("goto".equals(pageContext.getParameter(EVENT_PARAM)) &&
"NavBar".equals(pageContext.getParameter(SOURCE_PARAM)))
// Note that the OANavigationBean publishes a "goto" event paremeter when
// either the Back or Next button is pressed. You need to determine which way to
// go based on the related "value" parameter.
// Also note the check of "source" above to ensure we're dealing with the
// page-level navigation here and not table-level navigation which is
// implemented with the same Bean configured differently.
int target = Integer.parseInt(pageContext.getParameter("value"));
String workflowResult;
if (target < currentStep)
workflowResult = "PREVIOUS";
else
workflowResult = "NEXT";
String nextPage = OANavigation.getNextPage(pageContext, workflowResult);
if (nextPage != null)
HashMap params = new HashMap(1);
params.put("ccStep", IntegerUtils.getInteger(target));
pageContext.setForwardURL(pageContext.getApplicationJSP() + "?" + nextPage, // target page
null,
KEEP_MENU_CONTEXT,
"", // No need to specify since we're keeping menu context
params, // Page parameters
true, // Be sure to retain the AM!
ADD_BREAD_CRUMB_NO, // Do not display breadcrumbs
OAException.ERROR); // Do not forward w/ errors
else
throw new OAException("AK", "FWK_TBX_T_WF_NO_NEXT_PAGE");
else if (pageContext.getParameter("Cancel") != null)
am.invokeMethod("rollbackCitizenInfo");
// Remove the "in transaction" indicator
TransactionUnitHelper.endTransactionUnit(pageContext, "citizenCreateTxn");
pageContext.forwardImmediately("OA.jsp?page=/uttara/oracle/apps/uttaraimc/createcitizen/webui/CreateCitizenSearchPG",
null,
OAWebBeanConstants.KEEP_MENU_CONTEXT,
null,
null,
true, // retain AM
OAWebBeanConstants.ADD_BREAD_CRUMB_NO);
How to resolve this issue?
please suggest.
Thanks & Regards,
SagarikaSagarika,
Please go thru the dev guide which explains the train flow in the multistep update exercise. Compare the steps with ur implementation.
- Senthil -
In ALV reports how can we capture separate data in 3 internal table
HI
In ALV reports how can we capture data in 3 Internal tables and combine them in another internal table to display........Hello Sudhanshu
Another option would be to display all three itabs together which is a piece of cake using OO-based ALV lists. Please refer to thread
Re: Alv
for a sample report.
Regards
Uwe -
How to get data from MS CRM into Crystal Reports
Hello All,
Can anybody tell me how to get data into crystal XI reports with MS CRM.
Thanks in Advance
RameshFirst you should refer to the Rules of Engagement and then add more info.
Start off by telling us what version of CR are you using and what is MS CRM?
Thank you
Don -
Check boxes in ALV Report how to do ?
ALV report how to keep check box in the first field?
thanks in advance..
chalapathihi,
Check this small code.. U will get clear idea.
Report.
data : begin of it occurs 0,
MATNR TYPE MATNR,
c1 , " CHECK BOX FIELDS
c2,
end of it.
type-pools : slis.
data itlog type slis_t_fieldcat_alv.
data walog type slis_fieldcat_alv.
SELECT MATNR
FROM MARA
INTO TABLE IT .
****INSERTING CHECKBOX IN CHANGE MODE
WALOG-FIELDNAME = 'C1'.
WALOG-TABNAME = 'IT'.
WALOG-SELTEXT_M = 'CHECKBOX1'.
walog-CHECKBOX = 'X'.
WALOG-EDIT = 'X'.
APPEND WALOG TO ITLOG.
****INSERTING CHECKBOX IN DISPLAY MODE
WALOG-FIELDNAME = 'C2'.
WALOG-TABNAME = 'IT'.
WALOG-SELTEXT_M = 'CHECKBOX2'.
walog-CHECKBOX = 'X'.
WALOG-EDIT = ''.
APPEND WALOG TO ITLOG.
WALOG-FIELDNAME = 'MATNR'.
WALOG-TABNAME = 'IT'.
WALOG-SELTEXT_M = 'MATERIAL'.
walog-CHECKBOX = ''.
WALOG-EDIT = 'X'.
WALOG-NO_ZERO = 'X'. " LEFT ZEROS WILL CUT
APPEND WALOG TO ITLOG.
*WALOG-FIELDNAME = 'ICON'.
*WALOG-TABNAME = 'IT'.
*WALOG-SELTEXT_M = 'ICON'. "IN FIELDCATALOG ADDING THAT ICON
*walog-ICON = 'X'.
*walog-just = 'R'. " RIGHT JUSTIFICATION OR LEFT
**WALOG-EDIT = ''.
*APPEND WALOG TO ITLOG.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER = ' '
I_BUFFER_ACTIVE = ' '
I_CALLBACK_PROGRAM = 'ZALV_SIMPLE1'
I_CALLBACK_PF_STATUS_SET = ' '
I_CALLBACK_USER_COMMAND = ' '
I_CALLBACK_TOP_OF_PAGE = ' '
I_CALLBACK_HTML_TOP_OF_PAGE = ' '
I_CALLBACK_HTML_END_OF_LIST = ' '
I_STRUCTURE_NAME =
I_BACKGROUND_ID = ' '
I_GRID_TITLE =
I_GRID_SETTINGS =
IS_LAYOUT =
IT_FIELDCAT = ITLOG
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
IT_SORT =
IT_FILTER =
IS_SEL_HIDE =
I_DEFAULT = 'X'
I_SAVE = ' '
IS_VARIANT =
IT_EVENTS =
IT_EVENT_EXIT =
IS_PRINT =
IS_REPREP_ID =
I_SCREEN_START_COLUMN = 0
I_SCREEN_START_LINE = 0
I_SCREEN_END_COLUMN = 0
I_SCREEN_END_LINE = 0
IT_ALV_GRAPHICS =
IT_HYPERLINK =
IT_ADD_FIELDCAT =
IT_EXCEPT_QINFO =
I_HTML_HEIGHT_TOP =
I_HTML_HEIGHT_END =
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
T_OUTTAB = IT
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
Thanks and Regards,
surya -
In ALV reports how double click event works?
in ALV reports how double click event works? Explain in detail.....
hi,
last lines is used for clicking
*& Report Z_SWAS_FUNCTIONAL
report z_swas_functional.
tables: qmel,viqmel,iloa,afko.
-- global data declerations--
data: ok_code like sy-ucomm,
gt_itab type table of zfunctional,
t_output type table of zfunctional,
g_container type scrfname value 'CUSTOM_CONTROL',
grid1 type ref to cl_gui_alv_grid,
g_custom_container type ref to cl_gui_custom_container,
e_row type lvc_s_row,
e_column type lvc_s_col,
es_row_no type lvc_s_roid.
*CLASS DECLARATION
class z_functional definition.
public section.
class-methods : handle_double_click
for event double_click of cl_gui_alv_grid
importing e_row e_column.
endclass.
*CLASS IMPLEMENTATION
class z_functional implementation.
method handle_double_click.
perform handle_double_click using e_row e_column es_row_no.
endmethod.
endclass.
*CODE FOR SELECTION SCREEN
selection-screen begin of block 84433 with frame title text-t01.
parameters : n_number like viqmel-qmnum,
n_type like qmel-qmart,
f_loca like iloa-tplnr,
name like qmel-qmnam.
selection-screen end of block 84433.
screen validation event *
at selection-screen on n_number.
select single *
from viqmel
where qmnum eq n_number.
if sy-subrc ne 0.
MESSAGE 'NOTIFICATION NUMBER DOESNOT EXIST' TYPE 'E'.
endif.
select qmart from qmel into qmel where qmart eq N_TYPE.
endselect.
if sy-subrc ne 0.
MESSAGE 'NOTIFICATION TYPE DOES NOT EXIST' TYPE 'E'.
endif.
*START OF SELECTION EVENT
start-of-selection.
perform fetchdata.
end-of-selection.
*Call screen event
call screen 100.
*PERFORM DISPLAY.
*& Form FETCHDATA
text
--> p1 text
<-- p2 text
form fetchdata .
*SELECT VIQMEL~QMNUM VIQMEL~QMTXT VIQMEL~QMDAT VIQMEL~LTRMN VIQMEL~PRIOK
VIQMELBEZDT VIQMELAUFNR VIQMELTPLNR AFKOGLTRP into corresponding fields of table GT_ITAB
FROM VIQMEL INNER JOIN AFKO ON VIQMELAUFNR = AFKOAUFNR
WHERE VIQMELQMNUM IN N_NUMBER and VIQMELQMART IN N_TYPE AND VIQMEL~QMNAM IN NAME.
call function 'ZSWAS_TEST'
exporting
qmnum = n_number
qmart = n_type
tplnr = f_loca
qmnam = name
tables
output = gt_itab
if sy-subrc ne 0.
message e000(z84433_msg_class).
endif.
endform. " FETCHDATA
*& Module STATUS_0100 OUTPUT
text
module status_0100 output.
set pf-status 'MAIN'.
SET TITLEBAR 'xxx'.
*creating custom container and grid instance
if g_custom_container is initial.
create object g_custom_container
exporting container_name = g_container.
create object grid1
exporting i_parent = g_custom_container.
call method grid1->set_table_for_first_display
exporting
i_structure_name = 'ZFUNCTIONAL'
changing
it_outtab = gt_itab.
*set handler events
set handler z_functional=>handle_double_click for grid1.
endif.
endmodule. " STATUS_0100 OUTPUT
*& Module USER_COMMAND_0100 INPUT
text
module user_command_0100 input.
case ok_code.
when 'EXIT'.
perform exit_program.
endcase.
clear ok_code.
endmodule. " USER_COMMAND_0100 INPUT
*& Form EXIT_PROGRAM
text
--> p1 text
<-- p2 text
form exit_program .
leave program.
endform. " EXIT_PROGRAM
*& Form handle_double_click
text
-->P_E_ROW text
-->P_E_COLUMN text
-->P_ES_ROW_NO text
form handle_double_click using e_row type lvc_s_row
e_column type lvc_s_col
es_row_no type lvc_s_roid.
data: t_output type zfunctional.
read table gt_itab into t_output index e_row-index .
if sy-subrc = 0 and e_column-fieldname eq 'QMNUM'.
set parameter id 'K01' field t_output-qmnum.
call transaction 'ZSMART' and skip first screen .
endif.
endform. " handle_double_click
regards,
swaroop. -
How to get data from crosstab or table?
hi !
i develop my app with bib 9.0.3.1 . To customize my report,i must get data from crosstab or table component (presentation bean) and generate defined XML file ,can you tell me how to do ?hi paul
the sample code like this:
try{
DataAccess dataAccess = thinDataview.getModel().getDataAccess();
int rowCount = dataAccess.getEdgeExtent(DataDirector.ROW_EDGE);
int colCount = dataAccess.getEdgeExtent( DataDirector.COLUMN_EDGE );
for ( int i=0; i<rowCount; i++ )
for( int j=0; j<colCount; j++ )
String dataValue = dataAccess.getValue( i,j,DataMap.DATA_UNFORMATTED).toString();
}catch( Exception e ){
System.out.println( e.getMessage() ); -
How to get Data from B2 Cluster
Hi
I need to write a report which will get data from B2 Cluster.
Please can anyone provide me with the code how to get to the cluster and read from ZL and PT
Thanks in AdvanceOk so far this is what I have done
*& Report ZAKTIME *
REPORT ZAKTIME .
Dictionary tables/structures
tables: pernr, pcl2, pcl1.
include rpcxB200.
infotypes: 0001. "Org. Zuordnung
main logic
TOP-OF-PAGE.
START-OF-SELECTION.
GET PERNR.
RP-PROVIDE-FROM-LAST P0001 SPACE PNPBEGDA PNPENDDA.
process the data according to the payroll area
IF PERNR-WERKS EQ P0001-WERKS AND PERNR-BTRTL EQ P0001-BTRTL
AND PERNR-KOSTL EQ P0001-KOSTL AND PERNR-BUKRS EQ P0001-BUKRS
AND PERNR-ABKRS EQ P0001-ABKRS AND PERNR-KOKRS EQ P0001-KOKRS.
PERFORM RETRIEVE_Time.
ENDIF.
END-OF-SELECTION.
"======================================================================*
forms *
"======================================================================*
FORM RETRIEVE_Time.
B2-key-pernr = PERNR-PERNR.
RP-IMP-C2-B2. "macro resides in table TRMAC
IF rp-imp-b2-subrc = 0.
ENDIF.
ENDFORM. " RETRIEVE_PAYROLL
Getting the following errors
1. B2-Key_pernr is unknown
2.Bezug is Unknown
3. KNTAG is Unknown
Notice number 2 and 3 is not even in my program....
Also I was trying to pass the value to the parameter. why is this not working... -
How to get Date Format from Local Object.
Hi All,
I am new to Web Channel.
I need to know Date format From date of locale.
suppose there is a date "01/25/2010" date in date field I want to get string "mm/dd/yyyy". Actually I have to pass date format to backend when I call RFC.
Is there any way to get Date format from "Locale" object. I should get date format for local object
I get local object from "UserSessionData" object but how to get Date format from it.
I am not looking for Date value. I am looking for current local date format ("mm/dd/yyyy or dd/mm/yyyy or mon/dd/yyyy) whatever local date format. I could not find example which show how to get date format from "Locale" object.
Any help will be appreciated with rewards.
Regards.
Web ChannelHi,
You can get it from "User" or "Shop" business object.
Try to get User or Shop Business Object as shown below.
BusinessObjectManager bom = (BusinessObjectManager) userSessionData.getBOM(BusinessObjectManager.ISACORE_BOM);
User user = bom.getUser();
char decimalNotation = user.getDecimalPointFormat().getGroupingSeparator();
If you are seeing "1,234.00" then above code will return "."
I hope this information help you to resolve your issue.
eCommerce Developer. -
How to get LASTDAY for each and every month between given dates..
Hi Friend,
I have a doubt,How to get LASTDAY for each and every month between given dates..
for ex:
My Input will be look like this
from date = 12-01-2011
To date = 14-04-2011
And i need an output like
31-01-2011
28-02-2011
31-03-2011
is there any way to achieve through sql query in oracle
Advance thanks for all helping friendsHere's a 8i solution :
select add_months(
trunc(
to_date('12-01-2011','DD-MM-YYYY')
,'MM'
, rownum ) - 1 as results
from all_objects
where rownum <= ( months_between( trunc(to_date('14-04-2011','DD-MM-YYYY'), 'MM'),
trunc(to_date('12-01-2011','DD-MM-YYYY'), 'MM') ) );
The above two query is worked in oracle 11GActually the first query I posted is not correct.
It should work better with
months_between(
trunc(to_date(:dt_end,'DD-MM-YYYY'),'MM'),
trunc(to_date(:dt_start,'DD-MM-YYYY'),'MM')
)Edited by: odie_63 on 12 janv. 2011 13:53
Edited by: odie_63 on 12 janv. 2011 14:11 -
How to get data from a USB-UIRT device using Labview?
How to get data from a USB-UIRT device using Labview?
I'm trying to get data from a USB-UIRT device, is it posible with Labview?
I really appreciate your help,
thanksYou may want to contact the developer of the device for the API and DLL.
http://65.36.202.170/phpBB2/viewforum.php?f=3 -
How to get data type of variable in program..
Hi ABAP Guru.
I need to know how to get data type of variable or any structure field.. because I got short dump when use command REPLACE ALL OCCURANCE ... with variable/structure field that has data type I or P, I think it should be used with data type CHAR only, So I need to check the data type first.
Please give me your advice
Thank you all.
Nattapash C.data : v_value type i,
v_char(10) type c.
v_value = 10.
move v_value to v_char.
REPLACE ALL OCCURRENCES of '#' from v_char....
Best regards,
Prashant
Maybe you are looking for
-
How can I do a "clean" install of Lion
I have installed Lion over several successively upgraded versions of OS X and I'm now finding my system very wonky, with more and more small glitches and the occasional freeze. I'd like to simply start over and install it clean but, having bought the
-
Why are my pages different in browser from within muse and preview
this is how it looks in browser.this is how it looks in muse.
-
Popup window problem in tomcat
I have this code within my certAppB.js page : function AppSubmit() { str1 = "Submitting this form will begin the approval process."; str2 = "You will not be able to come back to this form to edit it again."; str3 = "Do you want to cont
-
I have a HP DL 380 G7 + 2 Xeon Processors + 12GB DDR + 6HDD 10k RAID5 I know that RAID 5 is not the best choise for a Oracle database with writing, but it's cheaper than RAID 10. But the Database was smooth, no locks, relative fast, but there is a ne
-
Placing a call through the internal módem
Hello everyone. I'm using a D-Link BlueTooth dongle and a bt headset to speak through Skype but due to the fact that I have free national phone calls with my operator I don´t want to use Skype for regular calls. Instead, I want to use the internal mo