How to code the function of add+delete+edit using jsp??
how to code the function of add+delete+edit using jsp??i'm also using the ms sql server 2000 as a database. pls help me!!
Hi,
I think you will find the following useful.
Performing Inserts, Updates, and Deletes
http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/inserts_updates_deletes.html
Similar Messages
-
How to change the url of "Add New Item" of a particular list in SharePoint 2013???
Hi Guys,
How to change the url of "Add New Item" of a particular list in SharePoint 2013???
I need to redirect it into the page where I have created my Visual web part.
Please suggest
Warm Regards,
Tony JoyHi,
There are multiple ways to change the form url like javascript, SharePoint designer, custom code, editing default form to have custom web part etc, Please follow the url below that describe diffent methods and steps
http://social.msdn.microsoft.com/Forums/sharepoint/en-US/ec2769a0-683c-4023-8804-b596e4f92a3a/change-default-forms-on-custom-list?forum=sharepointcustomizationlegacy
Hope it helps!!!
Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. Thanks, Ajeet -
How to debug the function separately which is added in the package
Hi Friends, I want to know how to debug the function separately, by taking it from package,. and i dont no where to add begin and end. and dont no how to give input to the function. ANd how to find the error which is detected from production, so i want to find from which statement its failing. So please guide me to proceed further. thanks in advance.
{ FUNCTION fn_get_trail_id (p_incr PLS_INTEGER DEFAULT 1) RETURN PLS_INTEGER IS
p_trail_id tb_xop_orders_trail.trail_id%TYPE;
BEGIN
IF p_incr >= 1 THEN
SELECT sq_xop_trail_id.NEXTVAL INTO p_trail_id FROM DUAL;
RETURN p_trail_id;
ELSIF p_incr = 0 THEN
SELECT sq_xop_trail_id.CURRVAL INTO p_trail_id FROM DUAL;
RETURN p_trail_id;
END IF;
END;
-- $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
BEGIN
ppr_openlog('AQ');
ppr_request_lock(v_cb_handle, v_cb_lock);
pr_xop_log_errors('AQ: ==== cb started ('||descr.msg_id||') ====');
my function is like this, how i can i in clude it in declare statement, and how to assign values for that.. and where i have to include "begin".plz help me -
How To Code the I_CALLBACK_USER_COMMAND = 'USER' in HR-ABAP
Dear Friends,
How to code the I_CALLBACK_USER_COMMAND = 'USER' in Reuse_Alv_Grid_Display in HR-ABAPThis is one method of programming the user_commend
call function 'REUSE_ALV_GRID_DISPLAY'
exporting
i_callback_program = g_repid
i_callback_user_command = 'USER_COMMAND'
i_callback_top_of_page = 'TOP_OF_PAGE'
i_structure_name = 'I_DATA'
is_layout = gs_layout
it_fieldcat = gt_fieldcat[]
it_sort = gt_sort[]
i_save = 'A'
is_variant = es_variant
it_events = gt_events[]
is_print = gs_print
tables
t_outtab = i_data
exceptions
program_error = 1
others = 2.
*& USER_COMMAND
*& This form is called through Function 'REUSE_ALV_GRID_DISPLAY'.
*& If you are in detailed mode then transaction PA20
form user_command using r_ucomm like sy-ucomm
rs_selfield type slis_selfield.
case r_ucomm.
when '&IC1'.
check rs_selfield-sel_tab_field = 'I_DATA-PERNR'.
read table i_data index rs_selfield-tabindex.
set parameter id 'PER' field i_data-pernr.
call transaction 'PA20'.
when others.
endcase.
endform. "user_command -
How to extend the functionality of Smtp through servlets
hi
will some one tell me how to extend the functionality of SMTP server through servelts
bye[samreenkazi],
Here's some code that might help you get a servlet to send e-mails out by using the sun.net.smtp.SmtpClient class:
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import sun.net.smtp.SmtpClient;
public class SendMailMessageServlet extends HttpServlet {
static final String to = "[email protected]";
public void doGet(HttpServletRequest req, HttpServletResponse res)
throws ServletException, IOException {
res.setContentType("text/html");
PrintWriter out = res.getWriter();
//grab the values of each field
String name = req.getParameter("name");
String feedback = req.getParameter("feedback");
String mailfrom = req.getParameter("mailfrom");
//Notify the sender of his/her feedback
out.println("<HTML>");
out.println("<HEAD><TITLE>Mail sent successfully</TITLE></HEAD>");
out.println("<BODY>");
out.println("Your e-mail has been sent successfully");
out.println("</BODY></HTML>");
//Send an e-mail
SmtpClient smtp = new SmtpClient(); //assume localhost
smtp.from(mailfrom);
smtp.to(to);
PrintStream msg = smtp.startMessage();
msg.println("To: " + to); // mailers will display the To: address
msg.println("From: " + mailfrom); //mailers will display the From: address
msg.println("Subject: Hello World !");
msg.println();
msg.println("Hello World");
smtp.closeServer();
}Note that the sun.net.smtp.SmtpClient class has limited capabilities. A better alternative is to use the JavaMail API and when you download the JavaMail packages, there are some sample example code that may help you.
HTH.
Allen Lai
Developer Technical Support
SUN Microsystems
http://www.sun.com/developers/support/ -
How to get the values from struct data type using java code..?
Hi ,
I am newer to java.
we are using oracle database.
How to get the data from struct data type using java code.
Thanks in Advance.
Regards,
kumarHi Rajeev,
To retrieve a FilterContainer you will need to traverse the report structure:
ReportStructure boReportStructure = boDocumentInstance.getStructure();
ReportContainer boReportContainer = (ReportContainer) boReportStructure.getReportElement(0);
FilterContainer boFilterContainer = null;
if (boReportContainer.hasFilter()) {
boFilterContainer = boReportContainer.getFilter();
} else {
boFilterContainer = boReportContainer.createFilter(LogicalOperator.AND);
Calling boDocumentInstance.getStructure() will retrieve the entire structure for the document.
Calling boReportStructure.getReportElement(0) will retrieve the structure for the first report of the document.
Hope this helps.
Regards,
Dan -
How to get the function name/ID of the current page
HI,
I searched the forum and google, but it is not clear on how to get the function name of the current page.
I have 4 functions in my self service A ,B,C,D (seeded page links ) they all have to go to a page called hhhPG. Based on which function user is clicks I have to show the data in hhhPG.
so my question is how to get the function name ? I mean I need to know if user click on link A , B, C or D link and came to this page.
I found below in one forum and also there is getfunctionID in pageContext , but I do not know what to pass to getfunctionid("???") to get value.
FunctionSecurity funcSecurity = pageContext.getFunctionSecurity();
Or is there a better way of know where user is coming from ? like geturl....
Please help, I need this ASAP.
Thank you.Use below to find out how the user came into the page
FunctionSecurity funcSecurity = pageContext.getFunctionSecurity();
boolean isFunc1 = funcSecurity.testFunction(funcSecurity.getFunction("YOUR_FUNCTION_SHORT_NAME1"));
boolean isFunc2 = funcSecurity.testFunction(funcSecurity.getFunction("YOUR_FUNCTION_SHORT_NAME2"));
boolean isFunc3 = funcSecurity.testFunction(funcSecurity.getFunction("YOUR_FUNCTION_SHORT_NAME3"));
boolean isFunc4 = funcSecurity.testFunction(funcSecurity.getFunction("YOUR_FUNCTION_SHORT_NAME4"));
So one of them will be true based on the function the user came in.
Write your logic based on these flags.
Regards,
Peddi. -
How to get the function name in controller class
Hi experts ,
I am new to the OAF framework.
i have created the two functions and bot he the function have the same controller class .i want to capture the function name or function id in the controller class.
can you please let me know how to get the function id or function name in the controller class.Hi apurba,
Thanks for the quick reply.
i am trying to get the function name from the FunctionSecurity class,
However in FunctionSecurity class there is no such method defined as getFunctionName();
my requirement is ,i have two functions functionA and functionB defined.
both the function has the same controller class.in controller class ,i need to get the function name ,based on the function name
i will redirect the page to respective page.
looking forward for you response.
appreciate your help
Thanks,
KT -
How to copy the function group
hi there,
i want to copy the function group 2012. plz let me know the possibility.use FM <b>RS_FUNCTION_POOL_COPY</b> to copy
Look at this thread
how to copy the function group -
How to view the function INTAX
Hi Gurus,
could you please tell me how to check the function INTAX as my tax in not getting calculated properly.
thanks.
Rgds,
VishwasHi,
I suggest you to read the documentation of INTAX through PE04. You will have a better understanding of the calculation process.
It is given clear. Please try this before you go for a debugging option.
- Suresh -
How to Create the Function Module Exit
Hi,
How to Create the Function Module Exit. Please tell me the step by step procedure.Hi,
Check this link for how to create the function module exit..
http://sap.niraj.tripod.com/id62.html
Thanks
naren -
How to recover the recovery partition after delete all hard disk partitions
hallo
how to recover the recovery partition after delete all hard disk partitions in toshiba satellite pro c850-1fn ?
note that : I did not work recovery disc or usb to my laptop.
I have need of your help.Satellite Pro C850-1FN (PSCBXE-01700EEN)
Restore the hard disk to its original out-of-the-box contents using Toshiba recovery media. All of the original partitions will be restored, including the recovery partition.
If no recovery discs were created, you can obtain them from Toshiba.
Toshiba Europe Backup Media Online Shop
For instructions, see the section Restoring the pre-installed software from your created Recovery Media on p. 4-18 of the User's Manual (attached).
-Jerry -
How to get the job logs from sm35 by using the queue id and session name?
hi all,
can any one please let me know how to read the job log from sm35 by using the session name and queue id. i have the job name and job count but is it possible to download the job log by using the queue id and session name.
FYI..
i want to read this job log and i want to send it to an email id.
-> i am using the job_open and submitting the zreport via job name and job count and then i am using the function module job_close.
but this is not working in my scenario i have the queue id and session name by using this two i want to get the job log is there any function module available or code please provide me some inputs.
thanks in advance,
koushikHi Bharath,
If you want to download it to the local file then you can follow the instructions in the below link.
How to download Batch Input Session Log?
Regards,
Sachin -
How to Assigning the number ranges for Purchase Order using EXIT_SAPMM06E_0
How to Assigning the number ranges for Purchase Order using EXIT_SAPMM06E_001 using Functional Module NUMBER_GET_NEXT explain me ?
Hi,
First go thourh the FM import export parameters list.
Try to create an internal table of type INRI-NRRANGENR for number ranges.
We can provide the lower and higher values for this table so that what ever PO is created will be with that range.
Try to create the ncessary ones using this FM.
In the Exit, EXIT_SAPMM06E_001,
the Export parameters are-
EKKO-EBELN- the PO ios created with in that specified range
Range as INRI-NRRANGENR - Here try to assign the Internal table that was populated in the FM.
Try to code this in the Include provded and keep Breakpint and check the PO number generated.
Reply if u need more help on this.
Reward if helpful.
Best Wishes,
Chandralekha -
How to display the fields in ALV Output without using Field catalog?
How to display the fields in ALV Output without using Field catalog?
Could you pls tell me the coding?
Akshitha.Hi,
u mean without building field catalog. is it? I that case, we can use the FM REUSE_ALV_FIELDCATALOG_MERGE.
data: itab type table of mara.
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
i_program_name = sy-repid
i_structure_name = itab
CHANGING
ct_fieldcat = lt_fieldcat[]
EXCEPTIONS
inconsistent_interface = 1
program_error = 2
OTHERS = 3.
*Pass that field catalog into the fillowing FM
call function 'REUSE_ALV_GRID_DISPLAY'
exporting
i_callback_program = gd_repid
i_grid_title = 'REPORTING'
is_layout = gt_layout
it_fieldcat = lt_fieldcat[]
tables
t_outtab = itab.
Maybe you are looking for
-
Motion files no longer able to import into Final Cut
Hello all, Everytime I try to import a motion file into Final Cut I get an unrecogized file error. This just started but I also noticed that Motion has limited export options as well. I am wondering if anyone else is experiencing this problem.
-
SA520W does not get IP on optional WAN
We are using a SA520W as our primary router and have a fiber connection attached to the default WAN interface. We would like to improve our uptime using a secondary internet connection on the optional WAN interface. We have bought a dovado tiny 4g ro
-
ICloud iPhoto journals vs Shared Photo stream
In iPhoto (for iOs Only) you can create photo journals and publish them on iCloud. This is very similar to shared photo streams. However Journals give you quite a few layout options which lack for photo stream. On the other hand shared photo stream a
-
Hi ,thanks a lot for reading this. I would like to create a java class which can perform addition ,namely this program should return the sum of two integers. Then another java class should use the previous one in order to add couples of integers. I k
-
"an internal error has occurred" in trying to open newly installed Adobe Reader 10.
unable to open Adobe Reader 10.1 ; says "an internal error has occurred", I'm using windows Vista 32 bit. Any know fix, or must I go back to using an older, more stable version like 8.1.2. What's with Adobe if they can't create a better, more stable