How to use "Insert action"
Hi, experts:
I am facing one problem.
I try to use system action "insert action" to insert a new row into table view from a form view,
I have assign "To" to the target table in the Insert action properties.
When test program, table view did add a new row after click insert button in the form view, but all cell value are blank.
Any hints would be very appreciate.
Thanks.
Best regards,
Nick.
Hi Nick,
I think you are trying to use the fields on the From View to insert the rows with those values in the table View using the 'INSERT' action. You have also configured the 'TO' field of the 'INSERT' action to point to your Target Table View.
By default the INSERT Action will insert a blank row. In order to populate the values in the table, do the following:
1.Right Click your Target Table View.
2. Select 'Define Data'
3. For each field in the table set the default value to the corresponding field from the source 'Form view'
For doing this Double Click the 'fx' button in the Default Value column
Open 'Data Fields'
Open Your Source Form view
Double Click the required field
Clcik Ok
3. Save, Compile and Deploy the Application
Regards,
Ajay
Similar Messages
-
How to use same actions for differ pop-up
Hi gurus,
I am using 2 popup in a view.same popup's having same buttons 'Yes', 'No'.when i use 1st one i have to create an action for that Yes button where i put my code for that particular Action.
But when i used 2nd one the action define for that is not acceptable with differ name.it takes only standard one.
Now my Query is : How to use same actions for differ pop-up buttons with in a similar view?Where i put my code.
Plz sugges me.
<b>Points will be sured.</b>
Sanket sethiHi,
Take one integer value attribute in the context of view
when you r performing action on POP1 set it's value to 1
when you r performing action on POP2 set it's value to 2
create one method which receives integer argument, say diaplay(int a)
In the action call display(wdContext.currentContextElement().get<intvariable>()) by passing the value in the context attribute
in display() method, Check the value of integer variable..
if it is 1 then perform action related to POP1
if it is 2 then perform action related to POP2
Regards
LakshmiNarayana -
How to use same actions for differ pop-up buttons
Hi gurus,
I am using 2 popup in a view.same popup's having same buttons 'Yes', 'No'.when i use 1st one i have to create an action for that Yes button where i put my code for that particular Action.
But when i used 2nd one the action define for that is not acceptable with differ name.it takes only standard one.
Now my Query is : How to use same actions for differ pop-up buttons with in a similar view?Where i put my code.
Plz sugges me.
<b>Points will be sured.</b>
Sanket sethiHi ,
u can use the method SUBSCRIBE_TO_BUTTON_EVENT of the IF_WD_WINDOW interface ... to handle the event fired by the popup .....used this method after creating the popup window ...
regards
Yash -
How to use INSERT query ?
Frenz,
I have created one internal table and i am doing loop on it like...
Loop at it_data into wa_data.
Endloop.
I want to insert some data into table zdata.
How to use INSERT records on this data base table?
Give me one example.
Regards,
RHHi,
explain better what you want....
Do you want to change data in an existing raw?
Loop at tb_data into wa_data.
wa_data-field1 = 'jsahdu'.
modify tb_data from wa_data.
endloop.
If you want to add raws you use APPEND statement.
In the end you'll modify your table zdata from the internal table tb_data:
MODIFY zdata FROM TABLE tb_data.
Using modify you change raws basing on primary keys. If a raw doesn't exist it will be inserted.
Regards -
How to use the action OnExpandAll on UI element Tree
Hi, experts .
I am in WDA developing project and developing the screen which has Tree .
I want to expand all nodes when users click the button on the head of Tree .
I copied the application `WDT_TREE` and created Tree of my application successfully .
And I created the action OnExpandAll on my Tree and tried to create the function to expand all nodes .
But I do not know how to use the action OnExpandAll .
I can see the button to start action OnExpandAll on the head of Tree .
I am trying to write logic in the action . But it does not work successfully .
(In my tree , when I click the button for OnExpandAll , all nodes are outputted on root node .
Because my logic is wrong ... )
Please give me any hints .
MasaoHi
As your case it is a recursive node.
then you have to create method and call it recursively for the expanall functionality.
do it like this.
create an attribute the node FOLDER
name = 'ISEXPANDED'
type = WDY_BOOLEAN.
Now bind the property expanded of treenode FOLDER UI to this attribute.
now go to the methods tab and create one method say name ZEXPANDALL.
in thsi method make one importing parameter of type ( type ref to ) if_wd_context_node. and name NODE.
then write the following code in this method.
method ZEXPANDALL .
DATA ELT TYPE WDR_CONTEXT_ELEMENT_SET.
DATA EL TYPE REF TO IF_WD_CONTEXT_ELEMENT.
data nd type ref to if_wd_context_node.
data nds type WDR_CONTEXT_CHILD_MAP.
data chld type wdr_context_child.
data nf type ref to if_wd_context_node_info.
data name type string.
ELT = node->GET_ELEMENTS( ).
LOOP AT ELT INTO EL.
EL->SET_ATTRIBUTE(
NAME = 'ISEXPANDED'
VALUE = ABAP_TRUE
data parent_key type string.
EL->get_attribute( exporting name = 'TEXT' importing value
= parent_key ).
* create the child nodes
create_node(
exporting
cur_element = EL
parent_key = parent_key ).
nds = el->get_child_nodes( ).
loop at nds into chld.
nd ?= chld-node.
nf = nd->get_node_info( ).
name = nf->get_name( ).
if name eq 'FOLDER'.
zexpandall( "recursive call
nd
endif.
endloop.
ENDLOOP.
endmethod.
NOw go to your eventhandler created for action expandall.
there write the following code.
method ONACTIONEXPANDALL .
DATA lo_nd TYPE REF TO if_wd_context_node.
lo_nd = wd_context->get_child_node( 'FOLDER' ).
ZEXPANDALL( lo_nd ).
endmethod.
thats it.
Thanks
sarbjeet singh -
How to use Report Action.?
How to use Report Action in OSB?
How to Report the messages in the database of a system?
I already have done RCU installation.
IN RCU we know how to mention schema names but how to mention correct tablename where Reports gets stored is still a grey area..
Kindly,Suggest
Aryashree......Please refer -
http://docs.oracle.com/cd/E21764_01/doc.1111/e15867/reporting.htm
http://jvzoggel.wordpress.com/2012/01/18/osb_tracing_report_action/
Regards,
Anuj -
How to use INSERT in EXEC SQL ...... ENDEXEC ?
Hi,
The following code;
DATA: BEGIN OF str_insert,
a(3) TYPE c,
b(3) TYPE c,
END OF str_insert.
EXEC SQL.
SET CONNECTION DEFAULT
ENDEXEC.
str_insert-a = 'a'.
str_insert-b = 'b'.
EXEC SQL.
INSERT INTO ZSAP VALUES :str_insert
ENDEXEC.
The Structure of the ZSAP table (There is no data in ZSAP);
A CHAR 3 (Primary Key)
B CHAR 3
I cannot instert a record to this table it throughs the following error;
Runtime Errors DBIF_DSQL2_SQL_ERROR
Exceptn CX_SY_NATIVE_SQL_ERROR
How could use a structure to insert values into ZSAP?
Thanks,
KishanHello..
loop at T_PC.
loop at T_PCD .
at new NUMREFERENCIA.
exec sql.
INSERT INTO tblPolizaContableR3
(LibroMayor, PeriodoContable, Prefijo, NumReferencia,
Fecha, FuenteDiario, ComentarioPoliza, Moneda,
TipoCambio, RefExternaID1, RefExternaID2, RefExterna1,
RefExterna2, DescRefExterna)
VALUES (:T_PC-LIBROMAYOR, :T_PC-PERIODOCONTABLE,
:T_PC-PREFIJO, :T_PC-NUMREFERENCIA, :T_PC-FECHA,
:T_PC-FUENTEDIARIO, :T_PC-COMENTARIOPLIZA, :T_PC-MONEDA,
:T_PC-TIPOCAMBIO, :T_PC-REFEXTARNAID1, :T_PC-REFEXTERNAID2,
:T_PC-REFEXTERNA1, :T_PC-REFEXTERNA2, :T_PC-DESCREFEXTERNA)
endexec.
endat.
exec sql.
INSERT INTO tblPolizaContableDetR3
(LibroMayor, PeriodoContable, Prefijo, NumReferencia,
Partida, Cuenta, CuentaIMSA, CCostoIMSA,
Cargo, Abono, ComentarioPartida)
VALUES (:T_PCD-LIBROMAYOR, :T_PCD-PERIODOCONTABLE,
:T_PCD-PREFIJO, :T_PCD-NUMREFERENCIA, :T_PCD-PARTIDA,
:T_PCD-CUENTA, :T_PCD-CUENTAIMSA, :T_PCD-CCOSTOIMSA,
:T_PCD-CARGO, :T_PCD-ABONO, :T_PCD-COMENPARTIDA)
endexec.
endloop.
Hope this help you.
Regards, Gustavo Estrada -
How to use INSERT INTO ALL statement in jdbc prepared statement with beans
Kindly give me some example that how we can use "INSERT INTO ALL STATEMENT" in jdbc prepared statement inside a jsf bean?
Actually i want to take employee id's of present employees using single jsf page and using one textbox for each employee id.
How can i use INSERT INTO ALL statement to achieve this?
Following is my code snippet.
AttendanceBean.java:
public class AttendanceBean {
private int atteid;
private String attdname;
private int attday;
private int attmonth;
private int attyear;
public static Connection getAttConnection() throws Exception {
String driver = "oracle.jdbc.driver.OracleDriver";
String url = "jdbc:oracle:thin:@localhost:1521:globldb3";
String username = "scott";
String password = "tiger";
Class.forName(driver);
Connection conn = DriverManager.getConnection(url, username, password);
return conn;
public String addAttendance(){
Connection conn = null;
PreparedStatement pstmt = null;
boolean committed = false;
try {
conn = getAttConnection();
conn.setAutoCommit(false);
String query = "INSERT ALL INTO attendance VALUES (?,?,?,?,?)";
pstmt = conn.prepareStatement(query);
pstmt.setInt(1,this.atteid);
pstmt.setString(2,this.attdname);
pstmt.setInt(3,this.attday);
pstmt.setInt(4,this.attmonth);
pstmt.setInt(5,this.attyear);
pstmt.executeUpdate();
conn.commit();
conn.setAutoCommit(true);
committed = true;
return "home.xhtml";
} catch (Exception e) {
e.printStackTrace();
return "CRM.xhtml";
} finally {
try{
if (!committed) conn.rollback();
if (pstmt != null) pstmt.close();
if (conn != null) conn.close();
}catch(Exception e){
e.printStackTrace();
}Check this program for some info on Push buttons:
1-DEMO_DYNPRO_PUSH_BUTTON
2-DEMO_DYNPRO_MODULE
3-DEMO_DYNPRO_ON_CONDITION
Suppose Your screen is 101
Then in that screen create one push button and assign it a function code.
Now in the PAI of the 101 screen
Create Module for user command
Inside that module checc the sy-ucomm if sy-ucomm eq <Function code of your push button>
Insert the values in database.
*& Module USER_COMMAND_0101 INPUT
process after input for screen 0101 *
MODULE USER_COMMAND_0101 INPUT.
CASE OK_CODE.
WHEN 'SAVE'.
*Insert the values here
WHEN 'DISP'.
ENDCASE.
CLEAR OK_CODE.
ENDMODULE. " USER_COMMAND_0101 INPUT
Regards
Neha
Edited by: Neha Shukla on Dec 3, 2008 1:02 AM
Edited by: Neha Shukla on Dec 3, 2008 1:02 AM
Edited by: Neha Shukla on Dec 3, 2008 1:06 AM -
How to use the "Actions" in Photoshop Elements 11
I am wanting to use the "Actions" in Photoshop Elements 11. But when I get the actions box up, it is only showing a small list of effects to use. The tutorials I have checked into all show a very long list of actions. When I click on the little arrow and click on "load actions", I am getting nothing. Everything is blank. It says "No items match your search." Please help!
To use the existing actions, try the following:
1. Open one of the Action Sets, in this example Special Effects is the Action Set, by pressing the small arrow beside the set name.
2. Then click on the name of the Action, in this example Faded Ink is the Action name.
3. Then press the Play button to run the action. -
How to use dynamic action to fill multi item on a page ?
Hi..
I want to fill multi items on a page so I build a dynamic action ( Execute PL/SQL Code ) to do it .The problem is that when the page loads I can't see any data and I tried to see the session values using debug and I found data. Moreover when I save the row I got these data saved.
So what is the magic there?
ThanksFirstly, to get the multi-select populated with "pre-selected" values the easiest approach is to use Computation or Process at a process point On Load Before Header or After Header or Before Regions.
All you need to do is populate your "Select List " page Item with : (colon) separated list of selected values. E.g is you want A,B and C out of A,B,C,D,E selected then get A:B:C into the Page Item.
If you have used Dynamic Actions, what is your event on which the action fires? For Dynamic-Actions the page (HTML DOM) needs to be existing , so it must fire after the page has loaded.
Regards, -
How to use Insert for mulit-values
Can anyone help, I try to insert mulit-values using insert command. but keep getting error. here is the code.
INSERT INTO PRODUCTS
VALUES (
'C','CABLE',39.95,
'D','DSL',29.95,
'U','DIALUP_56K',19.95);
Thank you!The SQL you posted isn't valid, assuming that there are only three columns in your table. The type of insert statement you posted can only insert 1 row at a time.
You could look into loading data into collections and using the bulk insert syntax to insert multiple values in a single statement. Please post to the PL/SQL forum if you need more assistance on this.
Justin -
How to Use Dynamic Action ?
Dear All,
i am using Apex 4.1 Ver.
i need return value in text Area Item when i select any Value in Select List.
i have One select List Item :p1_template_id and one text Area Item P1_template_description .
Select List Code
SELECT TEMPLATE_NAME D, TEMPLATE_ID R FROM TEMPLATE_MAS ORDER BY TEMPLATE_NAME
Table Name
CREATE TABLE "CRM_CAM_TEMPLATE_MAS"
( "TEMPLATE_ID" VARCHAR2(50) NOT NULL ENABLE,
"TEMPLATE_NAME" VARCHAR2(500) NOT NULL ENABLE,
"DESCRIPTION" CLOB
CONSTRAINT "CRM_CAM_TEMPLATE_MAS_PK" PRIMARY KEY ("TEMPLATE_ID") ENABLE
/i want to Value of DESCRIPTION Column in to Text Area Item when i select Template ID from Select List .
How can i do this with Dynamic Action or any other Way ?
How can i do this ?
Thanks
VedantHi Kiran,
i have done it with Text Area but when i change text Area with Rich Text Editor then it's not Working.
How can i do this with Rich Text Editor.
My Code
Application Process
DECLARE
v_mgr VARCHAR2(4000);
CURSOR cur_c
IS
SELECT DESCRIPTION FROM TEMPLATE_MAS WHERE TEMPLATE_ID =:TEMPLATE_ITEM ;
BEGIN
FOR c IN cur_c
LOOP
v_mgr := c.DESCRIPTION;
END LOOP;
OWA_UTIL.mime_header ('text/xml', FALSE);
HTP.p ('Cache-Control: no-cache');
HTP.p ('Pragma: no-cache');
OWA_UTIL.http_header_close;
HTP.prn ('<body>');
HTP.prn ('<desc>this xml genericly sets multiple items</desc>');
HTP.prn ('<item id="P1_SUMMARY">'||v_mgr|| '</item>');
HTP.prn ('</body>');
EXCEPTION
WHEN OTHERS
THEN
OWA_UTIL.mime_header ('text/xml', FALSE);
HTP.p ('Cache-Control: no-cache');
HTP.p ('Pragma: no-cache');
OWA_UTIL.http_header_close;
HTP.prn ('<body>');
HTP.prn ('<desc>this xml genericly sets multiple items</desc>');
HTP.prn ('<item id="P1_SUMMARY">'||SQLERRM||'</item>');
HTP.prn ('</body>');
END;
Java Script
<script language="JavaScript" type="text/javascript">
<!--
function pull_multi_value(pValue){
var get = new htmldb_Get(null,html_GetElement('pFlowId').value,
'APPLICATION_PROCESS=TEMPLATE_ITEM1',0);
if(pValue){
get.add('TEMPLATE_ITEM',pValue)
}else{
get.add('TEMPLATE_ITEM','null')
gReturn = get.get('XML');
if(gReturn){
var l_Count = gReturn.getElementsByTagName("item").length;
for(var i = 0;i<l_Count;i++){
var l_Opt_Xml = gReturn.getElementsByTagName("item");
var l_ID = l_Opt_Xml.getAttribute('id');
var l_El = html_GetElement(l_ID);
if(l_Opt_Xml.firstChild){
var l_Value = l_Opt_Xml.firstChild.nodeValue;
}else{
var l_Value = '';
if(l_El){
if(l_El.tagName == 'INPUT'){
l_El.value = l_Value;
}else if(l_El.tagName == 'SPAN' &&
l_El.className == 'grabber'){
l_El.parentNode.innerHTML = l_Value;
l_El.parentNode.id = l_ID;
}else{
l_El.innerHTML = l_Value;
get = null;
//-->
</script>
HTML Form Element Attributes
onChange="pull_multi_value(this.value)";
For Riich Text Editor i have changed these value in Application Process and table column data Type
v_mgr clob;
DESCRIPTION Column Type Clob
How can i do this with Rich text Editor /
Thanks -
How to use "insert into & select" in format search
Hello,
I am just wonderring whether you can help me solve this issue.
I want to change the value of a field in the title area for a sales quotation. however, this field is not shown up on the interface.
For example, there is a field in the title area, "OQUT.Ref1". You actually cannot see this field from the quotation interface or any other doc. Now I want to update the value of this field.
What I am now trying to do is to create an field named "update" in the title area, use format search to update. the code for the command will be something like
Insert into $[OQUT.Ref1.0]
select $[OQUT.U_MFG#]
here, U_MFG# is UDF. as you may understand, I want to copy the value in the U_MFG# to the field of "Ref1".
However, when I run "Execute", it gives me error. I believe there is something wrong with the code of "Insert into $[OQUT.Ref1.0]
Does anyone know how to write the code?
many thanks
StanleyThanks both Suda and sagar. The reason I wanted to do this is because I wanted to have UDF info be shown on the MS word-templated quotation document.
As you know, when you click the word symbol, a word-templated doc will be generated. The client needs two completely different format of quotation printout. thus I plan to print one type from PLD and other type by clicking the Word symbol. but later, I found out that the UDF field cannot be selected on the MS word template, or only system fields.
Thus, the only way I can do is to copy the value from udf to some unused sytem fields and then show that system fields on the MS word template.
any idea do you have?
I wanted to tell SAP that It is not useful if the udf fields cannot be inserted into word template.
thanks
Stanley -
How to use generic action in ODI?
I create new Action (Topology.Generic Action), for example, "DELETE TABLE", that contains 1. <%=odiRef.disableReferringFKs( )%> and 2. DELETE FROM ...
If I want to perform this Action for any table before load data, what must I do?
Where can I perform this in ODI? May be in Packages or in "Generic DDL" for model?
I couldn't find this information((Hi Pani,
my experience is that you can best use a procedure to do table deletions on either your source, staging or target schema.
view the oracle users guide / reference guide for details.
Where to perform? In the designer, create a project, open the first folder and there you'll find the procedures.
Right click it and insert a procedure. But again, check the docs, which I believe are delivered with your installation.
By the way, you can add the procedure in a package to have it executed before any other steps start.
Good luck!
Rudy Oosterling
Edited by: user10081313 on 21-jan-2010 7:54 -
The source tables are having crores of data (growing tables). Tables with 4crores, 17cr. We want these tables to be copied frequently to our local database. Previously it was done by export-import through windows scheduled task. but now we are planning to do it as database jobs. We are fetching the datas with query
insert into dest_tablee( select * from source_table@dblink) when we tried with this it was throwing exception like enough table space is not there. And also it was found that frequent commits has to be used while populating datas from big tables. So tried with cursor But it was very slow and again we got the exception like 'the table space unable to extend segment by 16 in undo tablespace 'UNDOTBS1'.
After that we tried with the group by. In this case we got the exception like unable to extend table and also index in the table space. For this the solution is to add datafile. Again we have increase the table space. Now the procedure is running very slow(taking much time. It might be because of the conditions used in the query).
Is there any other option to copy the datas from such a big tables? can we use the same sort of query?
Friends please help me to sort it out.
Thanks in AdvanceHi,
you have lot of data DONT use cursor, did you try using the COPY command.
How frequently you will be doing the COPYING of the data ?
If you have any constraints you can disable and enable after all the records have been copied.
Please look at this link this should help.
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:5280714813869
Thanks
Message was edited by:
hkandpal
Link added
Maybe you are looking for
-
On some sites (e.g. http://www.bbc.co.uk/news/, http://www.cambridge-news.co.uk/Home/) text, especially headings, that used to be in roman style is now oblique/italic, and harder to read.
-
What kind of mac would I need for Nexflix, basic search and email? Also, sounds silly, but can I connect an HDMI from Mac to tv?
-
I cannot figure out where the administrator password is so I can disable it. I do have parental controls on.
-
Can a VI publish on a remote server?
I'm trying to perform a small expirement - I would like a control in a VI on one computer to publish and subscribe to another control in a different VI on a different computer on the same LAN.(and vice versa) The idea is to be able to manipulate both
-
Ethernet Connection Slow to Wake Up Since 10.6.5 Update
My iMac10,1 (late 2009) is connected to the internet via ethernet using a Netgear WR614v7 and since upgrading to OS X 10.6.5 last Wednesday waking from sleep and connecting to the internet has become an issue. Not always, but often it won't connect.