Back button problem
sometimes my back button doesnt work correctly... and in the games like asphalt 8 doesnt work at allxperia sp android 4.3
My back button doesen't work after playing Family Guy Quest for Stuff, its that game that causes it and also eats the ram up to the point where I have 0mb which makes the phone unusable with apps closings constantly. I would like to know whether its my phone or that game and if other people are having problems with that game, I have already done a repair from PC Companion and it hasn't fixed the issue.
Similar Messages
-
Session state and browser cache - Back button problem
Hi all,
I have a problem (and unless I'm missing something I think we all do) with session state and use of the browser's Back button. I really hope I'm just being dumb...
Background scenario:
Page P has a sidebar list allowing the user to select what content is displayed (e.g. 'stuff relating to X, Y or Z' where X, Y and Z are rows in, say, a table of projects). When a list entry is clicked, we branch to page P with the value of the list item placed in an application-level item (call it G_PROJECT). Reports on page P use G_PROJECT in their WHERE clauses.
So, click list entry X and G_PROJECT is set to X and page P shows reports for project X.
Page P also has a set of buttons which branch to various edit pages which allow attributes of page P's current project to be updated. These pages similarly use G_PROJECT in their WHERE clauses.
Problem scenario:
1. The user goes to page P and picks project X off the list. Project X's stuff is displayed (G_PROJECT = X).
2. The user then picks project Y off the list. Project Y's stuff is displayed (G_PROJECT = Y).
3. The user then clicks the browser's Back button. The page is served from browser cache, so project X's stuff is displayed, but G_PROJECT still = Y.
4. The user clicks an 'Edit' button; we submit, and branch to an edit page which displays (and will edit) data for project Y because G_PROJECT still = Y.
This is SERIOUSLY BAD NEWS - apart from being confusing, the user's edit permissions on projects X and Y may differ, and so the user may be able to perform 'illegal' updates.
I've read what I can on this forum and the rest of the web looking for ways to a) inhibit browsers' 'Back' functions and/or b) prevent pages being cached by the browser, but none of them have worked for me.
Short of waiting for browser manufacturers to recognise that the web is now full of applications as well as static pages, and enable robust programmatic control of cache behaviour, does anybody know how the problem can be avoided - or at least detected?
Thanks,
jd
Failed attempts to date:
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="cache-control" content="no-store">
<meta http-equiv="cache-control" content="private">
<meta http-equiv="cache-control" content="max-age=0, must-revalidate">
<meta http-equiv="expires" content="Wed, 09 Aug 2000 01:01:01 GMT">
<meta http-equiv="pragma" content="no-cache">
Disallowing duplicate submission (page attribute).
window.history.go(1);Thanks Scott,
I may be being dumb here but I don't see how that would help...
P250_PROJECT and G_PROJECT are currently kept in sync by app logic. Whichever is used to drive, if the page is rendered from cache then the app logic is not executed, so the rendered page contents are not those keyed by P250_PROJECT, as illustrated in steps 1-4 of the problem above.
The user sees X, the session items say Y. The engine doesn't know what the user is seeing.
when page P is POSTed, its hidden item P250_PROJECT should always be used to derive the application item G_PROJECT. Then whether the page was pulled from cache or rendered anew via a click from the sidebar link, the project ID is determined by the contents of that page.
As I said above I tried this, with the 'Edit' branch set to:
Set these items: G_PROJECT
With these values: &P250_PROJECT.
but it makes no difference. The project ID is not determined by the rendered page contents - the engine gets the value of P250_PROJECT from session state.
I can code the 'Edit' pages such that they check permissions and if necessary redirect back to p250 (conditional before-header branch), but that's a clunky cure rather than the prevention I was hoping for.
Please tell me if my understanding is incorrect.
jd -
Another scenario of BACK button problem, pls help
search.jsp ---- search application by ID
view_app.jsp ---- display application details, has 4 commandLinks eg. (A, B, C, D), the commandLinks are displayed dependent on a
property in the ApplicationBean object.
Scenario as follow:
In search.jsp, I search application #1, it brings up view_app.jsp with #1 details and commandLinks A and B available.
Then go to search.jsp again through faces, search application #2, it brings up view_app.jsp again with #2 details and commandLinks C and D available.
Then I click BACK button twice, which bring me back to view_app.jsp with #1 details and commandLink A and B.
now I try to click commandLink A, it doesn't work because faces thinks I am in view_app.jsp with #2 details and commandLink C and D, there is no commandLink A available. Therefore it displays view_app.jsp with #2 details and commandLinks C and D.
I've put the Phase Listener, I can see from the log messages that it did go through the Faces life cycle, but in the 'Invoke Application' phase, the functions that I specified in the action (fucntionA) was not called, as it does not exist in the current View.
Anyone know how to solve this situation?
I try with client or server state saving, both produce same result. I also put <h:messages> in the view_app.jsp, no validation error message was shown.
search.jsp
==========
<h:form>
<h:outptuText value="application ID:"/>
<h:inputText value="#{facade.appID}"/>
<h:commandButton value="search" action="#{facade.searchApp}"/>
</h:form>
view_app.jsp
============
<h:form>
<h:inputHidden value="#{facade.appID}"/>
<h:panelGrid columns="2">
<h:panelGrid>
<h:commandLink value="A" action="#{facade.functionA}" actionListener="#{facade.updateApp}" rendered="#{app.displayMenu}"/>
<h:commandLink value="B" action="#{facade.functionA}" actionListener="#{facade.updateApp}" rendered="#{app.displayMenu}"/>
<h:commandLink value="C" action="#{facade.functionA}" actionListener="#{facade.updateApp}" rendered="#{app.displayMenu}"/>
<h:commandLink value="D" action="#{facade.functionA}" actionListener="#{facade.updateApp}" rendered="#{app.displayMenu}"/>
</h:panelGrid>
<h:panelGrid columns="2">
<h:outputText value="Application ID"/><h:outputText value="#{facade.appObject.appID}"/>
<%--
Other details
--%>
</h:panelGrid>
</h:panelGrid>
</h:form>
Facade.java
===========
ApplicationBean appObject = new ApplicationBean();
public void updateApplication(ActionEvent e) throws Exception {
if ( appID != appObject.getAppID() ) {
logger.finest("Updating application ID from " appObject.getAppID() " to " +appID);
appObject = getApplicationFromDB(appID);
ApplicationBean.java
====================
public boolean isDispalyMenu() {
<%-- return 'true' or 'false' dependent on a property of the ApplicatinoBean object --%>
}This is a very simple method for locking back button. It works fine. Maybe it will be usefull for you and it could resolve other problems with back button.
<f:view>
<script>
function windowunload()
//myform:_idcl is the hidden field on html page generated by JSF for navigation
//purposes
if (document.forms['myform']['myform:_idcl'].value=="")
//erroraction - this is the name of the method in the backing bean; if there is no
//such a method (or action is not set in faces-config) the page will be reloaded;
//thanks to that one can forward to another for instance error page
document.forms['myform']['myform:_idcl'].value='myform:body:erroraction';
document.forms['myform'].submit();
return false;
</script>
<body onunload="windowunload()">
<h:form id="myform">
</h:form>
</body>
</f:view>
It submits with no action argument (no erroraction method or navigation not set in faces-config) the page on onunload event.
It reloads the page when when user presses back button or tries to change url address. So only one way to navigate is to use commandlinks and commandbuttons from your page.
I haven't found any weaknesses of this method yet.
Regards
M. -
Back-Button Problems with 4.0.5, on Tiger
I'm seeing an intermittent issue with Safari 4.0.5.
After using the 'Back-Button' (under 4.0.5, with Tiger), if one goes 'Forward' again, to the page just previously viewed, the user will be incorrectly placed about a screen-page ahead of the correct location. This problem did not exist in 4.0.4.
appler505HI,
Try maintenance...
From the Safari Menu Bar, click Safari / Empty Cache. When you are done with that...
From the Safari Menu Bar, click Safari / Reset Safari. Select the top 5 buttons and click Reset.
Go here for trouble shooting *3rd party plugins or input managers* which might be causing the problem. Safari: Add-ons may cause Safari to unexpectedly quit or have performance issues
Web pages now include a small icon or 'favicon' which is visible in the address bar and next to bookmarks. These icons take up disk space and slow Safari down. It is possible to erase the icons from your computer and start fresh. *To delete Safari's icon cache using the Finder, open your user folder, navigate to ~/Library/Safari/ and move this file "webpageIcons.db to the Trash.*
bpageIcons.db to the Trash.*
Carolyn -
Browser Back Button problem...
Hai all,
whn i will logout the page i will do the following...
session.removeAttribute("keyValue");
session.invalidate();
so session is invalidated, but whn i click on browser back button previos page has to expire automatically but whn i am doing manually refresh page then page will expire...
the expire condition in each page i hav done is
keyvalue=session.getAttribute();
if(keyValue==null)
response.sendRedirect("../sessionExpirepage");
its working fine but i need to do the if u click on browser back buton the expired previous page can't display...
even i tried this code..
response.setHeader("Cache-Control","no-store"); //HTTP 1.1
response.setHeader("Cache-Control","no-cache"); //HTTP 1.1
but it is also not working..or i dont know wher exactly thes above two lines are to insert n in a page.
i hope u understud my point to say.
pls tell me about this soln
Thanks & Regards,
Suryakantso session is invalidated, but whn i click on browser
back button previos page has to expire automatically
but whn i am doing manually refresh page then page
will expire...there is no problem with your code as such , the page you get is from the history of you browser. Clear you history on every page load of your web page through javascript.
Secondly a bit advance topic there is a concept of TOKEN in Struts which is used to overcome the bugs due to BACK button in browser. -
Hi all,
i have idoc number in alv output.when the user clicks on this ,it should take the control to BD87 transaction with idoc number getting transferred there .also BD87 screen has changed on select option where the default is sy-datum .i need to clear this along with transfer of idoc number.
i tried using submit statement,but its not working.
then i used call transaction in error mode to acheive this functionality and i was sucessful.
beloe is my code:
REFRESH bdcdata.
READ TABLE t_out INTO wa_out INDEX rs_selfield-tabindex.
DATA: lv_mode(1) TYPE c VALUE 'E'.
PERFORM bdc_dynpro USING 'RBDMON00' '1100'.
PERFORM bdc_field USING 'BDC_CURSOR'
'SX_UPDDA-HIGH'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=CRET'.
PERFORM bdc_field USING 'SX_DOCNU-LOW'
wa_out-docnum.
PERFORM bdc_field USING 'SX_CRETI-LOW'
'00:00:00'.
PERFORM bdc_field USING 'SX_CRETI-HIGH'
'00:00:00'.
PERFORM bdc_field USING 'SX_UPDDA-LOW'
PERFORM bdc_field USING 'SX_UPDDA-HIGH'
PERFORM bdc_field USING 'SX_UPDTI-LOW'
'00:00:00'.
PERFORM bdc_field USING 'SX_UPDTI-HIGH'
'00:00:00'.
PERFORM bdc_call_transaction USING 'BD87' lv_mode 'N'.
So,the control directly takes me inside the BD87 screen just after the screen which we get after execting the selection screen of bd87 with idoc details
the problem is whn i click on back button or F3,the control does not take me back to the ALV output screen rather it takes me to the selection screen of BD87.
So,any way out to solve the back button problem???
ThanksHi Kunal,
That's a really tough report to handle by submit.
You can try to call the transaction in error mode and place one moment to force the screen to appear. Then complete the BTCI with the last steps to exit the selection screen.
Try it like this:
REFRESH bdcdata.
READ TABLE t_out INTO wa_out INDEX rs_selfield-tabindex.
DATA: lv_mode(1) TYPE c VALUE 'E'.
PERFORM bdc_dynpro USING 'RBDMON00' '1100'.
PERFORM bdc_field USING 'BDC_CURSOR' 'SX_UPDDA-HIGH'.
PERFORM bdc_field USING 'BDC_OKCODE' '=CRET'.
PERFORM bdc_field USING 'SX_DOCNU-LOW' wa_out-docnum.
PERFORM bdc_field USING 'SX_CRETI-LOW' '00:00:00'.
PERFORM bdc_field USING 'SX_CRETI-HIGH' '00:00:00'.
PERFORM bdc_field USING 'SX_UPDDA-LOW' ''.
PERFORM bdc_field USING 'SX_UPDDA-HIGH' ''.
PERFORM bdc_field USING 'SX_UPDTI-LOW' '00:00:00'.
PERFORM bdc_field USING 'SX_UPDTI-HIGH' '00:00:00'.
*btci is interrupted in presentation of the result screen
*last steps to exit selection screen
PERFORM bdc_dynpro USING 'RBDMON00' '1100'.
PERFORM bdc_field USING 'BDC_OKCODE' '/ECBAC'.
PERFORM bdc_field USING 'BDC_CURSOR' 'SX_UPDDA-LOW'.
*use error mode in call transaction
CALL TRANSACTION 'BD87' USING bdcdata MODE 'E'.
*PERFORM bdc_call_transaction USING 'BD87' lv_mode 'N'.
hope it helps,
Edgar -
The "back" button no longer works in certain specific situations on certain specific websites -- especially on the very website on which I need to use it very frequently. This has been going on for a couple of weeks.
Also, I noticed today that the "clear cache now" command doesn't seem to be working. Formerly, when I cleared the cache, I had to re-login to those websites that normally "remember" my login (because clearing the cache erased that "memory") -- but today, after using the "clear cache now" command, those websites still "remember" my login, which leads me to believe the cache didn't get cleared. Is there any other way to check whether it got cleared?
I was attempting to clear the cache in the faint hope that this might help the above "back" button problem, as no one has yet given me a solution for this that has worked. One person suggested having Firefox re-create the possibly damaged "places.sqlite" and "places.sqlite-journal" files. I tried this, but there was no change to the problem.
I think this problem started around the time I had a few Firefox crashes while using YouTube and doing something else on the computer at the same time.
I just today learned about the "crash signature" -- how to look it up, and to include it in a forum question. However, the crash log did not show these recent crashes, only some others from a few months ago. So, I'm unable to show the crash signature for this.
I'm guessing there's a chance that upgrading to a newer version of Firefox might fix this problem -- but I hesitate to do that, because it occurs to me that it also may be possible that changing the program before fixing this might make it harder to fix. I don't have enough knowledge of this software to know which is more likely, and I don't like to try things at random, in ignorance of the possible results. Also, after reading today several other forum comments from people who are unhappy with their Firefox upgrades, I hesitate to upgrade for that reason, also.Websites remembering you and automatically log you in is stored in a cookie.<br />
So you need to remove the cookies to make a website forget you.
* http://kb.mozillazine.org/Cookies -
I have firefox set to open "mailto" links, which is desired. However, when clicking the link, the gmail compose window opens in the current tab/window, and therefore leaves the website. Most of the time, the "back" button is not active, so I cannot get back to the website. The back button issue does not happen 100% for some reason.
To further explain, this is a website I am creating, so I am not sure if the fault lies with my code or in the google mailto option in firefox. (Code shown below)
>>>>>
<a class="email" href="mailto:[email protected]">email: [email protected]</a>
>>>>>
I tried using a target in the mailto link, but they seem not to work with mailto links like they do for links to other webpages. (Code shown below)
>>>>>
<a class="email" href="mailto:[email protected]" target="_blank">email: [email protected]</a>
---or---
<a class="email" href="mailto:[email protected]" target="_new">email: [email protected]</a>
>>>>>
Any pointers will help. Is my code bad? Or if the problem is with firefox's way of handling mailto links, is there a way to code to get around this?I don't wanna claim total credit for it. I remember seeing someone mentioned a Back button problem with McAfee Add-on in the forum. I dismissed it initially because it seems far-fetched...
-
Hi all,
I posted recently about a workaround Oracle showed me for helping manage back button problems more efficiently, but now I'm having a separate back button problem.
Changes that were made to a page via PPR disappear after coming back to the page by clicking the browser back button--for example, if I added a row to an <af:table> using PPR, navigate off the page, and click the back button, the row will disappear again--although it will reappear as soon as any event re-refreshes the table. I've tried turning off browser chaching, and it makes no difference, which makes me suspect this is not a browser caching issue.
Does anyone know if there's a way to make sure a component is always refreshed when the page is loaded, even if it was loaded via the browser back button?
Thanks much,
AvromHi Frank,
Great idea, thanks! I haven't tried it out in all my cases, but it looks like it's going to work!
For the use of others, here's what you do:
1) Make sure your model layer is capable of supporting the back button here, of course.
2) Create a method, String refresh(), in a backing bean. This method can be a no-op (just return null) if you don't need to do any work to re-set the page. But if, for example, you calculated values referred to in the page, you should re-calculate them here. If you had code that calculated them when the page was originally loaded (*not* for PPR), you can take that out, because this will always get called on a new load/back button load/reload.
3) Add a CommandLink like this one to your page (needs to be in a form, but otherwise it doesn't really matter where):
<af:commandLink id="refresh" partialSubmit="true"
action="#{yourBean.refresh}"/>4) Add a call to a javascript function like the following in your <afh:body>'s "onload" tag:
function refreshPage() {
var refreshComp;
if (document.getElementById)
refreshComp = document.getElementById("refresh");
else if (document.all)
refreshComp = document.all["refresh"];
else if (document.layers)
refreshComp = document.layers["refresh"];
if (refreshComp) {
refreshComp.click();
}(All of that rigmarole is to support different browsers, which have different ways of retrieving a DOM element by its id.)
5) For each component you need refreshed on a back button, set (or add) "refresh" to its partialTriggers property.
6) Sit back and watch the Back button work. -
My back button is not working. How do I fix this?
I used to be able to go forward or backward using the arrow buttons on top of the page. I have made no changes on Fire Fox except to download the current version. How can I fix this?
I guess that means you updated from 3.6.* because Firefox 4 through 7 are are the same see item #4 and item #5 in
You can make '''Firefox 7.0.1''' look like Firefox 3.6.*, see numbered '''items 1-10''' in the following topic [http://dmcritchie.mvps.org/firefox/firefox-problems.htm#fx4interface Fix Firefox 4.0 toolbar user interface, problems (Make Firefox 4.0 thru 8.0, look like 3.6)]. ''Whether or not you make changes, you should be aware of what has changed and what you have to do to use changed or missing features.''
* http://dmcritchie.mvps.org/firefox/firefox-problems.htm#fx4interface
Back/Forward Home don't work in 7.0.1 due to '''network.http.max-connection'''s being upped to 256, reduce back down to 32.
*https://support.mozilla.com/questions/889087
Back button problems -- right-click on tab for tab history, or hold a couple of seconds for tab history, or install an extension
* "'''Back/forward dropmarker'''" Extension<br>https://addons.mozilla.org/firefox/addon/backforward-dropmarker/
Extensions that may '''interfere with Back Button''', and these are already listed in [http://kb.mozillazine.org/Problematic_extensions Problematic extensions] for other reasons -- Q805964
*McAfee Site Advisor (update perhaps 3rd week July 2011)
*Yahoo Toolbar (https://support.mozilla.com/questions/845691) -
Problem displaying drill down STANDARD ALV for a particular record after pressing back button
I have a simple interactive ALV grid report. NOT 'OO'. It display correctly on initial execution. AT the moment, 6 records. I want it to work such that if i click record '1', a drill-down version of that ALV with only that one record clicked is displayed. This currently occurs correctly. The problem arises when i click the back button and want to click on a new record, say in the 2nd row..this new 2nd row record is not displayed. The first one is displayed again. I tried clearing and fiddling around but then the last record is displayed. I have used the 'ID' field as a 'hotspot' getting picked up by sy-tabindex. Maybe it could be that i shouldn't loop and use a work area e.g in my select statement. i'm not so sure i've looked around, and tried a few things. I can't get it right yet. My code is below:
*& Report ZALV
REPORT ZALV.
TABLES: ZCONTACT.
TYPE-POOLS: slis. "slis contains all of the ALV data types.
TYPES: BEGIN OF ty_zcontact.
INCLUDE STRUCTURE zcontact.
TYPES: icon TYPE char4, "field holding traffic light value- adding a column to internal table to hold the traffic light
END OF ty_zcontact.
DATA: "fieldcatALOG TYPE slis_t_fieldcat_alv WITH HEADER LINE,
it_zcontact TYPE TABLE OF ty_zcontact,"declares an internal table of type ZCONTACT
wa_zcontact TYPE ty_zcontact,
gd_layout TYPE slis_layout_alv,
gd_repid LIKE sy-repid,
g_variant TYPE disvariant,
gx_variant TYPE disvariant,
g_save TYPE c VALUE 'X',
it_fieldcat TYPE slis_t_fieldcat_alv,"declares field catalog table of line type alv
wa_fieldcat TYPE slis_fieldcat_alv, "declares the work area of the field catalog
it_list_top_of_page TYPE slis_t_listheader.
DATA: it_fieldcat1 TYPE slis_t_fieldcat_alv,
wa_fieldcat1 TYPE slis_fieldcat_alv.
DATA: V_FIELD(30) TYPE C,
V_VALUE(10) TYPE C.
"izontact TYPE TABLE OF zcontact.
"i_logo TYPE OT.
"ls_layout TYPE slis_layout_alv.
**Selection Screen details
*SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME.
*PARAMETERS: variant like disvariant-variant.
*SELECTION-SCREEN END OF BLOCK B1.
SELECT-OPTIONS:
age FOR wa_zcontact-age,
lastnme FOR wa_zcontact-lastname.
**Getting default variant
* AT SELECTION-SCREEN ON age.
* SELECT SINGLE age FROM zcontact INTO wa_zcontact-age WHERE age = age.
* IF sy-subrc NE 0.
* MESSAGE:'That age does not exist mate, Please enter another age' TYPE 'E'.
* ENDIF.
INITIALIZATION.
*gx_variant-report = sy-repid.
*CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET'
*EXPORTING
* I_SAVE = G_SAVE
* CHANGING
* CS_VARIANT = GX_VARIANT
* EXCEPTIONS
* NOT_FOUND = 2.
*IF SY-SUBRC = 0.
* VARIANT = GX_VARIANT-VARIANT.
* ENDIF.
START-OF-SELECTION.
PERFORM DATA_RETRIEVAL.
PERFORM BUILD_FIELDCATALOG.
PERFORM DISPLAY_ALV_REPORT.
PERFORM top_of_page.
"g_repid = sy-repid.
*Fetch data from the database
FORM DATA_RETRIEVAL.
SELECT * FROM zcontact INTO TABLE it_zcontact WHERE age IN age AND lastname IN lastnme.
"assigning traffic light colour to each row based on a condition
* IF wa_zcontact-age GE 65.
* wa_zcontact-icon = 1. "Red Traffic Light
* ELSEIF wa_zcontact-age BETWEEN 40 AND 64.
* wa_zcontact-icon = 2. "Yellow traffic light
* ELSE.
* wa_zcontact-icon = 3." Green traffic light
* ENDIF.
* MODIFY it_zcontact FROM wa_zcontact TRANSPORTING icon.
* CLEAR wa_zcontact.
ENDFORM.
FORM BUILD_FIELDCATALOG.
*Build field catalog
wa_fieldcat-fieldname = 'ID'.
"wa_fieldcat-seltext_m = 'The Contact ID'.
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
wa_fieldcat-fieldname = 'LASTNAME'.
"wa_fieldcat-seltext_m = 'Contact Lastname'.
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
wa_fieldcat-fieldname = 'FIRSTNAME'.
"wa_fieldcat-seltext_m = 'Contact Firstname'.
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
wa_fieldcat-fieldname = 'DOB'.
"wa_fieldcat-seltext_m = 'Date Of Birth'.
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
wa_fieldcat-fieldname = 'TEL'.
"wa_fieldcat-seltext_m = 'Telephone Number'.
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
wa_fieldcat-fieldname = 'ADDRESS'.
"wa_fieldcat-seltext_m = 'The Address'.
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
wa_fieldcat-fieldname = 'OCCUPATION'.
"wa_fieldcat-seltext_m = 'The Occupation'.
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
wa_fieldcat-fieldname = 'WEIGHT'.
"wa_fieldcat-seltext_m = 'WEIGHT'.
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
wa_fieldcat-fieldname = 'AGE'.
"wa_fieldcat-seltext_m = 'AGE OF THE CONTACT'.
wa_fieldcat-do_sum = 'X'. "Display column total
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
wa_fieldcat-fieldname = 'SALARY'.
"wa_fieldcat-seltext_m = 'SALARY'.
wa_fieldcat-do_sum = 'X'.
APPEND wa_fieldcat TO it_fieldcat.
gd_layout-lights_fieldname = 'ICON'.
ENDFORM.
FORM DISPLAY_ALV_REPORT.
gd_repid = sy-repid.
*Pass data and field catalog to ALV function module to display ALV list
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
it_fieldcat = it_fieldcat
i_callback_program = gd_repid
i_callback_top_of_page = 'TOP_OF_PAGE'
i_callback_user_command = 'USER_COMMAND'
i_structure_name = 'ZCONTACT'
i_save = 'X'
is_variant = g_variant
is_layout = gd_layout
TABLES
t_outtab = it_zcontact
EXCEPTIONS
program_error = 1
OTHERS = 2.
ENDFORM.
FORM top_of_page.
*ALV Header declarations
DATA: it_listheader TYPE slis_t_listheader,
wa_listheader TYPE slis_listheader,
t_line like wa_listheader-info,
ld_lines TYPE I,
ld_linesc(10) TYPE C.
wa_listheader-typ = 'H'.
wa_listheader-info = 'Contact Details'.
APPEND wa_listheader TO it_listheader.
CLEAR wa_listheader.
wa_listheader-typ = 'S'.
wa_listheader-info = sy-repid.
wa_listheader-key = 'Program Name:'.
APPEND wa_listheader TO it_listheader.
CLEAR wa_listheader.
wa_listheader-typ = 'S'.
wa_listheader-info = sy-uname.
wa_listheader-key = 'User Name:'.
APPEND wa_listheader TO it_listheader.
CLEAR wa_listheader.
wa_listheader-typ = 'S'.
wa_listheader-key = 'Run Date :'.
CONCATENATE sy-datum+6(2)
sy-datum+4(2)
sy-datum(4)
INTO wa_listheader-info
SEPARATED BY '/'.
APPEND wa_listheader TO it_listheader.
CLEAR wa_listheader.
wa_listheader-typ = 'S'.
wa_listheader-key = 'Time :'.
CONCATENATE sy-uzeit(2)
sy-uzeit+2(2)
sy-uzeit+4(2)
INTO wa_listheader-info
SEPARATED BY ':'.
APPEND wa_listheader TO it_listheader.
CLEAR wa_listheader.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
it_list_commentary = it_listheader
i_logo = 'KLOGO'.
ENDFORM. "top_of_page
*& Form sub_user_command
FORM USER_COMMAND USING P_UCOMM TYPE SY-UCOMM
P_SELTAB TYPE SLIS_SELFIELD.
CASE P_UCOMM.
WHEN '&IC1'.
CASE p_seltab-fieldname.
WHEN 'ID'.
READ TABLE it_zcontact INTO wa_zcontact INDEX p_seltab-tabindex.
PERFORM DATA_RETRIEVAL1.
PERFORM BUILD_FIELDCATALOG1.
PERFORM SECOND_GRID.
ENDCASE.
ENDCASE.
ENDFORM. "
FORM DATA_RETRIEVAL1.
SELECT * FROM zcontact INTO TABLE it_zcontact WHERE id EQ wa_zcontact-id.
ENDFORM.
FORM BUILD_FIELDCATALOG1.
*Build field catalog
CLEAR: wa_fieldcat, it_fieldcat.
wa_fieldcat-fieldname = 'ID'.
"wa_fieldcat-seltext_m = 'The Contact ID'.
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
wa_fieldcat-fieldname = 'LASTNAME'.
"wa_fieldcat-seltext_m = 'Contact Lastname'.
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
wa_fieldcat-fieldname = 'FIRSTNAME'.
"wa_fieldcat-seltext_m = 'Contact Firstname'.
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
ENDFORM.
FORM SECOND_GRID.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = SY-REPID
IT_FIELDCAT = IT_FIELDCAT
i_structure_name = 'ZCONTACT'
i_callback_user_command = 'USER_COMMAND'
TABLES
T_OUTTAB = IT_ZCONTACT.
ENDFORM.Hi Ten Mariga,
I wonder why the second select Query is needed at all instead you can use
---> Not Needed
FORM DATA_RETRIEVAL1.
SELECT * FROM zcontact INTO TABLE it_zcontact WHERE id EQ wa_zcontact-id.
ENDFORM.
----> Instead you can do
READ TABLE it_zcontact INTO wa_zcontact INDEX p_seltab-tabindex.
Append wa_zcontact to Second_table.
And you can use the Second_table to display the second ALV. The second Select Query will affect the performance too.
Cheers,
Krishnakumar B. -
After I open the first Firefox browser window, any additional window I open does not open my homepage, but opens a blank page with "New Tab" showing on the tab. An orange "Firefox" tab with a drop down arrow shows at the upper left hand corner of the screen. All of the options (File, Edit, etc.) are greyed out, however they will work if you move your cursor over them.
The URL address window says "Go to a Web Site". After I've gone to a website, the back button remains greyed out and I am not able to go back to a previous page. My RoboForm and Netcraft toolbars only show up in an abbreviate form. The add-on bar doesn't show up at all.
Again, this is a recent problem, and only happens after I've opened one browser window (which works fine) and then open additional browser windows (as few as one additional).I had this same problem. Seems to be caused by the web developer tool bar FF extension (this started happening after a recent update to that extension). After disabling it, my FF is back to normal :)
-
Problem report only print out when i click back button
hi all..i having problem with my report print program. the problem is my report did not immediately print out when i click print button. the program require me to click back button before print out execute. please help me to solve this problem. Thank you.
Edited by: padile on Jan 7, 2010 3:51 AMHi,
In your program, mention the following:
DATA: gs_out_opt TYPE ssfcompop.
gs_out_opt-tdimmed = 'X' "Print immediately
CALL FUNCTION lv_fname "Smartform FM
EXPORTING
output_options = gs_out_opt
Regards,
Dawood. -
In the previous version of Firefox, I could go back to a previous webpage by clicking on a part of the Back button which brought up a list of recently visited sites, and by clicking one of these, could jump straight back to that page. This facility does not seem to be available in the latest Firefox, and the Back button only goes back one page at a time. This is really inconvenient, as,
it now takes longer to get to an earlier page
there is no visibility of previous pages visited
any actions carried out on webpages are undone when going back through them - this does not happen when jumping back several pages in one go.
This is a real problem as I used to the old system constantly, and cannot continue to use Firefox 4.0 unless there is a way around it.For me, I have the same question, this is a poorly done upgrade and I want to go back to 3.6
-
Back button only works about 50% of the time. Have to hit it twice, sometimes three times before it works. Problem is intermittent. Firefox 3.6.10 on Mac OS 10.6.4 (same on both MacBook and iMac machines).
You can try http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox
Maybe you are looking for
-
How do I change my firewall settings to allow Spotify?
I get a message pop up that says.... A firewall may be blocking Spotify. Please update your firewall to allow Spotify (error 101) Please help I am so terrible with anything other then the basics. I found my firewall settings but I could only figure o
-
One of my mail accounts has stuff that can go to my junk folder, but the other account has stuff that I do not want marked in any way as junk and for it to stay in my inbox! How do I do that?
-
Hi, I have now twice tried to dl the Oracle9i Database Release 2 Enterprise/Standard/Personal Edition for Windows NT/2000/XP. With the file 92010NT_Disk1.zip I get the Error message as indicated below. The dl itself takes about 3hrs with my connectio
-
I have Mac OS X 10.7.4. Why can't I get my iCloud photo stream to work?
I have Mac OS X 10.7.4. Why can't I get my iCloud photo stream to work?
-
Battery dying faster than normal and I have been to the Apple Store and battery is fine
Is anyone else experiencing this? Both my iPad and my iPhone 5 started to have the battery die 2x faster after the latest upgrade. I have reset it without losing data and I am about to reset one of them back to original. Any one have any suggestions?