How to implement delete functionallity on a form
Hello
I have a form that displays the current row of a table, and you can modify it. I want to implement delete functionality in such a way that deletes the current row and shows the next one in the form.
My problem is that the delete button must be with immediate=true, because I don't want the fields to be validated, just deleted!
But when a command button (like Delete) is immediate=true then the input fields in the form doesn't get updated with the next row values (only the readonly fields like output text get updated).
Any idea how this scenario must be implemented in JSF ?
Thanks!
try binding the table to an arrayList , and make shure the form or its area is reRendered once you delete it from the arrayList
Similar Messages
-
How to implement Search Help in Interacive Form based on WebDynpro Java?
Hi Experts,
How to implement Search Help in Interacive Form based on WebDynpro Java?
Could someone please provide the prerequisites and the code for the same.
Regards,
ShobhitExtend the controller and get the handle of the current row of the VO. Set set the attribute context filed accordingly. Also get the handle fo the flexbean and set the context. According rendering would change.
Regards
Sumit -
How can I delete the image in Forms 6i?
How can I delete/clear the image item in Forms 6i which is a database item?
and I want to create a report that print the information if the record has been stored a image. so how can I do that?
Thx~In forms 6i + , Clear_Item should clear the image from the item. For earlier versions See note 139900.1 on Metalink
-
How to disable delete button in a form
HI
can anyone show me the procedure to disable the delete button from oracle forms seeded and custom form oracle applications 11i. We are on form patch set level 18
RegardsHi ,
there are various ways of doing it..
You can try as the previous post says or also you can try When new block instance trigger and disable the item
using set_item_property , it all depends on when and how you want to diable that item. -
How to Implement User Area in Oracle Forms 6i
Hi,
Could anyone please let me know how to implement Item Type *"User Area"* ?
How to add User Area in layout Editor?,
Thanks and Regards,
ManasaHi,
Please post your question in the appropriate forum.
Forms
Forms
Thanks,
Hussein -
How to implement "delete" on a table using OWB?
Hi All,
How do I implement a simple delete using OWB?
Assumption:
(1) Table abcd (id number, age number, amt number)
(2) the_number is a variable
(3) the_id is a variable
Want to implement following transformation in OWB?
DELETE FROM ABCD WHERE AMT=0 AND number = the_number AND id = the_id ;
Rgds,
DeepakWe implemented delete mappings, and delete flows to be able to reverse a failed load. This is in my opinion a very sound and valid reason for deleting from a datawarehouse. Also if the need is there it could be used for deleting old superfluous data from the datawarehouse.
There are a few things to consider: closed records in type II should be opened up (post mapping).
Test, test, test.
It is indeed a bit tricky to realize,but certainly working and possible.
steps to take are following:
1) create new mapping
2) drop mapping table where to delete from onto mapping (2 times, 1 source, 1 target)
3) map all fields from source to their corresponding fields in target, except the ones that determine the "where" clause (Refered to as filter fields)
4) Either create a select, or a mapping input parameter which should result in generating the filter-values for your delete.
5) map above step to the filter fields.
6)define a delete mapping by altering target table properties as follows:
6a) Loading Type => Delete
6b) Match by constraint => No constraints
7) set properties each field as folows:
7a) filter fields match column when deleting => Yes
7b) other fields match column when deleting => No
Hope this helps,
Wilco -
How to implement a toolbar to many forms.
I am developing a an application and made a toolbar, I want that every form I make use this toolbar, How?
Actually the tool bar is called from a form, how I do to call it from another form to ge only the toolbar, not the form where it is.
thanks an advance.er maybe, heve each form maintain whether it is the "active" form or not.
Have all Your "WIndows" er forms implement ActionListener Interface
Make your ToolBar in its own class,
public class MultiToolbar extends JToolbar
}Have Method in the MultiToolBar class
something like this:
where MyForm is the className of your 'Forms'
public void setListener( MyForm inForm )
// loop over all the buttons on the toolBar
Button1.addActionListener( inForm );
Button2.addActionListener( inForm );
// or however you decide to implement it
}in your MYForm class:
public void actionPerformed( ActionEvent e )
if( ! TestIfIAmTheCurrentForm() )
return;
// Handle the action sent by the Toolbar
}So When User clicks say "Paste From ClipBoard" from the Toolbar
all the forms get sent an ActionEvent - related to "Paste From Clipboard" however you decide to implement it.
If the Form is active, perhaps try using something like hasFocus(),
Then Only That Form acts and does the "Paste" Action
OR:-
YOu could make your JFrame or whatever the Toolbar is on,
decide which form to despatch some message to or something like that.
If you Mean:
I have 50 Forms, I want them all to use the same looking Toolbar - but 50 of them.
make a Toolbar with a constructor that takes an ActionListener:
public MultiToolBar extends JToolBar
public MultiToolBar( ActionListener listener )
//blah
Button1.addActionListener( listener );
// and so on.
}Then each Form that implements ActionListener goes:
MultiToolBar Fred = new MultiToolBar( this );
// Set Fred as the Toolbar for this windowI used that approach when I made something that when you click on its toolbar you get a little window with a "thumbnail" Image
and a Toolbar with 4 Zoom buttons on it.
I only wanted to write that toolbar once......... -
How do you Delete a Record using Form with submit button?
Hi,
The table REGISTRATION has two feilds, FULL_NAME and USER_GROUP. I created a form that has a drop down
of all the FULL_NAME values that allows the user to select the record that they want to delete. I got the drop down to work and
created the Delete Record behavior, I just can't get the submit button to send the form data and cause the delete to happen.
I have created other pages that update records in this way, but for some reason, I can't get delete to work.
Any Ideas?
Thank You in Advance,
Eric
Ps Anyone know why this site locks up in I.E. on some PC's? My Company PC is locked down and they won't investigate. My laptop works but says error on page. I have the latest updates and JAVA ...
Here is the code:
<cfif IsDefined("FORM.Full_Name") AND #FORM.Full_Name# NEQ "">
<cfquery datasource="ilmf_parts">
DELETE FROM REGISTRATION
WHERE Full_Name=<cfqueryparam value="#FORM.Full_Name#" cfsqltype="cf_sql_clob" maxlength="50">
</cfquery>
<cflocation url="index.cfm">
</cfif>
<cfquery name="REGISTRATION" datasource="ilmf_parts">
SELECT Full_Name, User_Group
FROM REGISTRATION
ORDER BY Full_Name ASC
</cfquery>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>User Delete Test Page</title>
</head>
<body>
<p align="center">USER DELETE TEST PAGE </p>
<p> </p>
<form action="index.cfm" method="post" enctype="multipart/form-data" name="Delete_Form" id="Delete_Form">
<table width="500" border="1" cellspacing="1" cellpadding="3">
<tr>
<th scope="col">NT Name </th>
<th scope="col"><select name="select">
<cfoutput query="REGISTRATION">
<option value="#REGISTRATION.Full_Name#">#REGISTRATION.Full_Name#</option>
</cfoutput>
</select>
</th>
</tr>
<tr>
<td> </td>
<td><input type="submit" name="Submit" value="DELETE" /></td>
</tr>
</table>
<p> </p>
<p> </p>
</form>
<p> </p>
</body>
</html>The name of your form control is "select".
<select name="select">
The name of your form field in your SQL is full_name
<cfqueryparam value="#FORM.Full_Name#" cfsqltype="cf_sql_clob" maxlength="50">
You probably really want these names to match!
P.S.
Is your name field really a "clob" data type? Just how long are these names anyway.
P.P.S.
Why are you relocating from the page index.cfm to index.cfm?
<form action="index.cfm" method="post" enctype="multipart/form-data" name="Delete_Form" id="Delete_Form">
<cflocation url="index.cfm"> -
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
------------------------------------------------------------------------------ -
How to implement autocomplete in a search form?
Hi all,
I´m trying to implement the autocomplete in a search form but I think I'm missing something in content server...
Is there a simple away to do it in content server?
With PHP it doesn´t work in content server, right?
Where can I find a good tutorial about that?
Thank you in advance,
RRSHere's a really good one and I know it works on UCM:
http://developer.yahoo.com/yui/autocomplete/
cheers -
How can implement running total in oracle forms
I want to implement a running total in oracle form
like
100 100
300 400
200 600
500 1100
200 1300
100 1400
PROCEDURE calculate_srno IS
current_rownum integer:=:System.Cursor_Record;
starting_srno integer:=:rs_1;
last_rownum integer;
BEGIN
last_record;
last_rownum:=:system.cursor_record;
go_record(1);
FOR counter IN 1..last_rownum LOOP
:sum_1:=:rs_1;
:rs_1:=:sum_1+:rs_1;
-- :offered_srno_to:=starting_srno;
if last_rownum=:System.Cursor_Record then exit;
end if;
END LOOP;
END;
it is not working after want to insert between in the tableWhy write code for this? Oracle Forms 10g has Calculated/Summary fields that will do this for you without the need of writing any PL/SQL.
Simply add a non-table item to the data block with the item you want to keep the running total for. Then change the following properties of the item:
Data Type: Number
Calculation Mode: Summary
Summary Function: Sum
Summarized Block: <Your Data Block>
Summarized Item: <Your Block Item>
Number of Items Displayed: 1 (if your item is in a Multi-Record (Tabular) layout else you don't need to change this property.
You will also need to change the following property of the block: Query All Records: Yes
If changing the Block's "Query All Records" property causes your form to be too slow because of the number of records in your block, then you could keep a running total manually by using a combination of the Post-Query and When-Validate-Item (WVI) triggers. If your block does not allow data entry, then you could do this with just the Post-Query trigger. For example:
BEGIN
/* This code sample assumes you have added a non-table item */
/* to your block called SUMMARY. */
:YOUR_BLOCK.SUMMARY := :YOUR_BLOCK.SUMMARY + NVL(:RS_1,0);
END;If your block allows data entry, then you would add the following to your existing WVI trigger.
BEGIN
/* Perform your data entry validation logic first... */
IF ....
ELSE
...Validation is successful...
:YOUR_BLOCK.SUMMARY := :YOUR_BLOCK.SUMMARY + NVL(:RS_1,0);
END IF;
END;Hope this helps.
Craig... -
How to use F4 help on PDF form
Hello,
I'm using Adobe Interactive Form with WebDynpro for Java.
I'd like to use F4 value help on Adobe Form.
Does anyone know how to implement F4 help on PDF form ?
Regards,
Koji.Hi,
SAP Note: 1013227.
But you should have ZCI based forms. Note: 1055911 and 1042394.
It always makes sense if you specify the NetWeaver SP release you are on along with any other information that you think is important.
Best Regards,
Krish -
How can we delete a line from the table control .
hi all
how can we delete a line from the table control .
situation is.
created table control in se51 which will display the data of a table.
how could i select a line from the table control ?
how could i delete the selected lines form the table.
thanks in advanceChange the Table Control attributes such that user can only select a single record(row).
<u>Tip to delete a selected record</u>
1) write a module 'Mark' in the PAI as below
PROCESS AFTER INPUT.
MODULE cancel AT EXIT-COMMAND.
LOOP WITH CONTROL table_view.
MODULE read_table_control.
FIELD flag MODULE mark ON INPUT.
ENDLOOP.
MODULE user_command_0100.
2) Module Mark is below.
MODULE mark INPUT.
CHECK flag = 'X'.
x = table_view-top_line + sy-stepl - 1.
Delete itab INDEX x.
ENDMODULE. " mark INPUT
Table_view is the TableControl Name.
'flag' is of type char(1) available in the Internal table which was assigned to the select option in the table control.
<u>award if uesful</u>
Regards,
Sudheer -
How to implement a java class in my form .
Hi All ,
I'm trying to create a Button or a Bean Area Item and Implement a class to it on the ( IMPLEMENTATION CLASS ) property such as ( oracle.forms.demos.RoundedButton ) class . but it doesn't work ... please tell me how to implement such a class to my button .
Thanx a lot for your help.
AIN
nullhi [email protected]
tell me my friend .. how can i extend
the standard Forms button in Java ? ... what is the tool for that ... can you explain more please .. or can you give me a full example ... i don't have any expereience on that .. i'm waiting for your reply .
Thanx a lot for your cooperation .
Ali
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by [email protected]:
Henrik, the Java importer lets you call Java classes on the app server side - I think what Ali is trying to do is integrate on the client side.
If you want to add your own button then if you extend the standard Forms button in Java and then use this class name in the implementation class property then the Java for your button will be used instead of the standard Forms button. And since it has extended the basic Forms button it has all the standard button functionality.
There is a white paper on OTN about this and we have created a new white paper which will be out in a couple of months (I think).
Regards
Grant Ronald<HR></BLOCKQUOTE>
null -
How to implement the spell check in oracle forms 10g or 6i...
How to implement the spell check in oracle forms.
Is there any different method is there.
Please help me....
Praveen.KHere is one different from Jspell..
In 6i client/server you can call MS Word spell checker using OLE. Below sample code for 6i.
For 10g you will need webutil to use same code. install webutil and just replace "OLE2." with "CLIENT_OLE2."
PROCEDURE spell_check (item_name IN VARCHAR2)
IS
my_application ole2.obj_type;
my_documents ole2.obj_type;
my_document ole2.obj_type;
my_selection ole2.obj_type;
get_spell ole2.obj_type;
my_spell ole2.obj_type;
args ole2.list_type;
spell_checked VARCHAR2 (4000);
orig_text VARCHAR2 (4000);
BEGIN
orig_text := NAME_IN (item_name);
my_application := ole2.create_obj ('WORD.APPLICATION');
ole2.set_property (my_application, 'VISIBLE', FALSE);
my_documents := ole2.get_obj_property (my_application, 'DOCUMENTS');
my_document := ole2.invoke_obj (my_documents, 'ADD');
my_selection := ole2.get_obj_property (my_application, 'SELECTION');
ole2.set_property (my_selection, 'TEXT', orig_text);
get_spell :=ole2.get_obj_property (my_application, 'ACTIVEDOCUMENT');
ole2.invoke (get_spell, 'CHECKSPELLING');
ole2.invoke (my_selection, 'WholeStory');
ole2.invoke (my_selection, 'Copy');
spell_checked := ole2.get_char_property (my_selection, 'TEXT');
spell_checked :=SUBSTR (REPLACE (spell_checked, CHR (13), CHR (10)),1,LENGTH (spell_checked));
COPY (spell_checked, item_name);
args := ole2.create_arglist;
ole2.add_arg (args, 0);
ole2.invoke (my_document, 'CLOSE', args);
ole2.destroy_arglist (args);
ole2.RELEASE_OBJ (my_selection);
ole2.RELEASE_OBJ (get_spell);
ole2.RELEASE_OBJ (my_document);
ole2.RELEASE_OBJ (my_documents);
ole2.invoke (my_application, 'QUIT');
ole2.RELEASE_OBJ (my_application);
END;Call it like this: SPELL_CHECK ('BLOCK.MY_TEXT_ITEM' );
Maybe you are looking for
-
Blue screen crash constant loop
Apple has a serious issue that they are not addressing tech support said it was a hardware issue. If it is then ios8 broke millions of iphones. The person that answered my call said he had not heard of this issue. I said google blue screen iphone. He
-
Hi all We have a business scenario where we currently purchase and sell a product as one item (let us say that it is a notebook in a box), but we have just been advised by HMRC that both the notebook and box need to have separate commodity codes as t
-
how do i download and install adobe flash player? every page i go to says i cannot proceed without adobe flash player and i have tried for hours to do it . i am on a h p windows 8 laptop. h e l p .
-
Design Reports in Word or Excel
[url http://www.windwardreports.com/]Windward Reports, the leader in enterprise report generation, has released the world’s first enterprise reporting software that enables use of Excel as a design tool. The Windward Reports Server Engine is perfect
-
I am not able to send/receive text message on my N...
Hello: I bought a Nokia 5800 in India last summer. I used a local SIM card (Airtel) when I was there. I was able to send/receive text messages when I was in India. I came back to Chicago and replaced the Airtel SIM card on my 5800 with my AT&T sim ca