Session report pls help me
hi, i hv create a excel report, in this report perhour how many user connect database
i want a query , how can find out current user i hv run followin qurery
select count(*) from v$session
where username='PROD';
it that correct query or not pls reply me
It will give you the number of sessions connected as of now!!. If you want the history of connections in last one hour then you need to write your code to trap user connections
Similar Messages
-
Urgent: Sessions problem pls help me
Hi all,
Its already late to post this problem.pls help me urgently.
I have a servlet & two jsp's. first i request servlet, it processes something and forwards request to my first jsp. In that jsp on a button click, i'm displaying a new popup by calling showModalDialog. this dialog gets data from the same servlet but it forwards to my second jsp.(second jsp can be seen in dialog)
Now if i submit form from my second(dialog) jsp, the servlet reports that session has expired. I tried a lot but invain. any one who helps me is appreciated well by all of our forum.
waiting 4 u r reply,It could be that you have cookies turned off and you're not using URL Rewriting.
In J2EE, the first time your browser makes a request to the server, the server responds and appends a SESSION_ID parameter to the request as well as storing a cookie with the SESSION_ID.
The second time your browser makes a request, the server checks for the cookie. If it doesn't exist it checks for the parameter. If neither exist the server assumes its the first time your browser has made a request and behaves as describe in the previous paragraph.
In your case when you submit the form if you have disabled cookies and the action attribute doesn't have the SESSION_ID paramter appended to the url, the browser will assume it's a first request. The user will not be logged in, hence your session has expired error.
To fix this you need to encode the URL in your JSP. You can use the struts html:rewrite tag or the HttpServletReponse.encodeURL method, or if you're using JSP 2.0 the JSTL c:url tag. -
Login session variable - pls help before i slot myself
im brand new to this guys and really struggling with logging
in a member to their particular account as opposed to a general
members section using dreamweavers login application and some basic
php coding.
i just cant seem to figure it out it (im stuck on the session
variables i think..) and unfortunately my php is very poor at them
moment!
pls HELP!!
below is the dreamweaver generated code from its basic login
application.
im using it in a dreamweaver template so im not sure if thats
the issue but bascially im using 2 SQL tables i constructed to
achieve this-
1.) tblaccesslevel
intLevelID (unsigned + auto increment + primary key)
txtAccess
(ive allocated various numerical access levels into
txtAccess. ie. 1-7
and
2.) tblplayeraccount
intUserID (unsigned + auto increment + primary key)
txtFirstName
txtLastName
txtEmailAddress
txtPassword
intAccessLevel
(ive generated 2 users in the above table tp test)
in dreameavers server behaviors the recordset generated by
the login server behavior simply says Log In User
obviously i need a session variable somewhere to get the
intUserId....
also a relationship needs to be generated in the sql
statement to connect the intAccessLevel but i think i can manage
that (i think..)
below is the code this application generated -
if someone can give me some hints or if they've done
something similiar pls provide the required code ...it would be a
huge help!! i dont know what im doing wrong!!!
<?php require_once('../Connections/Rugby.php'); ?>
<?php
// *** Validate request to login to this site.
if (!isset($_SESSION)) {
session_start();
$loginFormAction = $_SERVER['PHP_SELF'];
if (isset($_GET['accesscheck'])) {
$_SESSION['PrevUrl'] = $_GET['accesscheck'];
if (isset($_POST['emailaddress'])) {
$loginUsername=$_POST['emailaddress'];
$password=$_POST['password'];
$MM_fldUserAuthorization = "intAccessLevel";
$MM_redirectLoginSuccess = "../player_home.php";
$MM_redirectLoginFailed = "../failed.php";
$MM_redirecttoReferrer = false;
mysql_select_db($database_Rugby, $Rugby);
$LoginRS__query=sprintf("SELECT txtEmailAddress, txtPassword,
intAccessLevel FROM tblplayeraccount WHERE txtEmailAddress='%s' AND
txtPassword='%s'",
get_magic_quotes_gpc() ? $loginUsername :
addslashes($loginUsername), get_magic_quotes_gpc() ? $password :
addslashes($password));
$LoginRS = mysql_query($LoginRS__query, $Rugby) or
die(mysql_error());
$loginFoundUser = mysql_num_rows($LoginRS);
if ($loginFoundUser) {
$loginStrGroup = mysql_result($LoginRS,0,'intAccessLevel');
//declare two session variables and assign them
$_SESSION['MM_Username'] = $loginUsername;
$_SESSION['MM_UserGroup'] = $loginStrGroup;
if (isset($_SESSION['PrevUrl']) && false) {
$MM_redirectLoginSuccess = $_SESSION['PrevUrl'];
header("Location: " . $MM_redirectLoginSuccess );
else {
header("Location: ". $MM_redirectLoginFailed );
?>Are you wanting to redirect them to a specific page based on
their username or to the same page with dynamic content based on
their username? -
HI...
I want to modify 'coois' report but i am not able to find the final output table in it.
Production Order number appears at output screen, i've to display SO NO and SO item which is there in Production order in the output list.
Pls Help ASAP...
Pts rewarded for more helpful ans for sure...
Best regards
SnehalHello.
Have a look into include LCOISOUTPUTF04, form pbo_0100, field symbol <table>. Insert a break-point in line 121:
<ls_detail_list>-list->set_initial_data(
Please, have in mind that this is a standard report before changing it.
Regards.
Valter Oliveira. -
Dear Friends,
My client wants standard report for the following areas in MM.we are working classic scenerio.SC in SRM and PR is generated while ordering the shopping cart. then in ECC PO to be created with reference to PR generated in background in SRM. then confirmation in ECC and finally Invoice in ECC.
Overview of PO value per Requester
Product Category ID
Product
Vendor
Cost Center
Chart of accounts
G/L Account
Company code
Tracking Number
Requester
Transaction Type
Calendar Day
Approved Shopping Cart Value
Purchase Order Value
Cost Center Overview
Cost Center
Material group
WBS Element
Chart of accounts
Requester
G/L Account
Company code
Tracking Number
Purchase Order Value - Quarter
Shopping Cart Value - Quarter
Purchase Order Value u2013 Current Month
Invoice Value u2013 Current Month
Invoice Value Previous Year
Procurement Summary Report
Purchase Order No.
Supplier
Company code
Tracking Number
Shopping Cart Quantity in Shopping Cart Unit
Net Shopping Cart Value in Default Currency
Order Quantity in Base Unit
Net Order Value in Default Currency
Confirmed Quantity in Base Unit
Net Confirmed Value in Default Currency
Invoiced Quantity in Base Unit
Net Invoiced Value in Default Currency
Workload per purchasing group
ERP Purchasing Group
SRM Purchasing Group
Purchase Order No.
Product
Vendor
Calendar Week
SRM Purchasing Organization
ERP Purchasing Organization
Company code
Tracking Number
Processing Status
Product Category ID
Total Order Value
No. of Purch. Orders
No. of Order Items
Delivery Delays
Item No.in Order Doc
Limit GUID
Confirmation number
Item No. Confirmatn
Purchase Order No.
Name of PO
Invoice Number
Item No. in Invoice
Seq. No. Acct.Assign
Calendar Day
Company code
Delayed Delivery
Delivery Time (Purchase Order to Confirmation)
Date of Confirmation
Purchase Order Date
Invoice Date
Requested deliv.date
Confirmation document Overview
Confirmation number
PO number
Name
Approval Status of Goods/Service Confirmation
Processing Status Goods and Services Confirmation
Product Category
Product Category ID
Company code
Transfer Status Goods and Services Confirmation
Calendar Day
Number of Confirmed Items
Confirmed Value
Confirmed Quantity
Open Item (Confirmations)
Calendar Day
Product
Supplier
Catalog
Item No.in Order Doc
G/L Account
Company code
Tracking Number
Purchase Order Number
Name
Goods Recipient
Open Order Value
Open Delivery Value in %
Open Order Quantity
Excessive Invoices
Purchase Order No.
Name of PO
Calendar Day
Requester
Vendor
Item No.in Order Doc
Invoice Number
Company code
Tracking Number
Invoice value is too high
Open Item (Invoices)
Purchase Order No.
Name of PO
Calendar Day
Product Description
Product
Vendor
Material
Company code
Tracking Number
Item No.in Order Doc
Product Category ID
Open Invoice Value
Open Invoice Quantity
Variance Invoice Value/Order Value
Product
Product Description
Vendor
Calendar Day
Purchase order number
Name of PO
Company code
Product Category ID
Requester
Order Quantity in Base Unit
Net Order Value in Default Currency
Expected Net Order Value in Defalt Currency
Confirmed Quantity (BUoM) for Order Date
Net Confirmed Value in Default Currency for Order Date
Quantity Variance Confirmation
Price Variance Confirmation
Invoiced Quantity (BUoM) for Order Date
Net Invoiced Value in Default Currency for Order Date
Quantity Variance Invoice
Price Variance Invoice
Deadline monitoring u2013 Current values of required delivery date
Requested Deliv.Date
Purchase Order No.
Name of PO
Product Description
Product
Vendor
Requester
Purch. Organization
Product Category
Product Category ID
Company code
Tracking Number
Perform to
Performed from
Open Order Value
Open Delivery Value in %
Net Order Value in Default Currency
Expected Net Order Value in Defalt Currency
Net Limit in Default Currency
Net Confirmed Value in Default Currency for Order Date
Net Invoiced Value in Default Currency for Order Date
Purchase order status
Processing Status of Purchase Order
Purchase Order Number
Transaction Description
Calendar Day
Category
Product Description
Company code
Item No.in Order Doc
Product Category
Product Category ID
Order Value
Order Quantity
Net Limit
Unit Price
Purchase Order per product/product category (UNSPSC)
Product
Processing Status of Purchase Order
Company code
Product Category ID
Name
Calendar Day
Purchase Order No.
Product ID
Item No.in Order Doc
Vendor
Net Order Value in Order Currency
Order Quantity in Base Unit
Unit Price
Net Limit
Kindly help me in getting MM ECC standard reports for the above funtionalities.
Thanks in advance.
Regards,
WilliamHi William,
You can all the reports only when SRM is integrated to BI,then only you can get,
It is not possible to get all these reports in SRM (or) MM
Regards
G.Ganesh Kumar -
Dear Friends,
I am using Developer Suit. I Want to develop reports in Text Mode. I don't want delimited text because it is not displaying header and all. I am developing reports in Character Mode template only. I want to send the output to Text file in Client Machine not on server.
Please Help
Thanks
S. AnwarDear,
I am designing reports in Report Designer and i want to call the report from Form using report server but i want the output should go to text file in client machine.
Sorry,I don't know how ur answer will be solution for this.
Thanks
S. Anwar -
MBP Retina constant crashing. See report, pls help?
Hello.
Upon installing Maverick on my machine, constant crashes are the norm. Curious is anyone has any insight from the attached report?
Thanks in advance.
System is pretty standard:
Processor 2.7 GHz Intel Core i7
Memory 16 GB 1600 MHz DDR3
Graphics NVIDIA GeForce GT 650M 1024 MB
Software OS X 10.9.2 (13C64)
Panic (system crashes) log:
Wed Jun 11 15:34:18 2014
panic(cpu 0 caller 0xffffff80054dbe2e): Kernel trap at 0xffffff7f8648b7a5, type 13=general protection, registers:
CR0: 0x000000008001003b, CR2: 0x00000001092a9000, CR3: 0x0000000007efb000, CR4: 0x00000000001606e0
RAX: 0x0000005747f1156a, RBX: 0xffffff8033646080, RCX: 0x0000000000000000, RDX: 0x7fffffffffffffff
RSP: 0xffffff81d8a838e0, RBP: 0xffffff81d8a83920, RSI: 0x0000000000000050, RDI: 0xffffff80336460d0
R8: 0x0000000000000065, R9: 0x0000000000000000, R10: 0x0000000000080065, R11: 0x0000000000070000
R12: 0xffff000027570000, R13: 0x000000000000000e, R14: 0x0000000080000000, R15: 0x000000000000000a
RFL: 0x0000000000010286, RIP: 0xffffff7f8648b7a5, CS: 0x0000000000000008, SS: 0x0000000000000010
Fault CR2: 0x00000001092a9000, Error code: 0x0000000000000000, Fault CPU: 0x0
Backtrace (CPU 0), Frame : Return Address
0xffffff81c72ebc50 : 0xffffff8005422fa9
0xffffff81c72ebcd0 : 0xffffff80054dbe2e
0xffffff81c72ebea0 : 0xffffff80054f3326
0xffffff81c72ebec0 : 0xffffff7f8648b7a5
0xffffff81d8a83920 : 0xffffff7f8648902e
0xffffff81d8a83980 : 0xffffff7f878533a5
0xffffff81d8a839f0 : 0xffffff7f864900f2
0xffffff81d8a83a70 : 0xffffff7f864931b9
0xffffff81d8a83af0 : 0xffffff7f86492640
0xffffff81d8a83b40 : 0xffffff7f86491ba5
0xffffff81d8a83b80 : 0xffffff7f864907f6
0xffffff81d8a83bc0 : 0xffffff7f86481676
0xffffff81d8a83c10 : 0xffffff7f86476dae
0xffffff81d8a83c60 : 0xffffff7f8647aab4
0xffffff81d8a83cb0 : 0xffffff7f86479798
0xffffff81d8a83e00 : 0xffffff7f8646bdd6
0xffffff81d8a83e90 : 0xffffff7f8646a8ed
0xffffff81d8a83ed0 : 0xffffff7f864eeb0d
0xffffff81d8a83f00 : 0xffffff7f864ec84a
0xffffff81d8a83f20 : 0xffffff800544a23a
0xffffff81d8a83fb0 : 0xffffff80054d6ff7
Kernel Extensions in backtrace:
com.apple.iokit.IOHIDFamily(2.0)[5D59740C-447F-37DA-B881-6F470878CF56]@0xffffff 7f86466000->0xffffff7f864d7fff
dependency: com.apple.driver.AppleFDEKeyStore(28.30)[2A8A5F6B-0A7C-33A0-8E5B-4C10F646EC4F]@ 0xffffff7f8645b000
com.apple.iokit.IOUSBHIDDriver(660.4)[3838C4F6-C8E3-32A3-B42E-14CE8048A506]@0xf fffff7f864eb000->0xffffff7f864f3fff
dependency: com.apple.iokit.IOHIDFamily(2.0.0)[5D59740C-447F-37DA-B881-6F470878CF56]@0xffff ff7f86466000
dependency: com.apple.iokit.IOUSBFamily(675.4.0)[5C861553-BC5A-3979-A6B4-58C57879DD40]@0xff ffff7f863d7000
com.spsys.driver.IOKitDriver(1.0.1)[00000000-0000-0000-0000-000000000000]@0xfff fff7f87852000->0xffffff7f87855fff
dependency: com.apple.iokit.IOHIDFamily(2.0.0)[5D59740C-447F-37DA-B881-6F470878CF56]@0xffff ff7f86466000
BSD process name corresponding to current thread: kernel_task
Mac OS version:
13C64
Kernel version:
Darwin Kernel Version 13.1.0: Thu Jan 16 19:40:37 PST 2014; root:xnu-2422.90.20~2/RELEASE_X86_64
Kernel UUID: 9FEA8EDC-B629-3ED2-A1A3-6521A1885953
Kernel slide: 0x0000000005200000
Kernel text base: 0xffffff8005400000
System model name: MacBookPro10,1 (Mac-C3EC7CD22292981F)
System uptime in nanoseconds: 374869451140
last loaded kext at 328439723646: com.apple.driver.AppleIntelMCEReporter 104 (addr 0xffffff7f87856000, size 49152)
last unloaded kext at 304295139368: com.apple.filesystems.msdosfs 1.9 (addr 0xffffff7f87856000, size 57344)
loaded kexts:
com.spsys.driver.IOKitDriver 1.0.1
com.spsys.driver.NKEDriver 1
com.apple.driver.AppleIntelMCEReporter 104
com.apple.filesystems.smbfs 2.0.1
com.apple.driver.AppleHWSensor 1.9.5d0
com.apple.driver.AudioAUUC 1.60
com.apple.filesystems.autofs 3.0
com.apple.iokit.IOBluetoothSerialManager 4.2.3f10
com.apple.driver.AppleMikeyHIDDriver 124
com.apple.driver.AppleMikeyDriver 2.6.0f1
com.apple.driver.ApplePlatformEnabler 2.0.9d1
com.apple.driver.AGPM 100.14.15
com.apple.driver.X86PlatformShim 1.0.0
com.apple.driver.AppleHDA 2.6.0f1
com.apple.iokit.IOUserEthernet 1.0.0d1
com.apple.driver.AppleUpstreamUserClient 3.5.13
com.apple.driver.AppleIntelHD4000Graphics 8.2.4
com.apple.Dont_Steal_Mac_OS_X 7.0.0
com.apple.GeForce 8.2.4
com.apple.driver.AppleHWAccess 1
com.apple.driver.AppleMuxControl 3.4.35
com.apple.driver.AppleSMCLMU 2.0.4d1
com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport 4.2.3f10
com.apple.driver.AppleLPC 1.7.0
com.apple.driver.AppleIntelFramebufferCapri 8.2.4
com.apple.driver.AppleMCCSControl 1.1.12
com.apple.driver.AppleSMCPDRC 1.0.0
com.apple.driver.AppleThunderboltIP 1.1.2
com.apple.driver.AppleUSBTCButtons 240.2
com.apple.driver.AppleUSBTCKeyboard 240.2
com.apple.AppleFSCompression.AppleFSCompressionTypeDataless 1.0.0d1
com.apple.AppleFSCompression.AppleFSCompressionTypeZlib 1.0.0d1
com.apple.BootCache 35
com.apple.driver.XsanFilter 404
com.apple.iokit.IOAHCIBlockStorage 2.5.1
com.apple.driver.AppleUSBHub 666.4.0
com.apple.driver.AirPort.Brcm4331 700.20.22
com.apple.driver.AppleSDXC 1.5.2
com.apple.iokit.AppleBCM5701Ethernet 3.8.1b2
com.apple.driver.AppleAHCIPort 3.0.0
com.apple.driver.AppleUSBEHCI 660.4.0
com.apple.driver.AppleUSBXHCI 670.4.0
com.apple.driver.AppleACPIButtons 2.0
com.apple.driver.AppleSmartBatteryManager 161.0.0
com.apple.driver.AppleRTC 2.0
com.apple.driver.AppleHPET 1.8
com.apple.driver.AppleSMBIOS 2.1
com.apple.driver.AppleACPIEC 2.0
com.apple.driver.AppleAPIC 1.7
com.apple.driver.AppleIntelCPUPowerManagementClient 216.0.0
com.apple.nke.applicationfirewall 153
com.apple.security.quarantine 3
com.apple.driver.AppleIntelCPUPowerManagement 216.0.0
com.apple.kext.triggers 1.0
com.apple.iokit.IOSerialFamily 10.0.7
com.apple.iokit.IOSCSIArchitectureModelFamily 3.6.6
com.apple.driver.DspFuncLib 2.6.0f1
com.apple.vecLib.kext 1.0.0
com.apple.iokit.IOAudioFamily 1.9.5fc2
com.apple.kext.OSvKernDSPLib 1.14
com.apple.iokit.IOBluetoothFamily 4.2.3f10
com.apple.iokit.IOSurface 91
com.apple.iokit.IOAcceleratorFamily 98.14
com.apple.nvidia.driver.NVDAGK100Hal 8.2.4
com.apple.nvidia.driver.NVDAResman 8.2.4
com.apple.driver.AppleGraphicsControl 3.4.35
com.apple.iokit.IOBluetoothHostControllerUSBTransport 4.2.3f10
com.apple.iokit.IOAcceleratorFamily2 98.14
com.apple.AppleGraphicsDeviceControl 3.4.35
com.apple.driver.AppleBacklightExpert 1.0.4
com.apple.iokit.IONDRVSupport 2.4.1
com.apple.driver.AppleSMBusController 1.0.11d1
com.apple.driver.AppleSMBusPCI 1.0.12d1
com.apple.driver.X86PlatformPlugin 1.0.0
com.apple.driver.AppleSMC 3.1.8
com.apple.driver.IOPlatformPluginFamily 5.7.0d10
com.apple.driver.AppleHDAController 2.6.0f1
com.apple.iokit.IOGraphicsFamily 2.4.1
com.apple.iokit.IOHDAFamily 2.6.0f1
com.apple.driver.AppleUSBMultitouch 240.9
com.apple.iokit.IOUSBHIDDriver 660.4.0
com.apple.driver.AppleThunderboltDPInAdapter 3.1.7
com.apple.driver.AppleThunderboltDPAdapterFamily 3.1.7
com.apple.driver.AppleThunderboltPCIUpAdapter 1.4.5
com.apple.driver.AppleThunderboltPCIDownAdapter 1.4.5
com.apple.driver.AppleUSBMergeNub 650.4.0
com.apple.driver.AppleUSBComposite 656.4.1
com.apple.driver.AppleThunderboltNHI 2.0.1
com.apple.iokit.IOThunderboltFamily 3.2.7
com.apple.iokit.IO80211Family 630.35
com.apple.iokit.IOUSBUserClient 660.4.2
com.apple.iokit.IOEthernetAVBController 1.0.3b4
com.apple.driver.mDNSOffloadUserClient 1.0.1b5
com.apple.iokit.IONetworkingFamily 3.2
com.apple.iokit.IOAHCIFamily 2.6.5
com.apple.iokit.IOUSBFamily 675.4.0
com.apple.driver.AppleEFINVRAM 2.0
com.apple.iokit.IOHIDFamily 2.0.0
com.apple.driver.AppleEFIRuntime 2.0
com.apple.iokit.IOSMBusFamily 1.1
com.apple.security.sandbox 278.11
com.apple.kext.AppleMatch 1.0.0d1
com.apple.security.TMSafetyNet 7
com.apple.driver.AppleKeyStore 2
com.apple.driver.DiskImages 371.1
com.apple.iokit.IOStorageFamily 1.9
com.apple.iokit.IOReportFamily 23
com.apple.driver.AppleFDEKeyStore 28.30
com.apple.driver.AppleACPIPlatform 2.0
com.apple.iokit.IOPCIFamily 2.9
com.apple.iokit.IOACPIFamily 1.4
com.apple.kec.pthread 1
com.apple.kec.corecrypto 1.0What you should do next depends on the circumstances. For example:
If you installed the keylogger yourself and then forgot about it, remove it according to the developer's instructions. If you want to keep it, check for an update or refer to the developer for support.
If you're under 18 years old, and the keylogger was installed by a parent or guardian, talk it over within the family.
If you're an adult, and the keylogger was installed on your personal computer without your permission, then the computer may be evidence of a crime or a civil wrong. Consider the legal implications before you do anything.
If the computer was issued to you by a school or employer, then you should check with the IT staff that the keylogger is authorized. Don't use the machine for personal business. If the keylogger interferes with your work, the IT staff will have to solve the problem.
In the event that the computer was tampered with by an unknown party, and you just want to clean it up, see below.
The only way you can be sure that the computer is not compromised is to erase at least the startup volume and restore it to something like the status quo ante. The easiest approach is to recover the entire system from a backup that predates the attack. Obviously, that's only practical if you know when the attack took place, and it was recent, and you have such a backup. You will lose all changes to data, such as email, that were made after the time of the snapshot. Some of those changes can be restored from a later backup.
If you don't know when the attack happened, or if it was too long ago for a complete rollback to be feasible, then you should erase and install OS X. If you don't already have at least two complete, independent backups of all data, then you must make them first. One backup is not enough to be safe.
When you restart after the installation, you'll be prompted to go through the initial setup process for a new computer. That’s when you transfer the data from a backup in Setup Assistant.
Select only users in the Setup Assistant dialog—not Applications, Other files and folders, or Computer & Network Settings. Don't transfer the Guest account, if it was enabled.
Reinstall third-party software from original media or fresh downloads—not from a backup, which may be contaminated.
Unless you were the target of an improbably sophisticated attack, this procedure will leave you with a clean system. If you have reason to think that you were the target of a sophisticated attack, then you need expert help.
That being done, change all Internet passwords and check all financial accounts for unauthorized transactions. Do this after the system has been secured, not before. -
Simple report, pls help !
Hi,
I need a report which can display as a summary total instead of the detail line. Example my data ...
NO ITEM AMOUNT QTY
1 A 1000 10
1 B 1000 5
1 c 500 5
2 B 500 8
2 D 500 10
3 F 200 10
3 G 100 10
So, I need the report to display me ...
No. Amount
1 2500
2 1000
3 300
TOTAL 3800
==============
nullHi,
you can keep your original query intact i.e. the one which returns all the rows. I advise you to do this 'coz there will be less overhead on the database.
Now,in your data model editor, just select NO from the existing group and drag it out to create a new group and put a summary column and set the reset group as the new group and use the sum function on amount column.
Create another summary column outside both the groups and set the reset group as the report and use the sum function on amount column.
Now when you are setting up your layout don't put the second group on the layout at all. This will be real quick and executed at client level.
Reply if you have any further queries.
Piyush.
null -
Very URGENT: PLS HELP:canno resolve symbol session.setAttrribute
hi everbody,
i'm new at this and have got a presentation after 1 day!....pls help
when i compile the servlet i get :
cannot resolve symbol
metod: setAttribute (java.lang.String,java.lang.String)
location: interface(javax.servlet.http.HttpSession)
the servlet that gets te error when comiled is:
* Authenticate.java
// this places all user variables in session
//to access use session.getAttribute
//dispatcher stuff
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.http.HttpSession;
import javax.servlet.http.HttpServlet;
import javax.servlet.ServletConfig;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import java.sql.*;
import java.io.*;
import java.util.*;
* @author Gudiya
* @version
public class Authenticate extends HttpServlet {
public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, java.io.IOException {
HttpSession session = request.getSession(true);
Connection con=null;
String sessionid;
String deptcode;
String desig;
String add1;
String add2;
String contname;
PrintWriter out = response.getWriter();
try
response.setContentType("text/html");
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con=DriverManager.getConnection("jdbc:odbc:SACFA","","");
System.out.println("connection established");
catch(ClassNotFoundException e){
System.out.println("database driver not found");
System.out.println(e.toString());
catch(Exception e){System.out.println(e.toString());
// ServletContext context=getServletContext();
String username=request.getParameter("username");
String password=request.getParameter("password");
try{
PreparedStatement stmt=con.prepareStatement("SELECT * FROM AUTHENTICATION,mb_add where AUTHENTICATION.NAME=? AND AUTHENTICATION.PASSWORD=? AND mb_add.DEPT_NAME=?");
stmt.setString(1,username);
stmt.setString(2,password);
stmt.setString(3,username);
ResultSet rs=stmt.executeQuery();
boolean rowfound=false;
rowfound=rs.next();
if (rowfound==true)
sessionid=session.getId();
System.out.println(sessionid);
//context.setAttribute("userid",sessionid);
// session.setAttribute("user",username);
rs.beforeFirst();
while (rs.next())
deptcode=rs.getString("DEPT_CODE");
desig=rs.getString("DESIGNATION");
add1=rs.getString("ADDRESS1");
add2=rs.getString("ADDRESS2");
contname=rs.getString("NAME");
session.setAttribute("dept_code",deptcode);
session.setAttribute("designation",desig);
session.setAttribute("address1",add1);
session.setAttribute("address2",add2);
session.setAttribute("cont_name",contname);
//context.getRequestDispatcher(request.getParameter("dispatcho")).forward(request,response);
} out.println("<html>");
out.println("<head>");
out.println("<title>Successful Login Screen</title>");
out.println("</head>");
out.println("<body bgcolor='ORANGE'>");
out.println("<script language='Javascript'>");
out.println("<!--function send_onclick(mydispatcho) {var dispatcho;if(mydispatcho=='Noc'){ dispatcho='/Noc1';}if(mydispatcho=='Ce'){ dispatcho='/Ce1';} if(mydispatcho=='Bye'){ dispatcho='/Bye1';}}-->");
out.println("</script>");
out.println("WELCOME MEMBERS FROM "+ username);
//print decorative html statements here
out.println(" SELECT NY ONE ACTION:-");
out.println("<form Action="+"\"servlet/noc\""+" method =post>");//call for your noc servlet
//print decorative html statements here
out.println("<INPUT TYPE=submit VALUE='GENERATE NOC' NAME='NOC' language='javascript'>");
out.println("</form>");
//print decorative html statements here
out.println("<form Action="+"\"servlet/comments\""+" method =post>");//call for your comment servlet
out.println("<INPUT TYPE=submit VALUE='ENTER/ MODIFY COMMENTS' NAME='COMMENTS' language='javascript' >");
out.println("</form>");
//print decorative html statements here
out.println("<form Action="+"\"servlet/bye\""+" method = post>");
out.println("<INPUT TYPE=submit VALUE=EXIT NAME=EXIT language='javascript' >"); //place javascript fucction for exiting window
out.println("</form>");
out.println("</body>");
out.println("</html>");
con.close();
} catch( SQLException e){ }
out.close();}
NOTE: I'M USING JDK1.3 and jsdk2.0
pls help me....
Thank u all,
ashnaHTTP Status 404 - /mywork/servlet/Authenticate
hi dheeraj,
thank u so much the servlet comiled!!!
now i have a new problem....the Tomcat server cannot find its class file. i have placed the class file in C:\Program Files\Apache Group\Tomcat 4.1\webapps\mywork\WEB-INF\classes.
the error it shows is as follows:
type Status report
message /mywork/servlet/Authenticate
description The requested resource (/mywork/servlet/Authenticate) is not available.
Apache Tomcat/4.1.18-LE-jdk14
PLEASE HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!11 -
Report containing details of Payment released to Vendor -----PLS HELP ME
Hi All,
Pls Help me .
My client asking create new report.
they gave some fields also.
But, problem is my abap people asking which table will come data.
but i didn't have idea which table its take output.
pls help me
<<< Vendor Code >>>
<<< Vendor Name >>>
<<< Vendor Address >>>
<<< Vendor City >>>
Please find enclosed the details of payments released to you from << from selection date >> to << upto selection date >>
Document No
Cheque no Date of Release
Vendor Invoice no
Vendor Invoice Passed for (MIRO Value)
PO no.
Basic Rate from PO
GR No.
Material & Description
Qty Invoiced (MIRO qty)
Qty Received (MIGO qty)
in above 4 feilds related to FI .
Pls help me what are the table can i give
thanks
supriyahi,
select table ADRC:
sample (join with lfa1)
SELECT name1 city1 post_code1 street
INTO CORRESPONDING FIELDS OF ITAB
FROM ADRC AS A INNER JOIN LFA1 AS L
ON AADDRNUMBER = LADRNR
WHERE L~LIFNR = P_LIFNR
AND A~DATE_TO GE SY-DATUM.
or use one of the function modules from my 1st post
plz reward usefule answers
thanx and regards
Andreas -
Can i use output of one report in another report?? Pls help!
Hi Gurus,
I have a requirement where in i execute Report_1, inside that report_1, there is a pushbutton,
when i click on that, it executes Report_2.
My Report_2 creates some output xml and displays it too.
What i want is, i want to keep this output (xml) coming from report_2 and use it in my report_1
for further processing. Is it possible???
I donot know how it may work:
Approach1: Is it possible to take this output from report_2, place it in some sap directory server
as some file which is accessible for that session or client and then call it from report_1
Approach2: a tedious approach, to download this file using function modules, and then in report_1,
i can upload that file using the file path.???
Is there any other way? Is approach_1 possible. Coz i think that would be easier.
Pls help.
Thanks a lot,
RashmiHi Rashmi,
to best of my knowledge you are getting the data in to an internal table.
if this is right you can save this data either in ABAP or SAP memory
using EXPORT IMPORT or
SPA/GPA
this way you can use one program data in another.
hope this will serve your purpse.
Regards
Ramchander Rao.K -
Pls help Session manipulation in Jsp
Hi,
In JSP, I wanna check whether user has logged in, but it doesn't work, could you pls help?
I guess the reason is I didn't initiate session attribute of userid. If it is true, could u pls tell me how to do that?
or, how to know the attribute not set yet?
TIA
Wolf
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
<%
String jsp_userid=null;
jsp_userid=session.getAttribute("userid").toString();
if (jsp_userid==null) {
response.sendRedirect("/loginfailure.jsp");
} %>I guess the reason is I didn't initiate session
attribute of userid. If it is true, could u pls tell
me how to do that?
or, how to know the attribute not set yet?Are you sure you are putting an attribute by name "userid" in the session soon after/during login?Otherwise you will get null on doing a getAttribute.
Do something like session.setAttribute("userid",sUserId); during login.
jsp_userid=session.getAttribute("userid").toString();And don't do the above. your session.getAttribute("userid") may well return null
Make it something like
jsp_userid=(String)session.getAttribute("userid");
if(jsp_userid==null) -
Pls Help! Failed to access local Session bean in 7.0!
Hi all,
Heard that to deploy local bean in weblogic 7.0, I need to put my war
file and ejb jar files in the ear file. My client servlet contains the
following:
AccessControlLocalHome accessControlLocalHome =
(AccessControlLocalHome)ctx.lookup("AccessControlLocalHome");
But it failed miserably with the exception
javax.naming.LinkException: . Root exception is
javax.naming.NameNotFoundExcept
ion: Unable to resolve
'app/ejb/AccessControlBean.jar#AccessControlBean/local-ho
me' Resolved: 'app/ejb'
Unresolved:'AccessControlBean.jar#AccessControlBean' ; r
emaining name 'AccessControlBean.jar#AccessControlBean/local-home'
Just got an idea that it might be my web.xml file. So I include the
following in my web.xml file:
<ejb-local-ref>
<ejb-ref-name>ejb/AccessControlLocalHome</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<local-home>com.spear.ejb.simorder.VendorOrderSLBean.AccessControlLocalHome</local-home>
<local>com.spear.ejb.simorder.VendorOrderSLBean.AccessControlLocal</local>
<ejb-link>AccessControlBean.jar#AccessControlBean</ejb-link>
</ejb-local-ref>
But it gives the following error:
Module Name: projects, Error: weblogic.j2ee.DeploymentException: Could
not setup
environment - with nested exception:
[javax.naming.NameNotFoundException: Unable to resolve ejb-link.
AccessControlBe
an.jar#AccessControlBean is not in the context. The context includes
the followi
ng link bindings: {} Make sure the link reference is relative to the
URI of the
referencing module.]
Pls help!
Thanks!
Innovest<ejb-link> should be
<ejb-link> ../AccessControlBean.jar#AccessControlBean</ejb-link>
innovest wrote:
Hi all,
Heard that to deploy local bean in weblogic 7.0, I need to put my war
file and ejb jar files in the ear file. My client servlet contains the
following:
AccessControlLocalHome accessControlLocalHome =
(AccessControlLocalHome)ctx.lookup("AccessControlLocalHome");
But it failed miserably with the exception
javax.naming.LinkException: . Root exception is
javax.naming.NameNotFoundExcept
ion: Unable to resolve
'app/ejb/AccessControlBean.jar#AccessControlBean/local-ho
me' Resolved: 'app/ejb'
Unresolved:'AccessControlBean.jar#AccessControlBean' ; r
emaining name 'AccessControlBean.jar#AccessControlBean/local-home'
Just got an idea that it might be my web.xml file. So I include the
following in my web.xml file:
<ejb-local-ref>
<ejb-ref-name>ejb/AccessControlLocalHome</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<local-home>com.spear.ejb.simorder.VendorOrderSLBean.AccessControlLocalHome</local-home>
<local>com.spear.ejb.simorder.VendorOrderSLBean.AccessControlLocal</local>
<ejb-link>AccessControlBean.jar#AccessControlBean</ejb-link>
</ejb-local-ref>
But it gives the following error:
Module Name: projects, Error: weblogic.j2ee.DeploymentException: Could
not setup
environment - with nested exception:
[javax.naming.NameNotFoundException: Unable to resolve ejb-link.
AccessControlBe
an.jar#AccessControlBean is not in the context. The context includes
the followi
ng link bindings: {} Make sure the link reference is relative to the
URI of the
referencing module.]
Pls help!
Thanks!
Innovest -
My MacBook Air 2nd h 2011 running Mac OS X ver 10.7.5, camera disappeared. FaceTime. Photo Booth, iChat, Skype can't find it. It isnt in System Report, in USB High-Speed tree. I've browsed discussions found no solution.Pls help me
JLeme wrote: ... camera ... isnt in System Report, in USB High-Speed tree...
If you have tried every relevant suggestion from How to Troubleshoot iSight but your camera is still not recognized anywhere in your System Profiler's USB Device Tree, you likely have a hardware problem.
Properly applying the Combo version of the latest update for your Mac OS can sometimes correct software problems, but, if your trouble is caused by a hardware problem, there are no user serviceable parts of the camera. For hardware help, contact Apple or an Apple-Authorized Service Provider for service on your MacBook Air. -
Pls Help me to Create an Updatable report region
hi,
can u pls help in creating an updatable report region. as of now i have 2 regions in a page. 1st region is HTML type where we can select Year,Month&Account parameters and do submit.
2nd region an updatable report region where the report generates according to the SQL query which includes conditions selected as parameters in where clause. even i have the processes to update the data in this report.
now the problem is i am able to put only one submit button which is functioning for both parameter selection and as well as updating the data in report fields. so the functionality of the report became a bit tricky which is not user friendly to the client.
whats happening is: after logging in&select the parameters month=Jan,year=2007,account=ALL
-> If you would like to update the data for Jan’07, you can enter the value in the field and click on ‘Update’ button
-> After that, if you would like to see the data for Feb’07, as of now you are not able to select the month from drop down list directly from this page and say ‘Update’. You need to log-out and log-in again and select ‘Feb’ for seeing Feb’07 data.
-> Rather if you directly select the ‘Feb’ month and say ‘Update’ in the same page, it is updating by the New value you entered for ‘Jan’ ( the same thing happens for all the months what ever you select and click on ‘Update’ in the same page without log-out and log-in)
-> So, the basic thing you have to do while you update the data is, you need to log-out & log-in for seeing or updating different month’s data after making changes to the present month and click on ‘Update’. You can not see correct data if you select the month directly after making changes to the present month’s data. This will cause automatic updating in the selected month.
sorry for the long description of my problem, but your help in this regard will be appreciated. thanks in advance.
Best Regards,
_Rakesh Reddy.hi andy,
thanks very much for ur reply mite..
actually i have 2 page processes.
1 is On Submit-Before Computations and Validations;is to populate
2 is On Submit-After Computations and Validations;is to update
both r PL/SQL anonymous blocks.the problem is i couldn't find any triggers like things in process point drop down list.for eg;'when button pressed' or 'when LOV changed' or 'when list changed'(like in forms developer)
and also i couldn't allocate any processes or functions to button properties in APEX.
can u pls help in this regard.
Cheers,
_Rakesh Reddy.
Maybe you are looking for
-
New field to be filled by update routine
Deltas are running, and added a new char to the cube and written update routine to fill the new char. How should i fill this new value for history. I don't want to reshedule the job from r/3. Will i be able to do from reconstruction (i doubt since ou
-
Derivation of batch number in Profitability Analysis for Sales document
Hi Gurus We are trying to put Batch number in PA derived through sales order sales delivery document but due to timing issue like do not have billing document untill processed and PA derivation done scenario SA created with multiple line items Batch
-
Javacontrol.html Does Not Exist
I understand from instructions that there is supposed to be a java control panel that one can access in one's Firefox browser. However, I cannot find it anywhere on Fedora 20 Linux system. It is supposed to come from a file entitled javacontrol.htm
-
Flash Builder 4: "Flex 2 is not supported; use Flex 3.0.0 or higher "
In our project we have to maintain an application developed in Flex 2, but we have licensed Flash Builder 4, which is now available for Adobe only. When we tried to configure Flash Builder 4 with Flex 2 SDK we get the following error: "Flex 2 is not
-
How to add a vertical barcode on the side of each page?
I'm trying to add vertical barcode on the side of each page in my crystal reports. "Format with multiple columns" wouldnt work, because I need the barcode to be from top to the bottom of the page. Thanks in advance.