How to call function behind the button and update only specific record
Greetings,
1 - i wnat to ask few things as i m new to apex, i am using apex 4.1, and created 3 select list and a button in seleting of parameter,
1 select list : select area
2 select list: select product
3- select list - size of the product
i want to generate Ids for the follwing. for that i created query for INSERTING RECORD FROM ONE TABLE TO ANOTHER , generation the ids when button pressed "Generate" after selecting parameters,
Now where i call that QUERY on button ? because when i create button its gives me option to submit, defined dynamic action, etc, pls gudie me where i call the function name id_generation when button pressed?.
2- second thing i creared tabular " select user_id, product_name, product_type from product".
by defualt check box list are create delete submit button are created, first when i insert record it saves that was fine, e.g i entered 50 records and afterward i want to update only one record, e.g there is a record product name = box, if i change it to box small and click submit then it saves all the page means all 50 records,
i want to submit only that record that i changed, for that i use the logic that only those records should be updated which are checked but the user. how will i do this ? where to use the preocess , please guide
Edited by: Omzz on Oct 2, 2012 11:28 PM
If I understand what you are trying to do is correct you could possibly do this by:
Creating and AFTER INSERT trigger on the table based on the tabular form which inserts the record into a seperate table after the record is inserted something like:
CREATE OR REPLACE TRIGGER copy_records
AFTER INSERT ON table a
REFERENCING NEW AS NEW OLD AS OLD
FOR EACH ROW
DECLARE
BEGIN
INSERT INTO table b
VALUES :NEW.col1, :NEW.col2 etc......
END;
There is also a way that you could do it within the form using a cursor on the tabular form with APEX_APPLICATION.G_ ......
Chris
Similar Messages
-
How To Call Function 'OnClick' of Button
DWMX ... How do I call the function prc_SendEmail() written
in VBScript above the head ... the following is the best I can do
and, whilst the page shows, when I click the button, nothing
happens and I get an Error on Page at bottom left of explorer page.
<input name="Button" type="button"
onClick="prc_SendEmail()" value="Send Email">
Thanks,
dave> I don't know where the email reader came from.
Sorry - my mistake.
> That's what I'm asking - how?
The mail functions reside on the server.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"crash" <[email protected]> wrote in message
news:[email protected]...
>>> a) why could a client side action not fire off
an email?
>>
>> Because an email reader is not a user agent.
>
> 1. This doesn't appear to be read in an email reader,
but a user agent,
> yes/ I don't know where the email reader came from.
>
>>> b) not my site, not my concern.
I was looking at a code fragment and
>>> correcting it for technical content, not really
anything other than
>>> that.
>>
>> But your correction was in error.
>
> That's what I'm asking - how? Is the function instrinsic
and is that what
> I'm missing? Was there another post that defines what
the function does?
> If the function tells the page to reload and send the
current information
> to the email you specified in the page (if the page
contains a form), why
> would it not work? Again, is this a function native to
ASP and that's
> what I'm missing?
>
>> Try it on a Mac.
>
> Again, for all I know this could be a page on an
intranet that uses only
> PC's built between October and November of 2005 under
only mostly sunny
> skies. If there was more info with this post, I might
say something about
> it. As it was, it looked like he was just looking to get
a function
> working in IE
>>
>> --
>> Murray --- ICQ 71997575
>> Adobe Community Expert
>> (If you *MUST* email me, don't LAUGH when you do
so!)
>> ==================
>>
http://www.dreamweavermx-templates.com
- Template Triage!
>>
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
>>
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
>>
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
>> ==================
>>
>>
>> "crash" <[email protected]> wrote in
message
>> news:[email protected]...
>>> a) why could a client side action not fire off
an email?
>>>
>>> b) not my site, not my concern.
I was looking at a code fragment and
>>> correcting it for technical content, not really
anything other than
>>> that.
>>>
>>> am I missing something, or is there some reason
why a client side
>>> VBScript won't fire? Not saying it's the best
way to do it, but only
>>> saying, technically speaking, isn't this
possible?
>>>
>>> If I'm wrong, just tell me. I'm not awake enough
yet to see the point
>>> I'm missing.
>>>
>>> Jon
>>>
>>> "Murray *ACE*"
<[email protected]> wrote in message
>>> news:[email protected]...
>>>> a) it's client side, and b) it only works in
IE?
>>>>
>>>> --
>>>> Murray --- ICQ 71997575
>>>> Adobe Community Expert
>>>> (If you *MUST* email me, don't LAUGH when
you do so!)
>>>> ==================
>>>>
http://www.dreamweavermx-templates.com
- Template Triage!
>>>>
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
>>>>
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
>>>>
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
>>>> ==================
>>>>
>>>>
>>>> "crash" <[email protected]> wrote
in message
>>>> news:[email protected]...
>>>>> Well, I have no idea what the
prc_SendEmail() function does, but I've
>>>>> used VB script controlled by user
actions to control Microsoft
>>>>> Agents - so what's the difference?
>>>>>
>>>>>
>>>>> "Gary White"
<[email protected]> wrote in message
>>>>>
news:[email protected]...
>>>>>> On Mon, 5 Jun 2006 15:44:10 -0500,
"crash" <[email protected]>
>>>>>> wrote:
>>>>>>
>>>>>>>try instead:
>>>>>>>input name="button" type="button"
onClick="<% prc_SendEmail(); %>"
>>>>>>>value="Send Email">
>>>>>>
>>>>>>
>>>>>> That could never work. You're
assigning a server side VBScript
>>>>>> function
>>>>>> as the event handler of a client
side event.
>>>>>>
>>>>>> Gary
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
> -
How to call function in the plugin from javascript?
Hi,
I have some function inside my plugin which i want to call from javascript. Is it possible? Sorry, im new to plugin programming.
For example, i have plugin with function func() which i want to call from external javascript. In what way i will be able to achieve this?
Thanks.Thank you sir for the help.
Is it possible to assign ID to function and specifying that ID during executeAction call in script?
Like at the time of executeaction call we will specify pluginID and functionID as parameter so that function will execute from the respective plugin. Is it possible ?
Thanks. -
my niece played my iphone 4s earlier and i think she messed up my settings,now i have trouble putting it back to normal.i could hardly scroll down the buttons and a voice is controlling my settings...how can i reset it? please help...thanks!
Triple-clicking home button won't turn voice over off on my iphone. i can't slide to unlock or slide to power off, either. (Nor slide to answer a call.) My phone's basically useless...help!
-
In Numbers, how do I lock in the date and time data when an IF/THEN formula is used with the "NOW" function?
=IF(I127,NOW()," ")
I127 equals a check box. The formula retuns a value of the current date and time when a check is placed in the box. How does one lock that date and time so that it cannot be changed?I don't think it is possible to lock in the date and time using a formula. You could put NOW() in a cell, copy, and Edit Paste Formula Results where you want the result.
Or if you are "time stamping" a lot, you may find this Automator Service (Dropbox download) helpful. It puts a "Today" function (actually it should be named "Now" because it includes both date and time) in your Services menu like this:
Just doubleclick the .workflow package to install it. You may have to click "download anyway" in System Preferences > Privacy & Security.
If you want you can assign the service a keyboard shortcut in System Preferences here:
SG -
I have just intalled PSElements 12 on a new PC with windows 8.1. It installed ok but when I open it up it displays different than on my windows 7 PC. The buttons and text are tiny and almosy impossible to see even when I drag it to full screen. How do I adjust it to look normal?
Hi Paul ,
It could be a compatibility issue as well as Acrobat 8 is an older version.
Do you get any error message while registering for the product?
Try repairing it and once and also check for updates as well.
Is it happening with all the word files or any specific one'?
Regards
Sukrit Dhingra
Acrobat 8 and Windows 7 Don't Work -
How to when press the button and can change the value in the table?
this is my code so far with a table and a button..how can i make it when press the button and the data in table change..
* SimpleTableDemo.java is a 1.4 application that requires no other files.
import java.awt.BorderLayout;
import java.awt.Button;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTable;
public class SimpleTableDemo extends JPanel {
private boolean DEBUG = false;
private JPanel button;
private JButton enter;
public SimpleTableDemo() {
super(new BorderLayout());
//button.setBackground(Color.pink);
//setForeground(Color.pink);
String[] columnNames = {"First Name",
"Last Name",
"Sport",
"# of Years",
"Vegetarian"};
Object[][] data = {
{"Mary", "Campione",
"Snowboarding", new Integer(5), new Boolean(false)},
{"Alison", "Huml",
"Rowing", new Integer(3), new Boolean(true)},
{"Kathy", "Walrath",
"Knitting", new Integer(2), new Boolean(false)},
{"Sharon", "Zakhour",
"Speed reading", new Integer(20), new Boolean(true)},
{"Philip", "Milne",
"Pool", new Integer(10), new Boolean(false)}
final JTable table = new JTable(data, columnNames);
table.setPreferredScrollableViewportSize(new Dimension(500, 70));
if (DEBUG) {
table.addMouseListener(new MouseAdapter() {
public void mouseClicked(MouseEvent e) {
printDebugData(table);
//Create the scroll pane and add the table to it.
JScrollPane scrollPane = new JScrollPane(table);
enter = new JButton("Press me");
//Add the scroll pane to this panel.
buildButton();
add(scrollPane, BorderLayout.NORTH);
add(button, BorderLayout.CENTER);
private void buildButton(){
button = new JPanel();
button.add(enter);
private void printDebugData(JTable table) {
int numRows = table.getRowCount();
int numCols = table.getColumnCount();
javax.swing.table.TableModel model = table.getModel();
System.out.println("Value of data: ");
for (int i=0; i < numRows; i++) {
System.out.print(" row " + i + ":");
for (int j=0; j < numCols; j++) {
System.out.print(" " + model.getValueAt(i, j));
System.out.println();
System.out.println("--------------------------");
* Create the GUI and show it. For thread safety,
* this method should be invoked from the
* event-dispatching thread.
private static void createAndShowGUI() {
//Make sure we have nice window decorations.
JFrame.setDefaultLookAndFeelDecorated(true);
//Create and set up the window.
JFrame frame = new JFrame("SimpleTableDemo");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
//Create and set up the content pane.
SimpleTableDemo newContentPane = new SimpleTableDemo();
newContentPane.setOpaque(true); //content panes must be opaque
frame.setContentPane(newContentPane);
//Display the window.
frame.pack();
frame.setVisible(true);
public static void main(String[] args) {
//Schedule a job for the event-dispatching thread:
//creating and showing this application's GUI.
javax.swing.SwingUtilities.invokeLater(new Runnable() {
public void run() {
createAndShowGUI();
}Cross-post:
http://forum.java.sun.com/thread.jspa?threadID=676105 -
Can u tell me how to set the color of the button and its border
hi to all,can u tell me how to set the color of the button and its border
There are sample code on the java.sun.com
http://java.sun.com/docs/books/tutorial/uiswing/components/example-swing/index.html
try this web page ... There are lots of examples... Good luck ... "Gan en " -
my iPad 2 started to backup iCloud and its now locked up. How do i unlock it, the button for settings and close are not working. What can I do?
Try this.
Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up. -
How to find function code for buttons on toolbar in oops alv
Hi experts,
I want to remove some buttons from toolbar in oops alv, i know the procedure like get function code and pass the value in a table and pass that table to IT_TOOLBAR_EXCLUDING of
method set_table_for_first_display but I WANT TO KNOW HOW TO FIND FUNCTION CODE FOR BUTTONS ON TOOLBAR IN OOPS ALVHi Prakash,
-->First you have to set the pf status in your alv program by,
{FORM pf_status USING rt_extab TYPE slis_t_extab.
SET PF-STATUS 'FIRST'.
ENDFORM. "PF_STATUS}
-->Pass this Subroutine name in the Function module, Reuse_alv_grid_display's parameters i.e,
i_callback_pf_status_set = 'PF_STATUS'}
*-->Then doble click on that pf status,
From the menu bar, select Extras->Adjust Template->List Viewer,
This will give you the existing statndard gui status of the program*
->Then catch that function codes in the User command Parameter of the Function module Reuse.. i.e,
i_callback_user_command = 'COMM'
And make a subroutine of the name 'COMM'i.e,
FORM comm USING ucomm LIKE sy-ucomm selfield TYPE slis_selfield.
DATA: okcode TYPE sy-ucomm.
okcode = ucomm.
CASE okcode.
WHEN 'REF'.
CALL FUNCTION 'POPUP_TO_INFORM'
EXPORTING
titel = 'MANSI'
txt1 = 'CREATED BY'
txt2 = SY-UNAME
TXT3 = ' '
TXT4 = ' '
endcase.
Hope it helps you
Regrds
Mansi -
How can I click on a button and make a text box appear or disappear
How can I click on a button and make a text box appear or disappear?
Thanks ahead of time for your help,
DougHi Denes,
I just thought that the example you pointed the OP to, is far more complex than what I understood he needs. The OP was talking about using a button, which I thought was a very basic and simple case. Your example is much more complicated. If memory serves, the radio group item, at the time (prior to 3.1 fieldset) behaved differently, so you needed to create a new value retrieving function, and then was the need to preserve the items show/hide status upon reloading the page. In short, I thought maybe I didn’t see the complexity in the OP post, but it seems that his requirement was indeed a simple one.
Regards,
Arie. -
How to call function in jar file?
First, I can't write english well.(I'm korean.. ) sorry about that.
I have known function in jar file.
but I don't know how to call function in jar file.
how can I this work?
My project and another project are respectively developing D-project with me and other man.
so i need it. or I can't do this work.
I will paste other's source code in my source code.
and then recomplie , build it.. but it is not my wish!
thanks for reading my sentence.If you have a jar file with a class that you wish to use, then you must add the jar file to your class path ($CLASSPATH on unix, linux, etc. and %CLASSPATH% on Windows).
Then you can use the class normally, just as you would if it were not in the jar.
If you meant something else, you'll need to explain what you meant. -
HOW TO CALL FUNCTION MODULE INSIDE SMARTFORM
PLEASE ANYONE TELL ME, ABOUT HOW TO CALL FUNCTION MODULE INSIDE SMARTFORM. IT IS VERY URGENT!!!!!!!!!1
Hi,
Under Global Definitions, we have 'Form Routines' tab. Under this tab, u can have a dynamic subroutine call. With in FORM and ENDFORM, you can call the Function Module.With in the Program Lines editor, u can define the subroutine........PERFORM.
If helpful, reward points.
Rgds,
CK -
How to connect one page using button and by link in BSP
how to connect one page using button and by link in BSP
hi,
use on 'onclick' functionality.
1. In layout, onclick = 'NEXT_PAGE' of the button
2. Capture the event in onInputprocessing,
DATA: event_id TYPE REF TO cl_htmlb_event.
case event_id.
when 'NEXT_PAGE'.
navigation->goto_page( 'URPAGE URL' ). -
I am trying to attach multiple photos to an email using ipad 2. I can see how to do it using the camera and camera roll ap...
But not using the photos ap..which is where the photos are. Any help would be appreciated.!In an album in Photos touch the Edit button and then touch the desired photos (up to 5). A blue check appears in each selected photo. Next touch the Share button at the upper left and select Mail. This starts a email with the photos attached.
Maybe you are looking for
-
Apple DVI to Video Adapter working but not anymore
Hello, I have the Apple DVI to Video Adapter connected to standard TV via Rca, This had worked for a couple of months and suddenly the image went blur with some lines, it is hard to see something clear but I see the desktop on my TV. Is there somethi
-
NOKIA 5530 NOT DISPLAYING NAME WHEN RECIEVING TEXT...
My partner has purchased this phone today and everytime she recieves a text its only displayin the phone number and not the name of her contact... we have tried everything and cant seem to sort the problem, we would be extremely greatful for any help
-
Why does fglrx need to be updated for every Xorg release?
Guess: Because of the libraries they're linking to? I may be imagining things but it seems the nvidia driver is less loosely tied to it and will work with any recentish version of X. I'm pretty sure I've upgraded X before without upgrading the nvidia
-
Kanban with purchase order : avoid manual change status to full
Dear guru , i use a kanban with purchase order. When I enter status empty (using for example PK13N) the system create purchase order. I want to avoid that the users enter status full using PK13N or PKBC . The users execute goods receipts against purc
-
Two finger swipe when viewing PDFs
Two finger page swipe doesn't seem to work in Acrobat Reader, but only for left-right (up-down works)! Does anyone experience the same?