Handle event of a script provider is called twice
Hi
I have implemented a script provider in my plugin who is called from a web application via JavaScript. This web application call the script only one time, but the HandleEvent in my plugin is called twice!
Any ideas what could be the reason?
Thanks for any hint
Hans
Trivial case: The first is the getter to retrieve your object from its parent.
Solution: dispatch on the given scriptID.
If you got that covered, you could still be targeting multiple objects.
// this will iterate all items
app.whateverCollection.everyItem().doSomething();
Dirk
Similar Messages
-
View - controller - do handle event
Hello Experts!!
with the "bookstore"-tutorial as an example I am on the way to create almost the same BSP...
a default.htm (called by his controller default.do) calls two views more (top.htm and login.htm) via <bsp:call... />.
In top.htm are some buttons for some actions and to logoff.
In login.htm the user has to login (... what else he should do there...).
All is nice displayed but after pressing the login-button in login.htm the method "do handle event" in the controller class is not called.
Finally the browser shows me "done" and I am somewhere in the Nirvana. Who can help me escaping from there??
Thanks
BeatHi Kohler,
Did you use the button which is provided in de sample code when you create a new view?
This button has no id property and will hence not launch do_handle_event. If you give your button an id the do_hande_event will be called. -
Hi!
I would like to know which one of the following is the best way to handle events in Swing application.
Method 1
Write annonymus inner classes in the same class
Method 2
=======
Write a seperate class which extends the adapter class of the event handling and create an object of that in the main class and assign it to the components with addActionHandler() method.
I am trying to use the second one and I have the following design issue.
I have a class frmMain.java in which I have a frame and to that frame I am adding a panel which consists of 'N' No. of components.
I want to make this panel added to the frame when I click on a menu item (login) and want to remove the panel from frame when I click on a menu item(logout).
I have a main class called Application.java where I create the object of my frame(frmMain.java).
Thanks in advance,
AV1. Your JFrame is now subject to receive action events from anywhere. You will have to be more careful that you respond only to the right events.
2. If you have a lot of possible consequences to an event(for example, based on button pressed), you'll need a long if...then...else statement to determine what to do based on the source of the event.
3. With individual ActionListener classes, it's easier to add the same listener to multiple components and no need to worry about source.
4. Kind of the same thing: With individual classes, the event and its consequences are so tightly coupled.
End preaching....basically, my style boils down to what I call the tool set vs Swiss army knife rule. Java seems designed around the concept of a large number of specific purpose classes vs a smaller number of multi purpose classes and I think its a design methodology that makes sense, because I believe strongly in functional isolation in my code. -
How can I exit my UNIX script when my PLSQL script in it calls an error?
hello.
I hope someone can help with my error handling and exiting-in-the-right-place problem.
I have several PLSQL scripts that are called from a UNIX script to insert/update employee records in ORACLE Financials.
At the end of the UNIX script, depending on whether an entry has been created in the errors table should depend on whether the UNIX script stops or not. Trouble is, its stopping too early everytime even though the the record has been inserted correctly. Please can someone either advise on what I'm doing wrong or suggest an alternative..
This the end of the PLSQL script that inserts the entry into errors table if theres an error..
WHEN OTHERS THEN ROLLBACK;
err_msg := SUBSTR (SQLERRM, 1, 350);
insert into kpmg_error_check (concurrent_id,module,narrative,status,creation_date,created_by)
values(0,'TEMPLOYEE_DTLS.sql',err_msg,'ERROR',SYSDATE,'Feldman');
commit; This is the end of the UNIX script that looks at the table..
echo " "
echo "**** `date +%H:%M:%S` - Checking if TEMPLOYEE_DTLS.sql ran OK"
error_check=`sqlplus -s $user_id @$SU_TOP/sql/SUTEMPCHK.sql 1`
if `echo $error_check` -ge 1
then
# Load failed
echo " "
echo "**** `date +%H:%M:%S` - TEMPLOYEE_DTLS has failed - check table KPMG_ERROR_CHECK for details.."
exit 1
else
# Load finished OK, if input data file exists, move and rename it
echo " "
echo "**** `date +%H:%M:%S` - TEMPLOYEE_DTLS has finished OK.."
fiThis is the entire SUTEMPCHK.sql script that the UNIX script uses..
-- Check if any errors have occurred
SELECT count(1) FROM kpmg_error_check WHERE concurrent_id = &1
EXITIs it that the above is always returning '1' and so always thinks theres an entry in the errors table?
Is there an easier way?
many thanks,
StevenHi,
You have to iterate through all pages.marginPreferences:
var
myDocument = app.activeDocument,
allPagesMaPref = myDocument.pages.everyItem().marginPreferences,
curPageMaPref;
while ( curPageMaPref = allPagesMaPref.pop() )
with (curPageMaPref) {
columnCount = 1;
//columnGutter can be a number or a measurement string.
columnGutter = "0";
bottom = "0"
//When document.documentPreferences.facingPages == true,
//"left" means inside; "right" means outside.
left = "40"
right = "0"
top = "0"
inside = "0"
Jarek -
hi,
Hi,
I am displaying some fields from VBAP in ALV gid and have give drop down check box to storage location making it editable so if the user changes Storage location of
some entries and clicks SAVE button, when we click save button i need to capture all the rows that were been changed and update VA02 using these records through bapi.
but iam not able to capture this SAVE event but iam able to capture Enter and cursor event.
i have written following code for this
LOCAL CLASSES: Definition
class lcl_event_receiver: local class to handle event CLASS lcl_event_receiver DEFINITION.
PUBLIC SECTION.
METHODS:
handle_data_changed
FOR EVENT data_changed OF cl_gui_alv_grid
IMPORTING er_data_changed.
PRIVATE SECTION.
ENDCLASS. "lcl_event_receiver DEFINITION
LOCAL CLASSES: Implementation
class lcl_event_receiver (Implementation)
CLASS lcl_event_receiver IMPLEMENTATION.
METHOD handle_data_changed.
DATA: l_error_in_data TYPE c.
PERFORM handle_data_changed USING er_data_changed l_error_in_data.
*§7.Display application log if an error has occured.
IF l_error_in_data EQ 'X'.
CALL METHOD er_data_changed->display_protocol.
ENDIF.
ENDMETHOD. "handle_data_changed
ENDCLASS. "lcl_event_receiver IMPLEMENTATION
*& Form handle_data_changed
Identify columns which were changed and check input
-->P_ER_DATA_CHANGED text
FORM handle_data_changed USING p_er_data_changed
TYPE REF TO cl_alv_changed_data_protocol
p_error_in_data TYPE c.
DATA : lw_mod_cell TYPE lvc_s_modi ,
l_value TYPE lvc_value ,
l_lgort TYPE lgort_d.
SORT p_er_data_changed->mt_mod_cells BY row_id .
LOOP AT p_er_data_changed->mt_mod_cells INTO lw_mod_cell
WHERE fieldname = 'LGORT'.
CALL METHOD p_er_data_changed->get_cell_value
EXPORTING
i_row_id = lw_mod_cell-row_id
i_fieldname = 'LGORT'
IMPORTING
e_value = l_value.
SELECT SINGLE lgort FROM t001l INTO l_lgort WHERE werks = p_werks
AND lgort = l_value.
IF sy-subrc NE 0.
In case of error, create a protocol entry in the *application log.
CALL METHOD p_er_data_changed->add_protocol_entry
EXPORTING
i_msgid = '0K'
i_msgno = '000'
i_msgty = 'E'
i_msgv1 = text-003
i_msgv2 = l_value
i_msgv3 = text-004
i_fieldname = lw_mod_cell-fieldname
i_row_id = lw_mod_cell-row_id.
p_error_in_data = 'X'.
EXIT.
ELSE.
*§5b.If the value is valid change values of
cells.
CALL METHOD p_er_data_changed->modify_cell
EXPORTING
i_row_id = lw_mod_cell-row_id
i_fieldname = lw_mod_cell-fieldname
i_value = l_value.
READ TABLE t_list1 INTO w_list1 INDEX lw_mod_cell-row_id.
IF sy-subrc EQ 0.
*comparing old value with the changed value
IF w_list1-lgort <> l_value.
MOVE: w_list1-werks TO w_list3-werks,
w_list1-matnr TO w_list3-matnr,
w_list1-arktx TO w_list3-arktx,
w_list1-vbeln TO w_list3-vbeln,
w_list1-posnr TO w_list3-posnr,
w_list1-pstyv TO w_list3-pstyv,
w_list1-vstel TO w_list3-vstel,
w_list1-auart TO w_list3-auart,
w_list1-kwmeng TO w_list3-kwmeng,
w_list1-vrkme TO w_list3-vrkme,
w_list1-mbdat TO w_list3-mbdat,
l_value TO w_list3-lgort.
APPEND w_list3 TO t_list3.
*t_list3 will contain all the records that are changed
CLEAR w_list3.
ENDIF.
ENDIF.
ENDIF.
ENDLOOP.
*& Module STATUS_0100 OUTPUT
text
MODULE status_0100 OUTPUT.
SET PF-STATUS 'MAIN100'.
SET TITLEBAR 'MAIN100'.
IF go_custom_container IS INITIAL.
create a custom container control for our ALV Control
CREATE OBJECT go_custom_container
EXPORTING
container_name = g_cont_on_main
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
create_error = 3
lifetime_error = 4
lifetime_dynpro_dynpro_link = 5.
IF sy-subrc NE 0.
Display error message.
CALL FUNCTION 'POPUP_TO_INFORM'
EXPORTING
titel = sy-repid
txt2 = sy-subrc
txt1 = 'The control could not be created'.
ENDIF.
create an instance of alv control
CREATE OBJECT go_grid
EXPORTING
i_parent = go_custom_container.
*If display or change radio button is cheked
IF ( p_chng = 'X' OR p_disp = 'X' ) .
Set a titlebar for the grid control
g_layout-grid_title = 'Sales Orders'.
g_layout-excp_fname = 'TRAFFIC_LIGHT'.
Define a drop down table.
PERFORM set_drdn_table.
CALL METHOD go_grid->set_table_for_first_display
EXPORTING
is_layout = g_layout
CHANGING
it_outtab = t_list1
it_fieldcatalog = t_fieldcat1
EXCEPTIONS
invalid_parameter_combination = 1
program_error = 2
too_many_lines = 3
OTHERS = 4.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDIF.
register ENTER and CURSOR to raise event DATA_CHANGED.
(Per default the user may check data by using the check icon).
CALL METHOD go_grid->register_edit_event
EXPORTING
i_event_id = cl_gui_alv_grid=>mc_evt_enter.
CALL METHOD go_grid->register_edit_event
EXPORTING
i_event_id = cl_gui_alv_grid=>mc_evt_modified.
CREATE OBJECT g_event_receiver.
SET HANDLER g_event_receiver->handle_double_click FOR go_grid.
SET HANDLER g_event_receiver->handle_hotspot_click FOR go_grid .
SET HANDLER g_event_receiver->handle_data_changed FOR go_grid .
ENDIF.
CALL METHOD cl_gui_control=>set_focus
EXPORTING
control = go_grid.
ENDMODULE. " STATUS_0100 OUTPUT
*& Module USER_COMMAND_0100 INPUT
text
MODULE user_command_0100 INPUT.
ok_code = sy-ucomm.
CASE ok_code.
WHEN 'EXIT'.
PERFORM exit_program.
WHEN 'SAVE'.
PERFORM update_sales_order using t_list3[].
endcase.
Thanks in Advance,
SiriHi Sirisha,
You can get the event code for Enter because you have regitered in the event reciever .
But for the SAVE you will have to set in the PF-status of the screen and not the ALV-grid save .
Please award if helpful. -
Handling events in BSP application using WML tag Extensions
Hello Everyone ,
We are developing a BSP applications for Mobile handheld using WML tag library. I am looking for some code samples to know how we can handle evevents inside the BSP using the WML tag library.
Can any one of you plesae help us by placing a code snippet for handling onInputprocessing() methods (BSP Using WML Tag extensions).
I mean to ask how we can handle events inside the BSP applications that uses the WML tag library.
I know about how to handle BSP events using HTMLB and XHTMLB tags frameworks.
Thanks for your help in advance.
Thanks,
GreetsonIs this WML tag library something that is supplied by SAP u2013 as a BSP Extension Element? Or are you just using WML tags directly in your layout? I can tell you in general that if you want to generate HTMLB events from regular HTML code you can generate the JavaScript calls using the htmlbEvent tag of the BSP extension library. However your tags have to be running within an HTMLB Content tag for this to work.
If you want to work totally without HTMLB then you need to use the simple HTTP Post but format the input name as OnInputProcessing(<function code>) like this:
<input type="submit" name="OnInputProcessing(ok)" value="OK">
This will cause the OnInputProcessing event handler to trigger without needing any HTMLB tags (this is how it was done in WebAS 6.10 before we BSP Extensions). -
Handling Events in FXML-includes
Hi!
I am using FXML to define the GUI of my application. As the GUI is pretty complex with many regions and items in it, I have created a separate FXML file for each main region to reduce the overall complexity of maintaining the design.
My parent FXML file, called "Frame.xml", includes those "sub-regional" FXML-definitions using "<fx:include source="RegionXYZ.fxml" />".
What I am now stucked with is, how to handle events in this approach...
Questions:
a) Can I add a separate controller in each of the "sub-regional" FXML-files, like "fx:controller="FXMLRegionXYZController"?
b) Or must I, or even should I, use only a single controller inside the main FXML? Will this single controller be able to recognize and handle actions/events in the included FXML-definitions as well?
c) What is the best approach in general for this?
Thanks,
JörnHi!
I am using FXML to define the GUI of my application. As the GUI is pretty complex with many regions and items in it, I have created a separate FXML file for each main region to reduce the overall complexity of maintaining the design.
My parent FXML file, called "Frame.xml", includes those "sub-regional" FXML-definitions using "<fx:include source="RegionXYZ.fxml" />".
What I am now stucked with is, how to handle events in this approach...
Questions:
a) Can I add a separate controller in each of the "sub-regional" FXML-files, like "fx:controller="FXMLRegionXYZController"?
- Yes, you can
b) Or must I, or even should I, use only a single controller inside the main FXML? Will this single controller be able to recognize and handle actions/events in the included FXML-definitions as well?
- if you could control everything from a single controller but you option (A) is much better
c) What is the best approach in general for this?
- Option (a)
Thanks,
Jörn -
UCCX script and abandoned calls
Hi Guys
I got question about that UCCX script and abandoned calls , so currently we had 4 different script for support the call follow .
So the Main script is just AA let the people select menu 1 , 2 ,3 then go to different queue , after select 1 (for example) then call-direct to second script trigger number and coming into the queue .
Unfortunately , the system counter the action to be an Abandoned call , I already open the case about this issue and the TAC did not found any configure issue on UCCX , from the log we can seem all the REDIRECT,lrd=5000 is abandoned call .
23811205: Apr 28 13:01:44.257 GMT+800 %MIVR-SS_TEL-7-UNK:Call.received() JTAPICallContact[id=37148,implId=151183/1,state=STATE_RECEIVED_IDX,inbound=true,App name=APP0,task=null,session=null,seq num=-1,cn=5000,dn=5000,cgn=0405554590,ani=null,dnis=null,clid=null,atype=DIRECT,lrd=null,ocn=5000,route=RP[num=5000],TP=null
23811420: Apr 28 13:02:00.491 GMT+800 %MIVR-SS_TEL-7-UNK:Call.transferring(5030) JTAPICallContact[id=37148,implId=151183/1,state=STATE_ANSWERED_IDX,inbound=true,App name=APP0,task=48000040709,session=36000027315,seq num=0,cn=5000,dn=5000,cgn=0405554590,ani=null,dnis=null,clid=null,atype=DIRECT,lrd=null,ocn=5000,route=RP[num=5000],TP=5007]
23811424: Apr 28 13:02:00.491 GMT+800 %MIVR-SS_TEL-7-UNK:Call.abandoned() - transferring JTAPICallContact[id=37148,implId=151183/1,state=STATE_ANSWERED_IDX,inbound=true,App name=APP0,task=48000040709,session=36000027315,seq num=0,cn=5000,dn=5000,cgn=0405554590,ani=null,dnis=null,clid=null,atype=DIRECT,lrd=null,ocn=5000,route=RP[num=5000],TP=5007]
23818414: Apr 28 13:09:46.095 GMT+800 %MIVR-SS_TEL-7-UNK:Call.transferring(239) JTAPICallContact[id=37149,implId=151183/1,state=STATE_ANSWERED_IDX,inbound=true,App name=app2_Admin,task=48000040710,session=null,seq num=-1,cn=5030,dn=5030,cgn=0405554590,ani=null,dnis=null,clid=null,atype=REDIRECT,lrd=5000,ocn=5000,route=RP[num=5030],TP=5034]
23818421: Apr 28 13:09:46.095 GMT+800 %MIVR-SS_TEL-7-UNK:Call.abandoned() - transferring JTAPICallContact[id=37149,implId=151183/1,state=STATE_ANSWERED_IDX,inbound=true,App name=app2_Admin,task=48000040710,session=null,seq num=-1,cn=5030,dn=5030,cgn=0405554590,ani=null,dnis=null,clid=null,atype=REDIRECT,lrd=5000,ocn=5000,route=RP[num=5030],TP=5034]
Please give some advice about that and I am look forward to heard from you guys soon .
ThanksHi Jon
I was tested "Set Call Contact Info step to mark the call as handled" last night , but not working .
so in the get call contact info properties , I was used last Redirect number to nest trigger number .
but not working .
so have got any idea about that ?
thanks -
How to throw and handle event defined in component interface
Hi folks,
I have defined a component interface with an event 'open_info'
I have some sub components which are implementing that component interface. I also get the two events generated (the interface check box is not marked)
I use those sub components and try to handle the event. but unfortunately the event is not handled.
I'm not sure if I do everything right. I checked the interface checkbox at the events tab of the controller of the sub component. I then may handle the event in the embedding main component. but it appears to be a different event.
probably I eed to access the interface controller and throw the event there, but I don't know how.
I couldn't fnd documentation or wdr* components which deal with that issue. do you have any suggestions?
regards
stefanHi Stefan,
Do the following in the component being used:
say component name is ZCMP_01
go to COMPONENTCONTROLLER
Create an Event with necessary parameters if needed, say Event name is EVNT_01 and has an importing parameter, say PARAM_01 type char10,
Make sure you have set the interface check box. Now this event is available in the INTERFACECONTROLLER.
Say ZCMP_01 has a view with a button, on click of the button, call a method in the COMPONENTCONTROLLER.
Perform all the required operations, At the required point, fire EVNT_01
wd_this->fire_EVNT_01_evt(
PARAM_01 = 'sample' ).
Now the other component that has to use ZCMP_01, say ZCMP_02
In the component properties od ZCMP_02, add usage for ZCMP_01, say USG_CMP_01
Go to the view in ZCMP_02 where you wish to handle the event EVNT_01 of ZCMP_01,
Go to Methods tab, create an event hadler, say EVNT_01_HNDLR ... method type = Event Handler,
Event = EVNT_01, Controller = INTERFACECONTROLLER, Component Use, USG_CMP_01.
Now your event handler will have foll parametrs: WDEVENT .. type ref to CL_WD_CUSTOM_EVENT,
PARAM_01 type CHAR10
Handle the event as required.
Regards,
Reema. -
Hi all,
I am working on handling events in global classes.
but my event is not triggererd,i m not able to find where it's going wrong.
Below is my code.
Global Class:ZCL_TEST_EVENT
events :EXCEEDEDRANGE
methods:CHECKRANGE,DISPLAYVENDOR.
Checkrange is event handler for exceededrange.
below is the code for methods.
method checkrange.
write:/ 'Vendor not within the range'(001).
exit.
endmethod.
method displayvendor.
DATA : exlfa1 TYPE lfa1.
IF imlifnr NOT BETWEEN 1000 AND 2000.
RAISE EVENT exceededrange.
ENDIF.
SELECT SINGLE * FROM lfa1
INTO exlfa1
WHERE lifnr = imlifnr
IF sy-subrc = 0.
WRITE : / exlfa1-lifnr,exlfa1-name1.
ELSE.
WRITE : / 'No vendor found'(002).
ENDIF.
endmethod.
below is the report I developed.
REPORT ztest_113.
parameters :plifnr type lfa1-lifnr obligatory.
data : obj type ref to ZCL_TEST_EVENT.
START-OF-SELECTION.
CREATE OBJECT obj.
CALL METHOD obj->displayvendor
EXPORTING
imlifnr = plifnr
Please helpYes, you do need to write the SET HANDLER statement. As per your current design, you can set the event handler in your method CONSTRUCTOR. Like:
method constructor.
SET HANDLER me->CHECKRANGE FOR me.
endmethod.
Regards,
Naimesh Patel -
How to handle Events in OO abap.
Hii all as im new to SAP and ABAP , i want to know , what are events all about and how to handle events?
Like how to guide double click to call a transaction , or to create a hot sopt and then , calling the transaction...........
Please Help.Hi Chandan,
possibly you are not just new to ABAP but new to obeject oriented programming in general. In oo, you use events to trigger methods that are registered as 'listeners' for the event.
As I have no idea on your current knowledge, I don't know what I could recommend to start with.
My personal approach is first to have a task I want to complete and then find and understand the methods to get there.
Regards,
Clemens -
Triggering background job event from Unix script
Hi all,
I am having one question regarding triggering of background job in SAP using Events from Unix script. Is this possible? If so, can anyboy provide some sample code related to Unix script and how do we communicate to SAP from Unix system. Actually, here the backend of R/3 system is MSSQL. I am having a program in R/3 system which is scheduled as a background job based upon event trigger. I want to trigger that even from the unix script.
Appreciate for your help in advance.
Thanks,
Adithya KHi,
Check if this can help you
http://help.sap.com/saphelp_sm32/helpdata/en/fa/096e6b543b11d1898e0000e8322d00/content.htm
Regards,
Atish -
KeyUp Script Provided by Adobe Does Not Function. . .
Hi There,
I downloaded the KeyUp script provided by Adobe. The link to the script can be found in the help files for the Mac version of AE CS3. Essentially, the script is designed to allow users to change the shortcut key assignments in AE CS3. So, I was thrilled to learn about this since I have a new MacBook Pro, and the numeric keypad is. . . yes. . . gone!
In any case, I load up the script, and it gave me an error saying that I needed to enable the "Allow scripts to write files and access the network" General Preference. I did that, and the script executed superbly. I then reassigned the keyboard shortcuts and it updated fine. I changed the shortcut for RAM Preview (which is NumPad0 by default) to the "/" key. I restarted AE and sure enough the symbol next to the "RAM Preview" menu item was changed.
Here's the problem: when I press the "/" key on the keyboard, the "Composition" menu at the top does flash blue, but NOTHING happens! Has anybody out there used the KeyUp script with the Mac Version of AE CS3? If anybody can shed some light on this, that would be great.
Thanks,
Laz
PS. Here is the link to the KeyUp script for those of you who are interested:
http://www.adobe.com/go/learn_ae_jeffscriptswithkeyedupHi Jeff,
Thank you for responding. After tinkering some more, I found the reason my reassignment of the "/" was not working. It is because it is assigned to three other function in various window panes (i.e. composition, layer, and flowchart), so I had to simply unassign the "/" key from those shortcuts to make the RAM Preview execute.
While I know I have another thread going on about this question, I was curious to know if you had any knowledge as to why xGestures on OSX Leopard does not work with AE. It works great with Photoshop, but am curious if AE captures mouse events with different methods than AE. I'd really like to be able to use gestures with AE as I do on my Windows box.
Thanks again!
-Laz -
How to link an event and a script ?
Hello !
This event manager is not easy to deal with !
I need to link several events to a script by script.
For this command by hand, the script listener says :
// =======================================================
var idAdobeScriptAutomationScripts = stringIDToTypeID( "AdobeScriptAutomation Scripts" );
var desc56 = new ActionDescriptor();
var idjsNm = charIDToTypeID( "jsNm" );
desc56.putString( idjsNm, "Gestionnaire d'événements de script..." );
var idjsMs = charIDToTypeID( "jsMs" );
desc56.putString( idjsMs, "1" );
executeAction( idAdobeScriptAutomationScripts, desc56, DialogModes.NO );
(French version)
where the single parameter is "1".
It is the number assigned to the script file inside a .XML file in the "Adobe potoshop CS4 setting" folder in the user file space.
But where is the event parameter ? (it was "select" in this case)
In fact this command clandestinely links the event name and the file full path into the TW0001.DAT file inside th esame folder. Fine !
But modifying this file outside PS does not change the links into PS: so it is also recorded in memory.
How to synchronize this data by script ?
After many and many tests to guess how to program the event manager, I hope somebody knows this final answer.
Thank you for you help.Both the Script Event Manager and app.notifiers.add require the full path to a javascript file and don't accept arguments for the script. I am not sure what you are trying to do. You could have the script read the needed arguments from somewhere like an text or xml file or even CustomOptions.
If you want the event to call one of several scripts depending on the arguments then after the argument is read you could have if or switch statements to eval the needed scripts. -
Run special script for abandon calls
Sample: If the call has been stopped at the initiative of the client after 40 seconds of stay of a call in system (that is the client looked forward to hearing more than 40 seconds, and has hanged up, without having waited)We can call any IVR/ICM the Script?
I'm with David on the first part: Your question is difficult to understand. I'll take a couple guesses at the answer you might be looking for. Please clarify if you still need help.
1) It IS possible to run further/additional scripts if a caller hangs up but this requires a good understanding of the scripting engine. You can use exception handling to recover from the caller abandoning and then move to another point in the script or call another script entirely. If you called another application and accompanying script (instead of calling a script as a sub flow) you would need to use a session to move useful variable data to the other application. Again, this is possible but you need to know CCX well before attempting this, in my opinion.
2) You could use the Get Reporting Statistic step to retrieve the estimated wait time for the CSQ prior to the caller abandoning. This would allow you to offer them other options. An example would be "If the estimated wait time is more than one minute, offer them an option to leave a voice mail." The estimated wait time statistic has some caveats though so I would recommend reading the documentation on it carefully first.
Maybe you are looking for
-
Sharing one iphoto library between 2 user accounts
Hi all, I know there are lots of questions on this, so thank you for your patience and assistance. I have spent so many hours on the phone to Apple care with no joy I made the jump to Mac from PC several months ago, and I really like it, except for t
-
How to get the selected rows & columns in the table?
hi everybody, In my application the table is kept inside the event structure.I select the cells in the table (using mouse) on running time.How to get the selected number of rows & columns in that table?
-
Display won't work in Classic! WHY?
I tried starting OS 9 Classic on my G4 using the clear plastic Apple display. The screen was Black. I finally got my screen back up had to kook up a different monitor to fix things. For the longest i just haven't used OS 9 BUT I need to open some old
-
CAN I UPGRADE MY MACBOOK PRO 2012 2.3 GHZ V RAM
HELLO I RECENTLY BOUGHT A MACBOOK PRO MID 2012 (NON RETINA) AND WOULD LIKE TO KNOW CANN I UPGRADDE FROM MY STOCK 512 GB TO 1GB OF VRAM I ALSO HEARD THAT IF YOU UPGRADE THE RAM THE VRAM WILL ALSO BE UPGRADED IS IT TRUE PLEASE LET ME KNOW
-
Creation of Dynamic Roadmaps???
Hi, I am a rookie in webdynpro and i want to know how to create a dynamic roadmap?? Kindly help me out... A detailed explanation would be more than helpful!!! Thanks... Chaitanya