Deleting data in the forms
Is there any way that when i promote the data form to my superior, he can get a prompt mentioning that whether he wants to delete the data or not. If he says yes then data from the intersection should be deleted? I think can be achieved through run time prompts and calculation scripts but need more clarification. Any help will be appreciated.
Hi,
You can certainly use a business rule to delete the data, the values on the form can be passed to the business rule and then the data is deleted.
Business rules can be run on load (depending on version) and run on save, though if you go down this route a business rule set to run on load cannot contain run time prompts and if you pick to run on save then there is not really a cancel button to the business rule (you can only close the window).
There is also the option of using menus, where you can right click on the form to open a menu which can link to run a business rule, you also have the option to change the business rule title and change the OK, Cancel button title.
Another possible option would be to use custom javascript which opens a message box to ask whether you want to delete the data, if you click yes then open the business rule prompt window.
Cheers
John
http://john-goodwin.blogspot.com/
Similar Messages
-
PNG images revive deleted images in the form of a thumbnail, potential risk
Saving a PNG image will revive deleted photos. To replicate this, save a PNG image, such as the ones on XKCD's "What If?", and deleted images get revived in the form of a thumbnail overlapping the image.
This has been here since IOS 5, according to http://appleinsider.com/articles/13/11/14/bug-resurrects-deleted-image-thumbnail s-in-ios-7-photos-app-dates-back-to-ios-5
Knowledge of this could be abused. If I get free acess to someone else's Ipad, I can just spam saving PNG images over and over to see their sensitive images saved as a thumbnail overlapping the PNG image's thumbnail.
How do I delete the thumbnails? It seems that when you delete a photo, it saves the thumbnail. This is supported by the PNG images reviving deleted photos in the form of thumbnails.Send feedback/suggestions to Apple.
http://www.apple.com/feedback/ipad.html
Submitting Feedback to Apple
https://sites.google.com/site/appleclubfhs/support/advice-and-articles/submittin g-feedback-to-apple
File an Apple Bug Report, at http://bugreport.apple.com/
Cheers, Tom -
Delete record from the form and from the database
hi,
i want delete record from the form and the database ,but the record is only delete from the from !!!
this is my code :
if //condition then
delete_record;
commit;
end if ;
Any solutions ??
thnxYou have unique key field(s) on the table you are trying to insert which actually restricts you from inserting the same value again.
When you are deleting the record and issue commit there is a record to be inserted in the table which is a duplicate that's why you are getting this unique error.
As oracle is not able to insert your commit fails and stops your deletion of record from table -
Error while saving the data in the form
Hi,
In forms 6i,after enteringthe data in the form,after pressing the save button it's giving error
An Error Prevented your changes from being commited
Anyone can help me out in this
Regards,
RRHi to all,
I have finished the form,now its saving.
Actually i ahce examined a form of same in other instance,in that form the data block which is using API in its trigger is first but the form which was not saving was second to other data block
When i changed the datablock order and compiled,now its saving the form.
Thanks for your support
Regards,
RR -
How to print the data on the form (smartform)...
Hi,
i got a requirement that i have to create a selection screen and from that i process the data according to the inputs in the selection screen, and after i collect the entire data in an internal table, now i want that data to be displayed in the form ,
what is the process for this, can anybody explain me in detail.
Regards,
RamHi!
To create new smartform
How to create a New smartfrom, it is having step by step procedure
http://sap.niraj.tripod.com/id67.html
Here is the procedure
1. Create a new smartforms
Transaction code SMARTFORMS
Create new smartforms call ZSMART
2. Define looping process for internal table
Pages and windows
First Page -> Header Window (Cursor at First Page then click Edit -> Node -> Create)
Here, you can specify your title and page numbering
&SFSY-PAGE& (Page 1) of &SFSY-FORMPAGES(Z4.0)& (Total Page)
Main windows -> TABLE -> DATA
In the Loop section, tick Internal table and fill in
ITAB1 (table in ABAP SMARTFORM calling function) INTO ITAB2
3. Define table in smartforms
Global settings :
Form interface
Variable name Type assignment Reference type
ITAB1 TYPE Table Structure
Global definitions
Variable name Type assignment Reference type
ITAB2 TYPE Table Structure
4. To display the data in the form
Make used of the Table Painter and declare the Line Type in Tabstrips Table
e.g. HD_GEN for printing header details,
IT_GEN for printing data details.
You have to specify the Line Type in your Text elements in the Tabstrips Output options.
Tick the New Line and specify the Line Type for outputting the data.
Declare your output fields in Text elements
Tabstrips - Output Options
For different fonts use this Style : IDWTCERTSTYLE
For Quantity or Amout you can used this variable &GS_ITAB-AMOUNT(12.2)&
5. Calling SMARTFORMS from your ABAP program
REPORT ZSMARTFORM.
Calling SMARTFORMS from your ABAP program.
Collecting all the table data in your program, and pass once to SMARTFORMS
SMARTFORMS
Declare your table type in :-
Global Settings -> Form Interface
Global Definintions -> Global Data
Main Window -> Table -> DATA
Written by : SAP Hints and Tips on Configuration and ABAP/4 Programming
http://sapr3.tripod.com
TABLES: MKPF.
DATA: FM_NAME TYPE RS38L_FNAM.
DATA: BEGIN OF INT_MKPF OCCURS 0.
INCLUDE STRUCTURE MKPF.
DATA: END OF INT_MKPF.
SELECT-OPTIONS S_MBLNR FOR MKPF-MBLNR MEMORY ID 001.
SELECT * FROM MKPF WHERE MBLNR IN S_MBLNR.
MOVE-CORRESPONDING MKPF TO INT_MKPF.
APPEND INT_MKPF.
ENDSELECT.
At the end of your program.
Passing data to SMARTFORMS
call function 'SSF_FUNCTION_MODULE_NAME'
exporting
formname = 'ZSMARTFORM'
VARIANT = ' '
DIRECT_CALL = ' '
IMPORTING
FM_NAME = FM_NAME
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3.
if sy-subrc <> 0.
WRITE: / 'ERROR 1'.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
call function FM_NAME
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS =
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS =
USER_SETTINGS = 'X'
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO =
JOB_OUTPUT_OPTIONS =
TABLES
GS_MKPF = INT_MKPF
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
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.
for Smartforms material
http://www.sap-basis-abap.com/sapsf001.htm
http://www.sap-press.com/downloads/h955_preview.pdf
http://www.ossincorp.com/Black_Box/Black_Box_2.htm
http://www.sap-img.com/smartforms/sap-smart-forms.htm
http://www.sap-img.com/smartforms/smartform-tutorial.htm
http://www.sapgenie.com/abap/smartforms.htm
How to trace smartform
http://help.sap.com/saphelp_47x200/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
http://www.help.sap.com/bp_presmartformsv1500/DOCU/OVIEW_EN.PDF
http://www.sap-img.com/smartforms/smart-006.htm
http://www.sap-img.com/smartforms/smartforms-faq-part-two.htm
check most imp link
http://www.sapbrain.com/ARTICLES/TECHNICAL/SMARTFORMS/smartforms.html
step by step good ex link is....
http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html
Or an another one:
just check it step by step with lots of screen shots.
http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html
Reward all helpfull answers
Regards
Tamá -
How to execute the data in the form when the data is already avaliable
Hi,
I am working with forms 6i. I have a problem while executing the data in the form
Actually, the data is already present in the form. But when i run the form, the data is not displayed.
can anyone please help me how to execute the data. below is the code
Set_Alert_Property(alert_id,ALERT_MESSAGE_TEXT,'Do you want to refresh new Data for that Year and Field ? (it will take a time).') ;
SET_ALERT_BUTTON_PROPERTY(alert_id, ALERT_BUTTON1, LABEL, 'Yes');
SET_ALERT_BUTTON_PROPERTY(alert_id, ALERT_BUTTON2, LABEL, 'No');
SET_ALERT_BUTTON_PROPERTY(alert_id, ALERT_BUTTON3, LABEL, 'Cancel');
button_number :=Show_Alert(alert_id) ;
synchronize;
if button_number != ALERT_BUTTON3 then
if button_number = ALERT_BUTTON1 then
:param.field := :control.f_cd;
:param.year := :control.year;
build_tables;
fields;
-- areas(:param.field);
PUT_PARAM;
COMMIT_FORM;
go_block('wet_criterias');
end if;
if button_number = ALERT_BUTTON2 then
:exhibits.field_display := :control.f_name || ' - Exhibits';
go_block('RESERVOIR');
execute_query;
end if;
end if;
end if;
else
message('Fields must be entered...');
end if;
else
message('Fields must be entered...');
end if;It's hard to know what logic you are trying to implement.
However, by looking at your code, it seems that if the user select 'Yes' to the question "Do you want to refresh", nothing is done except the go_block('wet_criterias'). Should there be an 'Execute_Query' ?
No idea... -
Problem printing date on the form
Hello friends ,
I am doing form for the HR . Is there any special formatting needed to print the date on the form . I am doing this .
&t_payment-paydate& in the main window of the form .
t_payment is the table and paydate the date of payment . But instead of printing 1/22/2006 . It is printing 3//20/07/2 some junk value . Is it the format related problem ?
Any suggestions . You help would be greatly appreciated .
Regards & Thanks ,
HariHI,
You can do like this.
You make the following changes in the program
1. Define a character type field
data: v_payment_date(10) type c.
2. Assign the date value to the character field
write t_payment-paydate to v_payment_date.
You make the following changes in your sapscript text element.
instead of using field t_payment-paydate use v_payment_date.
Thanks
Ramakrishna -
Pre-populating Server's Current Date in the form- How to??
The simplest way of doing this is writing one-line formcalc script.
This is not fair when the user changes his local system date/time.
I need to know how to pre-populate the server date in the form?
One way of doing this is writing a web service.
Any other simple solution to do this??
Thanks,
NithIf you are using LiveCycle Forms (7.x, ES, or ES2), with .pdf rendering on the server or the client, you can execute the script server side. Otherwise you have no other option but to access an external resource (REST, Web Service, JSP/servlet, etcetera) for the time, if you need to accurately capture form open time on the desktop.
Steve -
How can get difference between 2 dates in the form of days
how can get difference between 2 dates in the form of days
Hi,
Check the following program:
REPORT ZDATEDIFF.
DATA: EDAYS LIKE VTBBEWE-ATAGE,
EMONTHS LIKE VTBBEWE-ATAGE,
EYEARS LIKE VTBBEWE-ATAGE.
PARAMETERS: FROMDATE LIKE VTBBEWE-DBERVON,
TODATE LIKE VTBBEWE-DBERBIS DEFAULT SY-DATUM.
call function 'FIMA_DAYS_AND_MONTHS_AND_YEARS'
exporting
i_date_from = FROMDATE
i_date_to = TODATE
I_FLG_SEPARATE = ' '
IMPORTING
E_DAYS = EDAYS
E_MONTHS = EMONTHS
E_YEARS = EYEARS.
WRITE:/ 'Difference in Days ', EDAYS.
WRITE:/ 'Difference in Months ', EMONTHS.
WRITE:/ 'Difference in Years ', EYEARS.
INITIALIZATION.
FROMDATE = SY-DATUM - 60.
Regards,
Bhaskar -
Hello,
i have a form( start.jsp) in which i can enter data about a person. The form data is bound to a person class which is saved in db. After submitting the form i inform the user ( in another page) that the submitting were successfull. But after coming back to the start.jsp to create a new person i still have the old person information data in the form. How can I have a form without my previous data.
My bean has to be in session scope and not in request scope.
thanksReinstantiate the Form DTO.
public void submitForm() {
myForm = new MyForm(); // Clears the form.
} -
Is there any other way to sort data in the form other than the order by block property? I have a form built off of a view. The view returns data quickly up until I add the order by clause. his happens in sqlplus as well as in the form.
Hello,
If possible, create an index on the column you want to sort on.
Francois -
Static data in the form of ListView in AppBuilder
Hi All,
I'm Trying to develop the application in AppBuilder If we want to display the Static data in the form of list view like labels and Text fields is it possible to do that in static form?Hi All,
I'm Trying to develop the application in AppBuilder If we want to display the Static data in the form of list view like labels and Text fields is it possible to do that in static form? -
How i cen get back deleted data from the bin?
how i cen get back deleted data from the bin?
Not once you have put the data in the trash and pressed the button to delete it.
There may be some hope if you can understand what I am telling you in my first post to you.
Time machine is too complex to explain in this kind of post but I am giving you five links below which should explain quite a lot. There are no formal instruction manuals for Time Machine.
Time Machine Tutorial
Time Machine 101
How to back up and restore your files This in particular
Time Machine Features
Apple - Support - Mac OSX v10.5 Leopard Time Machine -
How to add/delete rows on the form without saving data
I am new to apex
I am working on project and need some help on creating a form
my requirment is to save a request that has multiple questions.
i have a request form with multiple regions
On one of the region that takes questions, I want to create a tabular form such that i can add/delete/update row without hitting database and enter multiple questions
each row is one question.
Apex has the default functionality of having a tabular form linked to a table that onload shows the data from that table and also on click of add or delete hits the data base to save the data.
However i want to load a form that does not show any data if its a new request and click of add/delete should not update the databse. It should just add/delete a row on the form
so user logs in and can create a request that has multiple questions
finally want to submit the form and save all the information of the form in multiple tables.
As of now i a m able to have a simple form and a process that save 1 question per request.
How do i achieve this. Please assist.Do that using collections like in this example:
http://apex.oracle.com/pls/otn/f?p=31517:176
Once you are done, you may decide either to save that or to clean it up.
Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.opal-consulting.de/training
http://apex.oracle.com/pls/otn/f?p=31517:1
------------------------------------------------------------------------------ -
My table has a list of names with product information in corresponding columns. I want to create a form that I can import this into where every row makes a new part of the form list I create. Is this possible?
Example of what I have in excel:
Name
Product 1
Product 2
Product 3
Total
a
1
2
3
6
b
0
3
4
7
c
1
3
4
8
d
1
3
5
9
Example of what I want in Form:
Customer a 1 2 3 6
Customer b 0 3 4 7
etc.
I want to put this info into a form to make it more presentable. Can anyone help me with this?Look at the Import/Export form data functionalities already built-in into Acrobat.
Maybe you are looking for
-
Hi. I just finished a new project in Logic Pro 7.1 and bounced it as usual. The wave file wont play on iTunes. I cheked previous bounced files and they play just fine. Also if i drag and drop this file in iTunes , nothing happens whereas files from p
-
How can i get the date of the last update of one PL/SQL package ?
Hello, How can i get the date of the last update of a PL/SQL package named MYPACKAGE ? Thanks in advance ! ;-)
-
DB : 10.2.0.4.0 Os : solaris 5.10 I have a table with the below rows and columns EARNINGS EARNINGS_VALUE Allowance 97.28 Salary 3,404.80 Allowance_1 875.52 Allowance_2 194.56 Allowance_3 291.84 {code} I want to display this as
-
Just wondering if this result is good or not! Download speedachieved during the test was - 6084 Kbps For your connection, the acceptable range of speeds is 600-7150 Kbps. Additional Information: Your DSL Connection Rate :8096 Kbps(DOWN-STREAM), 4
-
Text file convert to string array
I tried to convert text file to string array. But it is not successful. text file : SD, 1,2,3,4 GD, 3,4,5,6 I use spreadsheet string to Array function but ALL characters is become to zero. my result: 0,1,2,3,4 0,3,4,5,6 Solved! Go to Solution