Need join to get the SR contact
I need to know how to get the contact name for a service request. This is what I have so far given that I know the service request number and the contact name (from looking at the forms)
select * from cs_incidents_all_b where incident_id = 10333
--customer_id = 1284
--account_id = 1097
select * from hz_parties where party_name = 'My_Party'
--party_id = 1284
--party_number = 1264
select * from hz_cust_accounts
where party_id = 1284
--cust_account_id = 1097
--account_number = 1053
select * from hz_parties
where party_name like 'My_Contact';
party_id = 5903, party_number = 5927
I wouldn't like to draw the schema diagram - but the SQL below returns both employee and customer information in a single query.
SELECT con.incident_id
, peo.full_name
, peo.first_name
, peo.last_name
, loc.location_code
, con.primary_flag
,'Employee' contact_type
, con.contact_point_type contact_point_type
, DECODE(con.contact_point_type, 'PHONE', phn.phone_number, 'EMAIL', peo.email_address, NULL) contact_point_value
FROM cs_hz_sr_contact_points con
, per_all_people_f peo
, hr_locations_all loc
, per_phones phn
WHERE con.party_id = peo.person_id
AND con.contact_type = 'EMPLOYEE'
AND peo.effective_start_date = ( SELECT MAX(peo2.effective_start_date)
FROM per_all_people_f peo2
WHERE peo2.person_id = peo.person_id )
AND con.contact_point_id = phn.phone_id(+)
UNION ALL
SELECT DISTINCT C.incident_id
, D.PERSON_FIRST_NAME||D.PERSON_LAST_NAME
, D.PERSON_FIRST_NAME
, D.PERSON_LAST_NAME
, c.primary_flag
,'Customer'
, a.contact_point_type
, DECODE(a.contact_point_type, 'PHONE', a.raw_phone_number, 'EMAIL', a.email_address, NULL) contact_point_value
FROM HZ_CONTACT_POINTS A
, AR_LOOKUPS B
, CS_HZ_SR_CONTACT_POINTS C
, HZ_PARTIES D
, HZ_RELATIONSHIPS R
, AR_LOOKUPS E
WHERE C.PARTY_ID = R.PARTY_ID(+)
AND ((D.PARTY_ID = C.PARTY_ID AND C.CONTACT_TYPE = 'PERSON') OR (D.PARTY_ID = R.SUBJECT_ID
AND C.CONTACT_TYPE = 'PARTY_RELATIONSHIP' AND D.PARTY_TYPE = 'PERSON' ))
AND C.CONTACT_POINT_TYPE = B.LOOKUP_CODE(+)
AND B.LOOKUP_TYPE(+) = 'COMMUNICATION_TYPE'
AND A.CONTACT_POINT_ID (+) = C.CONTACT_POINT_ID
AND D.PERSON_PRE_NAME_ADJUNCT = E.LOOKUP_CODE(+) AND E.LOOKUP_TYPE(+)= 'CONTACT_TITLE'
Similar Messages
-
When I want to create apple account for my new iphone5 with different apple id than this in billing and card details page I am stuck and get the message contact itune store support to complete this transaction. Need to know what to do as I can't creat apple id
The first step would probably be to contact iTunes support as you're being told to do.
-
HT1692 how can i get the previous contact details in iphone
how can i get the previous contact details in iphone
You don't want to maintain a reference to the last selected node, but to the last selected path. Nodes within a tree are addressed using a TreePath, with contains references to each node from the root, down to a specific node. Look at the JavaDocs of javax.swing.tree.TreePath for more info.
Also, JTree has getter/setter methods for the selectionPath. -
n my house we have 2 iphone 4, and everytime we get the same contact list freom each other, how can we unsync the contacts so each user keeps thir own contact list?
Hi user 1724, before icloud, we had the same issue....
so yes, the solution was to each log into the mac separately.
i kept the main itunes library and apple id, and my son made his own itunes library (which linked to the main itunes/apple id) - so we were able to maintain separate contacts lists.
but then w/ the cloud i guess we assumed the cloud would know we each have different contact lists on diff. phones, but it seems the cloud just lumped it all together - -
Hi. We have two iphones and one Itunes account. How do back up each one without getting the others contacts and without syncing each phone to each other?
Welcome to the Apple community.
Ideally you should each have your own iCloud account, providing you with your own contacts, calendars etc, not doing so will result in exactly what you have experienced. The contacts have likely been lost due to the options you have chosen at the login stage on each device.
Unless you have the missing contacts in a backup file, they won't be recoverable unfortunately. You can add them manually to the contracts that already exist and continue to share the iCloud account if you wish, but I suggest that you each have your own iCloud account.
Note, you can each have your own iCloud account, but continue to share an iTunes account for purchases of apps, books, music, TV shows etc etc. -
I can't get the iCloud Contacts and Calendar folders to appear in Outlook 2010 using the iCloud Control Panel. Also the datafile share which ends in .aplzod is not created in Outlook. The Contacts and Calendar are sent to iCloud (verified on iCloud.com) but the iCloud folders are not created in Outlook in the Contacts and Calendar navigation panes. I get a message toward the end of the sync process indicating that there was an unspecified error. I'm using the newest version of the iCloud Control Panel, the 32 bit version of Outlook 2010, Windows 7 64 bit, an iPhone 3GS, and the latest version of iTunes. Any ideas how to complete the sync process to the end?
Pretty much the same for me: Windows 7 64-bit, Outlook 2010, iCloud Control Panel 1.0.1, iPhone 3GS. Error report at end of setup process is shown below, and has been emailed. Any help please?
Your setup couldn't be started because of an unexpected error.
Error: 0x8004010F: ZebraBootstrap::ActivateDataFile: Could not create msgservice
AppleOutlookDAVConfig version: 3.0.42.0
Windows version (6.1.7601): Windows 7 Home Premium Edition Service Pack 1 (build 7601), 64-bit Local app data directory test: Pass Temp directory test: Pass Outlook version: 14 (14.0.6025.1000), x86 Outlook location (installed): C:\Program Files (x86)\Microsoft Office\Office14\OUTLOOK.EXE MAPI location: C:\Program Files (x86)\Common Files\SYSTEM\MSMAPI\1033\MSMAPI32.DLL
MAPI logon succeeded
Message Stores Table:
Outlook Data File, 4E495441F9BFB80100AA0037D96E0000
Outlook Data File, 4E495441F9BFB80100AA0037D96E0000
Outlook Data File, 4E495441F9BFB80100AA0037D96E0000
Contents of C:\Program Files (x86)\Common Files\SYSTEM\MSMAPI\1033\mapisvc.inf
<Not found>
Contents of C:\Windows\system32\mapisvc.inf
[Services]
MSFAX XP=Fax Mail Transport
[Default Services]
MSFAX XP=Fax Mail Transport
[MSFAX XPP]
PR_PROVIDER_DLL_NAME=FXSXP.DLL
PR_RESOURCE_TYPE=MAPI_TRANSPORT_PROVIDER
PR_RESOURCE_FLAGS=STATUS_NO_DEFAULT_STORE
PR_DISPLAY_NAME=Fax Mail Transport
PR_PROVIDER_DISPLAY=Fax Mail Transport
[MSFAX XP]
PR_DISPLAY_NAME=Fax Mail Transport
Providers=MSFAX XPP
PR_SERVICE_DLL_NAME=FXSXP.DLL
PR_SERVICE_SUPPORT_FILES=FXSXP.DLL
PR_SERVICE_ENTRY_NAME=ServiceEntry
PR_RESOURCE_FLAGS=SERVICE_SINGLE_COPY|SERVICE_NO_PRIMARY_IDENTITY
HKLM\Software\Microsoft\Office\14.0\Access\Access Connectivity Engine\ISAM Formats\Outlook 9.0 HKLM\Software\Microsoft\Office\14.0\Access Connectivity Engine\ISAM Formats\Outlook 9.0 HKLM\Software\Microsoft\Office\14.0\OneNote\Outlook Add-in
Message Classes
HKLM\Software\Microsoft\Office\14.0\Outlook
Dataviz
InstallRoot
Namespaces
{0006F017-0000-0000-C000-000000000046}
FolderTypes
{00067800-0000-0000-C000-000000000046}
{00067801-0000-0000-C000-000000000046}
{00067802-0000-0000-C000-000000000046}
{00067803-0000-0000-C000-000000000046}
{00067804-0000-0000-C000-000000000046}
{00067808-0000-0000-C000-000000000046}
{00067828-0000-0000-C000-000000000046}
{00067829-0000-0000-C000-000000000046}
{0006782A-0000-0000-C000-000000000046}
ViewTypes
{00062000-0000-0000-C000-000000000046}
{00062001-0000-0000-C000-000000000046}
{00062002-0000-0000-C000-000000000046}
{00062003-0000-0000-C000-000000000046}
{00062004-0000-0000-C000-000000000046}
{0006F018-0000-0000-C000-000000000046}
FolderTypes
{00067820-0000-0000-C000-000000000046}
{00067821-0000-0000-C000-000000000046}
{00067822-0000-0000-C000-000000000046}
{00067823-0000-0000-C000-000000000046}
ViewTypes
{00062000-0000-0000-C000-000000000046}
{00062001-0000-0000-C000-000000000046}
{00062002-0000-0000-C000-000000000046}
{00062003-0000-0000-C000-000000000046}
{00062004-0000-0000-C000-000000000046}
Operations
1ImportFile
2ExportFile
3ExportDataLink
4ImportVCard
5ImportAccounts
6ImportVcalendar
7ImportRss
8ExportRss
9ImportCFL
ImportEudora
SchedulingInformation
FreeBusySupport
SearchTypes
{00067A00-0000-0000-C000-000000000046}
{00067A01-0000-0000-C000-000000000046}
{00067A02-0000-0000-C000-000000000046}
{00067A03-0000-0000-C000-000000000046}
{00067A04-0000-0000-C000-000000000046}
{00067A08-0000-0000-C000-000000000046}
{00067A10-0000-0000-C000-000000000046}
{00067A11-0000-0000-C000-000000000046}
{00067A20-0000-0000-C000-000000000046}
Setup
UpgradePath
HKLM\Software\Microsoft\Office\14.0\User Settings\Access_Core\Create\Software\Microsoft\Office\Outlook
Addins
AccessAddin.DC
HKLM\Software\Microsoft\Office\14.0\User Settings\Access_Core\Create\Software\Microsoft\Shared Tools\Outlook
Journaling
Microsoft Access
HKLM\Software\Microsoft\Office\14.0\User Settings\Excel_Core\Create\Software\Microsoft\Shared Tools\Outlook
Journaling
Microsoft Excel
HKLM\Software\Microsoft\Office\14.0\User Settings\Misc_SpsOutlookAddin\Create\Software\Microsoft\Office\Outlook
Addins
ColleagueImport.ColleagueImportAddin
HKLM\Software\Microsoft\Office\14.0\User Settings\Outlook_AutoDiscover
Create
Software
Microsoft
Office
14.0
Outlook
AutoDiscover
HKLM\Software\Microsoft\Office\14.0\User Settings\Outlook_Core
Create
Software
Microsoft
Internet Mail and News
Mail
MSDAIPP
Shared Tools
Outlook
Journaling
Conversation
Document
E-mail Message
Fax
Letter
Meeting
Meeting Cancellation
Meeting Request
Meeting Response
Note
Phone Call
Remote Session
Task
Task Request
Task Response
Web Service Providers
FreeBusy
office.microsoft.com
Windows
CurrentVersion
Internet Settings
TemplatePolicies
High
Zones
4
HKLM\Software\Microsoft\Office\14.0\User Settings\Outlook_Intl HKLM\Software\Microsoft\Office\14.0\User Settings\Outlook_SearshShellReg
Create
Software
Microsoft
Windows
Shell
Associations
UrlAssociations
mapi
UserChoice
HKLM\Software\Microsoft\Office\14.0\User Settings\Outlook_SocialConnector HKLM\Software\Microsoft\Office\14.0\User Settings\Outlook_SocialProviderMOSS
HKLM\Software\Microsoft\Office\14.0\User Settings\PowerPoint_Core\Create\Software\Microsoft\Shared Tools\Outlook
Journaling
Microsoft PowerPoint
HKLM\Software\Microsoft\Office\14.0\User Settings\Word_Core\Create\Software\Microsoft\Shared Tools\Outlook
Journaling
Microsoft Word
HKLM\Software\Microsoft\Office\8.0\Outlook
HKLM\Software\Microsoft\Office\Delivery\SourceEngine\Downloads\{90140000-001A-04 09-0000-0000000FF1CE}-C\Resources\OutlookMUI.msi
HKLM\Software\Microsoft\Office\Delivery\SourceEngine\Downloads\{90140000-001A-04 09-0000-0000000FF1CE}-C\Resources\OutlookMUI.xml
HKLM\Software\Microsoft\Office\Outlook
Addins
Apple.DAV.Addin
BCSAddin.Connect
Groove.OutlookProxyAddIn
Microsoft.VbaAddinForOutlook.1
OneNote.OutlookAddin
OscAddin.Connect
OutlookChangeNotifier.Connect
Search.OutlookToolbar
UmOutlookAddin.FormRegionAddin
AutoConfigDomains
hotmail.*
live.be
LIVE.CA
LIVE.CL
LIVE.CN
LIVE.CO.IN
LIVE.CO.KR
LIVE.CO.UK
LIVE.CO.ZA
LIVE.COM
LIVE.COM.AR
LIVE.COM.AU
LIVE.COM.MX
LIVE.COM.MY
LIVE.COM.PE
LIVE.COM.PK
LIVE.COM.PT
LIVE.COM.SG
LIVE.COM.VE
LIVE.DE
LIVE.DK
LIVE.FR
LIVE.HK
LIVE.IE
live.in
LIVE.IT
LIVE.JP
LIVE.MA
LIVE.NL
LIVE.NO
LIVE.PH
LIVE.RU
LIVE.SE
livemail.com.br
msn.*
msnhotmail.com
tw.live.com
windowslive.com
FormRegions
IPM.Note.Microsoft.Exchange.Fax.UM.CA
IPM.Note.Microsoft.Exchange.Voice
IPM.Note.Microsoft.Exchange.Voice.UM
IPM.Note.Microsoft.Exchange.Voice.UM.CA
IPM.Note.Microsoft.Fax.CA
IPM.Note.Microsoft.Voicemail
IPM.Note.Microsoft.Voicemail.UM
IPM.Note.Microsoft.Voicemail.UM.CA
IPM.Note.Rpmsg.Microsoft.Voicemail.UM
IPM.Note.Rpmsg.Microsoft.Voicemail.UM.CA
Outlook 10 Accounts
Categories
{ED475418-B0D6-11D2-8C3B-00104B2A6676}
{ED475419-B0D6-11D2-8C3B-00104B2A6676}
{ED475420-B0D6-11D2-8C3B-00104B2A6676}
Types
{4DB5CBF0-3B77-4852-BC8E-BB81908861F3}
{ED475411-B0D6-11D2-8C3B-00104B2A6676}
{ED475412-B0D6-11D2-8C3B-00104B2A6676}
{ED475414-B0D6-11D2-8C3B-00104B2A6676}
SocialConnector
SocialProviders
OscAddin.SharePointProvider
HKCU\Software\Microsoft\Office\14.0\Common\HelpViewer\Applications\OUTLOOK
AdditionalCollections
0
1033
HKCU\Software\Microsoft\Office\14.0\Common\Migration\Outlook
HKCU\Software\Microsoft\Office\14.0\Outlook
Addins
AutoDiscover
RedirectServers
Display Types
Balloons
Journal
Message
Office Explorer
Options
Calendar
MSHTML
International
ToDoBar
Perf
RoamingStreamsCache
6BF937902986EF42A5D2882B309351BF
Preferences
Resiliency
DisabledItems
Search
Catalog
Setup
SQM
Today
Folders
UserInfo
HKCU\Software\Microsoft\Office\14.0\User Settings\Outlook_AutoDiscover HKCU\Software\Microsoft\Office\14.0\User Settings\Outlook_Core HKCU\Software\Microsoft\Office\14.0\User Settings\Outlook_Intl HKCU\Software\Microsoft\Office\14.0\User Settings\Outlook_SearshShellReg HKCU\Software\Microsoft\Office\14.0\User Settings\Outlook_SocialConnector HKCU\Software\Microsoft\Office\14.0\User Settings\Outlook_SocialProviderMOSS
HKCU\Software\Microsoft\Office\8.0\Outlook
HKCU\Software\Microsoft\Office\Outlook
Addins
AccessAddin.DC
ColleagueImport.ColleagueImportAddin
iTunesAddIn.CalendarHelper
OMI Account Manager
SocialConnector -
Query to get the Customer Contacts
Hi all,
Pls tell me the qyery to get the customer contacts like telephone number, fax number details.
Thanks in advanceWhat is the responsibility name? Form name and navigation path?
You can determine the query from the form itself as follows:
- Query the record(s)
- Click on Help > Diagnostics > Examine
- Under 'Block' field, select 'SYSTEM'
- Under 'Field' field, select 'LAST_QUERY'
You may also review the following note:
Note: 259722.1 - HOWTO Determine Table and Column Name from a field in a form in 11i
https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=259722.1 -
Tried to purchase Gems in King's Empire but I keep getting the message contact iTune Support to complete transaction.
Do exactly what it told you to do.
Contact itunes support -
Adding contacts to one iphone and another iphone gets the same contacts
I have just recieved an iphone 4s and my sister got one as well. We are on the same plan. We were addding contacts to our phone and noticed we both were getting the same contacts. When i added a contact she would get that same contact. Is there a way to fix this without going to the apple store/verizon?
http://support.apple.com/kb/HT1495
-
Need FM to get the last consumption date and value
Hello Friends,
i am developing a report for non moving material , i have got the relevant fields from MSEG,MKPF, MCHB, MCH1,,, but i need the last consumption date for that non moving material batch and value (total amount ) of that batch...
so i need a Function Modules, to get this values .
Please help me out
Regards
MukeshYou have to join MSEG and MKPF ( where MKPF has the posting date ) , ( day,month,year ) . You can calculate the month.moreover, also see S031,S032,S033
else.
check it at Mseg-lgort, and movement types for the given matnr.
from there u can find the consumtion according to movement types .
for particular period carry mblnr from mkpf and check the movement types which r equal to this mblnr and matnr in mseg.
so u get the all movement types in that period for particular matnr.
consumtion = issues - receipt.
hope this helps u -
Need help on getting the column names of Tabletype
I have a table Mapping with the following values: This Mapping table contains the table names (in Tabname) and the column names(colname) of various tables and values(ValuesTobeFilled) for the columns.
I have to insert into the tables present in the Tabname field with the values present in the ValuesTobeFilled in the columns present in the Colname field.
Note: The Mapping table need not contain all the columns of the base table. The columns that are not present can be filled with null. And this mapping table is not fixed i.e. rows can be inserted/deleted frequently.
Sample values in mapping table:
Tabname Colname ValuesTobeFilled
sample_items Eno Corresponding Expression to get the values from XML input
sample_items Ename Corresponding Expression to get the values from XML input
XXX YYY Corresponding Expression to get the values from XML input
Before filling in the actual tables, I have to store the entire data temporarily and I have used a tabletype declared as follows:
TYPE T_sample_items IS TABLE OF sample_items%ROWTYPE INDEX BY BINARY_INTEGER;
l_sample_items T_sample_items;
Where the table sample_items have the following columns:
• Eno
• Ename
• Eaddress
• Eemail
So, the tabletype should be filled as:
Eno Ename Eaddress EEmail
1 XXX - -
I have declared a cursor to select the values from mapping table and I need to fill in the ValuesTobeFilled values to the corresponding table.
CURSOR c_xpath (c_tname mapping.TABNAME%type)
IS
select * from mapping where tabname = c_tname;
CURSOR c_tables
IS
SELECT DISTINCT TABNAME FROM mapping;
FOR crsr IN c_tables
LOOP
p_tname := CRSR.TABNAME;
FOR csr IN c_xpath(p_tname)
LOOP
IF l_xml_doc.EXISTSNODE(CSR.XPATH_EXP) = 1
THEN
l_node_value := l_xml_doc.extract(CSR.XPATH_EXP).getStringVal(); -- This is the value to be stored in the corresponding column
ELSE
l_node_value := NULL;
END IF;
IF CSR.COLUMN_NAME = ‘eno’
THEN
l_sample_items(1).eno := l_node_value;
ELSIF CSR.COLUMN_NAME = ‘ename’
THEN
l_sample_items(1).name := l_node_value;
END IF;
END LOOP;
END LOOP;
And I need to eliminate hard coding while comparing the column names (in the following piece of code) as the Mapping table values are subject to insertion/deletion:
IF CSR.COLUMN_NAME = ‘eno’
THEN
l_sample_items(1).eno := l_node_value;
ELSIF CSR.COLUMN_NAME = ‘ename’
THEN
l_sample_items(1).ename := l_node_value;
END IF;
I need to insert the values directly into the tabletype without this hardcoding. Please suggest me ways to compare the mapping table values with the field (column) names of the tabletype. If it is not possible using tabletype, please suggest any other ways of fixing the problem.
Many thanks,
GopiI take it this isn't going to be a serious production system at the end of the day?
Storing metadata in tables for extraction and insertion of data is just wrong in so many ways. It smells heavily of Entity Attribute Value modelling, which is the most wrong way to use a relational database and is known to have major performance implications and be liable to bugs and issues. The idea that EAV modelling allows for 'generic' databases where new data items can be added flexibly later on without having to change code is usually justified with an excuse of "it means we don't have to update all our tables when we want a new column" which is easily countered with "if you're adding a single column a good relational design wouldn't require you to add it to more than one table anyway in most cases".
Just what exactly are you trying to do and why? There has to be a better way. -
Help needed urgently to get the values from the jsp page.
hi,
I am badly stuck into this problem.Please help me and find a solution.
I am using ms-access and jsp.
my database structure is as given below:
m_emp_no | from_date | to_date | approver| status |
1002 | 22/9/2008 | 23/9/2008|1003 |pending
1004 | 29/9/2008 | 30/9/2008|1003 |pending
2044 | 15/9/2008 | 16/9/2008|3076 |pending
now this is exactly a leave apply scenario where a page is displayed and the user has to fill in the details to apply leave.then the approver has to approve that leaves so even, he should get the details in his account.
for example here 1003 has to approve leaves for 1002 & 1004.i am able to fetch data from database for the particular approver here is the coding:
<html>
<body>
<h2 align="center"><u><b><span style="background-color: #FFFFFF"><font color="#C0C0C0" face="Comic Sans MS">Leave
Approval Requests</font></span></b></u></h2>
<form method="POST" name="f1" action="update.jsp">
<%
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection("jdbc:odbc:employee_details");
PreparedStatement p=null;
p=con.prepareStatement("select * from emp_leave_application where approver='"+username+"'");
ResultSet r=p.executeQuery();
while(r.next())
%> <table border="1" width="100%" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF">
<tr>
<td width="100%" bgcolor="#999966"><b><u><%=r.getString(2)%></u></b></td>
</tr>
</table>
<table border="1" width="100%" height="171" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF">
<tr>
<td width="100%" height="165" valign="top">
<p align="left"><b>User ID</b> :
<input type="text" name="id" value="<%=r.getString(1)%>" size="4
<b>status</b>:<%=r.getString(5)%</p>
<p><b>Leave From</b> : <%=r.getString(2)%></p>
<p><b>Leave From</b> : <%=r.getString(3)%></p>
<p><b>Approve</b> : <select size="1" name="approved">
<option value="Approved">Approved</option>
<option value="Cancelled">Cancelled</option> </select></p>
<%
con.close();
%>
<table border="1" width="100%" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF">
<tr>
<td width="100%" bgcolor="#999966">
<p align="center"><input type="reset" value="Clear" name="B1">
<input type="submit" value="Submit" name="B2"></td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</body>
</html>{code}
this will display both the rows but when i try to retrieve the values into update.jsp using the code given below it gives me only one value which is the first 1002.
{code}approved=(String)request.getParameter("approved");
id=(String)request.getParameter("id");{code}
but i need both the values to be inserted into the update.jsp only then the approver will be able to approve the leaves individually with respect to the m_emp_no.
please help me out.
thanks in advance.My comments below are all between (((((( and ))))))
<html>
<body>
<h2 align="center"><u><b><span style="background-color: #FFFFFF"><font color="#C0C0C0" face="Comic Sans MS">Leave
Approval Requests</font></span></b></u></h2>
<form method="POST" name="f1" action="update.jsp">
<%
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection("jdbc:odbc:employee_details");
PreparedStatement p=null;
p=con.prepareStatement("select * from emp_leave_application where approver='"+username+"'");
ResultSet r=p.executeQuery();
while(r.next())
%> <table border="1" width="100%" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF">
<tr>
<td width="100%" bgcolor="#999966"><b><u><%=r.getString(2)%></u></b></td>
</tr>
</table>
<table border="1" width="100%" height="171" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF">
<tr>
<td width="100%" height="165" valign="top">
<p align="left"><b>User ID</b> :
<input type="text" name="id" value="<%=r.getString(1)%>" size="4
((((((( in the statement above, name="id" should be changed to something like name="id"<%=ii%>
Where ii is a counter that tells you how many times you have gone through the loop so far.
The reason for this is that each textfield you generate must have a unique name rather than all have the same name
such as 'id'. This change will give them names such as id0, id1, id2. Then when you submit the page, you can uniquely
identify each input textfield.))))))
<b>status</b>:<%=r.getString(5)%</p>
<p><b>Leave From</b> : <%=r.getString(2)%></p>
<p><b>Leave From</b> : <%=r.getString(3)%></p>
<p><b>Approve</b> : <select size="1" name="approved">
(((( the above select also has to have a unique name for each time through the loop. Change it to name="approved"<%=ii%>
<option value="Approved">Approved</option>
<option value="Cancelled">Cancelled</option> </select></p>
<%
con.close();
%>
<table border="1" width="100%" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF">
<tr>
<td width="100%" bgcolor="#999966">
<p align="center"><input type="reset" value="Clear" name="B1">
<input type="submit" value="Submit" name="B2"></td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</body>
</html>
(((((((note you would be better off long term to put your business logic in a servlet and dispatch to the JSP page which will only have the responsiblity to display the data.
Also, connection pooling is better than the above. -
Need how to get the data from the external file in eCatt
Hi ,
Could any body suggest how to get the values from the external file(Excel,CSV file,Text file) and pass it as varaiable in ecatt Test script.
Problem: Need to execute FK01-Vendor creation Transaction with multiple set of data .As per my understanding we could achive through Variants in Testdata set in eCatt .
But is there any way to store the data in excell file and get the data and pass it to FK01 Test scripts
Appreciate response on thisHi
See the links they may be useful
check these link,
eCATT- An Introduction
/people/sumeet.kaul/blog/2005/07/26/ecatt-an-introduction
Creating Test Scripts
/people/sumeet.kaul/blog/2005/08/10/ecatt-creating-test-scripts
eCATT Logs
/people/sapna.modi/blog/2006/04/18/ecatt-logs-part-vi
eCATT Scripts Creation TCD Mode
/people/sapna.modi/blog/2006/04/10/ecatt-scripts-creation-150-tcd-mode-part-ii
Creation of Test Data Container
/people/sumeet.kaul/blog/2005/08/24/ecatt-creation-of-test-data-container
eCATT Scripts Creation - SAPGUI Mode
/people/sapna.modi/blog/2006/04/10/ecatt-scripts-creation--sapgui-mode-part-iii
Integrating ECATT & MERCURY QTP Part -1
/people/community.user/blog/2007/01/02/integrating-ecatt-mercury-qtp-part-1
Using eCatt to Test Web Dynpro ABAP
/people/thomas.jung/blog/2006/03/21/using-ecatt-to-test-web-dynpro-abap
and
-command reference
http://help.sap.com/saphelp_nw04/helpdata/en/c6/3c333b40389c46e10000000a114084/content.htm
/people/sapna.modi/blog/2006/04/10/ecatt--an-introduction-part-i
http://prasadbabu.blogspot.com
https://www.sdn.sap.com/sdn/developerareas/was.sdn?page=test_tool_integration_for_sap_e-catt.htm
http://help.sap.com/saphelp_nw04/helpdata/en/1b/e81c3b84e65e7be10000000a11402f/frameset.htm
http://www.erpgenie.com/ecatt/index.htm
hope this helps.
Reward points for useful Answers
Regards
Anji -
Need how to get the parent acount details in Trial balance report
Hi All,
I have a requirement in which i need to print the details of the parent account details as the report wont print the parent a/c details by default.
Can any one please let me know how can i achieve this?
Thax in advance.
SeshuGenerally the trial balance summary report does not fetch the parent account details.
In my customized report , i need to get the detials of the current accounts as well as the details (initial balance,debit,credit ) for a particular period of the parent account as well. -
Need Help in Getting the below output
Hi All,
The below is the table data.
col1 col2 col3 col4 col5 col6
Aa 1 Con 100 10 -1
Ba 2 Cam 50 2 33
Aa 1 Con 200 20 -2
Ca 3 val 2 5 -10
Aa 1 Con 150 30 -3
Ba 2 Cam 20 3 11
Ca 3 val 3 5 -20
Ba 2 Cam 30 5 22
Ca 3 val 5 4 -30
I need the output as below. Please help me in getting the output.
col1 col2 col3 col4 col5 col6
Aa 1 Con 100 10 -1
Aa 1 Con 200 20 -2
Aa 1 Con 150 30 -3
Aa-Con Subtotal 450 60 -6
Ba 2 Cam 20 3 11
Ba 2 Cam 30 5 22
Ba 2 Cam 50 2 33
Ba-Cam Subtotal 100 10 66
Ca 3 val 2 5 -10
Ca 3 val 3 5 -20
Ca 3 val 5 4 -30
Ca-val Subtotal 10 14 -60
I am using Oracle 10g. Let me know if other details required.
Thanks in Advance.
Regards,
Ravi Kumar Ankarapu.You can try using ROLLUP and GROUPING SETS like how some of the other forum members have suggested. Another way of getting the desired output would be :
with t as
select 'Aa' col1, 1 col2, 'Con' col3, 100 col4, 10 col5, -1 col6 from dual
union all
select 'Ba', 2, 'Cam', 50, 2, 33 from dual
union all
select 'Aa', 1, 'Con', 200, 20, -2 from dual
union all
select 'Ca', 3, 'val', 2, 5, -10 from dual
union all
select 'Aa', 1, 'Con', 150, 30, -3 from dual
union all
select 'Ba', 2, 'Cam', 20, 3, 11 from dual
union all
select 'Ca', 3 ,'val', 3, 5, -20 from dual
union all
select 'Ba', 2, 'Cam', 30, 5, 22 from dual
union all
select 'Ca', 3, 'val', 5, 4, -30 from dual
select * from
select * from t
union all
select distinct * from
select col1 || '-' || col3 || ' Sub-total' col1, null col2, null col3,
sum(col4) over (partition by col1 order by col1) col4,
sum(col5) over (partition by col1 order by col1) col5,
sum(col6) over (partition by col1 order by col1) col6
from t
order by col1, col2, col3
Output:
"COL1" "COL2" "COL3" "COL4" "COL5" "COL6"
"Aa" "1" "Con" "150" "30" "-3"
"Aa" "1" "Con" "100" "10" "-1"
"Aa" "1" "Con" "200" "20" "-2"
"Aa-Con Sub-total" "" "" "450" "60" "-6"
"Ba" "2" "Cam" "50" "2" "33"
"Ba" "2" "Cam" "20" "3" "11"
"Ba" "2" "Cam" "30" "5" "22"
"Ba-Cam Sub-total" "" "" "100" "10" "66"
"Ca" "3" "val" "5" "4" "-30"
"Ca" "3" "val" "2" "5" "-10"
"Ca" "3" "val" "3" "5" "-20"
"Ca-val Sub-total" "" "" "10" "14" "-60"
Maybe you are looking for
-
Crystal report and SQL 2000 Integration to BW?
HI All, We have following two requirements to be implemented 1) We need crystal reports to be integrated with BW system.Please guide about the prerequisites as well as the procedure to be followed so as to generate Crystal reports once the plugins ar
-
How do I get adobe reader to work on my samsung galaxy tab 2
How do I get adobe reader on my samsung galaxy tab 2 to work
-
Iweb 09_good for multiple site designs
Hi! I am looking to upgrade to a better imac and iWeb 09 to create "microsites" for my current print design clients to help expand their marketing. Is this version of iWeb easy to use for that or does it to multiple sites at all? Basically I am askin
-
Is there a case with keyboard in Spanish?,
Is there a case with keyboard in Spanish?, for mini iPad
-
Hi! I've searched for an answer to no avail. I've made a playlist of stories to make one continuous track consisting of many short promos, each leading to the next story at end jump. They skip forwards to a dummy marker at the end of each track, and