How can I trigger an event handler, based on a history dropdown select (onclick)
Hi
Firefox remembers user names and email addresses previously entered in text input fields. I wish to trigger an event-handler when an item has been selected.
Best regards, Jens Larsen
I figured out part of this. I had the event listener
listening to the spry select id, I set an id on the select and the
input lines and it's working correctly. Now I just have to push the
changes to the database.
Similar Messages
-
How can I trigger an event from an ABAP Program
Hi everyone,
I have a requirement, where I have to create an ABAP program, that has to execute (trigger) an event which belongs to a Process Chain. when I run the program, the Process Chain has to run.
So, how can I do it?
Thanks for your help, FedericoHI ,
The program can call function module BP_EVENT_RAISE to raise the event. you can create vent in sm64 and sm62 .There you give the parameter of the event same as what you will define in the event of start variant of your process chian ..
Regards,
shikha -
How can I add new event handler in BC4J event flow in UIX?
How can I declarativly add extension to existing event handleres in BC4J+UIX page?
I generate through wizards UIX+BC4J pages and I want extend some actions in eventhandlers section. Can I do it in some way like <event name=".." method=".." class=".."> like in any regular event handlers?you can use the <method ..> event handler inside the BC4J event handlers, like:
<bc4j:findRootAppModule name="EmpAppModule" >
<bc4j:findViewObject name="CurrentDeptEmpsVO" >
<method class="myPackage.myClass" method="doOperation"/>
</bc4j:findViewObject>
</bc4j:findRootAppModule> -
How can I trigger an onchange event for hidden or never displayed item
hi -- I have an item that I don't want displayed on my page -- more info than the user wants or needs; call it B. It needs to be
set by an onchange event from a visible item (A); then, the change of B triggers on onchange to set another item (visible) -- C.
When B is visible on the page, it all works. If I make it hidden or conditionally never displayed, it doesn't work. From the looks of
it, B never gets changed.
How can I trigger this onchange event (from B to set C) with B not visible?
Thanks,
Carolhi Varad -- Probably more info than you want... but here's the whole chain of events.
Hope it answers your question.
C
**** 1
In A's html form element attributes (simplified; I took out the irrelevant call to jsLookupValue that sets another item).
onchange='jsLookupValue($v("P142_SITE_ID"),"site_id","P142_OBJECTTYPE_ID","objecttype_id","hdb_site_syn");'
**** 2
jsLookupValue is the following.
The statement that actually sets the value of B is: $s(dest_item_name, jsonobj.row[0].RETURN_VAL);
function jsLookupValue(source_item_value, source_column_name, dest_item_name, dest_column_name, lookup_table_name){
// Continue only if there are valid values
if (valueOf(source_column_name)&&valueOf(dest_item_name)&&valueOf(dest_column_name)&&valueOf(lookup_table_name)){
//Check to see if the source_item_value is null (either all spaces or empty
//If it is, set the dest item to null, but only if it's not already --
//otherwise we get into a loop.
source_item_value = trim(source_item_value);
dest_item_value = trim($v(dest_item_name));
if (source_item_value.length==0) {
if (dest_item_value.length != 0) {
$s(dest_item_name, null);
}else{
//This is the AJAX call to the Application Process from step 1
ajaxRequest = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=LOOKUP_VALUE',0);
//Here we are adding that x01 parameter we use in the app process with the value of the objecttype_name field
ajaxRequest.addParam('x01', source_item_value);
ajaxRequest.addParam('x02', source_column_name);
ajaxRequest.addParam('x03', dest_item_name);
ajaxRequest.addParam('x04', dest_column_name);
ajaxRequest.addParam('x05', lookup_table_name);
//Now do the actual AJAX call and put the result in ajaxResponse
ajaxResponse = ajaxRequest.get();
//Check if there is a response
if (ajaxResponse) {
//We need to format the JSON return string and put it in a JSON object
// the formatting is done by a function in the external JSON library
// the jsonobj can be used to retrieve the data returned by the App process
var jsonobj= ajaxResponse.parseJSON();
// And finally, we set the DNAME item with the value of the jsonobj.DNAME
// an array was created in the object with the name row, so that is why you have to include row[0] to retrieve the data
if (jsonobj.row[0].RETURN_VAL != $v(dest_item_name)) {
$s(dest_item_name, jsonobj.row[0].RETURN_VAL);
}else{
} //not setting
}else{
alert('No response from app process');
} //no response
} //no source item value
} //no bad nulls
} //function
**** 3
I won't bore you with app process LOOKUP_VALUE. It just builds an sql query that gets the value for B, aliased to RETURN_VAL. -
How can we trigger an IDOC based on Orders creation.
Hiii...experts,
After searching alot in SDN i am taking this very commonly asked to experts in the hope of a better understanding.
If i create a sales order means.. i want to trigger a IDOC based on certain Condition on ORDER data .. how can we do this..
when ever i'm creating a sales order it should be automatically trigger a IDOC , Because when ever sales ordre was created in R/3 system it should be transferred to some destination...
And pls tell me about the reports that does the job of collecting required data from the sales order and converts it into a IDOC.
so, how can we trigger an IDOC based on Orders creation..
pls help.
Ram.Use IDOC_OUTPUT_ORDERS for creating IDOC
you need to maintain condition records & output type
<REMOVED BY MODERATOR>
Edited by: Alvaro Tejada Galindo on Apr 10, 2008 4:18 PM -
How can i trigger workflow when particular event happens in webdynpro
how can i trigger workflow when particular event happens in webdynpro
hi,
To trigger workflow , use the fm : 'SAP_WAPI_START_WORKFLOW'
Refer this thread for similar requirment : Workflow in WebDynpro
Blog : http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417500)ID1564403950DB00699140435432809306End?blog=/pub/wlg/2778 -
How do I create an Event Handler for an Execute SQL Task in SSIS if its result set is empty
So the precedence on my entire package executing is based on my first SELECT of my Table and an updatable column. If that SELECT results in an empty result set, how do I create an Event Handler to handle an empty result set?
A Newbie to SSIS.
I appreciate your review and am hopeful for a reply.
PSULionRPDepends upon what you want to do in the eventhandler. this is what you can do
Store the result set from the Select to a user variable.
Pass this user variable to a Script task.
In the Script task do whatever you want to do including failing the package this can be done by failing the script task, which in turns fails the package. something like
Dts.TaskResult = Dts.Results.Failure
Abhinav http://bishtabhinav.wordpress.com/ -
Can we apply an event handler only for a custom request in oim 11G?
Hi,
We would like to create a custom request for user creation, modification etc.
I saw that event handlers allow to add business rules by running java code during differents steps of processes.
I would like to know if we can trigger an event handler on a specific request and not on all user CREATION, UPDATE etc.
For example, we would like to have differents creation requests and a differents event handler on each request.
And can we add "logical" input on request form and read them in event handler?
For example, 3 inputs: day, month and year on the form which fill one user attribute "end contract date".
Regards,
Pierrethank you Akshat,
I saw part 19 in the developper's guide. If I understand, I can change the default CreateUserRequestData to define ALL form components that will be used in my differents user creation request templates.
I can use prepopulation adapter to pre populate field with java code.
I can use the plug-in point oracle.iam.request.plugins.StatusChangeEvent to run custom java code.
But they don't mention where you can run java code for a specific creation template named "MyUserCreationTemplate1" and other java code for an other specific creation tempalate" MyUserCreationTemplate2".
That makes me think we must retrieve the template name in java code and execute the appropriate business logic.
if request name==MyUserCreationTemplate1
Edited by: user1214565 on 31 mai 2011 07:42 -
How can i trigger the workflow from REPORT
hi,
my requirement is, whenever Z... Report Is generated there is Icon called print. the write the code for printing icon. if printing Icon fails the workflow will be trigger.
how can i trigger this from report. and i send attachent of report with mail to next person to sap inbox.
pls let me know.
pls give any documentation if you have.
thanks & Regards
Sankar.Hi,
Workflow container
swc_container lt_container.
swc_create_container lt_container.
swc_set_table lt_container '<cont_name>' lit_int_tab.
CALL FUNCTION 'SWE_EVENT_CREATE'
EXPORTING
objtype = lc_objtyp
objkey = lv_objkey
event = lc_event_name
IMPORTING
event_id = lv_eventid
TABLES
event_container = lt_container
EXCEPTIONS
objtype_not_found = 1
OTHERS = 2.
IF sy-subrc <> 0.
yv_err_flg = gc_true.
EXIT.
ENDIF.
Rgds,
Prakash -
How can we trigger the BAdI MD_PIR_FLEX_CONS in a MTS strategy
Hi All!
We have 5 Plants: 4 commercial plants and 1 production plant.
The sales orders are created in the commercial plants with a Make-to-order with consumption Requirements type; (Individual customer stock is an issue of the client).
Planned independent requirements are entered at finished product level with Consumption indicator for planning requirements 4 - Flexible Consumption for Different MRP Elements (BAdI); we create the purchase order (L - Subcontracting) for the finished product based on the PIR.
We need to do the consumption and reduction of planned independent requirements based on the purchase orders creation or in the Goods Receipt for the Outbound Delivery.
We implemented the BAdI MD_PIR_FLEX_CONS but the BAdI isnu2019t trigger for Planning strategy 10 or 40 but. The BAdi is trigger only when Requirements class of the Requirements type of independent requirements as value 2 (Consume planning w/o assembly) in the Consumption indicator and value 3 (Single-item planning) in the Planning Indicator.
How can we trigger the BAdI in a MTS strategy u2013 The BAdI documentation doesnu2019t mention that can only be used in MTO strategy?
Thanks.
Regards.
AdelinoHello Adelino
Strategy 10 is a special business case without consumption and only with the PIR reduction during the delivery (goods issue). You can see in customizing OPPS that both requirements KSL and LFS are set with "No consumption with customer requirements". In this case, BAdI MD_PIR_FLEX_CONS is not called.
The BAdI can be used with strategy 40, so please make sure that the consumption indicator of the PIR is set to '4 - Flexible Consumption for Different MRP Elements (BAdI)'.
BR
Caetano -
How do I disable an event handler?
The file below contains a canvas and a button on the canvas. There are two event handlers, one for the button and one for the canvas. How to I disable the event handler for the canvas when the button is clicked?
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="init()">
<mx:Script>
<![CDATA[
public function init():void{
canvas.addEventListener(MouseEvent.CLICK, handleClick)
button.addEventListener(MouseEvent.CLICK, handleButtonClick)
public function handleClick(e:Event):void{
trace("Application clicked")
public function handleButtonClick(e:Event):void{
trace("Button clicked")
]]>
</mx:Script>
<mx:Canvas id="canvas" x="108" y="82" width="200" height="200" backgroundColor="0xff0000">
<mx:Button id="button" x="10" y="168" label="Button" mouseChildren="false"/>
</mx:Canvas>
</mx:Application>u can do this when user clicks on any of the canvas or button, just check it currentTarget and then work with ur functions accordingly
-
Hello Expert,
We have a lot of process chain which was trigger by one event with different variant. However, since the last two days, the process chain did not run. it seems the event was not triggered.
How can we trace the event? I mean, if it is triggered or not within one day.
As I checked the process chain, some of the process chain was successfully triggered by the same event. it is really weird...
Thanks
XY
Edited by: xy chen on Nov 6, 2008 3:24 AM
Edited by: xy chen on Nov 6, 2008 3:30 AMHi......
Copy the event...........then go to SE16 >> RSEVENTHEAD............there in the event field give the event name.........then execute............from there you will get the event collector name................
If you don't get it here then search in table RSEVENTCHAIN.........
Copy the event and go to RSA1OLD(if you are in 7.0)............otherwise go to RSA1...............from there go to the Event collector........give the event collector name and check whether it registered or not............if registered when last it was registered.............if you are unable to find this event in these two chains............then go SM37................from there choose the event..........and in the Job field write BI_PROCESS_TRIGGER..............from there check when this job last triggered for this event.............
Hope this helps.........
Regards,
Debjani........
Edited by: Debjani Mukherjee on Nov 6, 2008 4:44 AM -
How can I set an event to repeat on a week day rather than a numerical day of each month?
How can I set an event to repeat on a week day rather than a numerical day of each month? I see an option at the bottom of the repeat window .... but I cannot use it. Actually, when I try it freezes up my Calendar.
Lorrene Baum DavisThese scrrenshots are from Snow Leopard - I would think that Lion wouldn't be too much different.
-
How can i clear all events in ical
how can i clear all events in ical
Try typing "." without the exclamation points in the iCal search window. Then simply highlight all the entries > Edit/Delete
-
How can I move an event in my calendar to my "completed" calendar without changing all the events in the series?
As Apple has yet to upgrade iCalendar so I can check off my events as I complete them (no, I do not want to use a task list/reminder list), I want to be able to move my events to my "completed" events calendar as I complete them. The issue is that most of my events are repeating events, and it changes the entire series. How do I change only the event I clicked on using my iPhone?
ThanksIf you change anything in a repeating calendar entry it will give you the option of disconnecting it from the series. So may any random change, choose to not change the series.
Maybe you are looking for
-
Z97 Gaming AC - PCIE no longer detected
Hi When I first booted the machine all was well however when I came to reboot my machine for the first time it no longer sees I have a GPU and so switched to the Intel onboard 4600. At first I assumed the GPU had come lose or some BIOS setting needed
-
Somewhere the colors seem to get messed up. Viewing in LR and Photoshop the skin tones look pink but when viewing in windows photo gallery on computer or typepad site the skin tones are grey. I have LR and Photoshop set to ProPhoto rgb 16 bit resolut
-
Hi there Ver 10.6.8 on Intel iMac Your help please I want my Mov files to only open with QT7, so have gone through the only open with and put a tick in the box, but this only seems to apply to the one file, how can I make it apply to all MOV files. J
-
[solved] soa sample "End-2-end-105-PO-Processing" error
Hi,I do the sample step-by-step as End-2-end-105-PO-Processing(chapter 2),after i deploy to integration oc4j 11g standalone and test "validationForCC" ,the error displayed as bellow: Oracle TopLink - 11g Technology Preview 3 (11.1.1.0.0) (Build 07120
-
I have macbook pro version 10.9.1 with 2.3 GHz intel Core i5 and 4 GB memory
Hello Can I add more memory to my macbook pro? What do I need to do?