I need to validations on click of submit
Hi All,
We are trying to update an interactive form on click of submit button.
We should validate the the fields before it is saved to R/3 database.
we are having a table in which rows are increased dynamically depending on the node <x> size.
i need to check each row which are input fields in table whether it is null or !null.
so we need write script for these validations. please tell me how to get the values of each row and check the value in script coding.i am trying to use the for loop in script.Please correct me.
value node which is mapped to table row is : <x>
value attribute which is mapped to column of the row is: <name>
Regards,
Rajesh.
hi,
hi u can validate these values in in wdj itself...it will be similar to looping through tables in that u have in webdynpro java view.
in the livecycle designer under libary tab u have webdynpro tab--->choose submit to sap button and place it in the adobe form ur designing. u can use this button to trigger the code that u have written in webdynpro java.
add submit to sap button in ur form.
this button correspond to the onactionSubmit dat u have written in the ctrller.
so wen u click this the code for validation will be executed.
Regards
Jay
Similar Messages
-
Custom Validation on Clicking Submit
Hi
I have a SIT setup for capturing Loan details of an employee. The employee enters these details through Self Service and goes for approval on submission. I want to validate the entries made by the employee through a PL/SQL code and pop an error message if it fails validation when clicking 'Submit' . Is there any way this can be achieved ?
Thanks in advance
FebinWhat you would need to do is create a controller to allow for this functionality to occur. the processformrequest procedure is the best one to achieve this functionality. Once you have written the custom validation, personalize the page you need the control on and add in the controller.
-
Need to show popup when the Submit button is clicked for the second time ..
Hi guys,
I have a requirement where i need to show a popup or alert when the submit button is clicked twice . When it is clicked for the first time one method is been called and its process starts. When the user clicks the submit button for the second time they should be shown a popup stating "Submit button already been clicked, please clicked OK to continue".
Can anyone help with this please , its really urgent requirement ?
Thanks in advanceHi,
I dont have any sample code to give you now. For quick reference, I can advice some psuedo steps to achieve your requirement. I dont have access to JDEV to test this. If any syntax errors then pls correct yourself.
1. Extend Controller since it is standard page ( Refer Anil Passi site for steps to extend seeded ontroller)
2. Write below logic in your Process Request method
super.processRequest(oaPageContext, oaWebBean);
pageContext.putSessionValue("status", "notInitiated");
3. Include below logic in your PFR method
if(pageContext.getSessionValue("status")!=null){
if("notInitiated".equals(pageContext.getSessionValue("status")))
super.processFormRequest(oapagecontext, oawebbean);
pageContext.putSessionValue("status", "initiated");
else
String message = "Display error message as required";
throw new OAException(message, OAException.ERROR);
You may need to import required packages ( Related to OAException).
Remeber, to sumbit the request, user need to refresh the page again so that "status" variable will be refreshed.
Hope it helps.
Thanks
venkat -
I need to throw an error message if the terms&conditions checkbox is not checked on click of Submit Button in webdynpro java. Can anyone suggest.
My Apologies. The simplest way- write the following code in the action of the Submit button-
if (<check box not checked>)
wdComponentAPI.getMessageManager().reportException("Please accept Terms and Conditions to continue",false);
else
continueExecution();
The exception message will be shown on top of the view.
You may like to use Message Area UI element and place it at the bottom of the WD4J view to show our exception message at the bottom of the view.
I hope this helps !
Cheers,
-Amol Gupta -
Need to display processing icon on click of submit button
Hi all,
I need to display a processing message like "Please wait....Request being processed" whenever the user clicks on submit button.There is a PL/SQL process which inserts data into the database on click of submit button.As this insertion would take time, I need to display a processing message as mentioned earlier.
My approach was to create a javascript function and call it from the URL redirect section . when this option is selected,the processing message is displayed..but the PL/SQL process is not executed as the URL is redirected...
Any help would be greatly appreciated....
Thanks
nashyTo some degree, it will depend on just how long you think the process will take to run. If you think it's going to take several minutes (thus risking your page timing out), an approach I have taken is to run a process on submit which kicks off an oracle job (do a search for DBMS_SCHEDULER if this doesn't mean anything to you) thereafter, periodically repoll the page - you could go for a javascript method if you don't want to keep re-submitting the page - which checks to see if the job has completed.
Once the job completes, you just show the data (or do whatever you need to do to indicate completion to the user).
It does require a fair bit of conditional display and process control to pull off, but it is achievable. -
Need to fire the validationon only submit
Hi All,
I am using JDeveloper 11.1.1.7.0
I have one form with Cancel button and Submit button.If I click the submit button with wrong values it's need to check logic in baking bean.But if I Clicking submit beore it's going to the bean firing the EO Validations.
For avoid the EO validations I added SkipValidation="true" in pageDef file but still it's showing EO validations.
If adding the immediate=true to components the validations are unnecessary firing when click the cancel button.
Thanks ,
Edited by: ArunD. on May 22, 2013 4:52 PMHi Arun,
you can keep field validations on Page level or EO level. When it is field level, it will validate for input fields before leaving the page. When you set validation on EO level, it wil check when values are to be stored in the database.
Switch off EO validation if you want to get it validated on the page itself. EO validation can provide an additional level of validation though.
regards,
Rajan -
Buttons in ALV Grid cell need focus to be clicked :-(
Hi,
I have an ALV Grid with single cells displayed as buttons (dependend on the data in the corresponding row). Unfortunatelly the button-cells need focus to be clicked. So you need two clicks: one to get the focus to the desired cell and one to really click the button.
Any ideas how to make this work with one single click ? (Setting a hotspot does not work, cause hotspots have the same problem.)
Regards,
TobiHello Tobias
The proposal by Naimesh is valid for CL_GUI_ALV_GRID, too. You may have a look at sample report ZUS_SDN_ALVGRID_EVENTS_HOTSPOT. Put the focus on any non-button cell and next click on any customer button.
*& Report ZUS_SDN_ALVGRID_EVENTS_HOTSPOT
*& Thread: Buttons in ALV Grid cell need focus to be clicked :-(
*& <a class="jive_macro jive_macro_thread" href="" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1009251"></a>
REPORT zus_sdn_alvgrid_events_hotspot.
DATA:
gd_okcode TYPE ui_func,
gt_fcat TYPE lvc_t_fcat,
go_docking TYPE REF TO cl_gui_docking_container,
go_grid1 TYPE REF TO cl_gui_alv_grid.
DATA:
go_table TYPE REF TO cl_salv_table,
go_grid_adapter TYPE REF TO cl_salv_grid_adapter.
DATA:
gt_knb1 TYPE STANDARD TABLE OF knb1.
PARAMETERS:
p_bukrs TYPE bukrs DEFAULT '2000' OBLIGATORY.
* CLASS lcl_eventhandler DEFINITION
CLASS lcl_eventhandler DEFINITION.
PUBLIC SECTION.
CLASS-METHODS:
handle_hotspot_click FOR EVENT hotspot_click OF cl_gui_alv_grid
IMPORTING
e_row_id
e_column_id
es_row_no
sender, " grid instance that raised the event
handle_button_click FOR EVENT button_click OF cl_gui_alv_grid
IMPORTING
es_col_id
es_row_no
sender.
ENDCLASS. "lcl_eventhandler DEFINITION
* CLASS lcl_eventhandler IMPLEMENTATION
CLASS lcl_eventhandler IMPLEMENTATION.
METHOD handle_hotspot_click.
* define local data
DATA:
ls_knb1 TYPE knb1,
ls_col_id TYPE lvc_s_col.
READ TABLE gt_knb1 INTO ls_knb1 INDEX e_row_id-index.
CHECK ( ls_knb1-kunnr IS NOT INITIAL ).
CASE e_column_id-fieldname.
WHEN 'KUNNR'.
SET PARAMETER ID 'KUN' FIELD ls_knb1-kunnr.
SET PARAMETER ID 'BUK' FIELD ls_knb1-bukrs.
CALL TRANSACTION 'XD03' AND SKIP FIRST SCREEN.
WHEN 'ERNAM'.
* SET PARAMETER ID 'USR' FIELD ls_knb1-ernam.
* NOTE: no parameter id available, yet simply show the priciple
CALL TRANSACTION 'SU01' AND SKIP FIRST SCREEN.
WHEN OTHERS.
* do nothing
ENDCASE.
* Set active cell to field BUKRS otherwise the focus is still on
* field KUNNR which will always raise event HOTSPOT_CLICK
ls_col_id-fieldname = 'BUKRS'.
CALL METHOD go_grid1->set_current_cell_via_id
EXPORTING
is_row_id = e_row_id
is_column_id = ls_col_id.
ENDMETHOD. "handle_hotspot_click
METHOD handle_button_click.
* define local data
DATA:
ls_knb1 TYPE knb1.
READ TABLE gt_knb1 INTO ls_knb1 INDEX es_row_no-row_id.
CHECK ( ls_knb1-kunnr IS NOT INITIAL ).
SET PARAMETER ID 'KUN' FIELD ls_knb1-kunnr.
SET PARAMETER ID 'BUK' FIELD ls_knb1-bukrs.
CALL TRANSACTION 'XD03' AND SKIP FIRST SCREEN.
ENDMETHOD. "handle_button_click
ENDCLASS. "lcl_eventhandler IMPLEMENTATION
START-OF-SELECTION.
SELECT * FROM knb1 INTO TABLE gt_knb1
WHERE bukrs = p_bukrs.
** TRY.
** CALL METHOD cl_salv_table=>factory
*** EXPORTING
*** LIST_DISPLAY = IF_SALV_C_BOOL_SAP=>FALSE
*** R_CONTAINER =
*** CONTAINER_NAME =
** IMPORTING
** r_salv_table = go_table
** CHANGING
** t_table = gt_knb1.
** CATCH cx_salv_msg .
** ENDTRY.
** go_table->display( ).
** go_table->get_metadata( ).
** EXIT.
* Create docking container
CREATE OBJECT go_docking
EXPORTING
parent = cl_gui_container=>screen0
ratio = 90
EXCEPTIONS
OTHERS = 6.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
* Create ALV grid
CREATE OBJECT go_grid1
EXPORTING
i_parent = go_docking
EXCEPTIONS
OTHERS = 5.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
* Set event handler
SET HANDLER:
lcl_eventhandler=>handle_hotspot_click FOR go_grid1,
lcl_eventhandler=>handle_button_click FOR go_grid1.
* Build fieldcatalog and set hotspot for field KUNNR
PERFORM build_fieldcatalog_knb1.
* Display data
CALL METHOD go_grid1->set_table_for_first_display
CHANGING
it_outtab = gt_knb1
it_fieldcatalog = gt_fcat
EXCEPTIONS
OTHERS = 4.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
* Link the docking container to the target dynpro
CALL METHOD go_docking->link
EXPORTING
repid = syst-repid
dynnr = '0100'
* CONTAINER =
EXCEPTIONS
OTHERS = 4.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
* ok-code field = GD_OKCODE
CALL SCREEN '0100'.
END-OF-SELECTION.
*& Module STATUS_0100 OUTPUT
* text
MODULE status_0100 OUTPUT.
SET PF-STATUS 'STATUS_0100'.
* SET TITLEBAR 'xxx'.
ENDMODULE. " STATUS_0100 OUTPUT
*& Module USER_COMMAND_0100 INPUT
* text
MODULE user_command_0100 INPUT.
CASE gd_okcode.
WHEN 'BACK' OR
'END' OR
'CANC'.
SET SCREEN 0. LEAVE SCREEN.
WHEN OTHERS.
ENDCASE.
CLEAR: gd_okcode.
ENDMODULE. " USER_COMMAND_0100 INPUT
*& Form BUILD_FIELDCATALOG_KNB1
* text
* --> p1 text
* <-- p2 text
FORM build_fieldcatalog_knb1 .
* define local data
DATA:
ls_fcat TYPE lvc_s_fcat.
CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
EXPORTING
* I_BUFFER_ACTIVE =
i_structure_name = 'KNB1'
* I_CLIENT_NEVER_DISPLAY = 'X'
* I_BYPASSING_BUFFER =
* I_INTERNAL_TABNAME =
CHANGING
ct_fieldcat = gt_fcat
EXCEPTIONS
inconsistent_interface = 1
program_error = 2
OTHERS = 3.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
LOOP AT gt_fcat INTO ls_fcat
WHERE ( fieldname = 'KUNNR' OR
fieldname = 'ERNAM' OR
fieldname = 'BUKRS' ).
IF ( ls_fcat-fieldname = 'BUKRS' ).
ls_fcat-style = cl_gui_alv_grid=>mc_style_button.
" column appears as button
ELSEIF ( ls_fcat-fieldname = 'KUNNR' ).
ls_fcat-style = cl_gui_alv_grid=>mc_style_button.
ls_fcat-hotspot = abap_true.
ELSE.
ls_fcat-hotspot = abap_true.
ENDIF.
MODIFY gt_fcat FROM ls_fcat.
ENDLOOP.
ENDFORM. " BUILD_FIELDCATALOG_KNB1
Regards
Uwe -
Can I edit the email created to send a PDF form back to me when a user clicks on Submit?
I created several PDF fillable forms for our users to request services and send back data needed to deliver those services. They are simple forms, and users will click on Submit to return to a mailto: address.
My question is about the email message that is auto-created when the user clicks on Submit. I can't find any config window to be able to edit the message in the body of the email. The message reads:
Form Returned: 2014PrintingRequestForm.pdf
The attached file is the filled-out form. Please open it to review the data.
Is there any way to edit this message?majende,
Adobe Reader for iOS does support a Submit button.
(a) Button action to submit an entire PDF document via email
(b) JavaScript submitForm to Adobe FormsCentral
Do you use the desktop version of Adobe Acrobat to create a PDF form?
For option (a)
Add the "Submit a form" action to your Submit button.
Enter "mailto:" (including a colon) followed by email recipient(s). Please add a comma between two email addresses.
Example: [email protected], [email protected]
Select "PDF The complete document".
This particular type of PDF form will work with Adobe Reader desktop and mobile products (including Adobe Reader for iOS and Android).
In Adobe Reader for iOS, a user can do the following steps to submit the particular type of PDF form.
Fill out the PDF form.
Tap the Submit button in the PDF form.
Select "Share Original Document" or "Share Flattened Copy" from the Share File dialog.
Adobe Reader for iOS will automatically fill in the email address(es) that you specified when you created the PDF form.
Tap the Send button in the upper right corner.
Adobe Reader for iOS will send the PDF form as an email attachment via Apple Mail (the default mail app for iOS).
Please let us know if you have additional questions. -
I have submitted build by xcode 6.1 but in itunes account shows us Apps and app updates submitted to the App Store must be built with Xcode 5.1.1 or later, and iOS 7 or later SDK after clicking the submit for review.
Please tell me the solution as soon as possible and i am able to remove the build.You have used Xcode 6.1 and it is a valid version, so you should not have any problem. Anyway, if there is any problem, Apple will contact with you to fix it before your app is published.
-
Updation of Ztable clicking on submit button in adobe interactive forms
Hi all,
In my adobe interactive form i have student details and one SUBMIT BUTTON.After clicking on that button i need to update the details in my Ztable. How Can I do?Where Can I write the code?
Please reply me.
Thanks in advance.Hi, I'm afraid I think there is no place where you can "catch" click on button in interactive form in sapgui, but you can:
use http submit button and send data to your web service, which receive dataa and update your ztable,
or you can create webdynpro, where you can catch click on submit button a in this event you can update yout ztable (my previous post).
Please remember, that you can run your webdynpro application in sapgui:
REPORT DEMO_START_WD_IN_PLACE1 MESSAGE-ID SWDP_RUNTIME.
start-of-selection.
CALL FUNCTION 'WDY_EXECUTE_IN_PLACE'
EXPORTING
PROTOCOL = 'HTTP' " HTTP | HTTPS
INTERNALMODE = 'X' "SPACE - browser is started
PARAMETERS =
APPLICATION = 'your_webdynpro_application
CONTAINER_NAME = 'SAP Formuláře'
EXCEPTIONS
INVALID_APPLICATION = 1
BROWSER_NOT_STARTED = 2
OTHERS = 3.
IF sy-subrc EQ 1.
MESSAGE a400.
ELSEIF sy-subrc = 2.
MESSAGE a401.
ELSEIF sy-subrc = 3.
MESSAGE a667.
ENDIF. -
I keep getting a message on startup saying 'Do you want the application "KodakAiOBonjourAgent .app" to accept incoming network connections?' It says settings may be changed in the Firewall pane of Security but I don't see how. Doesn't matter what I click (Deny/Submit). The message still pops up on starup. I have a Kodak printer and am running Mavericks but I don't think it started when I upgraded.
Just fixed this on my machine, the easiest way to remove this pop-up assuming you are no longer needing that software to print is the following:
Open Finder
Go > Go To Folder...
Type In: "~/Library/Application Support"
Delete All Folders Named Kodak
Open System Preferences
Go to "Security & Privacy"
Click the lock and enter your admin password
Click the Firewall Tab
Go to "Firewall Options..."
Find KodakAiO
Right-click KodakAiOBonjourAgent or equivalent (I forget the exact name)
Click "Show in Finder"
Go Back to a folder and delete the Kodak Folder there.
Remove Kodak from Firewall Options by selecting it and clicking the " - " button the base of the list.
or
Open Finder
Go > Go To Folder...
Type In: "~/Library/Printers"
Delete All Folders Named Kodak
I'm going off memory, so If I forgot something let me know. -
How to prevent multiple clicks of submit buttons in OAF Pages
Hi All,
Our page takes around 30 seconds to 1 minute for processing.
Some users are not patient enough. I have tried putting the below code in my PR method.
OAWebBean body = pageContext.getRootWebBean();
if (body instanceof OABodyBean)
((OABodyBean)body).setBlockOnEverySubmit(true);
This code disables submit button for some time. After few seconds, the submit button can be clicked again by the user.
Also, if I click on other browser window and come back to OAF page, the submit button can be clicked again immediately.
Have also searched OAF forum but didn't find any satisfactory answer.
Need answer from Oracle on this. If not answered on the forum, will raise an SR.Hi Amit,
Try using the Processing Symbol , after clicking the Submit button. Which does shows you processing clock symbol once you click Submit Button.
Regards
Raghu -
I am trying to pay my bill online. However, when I click the "submit" key, it tells me my "nickname" is incorrect. What the heck is a nickname? I have never had this trouble before.
Had the same problem. Here's how I sorted it out, not including yelling at my PC or ranting in my own thread (that's optional): First you want to delete your saved payment option. If you try this and it does not delete, log out and back in. It should be gone. Now re-enter your payment option (credit card number or whatever you are using) and if it asks if you want to save the data for future use, make sure you give it a nickname that doesn't include any special characters. Hope this works for you!
-
I need to just double click on every folder and have it open in a new window every time, as before. Can I do that?
Finder -> Preferences -> General -> uncheck "Open folders in tabs instead of new windows"
-
My old PC crashed and died, and I am unable to deactivate the licence of Photoshop Elements 7.
I re-installed Photoshop Elements 7 via a trial download from Adobe website onto my new PC, Windows 8.1 single language.
My serial number is not accepted.
Error message: 'Incorrect serial number, The serial number you entered is not valid. Click OK to retry serial number'.
Customer help care is not helpful and keep ending my chat before I get a solution.
Can someone please help me and let me know how I can rectify this problem!!!Thank you Benjamin MItchley. I reviewed the chat log and I can confirm that they are correct we do not provide installation support for Photoshop Elements 7 due to the age of the software title. Photoshop Elements 7 also does not support activation so there is no risk that you were unable to deactivate the software on your previous computer.
I am showing the serial number under your account was provided from an equipment manufacturer. It is possible there may have been a customized installer for that version. Have you contacted the computer manufacturer to obtain the installation files for the copy of Photoshop Elements 7 included with your computer?
Since you did not migrate/transfer over any files it is unlikely there is a software issue preventing the installation. You can try running the CC Cleaner Tool to ensure that no corrupt licensing files may be preventing the installation process. You can find details of the use of the CC Cleaner Tool at Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6 - http://helpx.adobe.com/creative-suite/kb/cs5-cleaner-tool-installation-problems.html.
Maybe you are looking for
-
New Access Sequence for Free Goods Determination
Hi Guru's, I Have a scenario wherein i have to maintain the free Goods Condition records in VBN1 with a new access sequence namely Customer/Distribution Channel/Plant/material. I have maintained all the necessary settings such as Free Goods Activati
-
This happens often. It is the same result as if you would hold the Command key when you select a Dock icon. I have to log out or reboot to fix the problem. Anyway around this? Thanks
-
Hello Friends, Today i downloaded and installed new sdk 4.0 and i could not see any option to run application with earlier version like simulator 3.0, simulator 3.1, simulator 3.1.2 etc. Do you know that how can i get all the option with new sdk 4.0
-
Time machine problems in Yosemite
I have issues trying to recover files further back than a few days. When i try the time machine just hangs for ages and don't do anything. I have also found that the links to other folders in the side bar also do not work. Is it just my machine or do
-
Using ac power adapter vs. battery on MacBook Pro
I purchased a 15 inch MacBook Pro with retina display a couple months ago. Most of the time I use it with the ac power adapter. Is there any harm to the battery life if I never left the battery drain down some and then recharge it? I have come to u