How to know to which page the user is going
Hi! I want to know to which domain my user is going after leaving a certain page. I want to know this to differentiate if is moving to a page inside my site, if he's leaving or if he's closing the browser.
Hope u can help me! Regards
Raul
If a user clicks a link on the page then you can tell that where is he/she heading,but if they type the address in the location bar,then you are out of luck.
And this is a JavaScript/html related question( I think...*_*)
Cheers
Khalid
Similar Messages
-
How do I find out which "page" the user was on
I am using JAVA servlets and XSLT's to create a web service. I need to know how I can use the HTTPRequest that is sent to me to the server to find out, which "page" they were on when they clicked the login link.
The login link appears on all "pages" and once they click it a loginServlet is activated an a login page is shown. I need to know which "page" they were on so I can take them back to it after login has completed.
So take for example I am at http://localhost:8080/contact/ and then they clicked a hyperlink with value http://localhost:8080/login to call loginServlet. I know getPathInfo will give me the "/login" but how do i get that "/contact" so i can send them back to that page once the system has logged them in.
Any help, suggestions, comments would be highly appreciated it. Thanks.Retrieve the "Referer" value from the requestHeader:
String referer = request.getHeader("Referer");Notice the misspelling, you must spell it this way. BTW, check for nulls. I don't think there's any guarantee this value is set, although I've never run across a situation where it wasn't. -
How can I know from which page a user came??
Hi.
There is a way to know what was the previous page in the usrs browsers, but I don't know how.
Can you help me?
The problem is:
I have an error page that writes exception info on the screen:
StringWriter sw = new StringWriter();
PrintWriter pw = new PrintWriter(sw);
exception.printStackTrace(pw);
String msg = sw.toString();
It works fine, and usualy in the msg I have all info about the page that the exception ocured in.
But when it is an SQL exception, I don't know what jsp page made that SQL call.
So I want to print the path of the page previous to the error page.
Thanks for Help.
Vadim.Greetings,
There is a way to know what was the previous page in
the usrs browsers, but I don't know how.
Can you help me?Get the HTTP request header 'Referer':
<a href='<%= request.getHeader( "Referer" ) %>'>Return to main page</a>I hope this helps.
Thanks for Help.
Vadim.Regards,
Tony "Vee Schade" Cook -
How to know on which pages a particular list is being used?
Hi
So we have this site which has not been cleaned up for a while resulting in the creation of many lists many of which are not being used as well. I want to know that where all a particular list is being used i.e on which all pages so that if the list is not
being used, I could delete it. Is there any simple way to do it.
Please share your thoughts:)
Thanks
Supriya SinhaHi Supriya,
OOTB I think you can use SharePoint designer, but I would suggest custom code to iterate to all pages, and get the lists that are associated with these pages.
http://stackoverflow.com/questions/633633/sharepoint-how-can-i-find-all-the-pages-that-host-a-particular-web-part
another one would be if those lists were never used and you can check for list with empty data.
I would use Get-SPLists to get all of the lists to check for zero items.
http://blogs.technet.com/b/heyscriptingguy/archive/2010/09/15/use-windows-powershell-to-manage-lists-in-sharepoint-2010.aspx
http://sharepointrelated.com/2011/11/28/get-all-sharepoint-lists-by-using-powershell/
Hope this helps!
Ram - SharePoint Architect
Blog - SharePointDeveloper.in
Please vote or mark your question answered, if my reply helps you -
How to use progress indicator which block the user for editing ?
Hi All,
I have a requirement where i need to show a round progress bar while processing to the database.For example :- I have a bounded taskflow and inside it I have a two jspx page called as "First.jspx" and "Second.jspx".And i have two textboxes and one "Save" button on first.jspx page.
Now when user puts the values in the textboxes and hits the "Save" button , my ticker or progress indicator should say "Please wait while processing" and as soon as the transaction is complete , i need to show another page which is "Second.jspx" page. "Save" button action has method inside a managed bean which has some functionality and then it executes the VO(View Object) and commits the data.
How should i implement the indicator?
I have read this article :- http://www.oracle.com/technetwork/developer-tools/adf/learnmore/42-progressbarcolor-169184.pdf but it doesn't fit to my requirement.I need indicator which holds the user to edit anything on the page.Like what we get when we do any transaction in banks while navigating to payment gateway.
Please suggest!!!
Thanks and Regards,
ShahHi Shah,
The answer was around the same are that you were looking into. http://www.oracle.com/technetwork/developer-tools/adf/learnmore/27-long-running-queries-169166.pdf but the sample was the 27.
- Juan Camilo -
HT201407 how to know under which carrier has the phone been issued
how to know under which carrier has the phone been issued
If you bought it from an authorized Apple reseller, it should say on the receipt. If you bought it from a private seller, ask that seller, or call Apple Support and they may be able to tell you.
Regards. -
Im using the SDI application to build a system and now i would like to insert a dialog box which allow the user to enter the general information about themselves and then it will be saved into a text file. How to insert the dialog box and show the dialog box at the beginning of the program.
Hi Lee,
The easyest way to achieve this is to declare an object of your dialog box derived class (e.g. CUserInfo, public CDialog) into the InitInstance method of the main application class.
Depending on the behavior you want you can place the code before dispatching the commands from command line (in which case the main frame of the SDI application will not be shown), or after, in which case the UserInfo dialog box will be shown over the main application window as modal.
The code snipped bellow can be more helpfull:
BOOL CSDIApp::InitInstance()
AfxEnableControlContainer();
// Parse command line for standard shell commands, DDE, file open
CCommandLineInfo cmdInfo;
ParseCommandLine(cmdInfo);
//prompt user for data
CUserInfo dlg;
if (dlg.DoModal() == IDOK)
//do something here with the data
else
return FALSE;//i.e. quit the application if the user presses the 'Cancel' button
// Dispatch commands specified on the command line
if (!ProcessShellCommand(cmdInfo))
return FALSE;
// The one and only window has been initialized, so show and update it.
m_pMainWnd->ShowWindow(SW_SHOW);
m_pMainWnd->UpdateWindow();
return TRUE;
Hope this helps,
Silvius
Silvius Iancu -
How to determine which cell the user has just left?
I want to check the contents of a JTable cell just after the user has left that cell.
What is the most reliable way to determine which cell the user has just left?Hi,
I use the cellRenderer for that... if the value is not correct, I call an editCellAt() method...
JRG -
Detecting which line the User is Editing IN table control
Hi,
I am doing a Dialog programming where there is a Table control. Now the problem is I have to decide to checks certain rules based on data entered in the Table control. But the Rules should be applicable only to the Row in which the User is entering data. And even if the the same rules are failing in another Row of the Table control it should not get validated i.e The rule should be applicable only to the ROW the user is entering the data or Changing the Data.
How do i sense in which row the User is entering data in the PAI of the Table control.You will have to use GET CURSOR, please do F1 help on GET CURSOR, your answer is there.
You will be doing something like this.....
DATA: CURSORFIELD(20) TYPE C,
CURSORLINE TYPE I,
CURSORVALUE(20) TYPE C.
GET CURSOR FIELD CURSORFIELD LINE CURSORLINE VALUE CURSORVALUE.
* To know exactly which line in the internal table you
* must account for which page of table control the user
* is currently one, so you need to add the TOP_LINE
* value from the table control to find the exact
* internal table row
* Set cursorline and read table.
CURSORLINE = ( CURSORLINE + <table_control>-TOP_LINE ) - 1.
Regards,
Rich Heilman
Message was edited by: Rich Heilman -
How to browse ADF Application page by user
Hi, i am ali & just i want to know, how to access ADF Application page by user through browser
Edited by: user13367653 on Jan 17, 2012 5:20 AMAli,
Welcome to the forum. Please take a bit of time and tell us which jdev version you are using.
It's helpful to read https://forums.oracle.com/forums/ann.jspa?annID=56 before posting.
You question is not clear, so we can't relay answer it. Where would you like to access the adf application? On the integrated server or a stand alone server?
Timo -
How can I see which roles or users have access to a table?
How can I see which roles or users have access to a table?
For a given table, how can I see the grants, who and what?
Many thanksdba_tab_privs.
Grantee can be a role or an user, as roles are fake users.
Sybrand Bakker
Senior Oracle DBA -
How to know no of pages in smart forms to be printed ?
Hi,
How to know no of pages in smart forms to be printed ?
though i got SFSY structure during run time of smartform , even that was not useful.
&SFSY-FORMPAGES&
Displays the total number of pages for the currently processed form. This allows you to include texts such as'Page x of y' into your output.
for that Page &SFSY-PAGE& of &SFSY-FORMPAGES&
during debug of smart form i don't understand how it is calculating no of pages ,as i kept break point before printing page no in smart form.
please check my two screen shots, sfsy-formpage still contains current page no only but not total no of pages.
Help Required.
Thanks In advance.Hi Prakash,
You will not get these values during debugging.. Let the program execute completely, you will get the right values.
As Manish said, the value for &SFSY-FORMPAGES& will be known only after all the pages are processed, though it is not necessary that you use them in the final window only. It can be a text node in a window of any type.
You will get the desired output, just cant see them during debugging within the program. At the time of printing or in the print review, output would be as expected.
Also, FYI, it would be better to give total pages as &SFSY-FORMPAGES(3ZC)& as there can be error if the total number of pages exceeds 9, due to lack of sufficient space to print more digits -
How to customize SAPlogon so that the user cannot enter transaction code?
I use PFCG to create a role which limit the choices of menu. I create a user and set the role to the user.
I would like to disable or hide the COmmand Field so that the user cannot enter transaction code directly.
Is it possible to do so?
If yes, would anyone show me how?
Any discussion is welcome.anyway you are going to restrict the user authorization vai role, insted of going throught the whole tree to execute the tcode there is shotcut as command line. here you can save much more time for the user insted going through the tree always. there is no harm for the system if you keep the command line option. What and why you think it should be disabled?
Cheers,
-Sunil -
I need to know in which table the long text is stored
Using the transaction code 'AC03' , I go to the ' Create Service Master Page '. Navigating through the page , I could see a ' long text ' button . Once it is being clicked , the white space for text entry comes .
My query is this -> <b>I need to know in which table the long text is stored and the name of the field ??</b>
If one goes to the table 'ASMDT' , one can find a field 'KZLTX' , which is a long text indicator, but not a long text storage field ...... plz helpHi
Use the function module READ_TEXT for fetching the long text..
I came across similar situation in my project where i need to fetch the long text for Notification no.I have used the following code for fetching the Notificatin long text,you can just compare this logic and change accordingly.
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
ID = 'LTXT'
LANGUAGE = WA_STRUCT12-KZMLA
NAME = QMNUM
OBJECT = 'QMEL'
TABLES
LINES = INT_TAB13.
Specify LANGUAGE if you wanna fetch the long text regardless of the log on lang.The resulting long text will be stored in the itab INT_TAB13 which can be defined with reference to the structure TLINE.
Hope this helps.
Regards,
Hakim -
How to know about Description from the TransType...?
Hi All,
I have used SBO 2005 A PL 43 SP1 and have some queries below:
SELECT TOP 100 PERCENT T0.DocDate, T0.TransType, CAST(T0.BASE_REF as char) AS BASE_REF, T0.Warehouse, T0.CardCode, T0.CardName, T0.xInQty, T0.xOutQty, T0.Price, T0.Currency , T1.ItemName, T1.SuppCatNum, CAST(T0.InvntAct as char) AS InvntAct, T2.AcctName, T0.StatusDescr
FROM vwOINM_DEL0_02 T0 INNER JOIN OITM T1 ON T0.ItemCode = T1.ItemCode LEFT OUTER JOIN OACT T2 ON T0.InvntAct = T2.AcctCode
WHERE (T0.ItemCode = 'RO00 0465') AND (CAST(T0.TransType AS char(3)) + CAST(T0.CardCode AS char) IN ('13 ZZ0 Cash&Carry') OR (T0.TransType <> 13))
AND (T0.xDocDate BETWEEN CONVERT(DATETIME, '2008-01-01 00:00:00', 102) AND CONVERT(DATETIME, '2008-11-25 00:00:00',102)) ORDER BY T0.DocDate, T0.TransNum
TransType -
> is a field name on table "OINM"
How to know about Description from the TransType and where can we relate to the table?
example :
TransType Description
====================
15 Delivery
13 AR Invoice
59 Goods Receipt
60 Goods Issue
Please anybody can help me...?
Regards,
AgungYou can use function on sql side which to proper transid returns desciption.
The function is as
create FUNCTION [dbo].[trans](@trans integer)
RETURNS varchar(100)
AS
BEGIN
DECLARE @ret varchar(100)
select @ret =
case @trans
when 1 then 'oChartOfAccounts'
when 2 then 'oBusinessPartners'
when 3 then 'oBanks'
when 4 then 'oItems'
when 5 then 'oVatGroups'
when 6 then 'oPriceLists'
when 7 then 'oSpecialPrices'
when 8 then 'oItemProperties'
when 12 then 'oUsers'
when 13 then 'oInvoices'
when 14 then 'oCreditNotes'
when 15 then 'oDeliveryNotes'
when 16 then 'oReturns'
when 17 then 'oOrders'
when 18 then 'oPurchaseInvoices'
when 19 then 'oPurchaseCreditNotes'
when 20 then 'oPurchaseDeliveryNotes'
when 21 then 'oPurchaseReturns'
when 22 then 'oPurchaseOrders'
when 23 then 'oQuotations'
when 24 then 'oIncomingPayments'
when 28 then 'oJournalVouchers'
when 30 then 'oJournalEntries'
when 31 then 'oStockTakings'
when 33 then 'oContacts'
when 36 then 'oCreditCards'
when 37 then 'oCurrencyCodes'
when 40 then 'oPaymentTermsTypes'
when 42 then 'oBankPages'
when 43 then 'oManufacturers'
when 46 then 'oVendorPayments'
when 48 then 'oLandedCostsCodes'
when 49 then 'oShippingTypes'
when 50 then 'oLengthMeasures'
when 51 then 'oWeightMeasures'
when 52 then 'oItemGroups'
when 53 then 'oSalesPersons'
when 56 then 'oCustomsGroups'
when 57 then 'oChecksforPayment'
when 59 then 'oInventoryGenEntry'
when 60 then 'oInventoryGenExit'
when 64 then 'oWarehouses'
when 65 then 'oCommissionGroups'
when 66 then 'oProductTrees'
when 67 then 'oStockTransfer'
when 68 then 'oWorkOrders'
when 70 then 'oCreditPaymentMethods'
when 71 then 'oCreditCardPayments'
when 73 then 'oAlternateCatNum'
when 77 then 'oBudget'
when 78 then 'oBudgetDistribution'
when 81 then 'oMessages'
when 91 then 'oBudgetScenarios'
when 97 then 'oSalesOpportunities'
when 93 then 'oUserDefaultGroups'
when 101 then 'oSalesStages'
when 103 then 'oActivityTypes'
when 104 then 'oActivityLocations'
when 112 then 'oDrafts'
when 116 then 'oDeductionTaxHierarchies'
when 117 then 'oDeductionTaxGroups'
when 125 then 'oAdditionalExpenses'
when 126 then 'oSalesTaxAuthorities'
when 127 then 'oSalesTaxAuthoritiesTypes'
when 128 then 'oSalesTaxCodes'
when 134 then 'oQueryCategories'
when 138 then 'oFactoringIndicators'
when 140 then 'oPaymentsDrafts'
when 142 then 'oAccountSegmentations'
when 143 then 'oAccountSegmentationCategories'
when 144 then 'oWarehouseLocations'
when 145 then 'oForms1099'
when 146 then 'oInventoryCycles'
when 147 then 'oWizardPaymentMethods'
when 150 then 'oBPPriorities'
when 151 then 'oDunningLetters'
when 152 then 'oUserFields'
when 153 then 'oUserTables'
when 156 then 'oPickLists'
when 158 then 'oPaymentRunExport'
when 160 then 'oUserQueries'
when 162 then 'oMaterialRevaluation'
when 163 then 'oCorrectionPurchaseInvoice'
when 164 then 'oCorrectionPurchaseInvoiceReversal'
when 165 then 'oCorrectionInvoice'
when 166 then 'oCorrectionInvoiceReversal'
when 170 then 'oContractTemplates'
when 171 then 'oEmployeesInfo'
when 176 then 'oCustomerEquipmentCards'
when 178 then 'oWithholdingTaxCodes'
when 182 then 'oBillOfExchangeTransactions'
when 189 then 'oKnowledgeBaseSolutions'
when 190 then 'oServiceContracts'
when 191 then 'oServiceCalls'
when 193 then 'oUserKeys'
when 194 then 'oQueue'
when 198 then 'oSalesForecast'
when 200 then 'oTerritories'
when 201 then 'oIndustries'
when 202 then 'oProductionOrders'
when 205 then 'oPackagesTypes'
when 206 then 'oUserObjectsMD'
when 211 then 'oTeams'
when 212 then 'oRelationships'
when 214 then 'oUserPermissionTree'
when 217 then 'oActivityStatus'
when 218 then 'oChooseFromList'
when 219 then 'oFormattedSearches'
when 221 then 'oAttachments2'
when 223 then 'oUserLanguages'
when 224 then 'oMultiLanguageTranslations'
when 229 then 'oDynamicSystemStrings'
when 231 then 'oHouseBankAccounts'
when 247 then 'oBusinessPlaces'
when 250 then 'oLocalEra'
when 280 then 'oSalesTaxInvoice'
when 281 then 'oPurchaseTaxInvoice'
when 300 then 'BoRecordset'
when 305 then 'BoBridge'
when 260 then 'oNotaFiscalUsage'
when 258 then 'oNotaFiscalCFOP'
when 259 then 'oNotaFiscalCST'
when 261 then 'oClosingDateProcedure'
when 10 then 'oBusinessPartnerGroups'
when 278 then 'oBPFiscalRegistryID'
else '?' end
return @ret
end
and call it as
SELECT TOP 100 PERCENT T0.DocDate, dbo.trans(T0.TransType), CAST(T0 ....
Maybe you are looking for
-
Blank From Address Source IP 255.255.255.255
hi, I tested Exchange 2007 for open relay and it shows relay closed on all the tests. even then, I see a really large amount of emails per minute (SPAM) stuck in the message queue. they all have 3 thing in common besides being SPAM. - From Address is
-
How to decide ByteBuffer size created for SocketChannel.read(ByteBuffer)
Hi, Is there any way by which we can know the size of data ready to be read at the SocketChannel? When the "SelectionKey" is discovered to be "isReadable()" I would like to create the ByteBuffer of the required size and use it for the SocketChannel.r
-
Trying to migrate to a new computer - major problems
Hi, I'm posting this for my friend Cindy who is trying to migrate from an old laptop to a new PC. Laptop: Vista PC: Windows 7, both 64 bit. She called me after moving some files around and being partially successful. The problem is that a few thousan
-
Im installing a new version of PE12 and am getting an error message
The error message is something to do with the shaed technologies failing to install.
-
Fan runs constantly after installing replacement battery
I received my replacement batteries on a timely basis, charged them as instructed and get proper running time from them. My issue is that suddenly the fan runs almost perpetually. I have zapped the PRAM, stared at the console utility looking for a pr