Key press - Dynamic action
All,
I need to assign a value 1 to a page item whenever key is pressed:
Here what I did:
1. Created a item P1_SHOW
2. Created a dynamic action
Event : Key Press
Selection Type : Item(s)
Item(s) : P1_SHOW
True action: pl/sql
:P1_SHOW := 1;
Thanks.
user-Rachna
I guess your problem is that you don't see the item :P1_SHOW change in your screen.
In the action set the "Page Items to Return" to :P1_SHOW.
You could also use a dynamic action of type "set value" and Set Type "static " this will not set the session state but also will not do a ajax request.
See the difference between the two methods in [url http://goo.gl/LE4aD]this demo
Nicolette
Similar Messages
-
Dynamic Action with KeyCode check for ENTER button pressed
Hi,
I want to create a dynamic action which executes if the ENTER button of field P1_NAME is pressed.
I thought about this type of DA:
Event: Key Press
Selection Type: Item(s)
Item(s): P1_NAME
Condition: Javascript expression
Value: this.triggeringElement.keyCode == 13
That unfortunately doesn't work! Dynamic action doesn't get executed...
Hope for help! :)
TobiasI found the solution in my own blog: :)
Event: Key Press
Selection Type: Item(s)
Item(s): P1_NAME
Condition: Javascript expression
Value: this.browserEvent.keyCode == 13 -
How can we trape the Keys Pressed on the Keyboard and do action depending on the keys
I want to know how we can capture the keys pressed on the keyboard by the user and do necessary action depending on the key pressed by the user....
For example.... If user press Alt+q the form should go in the Enter Query Mode.
Can anyone tell me how i can do this in Form 6i....
Please Help me out from this problem...
Thanks in Advance
ShanCan somebody point me to what I need to use to
intercept all the 'keys' for an application.
At the moment I have set Focus to parts of the
application when the Mouse is over it, and then get
the Keys with a KeyListener.
Is there a way to get the keys, as long as the Java
app is active.
- Its an image display program, and I want to use keys
for - next image , zooom etc etc.
If soemone could just point me to the right part of
the API to look in?java.awt.Toolkit.addAWTEventListener()
then use the mask defined in AWTEvent.KEY_EVENT_MASK to listen to all the events.
Steve -
Flash Action Script Key Press Restrictions
Hello, so I am making a Pacman game and am using the following script for the movement of my character.
onClipEvent (enterFrame) {
speed = 10;
if (Key.isDown(Key.LEFT))
this._x -= speed;
_root.char.gotoAndStop(2);
if (Key.isDown(Key.RIGHT))
this._x += speed;
_root.char.gotoAndStop(1);
if (Key.isDown(Key.UP))
this._y -= speed;
_root.char.gotoAndStop(3);
if (Key.isDown(Key.DOWN))
this._y += speed;
_root.char.gotoAndStop(4);
The problem that I'm having is that when I press the right and down keys, or any other two keys that result in diagonal movement, the character moves in that direction. I only want the character to be able to move right, left, up and down. The _root.char.gotoAndStop(3); part of the script is just so that the character faces in that direction. Is there any way to restrict the number of keys that can be pressed at once to one? Or to make it so that only the first of the two keys or the second of the two keys pressed is used? If not, is there any way to make a RIGHT and DOWN key press result in diagonal movement that also faces the character that way? Or stops the character entirely? I would throuroughly appreciate any help on the matter! Thanks in advance!
WaltOne way would be to incorpate "else" 's for the last three conditionals. That would make it so that the first key determined to be down would be the key that determines the movement.
onClipEvent (enterFrame) {
speed = 10;
if (Key.isDown(Key.LEFT))
this._x -= speed;
_root.char.gotoAndStop(2);
} else if (Key.isDown(Key.RIGHT)) {
this._x += speed;
_root.char.gotoAndStop(1);
} else if (Key.isDown(Key.UP)) {
this._y -= speed;
_root.char.gotoAndStop(3);
} else if (Key.isDown(Key.DOWN)) {
this._y += speed;
_root.char.gotoAndStop(4); -
To trigger event or action on "TAB" key press on web dynpro view
Hi, I need to trigger event on "TAB" key press on web dynpro view , is it possible?How?
Hi Dipak
What Madhu said is correct. Tab key is pre-configured to move cursor from 1 field to next field. we can not create an event on tab key press.
Regards
Gaurav -
Set checkbox session state using Jquery / dynamic action
Hello Folks,
I'm trying a simple dynamic action to disable & set element value upon making a radio box selection.
What I'd like is:
a) if i chose "Vendor" as "Traditional" (default value) I would like to set the "SNAP" flag as Checked and "Status" textbox to "test for static value" (SNAP flag is not set, only works on Page load)
b) if i chose "vendor" as "Isilon" then "SNAP" flag should be greyed out (disabled) and "Status" textbox should be disabled. (Working as Expected)
Link to the page:
http://apex.oracle.com/pls/apex/f?p=73069:6:0::NO:::
Workspace: wksp_chandu
Username: test
Password:test
Dynamic Action
Identification
Page:
6. Check Disable radio
*Name(Value Required)
*Sequence(Value Required)
When
*Event(Value Required)
- Select Event -
Change
Click
Double Click
Get Focus
Key Down
Key Press
Key Release
Lose Focus
Mouse Button Press
Mouse Button Release
Mouse Enter
Mouse Leave
Mouse Move Page Load
Page Unload
Resize
Resource Load
Scroll Select
After Refresh
Before Page Submit
Before Refresh
Change Order [Shuttle]
Custom
Show unsupported...
*Selection Type(Value Required)
- Select Selection Type -
Item(s)
Button
Region
DOM Object
jQuery Selector
*Item(s)(Value Required)
Condition
- No Condition -
equal to
not equal to
greater than
greater than or equal to
less than
less than or equal to
is null
is not null
in list
not in list
JavaScript expression
*Value(Value Required)
True Actions
The following actions will be fired when the 'When' condition is met, or when it is 'No Condition'.
Edit
Sequence
Action
Fire On Page Load
Selection Type
Affected Elements
10
Clear
Yes
Item(s)
P6_SNAP
P6_STATUS
20
Disable
Yes
Item(s)
P6_SNAP
P6_STATUS
Add True Action
False Actions
The following actions will be fired when the 'When' condition is not met.
Edit
Sequence
Action
Fire On Page Load
Selection Type
Affected Elements
10
Enable
Yes
Item(s)
P6_SNAP
P6_STATUS
30
Set Value
Yes
Item(s)
P6_STATUS
40
Execute JavaScript Code
No
Item(s)
P6_SNAP
Add False Action
Thanks!
ChanduOops...I just got it working.. Thanks for your time. I was trying to set checkbox value via javascript code and somehow that wasn't working...Finally changed the setvalue to be based on "PL SQL expression" nvl(:P6_SNAP,1)...that seem to have worked.
Thanks again ! -
Dynamic action on text box change does not working
i have a page with following components.
a report that has and edit link.
a text box to catch the primary key from report link when it is clicked
a number of elements (text boxes, check boxes and LOVs) which are used as data entry form.
Now my design is that user enter values save them and no sooner did they save, the report depicts new
values. if user want to edit any record, they click on edit link and the data entry form elements
should now bring all those values from DB on page. i m successful to pick primary key and bring
it in a hidden text box and wrote a dynamic action on its change event that will bring values from
DB and set all page elements. but but but.........the change event doesnt work. it only work
when focus is lost from the text box...!! offcourse user wont want to click in that "hiddent" text
box and then click some where else to bring values in page data entry form......
help is humbly requested from forum or if any other solution approach is to be used easier than
one i m using, would be appreciated.
thanks in advance for reading my bore question :)bundles of thanks for reply. i m going to elaborate.
1. My page no is 3.
2. Hidden Item name is P3_EDIT_ACTIVITY_ID
3. Data entry form, hidden item and the report are on the same page.
4. on the edit link of report, i have used following settings.
Target: Page in this application
Page: 3
and i set hidden item as follows......
Item 1 P3_EDIT_ACTIVITY_ID Value #ACTIVITY_ID#
well, when i click the link on report it does bring Activity_Id in the hidden box (which is not yet hidden for debugging purpose)
Next i wrote Dynamic action which fires on the change event of P3_EDIT_ACTIVITY_ID and run PL/SQL code with in it which is as follows
declare
Dept varchar(50);
begin
select my_dept into Dept from activity_main ACTIVITY_ID = :P3_EDIT_ACTIVITY_ID;
:P3_Dept := :Dept; (i did use :P3_Dept := Dept also but this wont work)
insert into testdynamic (stamp) values (Dept); (I did this to check whether correct value is brought from DB, yes it works correctly, correct Dept is being inserted in stamp column)
end;
i have created another true action to check when the dynamic action is fired. its very simple alert. and the problem is, it only fires when focus is lost from the P3_EDIT_ACTIVITY_ID. i mean, when u keep changing value inside the text box, nothing happens, when u go outside, the alert is fired and so the pl/sql procedure. but the line
:P3_Dept := :Dept; OR :P3_Dept := Dept; arent working which is the actual requirement.
I m not using set value here as i have to set a lot of values on page not one. further. plz let me get rid of this lost focus thing as i want the form to be populated with correct values related to P3_EDIT_ACTIVITY_ID as the user click on any edit_link in the report.
Thanks for persistence. i hope i have provided all the details.
looking forward. -
Problem setting a hidden item value when button clicked with dynamic action or pl/sql process
Apex 4.1
Oracle 11g
I have a page that consists of a main region and several sub regions. I have a pl/sql process in After Header SET_DISPLAY(:P400_DISPLAY :='MAIN';)
Three subregions have a contional display where P400_DISPLAY = STORE. This works in hiding the sub regions.
Now I want to change the P400_DISPLAY value to STORE to show the subregions when I hit a button.
I tried creating a dynamic action for on click of the add button but get the following error:
The selected button uses a 'Button Template' that does not contain the #BUTTON_ID# substitution string
I went to the templates and found:
Substitution Strings
Substitution strings are used within sub templates to reference component values. This report details substitution string usage for this template.
Substitution String
Referenced
From
Description
#LINK#
Yes
Template
To be used in an "href" attribute
#JAVASCRIPT#
No
To be used in an "onclick" attribute
#LABEL#
Yes
Template
Button Label
#BUTTON_ATTRIBUTES#
No
Button Attributes
#BUTTON_ID#
No
Generated button ID will be either the button's Static ID if defined, or if not will be an internally generated ID in the format 'B' || [Internal Button ID]
I then tried creating a page process, pl/sql, :P400_DISPLAY :='STORE'; when the appropriate button is pressed. The button action is submit page. However, it does not change the P400_DISPLAY value and the subregions stay hidden.
Suggestions please on how to fix the template or change the P400_DISPLAY value?The root issue is that, although you change the value of your page item, it isn't visible to other areas of the page until it is in the session. So, any other action based on the value of your page item; the visibility of a control, a report based on the item's value, etc. will all be unaffected by changing the value of the page item until it has been changed in the session. Even after this the items are stored in the session, you must thereafter do something to cause the value to be reevaluated. To see the effect of this, observe that your page loads and evaluates the value of your page item, it sees that is "MAIN" and hides the regions. However, it doesn't reevaluate them after this.
So; your choices to get this value set in the session are to either Submit the page, or use JavaScript to set the value in the session. If you use the latter of these, you'll have to do some further work to cause the visibility tests to be re-run, So, let's stick with with the submit method.
What you've done above sounds correct for this but, there are a lot of decisions you could have made that might have caused things not to happen in the correct sequence.
Firstly, let's confirm that what I describe above is your problem. From the development environment, load the page, click the button to change the value and submit. Now, click the link labelled Session. Is it still set to MAIN? If so; this is your issue.
Let's start with the your After Header computation. Did you set it to *only* run if the current value of your page item is NULL??? If not, that's your problem.
Load Page -> Item set to 'Main' by Computation -> Click Button -> Item set to STORE -> Submit -> Load Page -> Item set to 'Main' by Computation
See the problem?
Assuming this isn't the issue, you created a Branch to the same page, right? What is your process point for the Branch? Is it *After* Validation, Computation etc? Because if not, you aren't changing the value before the submit happens.
I bet it is the first issue but, take a look at these.
Cheers,
-Joe -
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 -
Calling a BI Publisher report from a dynamic action
Greetings,
I am working with Apex 4.1.0. I have created a BI Publisher query and layout and defined them in the Shared Components for my application. I also created a button defined as 'Download Printable Report Query'. When I press the button, everything works as expected. The page variable is passed to the report and the report prints as it should.
My question is, can I run this report using a Dynamic Action instead of a button?
Thanks
LarryHi,
All that such a button does is submit the page and branch to page zero passing in the request field something like this:
PRINT_REPORT=my_report
So, to do the same in a dynamic action, use an "execute javascript code" action with something like this in it:
location.href = 'f?p=&APP_ID.:0:&SESSION.:PRINT_REPORT=my_report';
Luis -
Dynamic Action on "Get Focus" After Closing a Popup Window
Hi,
From one of APEX Application Pages I am calling a Popup Window where users can create a new record. In the Popup Window once the record is created and window is closed, I want to refresh the region on the main page to show the record created in the popup window.
How do I create a dynamic action which will fire when the main APEX window gets the focus (after the popup window is closed). ?
Any pointers will be greatly appreciated.
Thanks & Regards,
Ashish Agarwal
http://www.asagarwal.comAssuming that you have a dynamic action in the parent page which refreshes the region
<li> Make a note of the event which triggers your dynamic action, lets call this event A.
<li> Create a JS function in parent page which triggers event A when called.
For example if your Dynamic Action trigger is a button(id ="P100_REFRESH") press event
Your JS function could be
function Trigger_refreshRegion()
$('#P100_REFRESH').click();
The way in which you simulate the Dynamic action deoends on the firing event that you have used, so modify it appropriately.
<li>Now in the pop up page, if you are closing the page in JS using smthing like window.close() or so,
just call the parent page's refresh JS function there using the
opener.Trigger_refreshRegion(); //whatever was the name of the function that you created. -
Dynamic Action on change automatically submit
Hi,
I have a tabular form (manually handled) with a text item that can be changed (Apex 4.0.2.00.07).
Each time the user changes the value of the text item, the changes automatically will be submitted.
Therefore I defined a dynamic action:
event:onchange
selection type: region
with javascriptcode: apex.submit({request:'SAVE'});
When I leave changed text item with tab-key everything works fine.
But when I leave changed text item through a button Click only the submit of dynamic action is performed and the button functionality is ignored.
The button click initiates the onchange event at the changed text item and then ignores everything after this event.
The enduser will not be able to understand the behavior of the application.
I have less experience in Java and JavaScript.
Is it possible to get the information if and which button was clicked, so I can decide at javascriptcode of the dynamic action what is to do?
Thanks,
BrigitteRegion static id shouldn be in bracketsYou missed the '#' informt of the region id.
why my original PL/SQL process did not work
FOR i IN 1 .. apex_application.g_f08.COUNTThis works only when the application array has values and that happens only when the page is submitted.When you submit the dynamic action , it isn't.
This script combined with script to detect changes makes apex page running very slowIf you use that PLSQL code(assuming it works as expected) , then its going to take a server request every-time you change a field in the tabular form and loop though all the array values(if they would be submitted before) and recalculate and compare the checksums . Isn't that going to be very inefficient.
As for that JS code, it only runs at the client side. You can do all the server side checks on submit, when the user expects some delay due to processing. -
Dynamic action - Cache server data
APEX 4.2.2
Is there a way to cache server side data in a global (page/document level) Javascript vector (bunch of key-value pairs) (associative array, array of objects or some such)? This way the data can be used by subsequent dynamic actions' Javascript code without querying the server over and over.
I see that apex_util.json_from_sql is still undocumented after all these years. Are there any examples of using that API to do this sort of thing? Can someone please share?
Thankshttps://apex.oracle.com/pls/apex/f?p=57688:24
I took a shot at this and it seems to work well using Javascript global objects for data storage. Hope this helps someone.
1. Page attributes - Javascript global variables var gData,gLookup={};2. On-demand application process Get_Emps as apex_util.json_from_sql('select empno,ename from emp');3. Page Load dynamic action to invoke the application process and cache the data var get = new htmldb_Get(null,$v('pFlowId'),'APPLICATION_PROCESS=Get_Emps',$v('pFlowStepId'));
var retval=get.get();get=null;
gData=apex.jQuery.parseJSON(retval);
$.each(gData.row,function(i,obj){
gLookup[obj.EMPNO]=obj.ENAME;
});4. EMPNO page item - Standard OnChange dynamic action to SetValue of ENAME page item using the cached data - Javascript expression gLookup[$v(this.triggeringElement)]
We document something when it is ready to be supported. This specific procedure isn't something we haven't invested in, and thus, per our discretion, have elected not to document or support it at this time.Fair enough. -
HR_INFOTYPE_OPERATION not working when called from Dynamic action
Hi ,
Senario : I would like to execute a form from dynamic action which
creates a record in 0015 (Additional payment IT) .
I have writen the code as shown below am using FM HR_INFOTYPE_OPERATION
. When i execute the program from se38 it is creating a record, however it is
not created when it is called from dynamic action..when i debugged the code in
inside the FM HR_INFOTYPE_OPERATION there is a FM HR_MAINTAIN_MASTERDATA where
they are using call dialog (statement) and
sy-oncom = 'N' when called from Dynamic action and
sy-oncom = 'S' when called executed directly.
I tried to change the sy-oncom to S while run from Dynamic action it created
the record.
So Can anyone explain me abt sy-oncom and how can i resolve the issue..
code..
REPORT ZHRPYENH01 .
perFORM TERMIATION_9000.
INCLUDE DBPNPMAC.
FORM Termiation_9000 *
FORM TERMIATION_9000.
INFOTYPES : 0015.
*data : i .
*i ='c'.
*break-point.
*message i000(000) with i.
TABLES : PRELP.
DATA : P9000 TYPE PA9000." with header line.
DATA : P0000 TYPE STANDARD TABLE OF P0000 WITH HEADER LINE.
DATA : P0015 TYPE STANDARD TABLE OF P0015 WITH HEADER LINE.
DATA : HIRE_DATE LIKE SY-DATUM,
TERM_DATE LIKE SY-DATUM.
DATA : MOLGA LIKE T500L-MOLGA VALUE '25',
SEQNR LIKE PC261-SEQNR.
DATA : RGDIR TYPE STANDARD TABLE OF PC261 WITH HEADER LINE.
DATA : ACTUAL_PERIOD LIKE PA9000-RETENTION.
DATA : PNP-SW-FOUND TYPE SY-SUBRC ,
PNP-SY-TABIX TYPE SY-TABIX.
DATA : TER_PERNR LIKE PA0001-PERNR.
DATA : REF_PERNR LIKE PA0001-PERNR.
data : key type BAPIPAKEY.
data : payed_amount type p0015-BETRG.
data : future_payment_amount type p0015-BETRG.
data : p0002 like pa0002.
types : begin of t_deduction ,
deducation_date like p0015-begda,
future_payment_amount type p0015-BETRG.
types : end of t_deduction.
data : future_deduction type standard table of t_deduction with
*header line.
data : future_deduction type t_deduction .
data : RETURN type BAPIRETURN1.
*data : deduction_p0015 like standard table of p0015 with header line.
data : deduction_p0015 like p0015 .
xxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxx
****Prepare 0015 data for deduction
*deduction for payed amount
clear deduction_p0015.
*refresh deduction_p0015.
deduction_p0015-pernr = REF_PERNR.
*deduction_p0015-pernr = TER_PERNR.
deduction_p0015-lgart = 'M120'.
deduction_p0015-begda = sy-datum + 1 .
deduction_p0015-endda = sy-datum + 1 .
deduction_p0015-BETRG = payed_amount.
deduction_p0015-WAERS = 'SGD'.
deduction_p0015-ZUORD = TER_PERNR.
*append deduction_p0015.
**deduction for future payment amount
*loop at future_deduction.
*clear deduction_p0015.
*deduction_p0015-pernr = REF_PERNR.
**deduction_p0015-pernr = TER_PERNR.
*deduction_p0015-lgart = 'M120'.
*deduction_p0015-begda = FUTURE_DEDUCTION-DEDUCATION_DATE.
*deduction_p0015-endda = FUTURE_DEDUCTION-DEDUCATION_DATE.
*deduction_p0015-BETRG = future_deduction-future_payment_amount.
*deduction_p0015-WAERS = 'SGD'.
*deduction_p0015-ZUORD = TER_PERNR.
*append deduction_p0015.
*endloop.
Create a deduction wage type in 0015 for the employee
break-point.
CLEAR RETURN.
CALL FUNCTION 'BAPI_EMPLOYEET_ENQUEUE'
EXPORTING
NUMBER = REF_PERNR
VALIDITYBEGIN = '18000101'
IMPORTING
RETURN = return
if not return is initial.
message E000(000) with
'Referred Employee could not be locked for referal payment deducation,
please try after some time'.
endif.
CALL FUNCTION 'HR_INFOTYPE_OPERATION'
EXPORTING
INFTY = '0015'
NUMBER = REF_PERNR
SUBTYPE = 'M120'
OBJECTID =
LOCKINDICATOR =
VALIDITYEND = SY-DATUM
VALIDITYBEGIN = SY-DATUM
RECORDNUMBER =
RECORD = deduction_p0015
OPERATION = 'COPY'
TCLAS = 'A'
DIALOG_MODE = '2'
NOCOMMIT =
VIEW_IDENTIFIER =
SECONDARY_RECORD =
IMPORTING
RETURN = return
KEY = key
break-point.
COMMIT WORK.
if not return is initial.
*return-TYPE
*ID
*NUMBER
*MESSAGE
message I000(000) with return-MESSAGE.
endif.
CALL FUNCTION 'BAPI_EMPLOYEET_DEQUEUE'
EXPORTING
NUMBER = REF_PERNR
VALIDITYBEGIN = '18000101'
IMPORTING
RETURN = return
xxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxx
Thanks and regards
-Senthil Bala
Message was edited by: senthil balaHi Senthil
Why at all U want a subroutine to create a record in IT0015 through Dynamic action.There are some standard codes available to update infotypes.
Let me give U an example
14 9CON BETRG 4 2 I INS,0015 This will create a record in IT0015 when IT0014 is updated with Wagetype 9CON
14 9CON BETRG 4 3 W P0015-LGART='5400' Set wagetype for IT0015(Here U can use a subroutine call to set the wagetype)
14 9CON BETRG 4 4 W P0015-BETRG=P0014-BETRG set amount for IT0015(Here U can use a subroutine call to get the amount)
14 9CON BETRG 4 5 W P0015-BEGDA=P0014-ENDDA set the dates(Here U can use a subroutine call to set the dates)
Hope this will help U.
Please award points if helpful -
Dynamic Action in CKE Editor / rich text
Dear fellow developers,
I created some dynamic actions in Apex 4.1.1, which allow me to create function keys in my application.
For example on "key-down F10" a modal dialog opens or upon hitting "F11" the user is redirected.
While this works as long as my Selection Type is DOM object "document", the actions are not fired once I enter the rich text editor (CKE) and it has received focus.
Have you got an idea how to solve this problem?
Creating an identical dynamic action and setting the Selection Type to jQuery Selector #cke_2 is to no avail.
Many thanks,
SebastianNo one having a hint?
It is obviously due to the fact that the ckeditor is embedded in an iframe, which I don't have a selector for.
I was able to add an id "#ckeditor" to the body of the iframe content but the usage of it fails.
Maybe some code will illustrate it a little better:
<span id="cke_P8_STR_BEARBEITUNG" class="cke_skin_kama cke_2 cke_editor_P8_STR_BEARBEITUNG" lang="de" style="width: 748px;" aria-labelledby="cke_P8_STR_BEARBEITUNG_arialbl" role="application" title=" " dir="ltr">
<span id="cke_P8_STR_BEARBEITUNG_arialbl" class="cke_voice_label">WYSIWYG-Editor</span>
<span class="cke_browser_gecko" role="presentation">
<span class="cke_wrapper cke_ltr" role="presentation">
<table class="cke_editor" cellspacing="0" cellpadding="0" border="0" role="presentation">
<tbody>
<tr role="presentation" style="-moz-user-select: none;">
<tr role="presentation">
<td id="cke_contents_P8_STR_BEARBEITUNG" class="cke_contents" role="presentation" style="height:100px">
<iframe frameborder="0" allowtransparency="true" tabindex="0" src="" title="WYSIWYG-Editor, P8_STR_BEARBEITUNG, drücken Sie ALT 0 für Hilfe." style="width:100%;height:100%">
<html lang="de" dir="ltr">
<head>
<body id="ckeditor" class="ckeditor cke_show_borders" contenteditable="true" spellcheck="true">
</html>
</iframe>
</td>
</tr>
<tr role="presentation" style="-moz-user-select: none;">
</tbody>
</table>
</span>Edited by: skahlert on 13.04.2012 10:53
Maybe you are looking for
-
I am not able to access empty paragraphs
I have problem in VBScript with accessing paragraphs with no contents inside of table cells. Here is a snippet of my code (Row is the table row I am working on): For Each Cell in Row.Cells For Each Paragraph In Cell.Paragraphs ' Do something
-
Alt+Scroll do not work since updated to firefox 17.0
Usually I use Alt+mouse scroll to scroll one line in firefox, but since updated to firefox 17.0, it do not work anymore, even in safety mode.
-
As it states here, War Thunder is available for Linux but not yet available on Steam. I've downloaded and installed. The updater performed flawlessly and launched showing the login screen. Upon logging in and going to the load screen, the game immedi
-
Font Being Stretched in 1080p30 Timeline...
I'm encountering an issue I've never seen before. I have a 1080p30 HDV project with font in it in a few spots. In the canvas the font looks completely fine. When I export my video using compressor for 1280x720 it stretches the font tall and skinny. I
-
Best compressor settings for web videos shot on canon 7d?
Hello, I've started shooting video on the Canon 7d. I usually compress my videos for youtube as MP4 at 300 Kbps. However my last video had a presenter with background music track added. When I did my first export to compressor without the music ba