Event handling in Network UI element in Webdynpro
Hi ,
I am developing a hierarchial graph using Network UI element.I want to incorporate event handling so that the graph will respond to user actions like on double clicking a node an URL will be opened.I can notproceed with the event handling.
Can anyone tell me the procedure to do this from webdynpro java.
Regards
Nayeem
Hi Nayeem,
The Network UI element has lots of events defined for it which can be handled to get the desired functionality.
Go to the View in which you have added the Network Element, select the Element and go to the
properties tab.
Under events , you can see a list of events defined for this UI element.
Select the event you wish to handle and press the Create button which gets visible once
an event say onNodeSelected is selected
You can then give a name to the action say UserClicked and save it .
In the properties tab of the UI element , the action will be registed against the event .
Now select the event again and press the go button.
It will redirect you to the java editor of the view where in you can place your event handling logic.
Alternatively, if you have created the UI element dynamically then you can add the event to the UI element by using the following code
IWDNetwork network = (IWDNetwork)view.createElement(IWDNetwork.class);
network.setOnNodeSelected(/*Your Action handler already defined in the View*/);
Regards,
Ashish
Similar Messages
-
How to set event handler in af:inputText adf faces component.
Hi,
I am using ADF Faces components for my application.
I want to capture the onchange event of a text box on the server side.For this what should I do. How do I register an event handler for this.
In the documentation of the CoreTags of the ADF for onFocus it is stated as below.Will this help me in any manner ?
onfocus String the event handler for when the element receives focus.
Please help me.
Regards
UmaUma,
- set autosubmit to true
- set a value change listener in the managed bean
Frank -
Event handler elements inside of the array
I have an array of clusters, of which inside the cluster are buttons. I want to be able to tie an event handler to these buttons ( they would all handle the event the same, the only difference would be the index they were handling)
A while back a similiar problem was posted here:
http://forums.ni.com/t5/LabVIEW/Array-of-Clusters-with-Graph-Y-Scale-Change-Event/td-p/1194181/page/...
However, this solution did not appear to be able to deliver the index of which button in the array was pressed .. this is critical for my application. The button is basically an "edit' buttonw which allows the user to edit the elements of the cluster through a popup. Obviously I need to know which cluster the user intends to edit.nathand wrote:
One option: when the code starts, build an array of references to the edit buttons inside each cluster. Then, in the event case, search that array for the reference that triggered the event. The index at which the reference is found tells you which cluster to edit.
This might work, but it should be possible for the user to add/delete elements from the array so I would need to be able to do this even after program initialization.
Currently, I have just made dozen buttons alongside the array of clusters. But this workaround won't allow past a fixed number at program initialization. -
I'm doing a little edge project (now in beta version) for my girlfriend (she hates the code), with examples of the animate() method and other functions like setInteval(), but when I run I get the following error in Chrome console:
Javascript error in event handler! Event Type = element [edge.2.0.0.min.js:162]
But this library is global for all projects, how is possible that trigger an error?
Example here:
https://app.box.com/s/m7nof4al6597gfn47jlu
Thanks.you dont need to import java ease !!
it's already included in edge animate, remove that yepnope completely your problem will gone
Zaxist -
Control not going from Adobe Interactive form to ABAP WD Event handler
Hi
I am facing an issue with adobe interactive forms and WD ABAP integration.
The buttons in adobe interactive form when clicked is going round and round and the control is not going to the ABAP code(WD ABAP event handler code whatsoever). I have also set the debugger but the control is not moving to the ABAP code from the adobe interactive form.
Can anyone help me what can be the issue here and how can I resolve the same?
Thanks.
SidHi Babi,
In the adobe form layout library Use the Submit(which internally means submit to SAP) button from the Webdynpro Native category.
Only this button action can connect adobe to web dynpro.
Whenever we click on this particular button the event will be trigger in the ONsubmit event of interactive form UI element in the webdynpro.There we can write our abap code.Hope this will help you.
Regards,
Simi A M
Edited by: amsimi on Mar 22, 2011 11:37 AM -
Display icons in Network ui element
Hello everybody!
Im trying to display some hierarchies in a Network ui element. Generally, this works fine, but I'm not able to display icons with the elements inside the applet. The examples in the JNet/JGantt Developer Documentation use <icon/>-tags with the path to a gif file in the Type Repository section like this
<type name="SomeTypeName" inherits="SomeBaseTypeName">
<icon space="5">apps/orgchart/chief.gif</icon>
</type>
and the Type Repository documentation tells me to
Specify the relative address of the URL in relation to the code base of JNet.jar
(a file in your own JAR. file: apps/slm/icon.gif, for example). If
the relative path starts with apps, JNet automatically adds the
missing com/sap/jnet. We recommend that you use the relative path
wherever possible, because you can store the icon graphics in the same directory
in Perforce as the type repository.
But how would I determine the relative address of my icon files stored in my web dynpros src/mimes/components/<component name>-folder inside my WebDynpro jar/ear/whatever in relation to the code base of the JNet.jar which - I guess - would reside inside the WebDynpro runtime or somewhere else on the server, but not inside my own jar ? Or am I wrong about this ?
Thanks a lot
MichaelHi Christian!
That's what I tried in the first place. The result is something like
/usr/sap/XXX/J02/j2ee/cluster/apps/myCompany.com/my~webdynproapp/servlet_jsp/webdynpro/resources/myCompany.com/my~webdynproapp/root/Components/package.path.to.my.component/imagename.gif
but the applet does not find the image files. Since the JNet documentation says to specify the relative path from the JNet.jar code base, I'd have to find out where that is and calculate the relative path, but possibly this will only work inside a single jar (which I don't have since the JNet.jar is somewhere among the portal WebDynpro runtime components, I guess).
Preferrably, I'd like to have a look at a working example using the Network ui component with external icons inside a java WebDynpro. Propably someone has done that before...
Thanks
Michael -
How to run a dialog's method from a button's event handler?
I've created my first dialog from the samples, but I am having trouble figuring out how to run a method in my dialog from an button's event handler. Can anyone please point me in the right direction?
function CreateDialog()
this.windowRef = null;
CreateDialog.prototype.run = function()
//...declare a bunch of vars
// Create a window of type palette.
var win = new Window("dialog", "Element Spray Generator",[iTop,iLeft,iTop + iWidth,iLeft + iHeight] ); // bounds = [left, top, right, bottom]
this.windowRef = win;
// Add a frame for the contents.
win.btnPanel = win.add("panel", [iPadding,iPadding,iWidth-iPadding,iHeight-iPadding], "");
.... add a bunch of other stuff ...
win.btnAdd = win.btnPanel.add("button", [win.btnRemove.bounds.left - iPadding - iButtonWidth,win.lstImages.bounds.bottom + iSmPadding,win.btnRemove.bounds.left - iPadding,win.lstImages.bounds.bottom + iSmPadding +iTextHeight], "Add");
win.btnAdd.onClick = function() {
//todo implement this
var f = File.openDialog("Open File") ;
win.lstImages.add("item", f.displayName );
this.EnableControls(); //<--- problem is on this line here!!
this.EnableControls(); //<--- this works
// Display the window
win.show();
return true;
CreateDialog.prototype.EnableControls = function (){
var result = true;
result = result && (this.windowRef.ddlPaths.selection != "");
result = result && (this.windowRef.lstImages.items.length > 0);
this.windowRef.btnOK.enabled = result;This may not be the reason, but when using the way I create dialogs 'this' inside of an onClick points to the control.
win.btnAdd.onClick = function() {
//todo implement this
var f = File.openDialog("Open File") ;
win.lstImages.add("item", f.displayName );
this.EnableControls(); //<--- I would expect it to call another function of btnAdd
// this.parent.EnableControls() might be what you want if the control is not in some other container -
Events for web dynpro UI elements
Hi,
In NWDS there are only a few event types associated with each UI element type. Say InputField has 'onEvent' event, DropDownList has 'onSelect' etc.
So, for the Input fields are we limited to triggering an event handler to fire only when the user hits the 'ENTER' key? What do I need to do to trigger an event handler for say when the user hits a 'TAB' key ? Is there some way we can extend the event listener interface to add more events to an UI element ?
Please advise. Thanks !
SriThere is no event triggered when the input field looses focus.
You cannot add your own events.
Armin -
BSP extension "download" - event handling problem
Folks,
First of all, I apologize if the answer is already out there, but I spent quite some time to find the solution for my problem but finally gave up:
I implemented the Download extension from Brian's and Tom's book. Since I am using an MVC based app, I put the event handling in the DO_HANDLE_EVENT of a controller instead of the OnInputProcessing event of a page. Here's how my app is designed:
I have a main controller that has an execute button to trigger a data selection based on some selection criteria. The result of this selection is displayed by means of a subcontroller with tableviews that are wrapped into my zdownload extension. Everything works fine: I make my selections, execute the app through the button of the main controller and get my result shown in the tableviews. I push the download icon, select my file format (XLS, HTML etc), get the dialog to choose whether to download or to display the file, perfect!
But now after I processed the download successfully - if I click the execute button in the main controller again, I still get the download dialog. It looks like the created event for the download does not get cleared. As I mentioned, I searched through SDN, but all I found were referrals to the call of DISPATCH_INPUT( ) in DO_REQUEST of the main controller, but unfortunately this one is already implemented.
Any ideas?
Thanks,
GuentherThere is an attribute of the download extension called display_url. You pass a value to the extension telling it what cached URL contains the binary content for your download. if this display_url attribute has a value assigned to it, then the element will render an iFrame to call the URl. However if the display_url attribute is empty, it won't render the iFrame. I suspect that you have a stateful application and after your download event you aren't clearing whatever field that you pass into the display_url attribute.
-
Getting error in event handler method onPlugFromStartView
Hi,
I am getting error in event handler method onPlugFromStartView java coding. The error message is u201CThe method wdGetwelcome componentcontroller() is undefined for the IPrivatevieew.
Plese explain how to resolve this error to deploy the webdynpro application successfully.
Thanks,
Kundan.Hi
1.It seems some thing corrupt or some problem .
2. Do one exercise Create one new Dc --component -View ,In component write one method.
a) Open the view and then try to add that component.
Let us know the result
Best Regards
Satish Kumar -
Event handling in global class (abap object)
Hello friends
I have 1 problem regarding events in abap object... how to handel an event in global class in se24 .
Regards
Reema jain.
Message was edited by:
Reema JainHello Reema
The following sample report shows how to handle event in principle (see the § marks)..
The following sample report show customer data ("Header"; KNB1) in the first ALV list and sales areas ("Detail"; KNVV) for the selected customer (event double-click) in the second ALV list.
*& Report ZUS_SDN_TWO_ALV_GRIDS
REPORT zus_sdn_two_alv_grids.
DATA:
gd_okcode TYPE ui_func,
go_docking TYPE REF TO cl_gui_docking_container,
go_splitter TYPE REF TO cl_gui_splitter_container,
go_cell_top TYPE REF TO cl_gui_container,
go_cell_bottom TYPE REF TO cl_gui_container,
go_grid1 TYPE REF TO cl_gui_alv_grid,
go_grid2 TYPE REF TO cl_gui_alv_grid,
gs_layout TYPE lvc_s_layo.
DATA:
gt_knb1 TYPE STANDARD TABLE OF knb1,
gt_knvv TYPE STANDARD TABLE OF knvv.
"§1. Define and implement event handler method
" (Here: implemented as static methods of a local class)
* CLASS lcl_eventhandler DEFINITION
CLASS lcl_eventhandler DEFINITION.
PUBLIC SECTION.
CLASS-METHODS:
handle_double_click FOR EVENT double_click OF cl_gui_alv_grid
IMPORTING
e_row
e_column
es_row_no
sender.
ENDCLASS. "lcl_eventhandler DEFINITION
* CLASS lcl_eventhandler IMPLEMENTATION
CLASS lcl_eventhandler IMPLEMENTATION.
METHOD handle_double_click.
* define local data
DATA:
ls_knb1 TYPE knb1.
CHECK ( sender = go_grid1 ).
READ TABLE gt_knb1 INTO ls_knb1 INDEX e_row-index.
CHECK ( ls_knb1-kunnr IS NOT INITIAL ).
CALL METHOD go_grid1->set_current_cell_via_id
EXPORTING
* IS_ROW_ID =
* IS_COLUMN_ID =
is_row_no = es_row_no.
* Triggers PAI of the dynpro with the specified ok-code
CALL METHOD cl_gui_cfw=>set_new_ok_code( 'DETAIL' ).
ENDMETHOD. "handle_double_click
ENDCLASS. "lcl_eventhandler IMPLEMENTATION
START-OF-SELECTION.
SELECT * FROM knb1 INTO TABLE gt_knb1
WHERE bukrs = '1000'.
* Create docking container
CREATE OBJECT go_docking
EXPORTING
parent = cl_gui_container=>screen0
ratio = 90
EXCEPTIONS
OTHERS = 6.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
* Create splitter container
CREATE OBJECT go_splitter
EXPORTING
parent = go_docking
rows = 2
columns = 1
* NO_AUTODEF_PROGID_DYNNR =
* NAME =
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
OTHERS = 3.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
* Get cell container
CALL METHOD go_splitter->get_container
EXPORTING
row = 1
column = 1
RECEIVING
container = go_cell_top.
CALL METHOD go_splitter->get_container
EXPORTING
row = 2
column = 1
RECEIVING
container = go_cell_bottom.
* Create ALV grids
CREATE OBJECT go_grid1
EXPORTING
i_parent = go_cell_top
EXCEPTIONS
OTHERS = 5.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
"§2. Set event handler (after creating the ALV instance)
SET HANDLER: lcl_eventhandler=>handle_double_click FOR go_grid1. " Or:
" SET HANDLER: lcl_eventhandler=>handle_double_click FOR all instances.
CREATE OBJECT go_grid2
EXPORTING
i_parent = go_cell_bottom
EXCEPTIONS
OTHERS = 5.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
* Display data
gs_layout-grid_title = 'Customers'.
CALL METHOD go_grid1->set_table_for_first_display
EXPORTING
i_structure_name = 'KNB1'
is_layout = gs_layout
CHANGING
it_outtab = gt_knb1
EXCEPTIONS
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.
gs_layout-grid_title = 'Customers Details (Sales Areas)'.
CALL METHOD go_grid2->set_table_for_first_display
EXPORTING
i_structure_name = 'KNVV'
is_layout = gs_layout
CHANGING
it_outtab = gt_knvv " empty !!!
EXCEPTIONS
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.
* Link the docking container to the target dynpro
CALL METHOD go_docking->link
EXPORTING
repid = syst-repid
dynnr = '0100'
* CONTAINER =
EXCEPTIONS
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.
* NOTE: dynpro does not contain any elements
CALL SCREEN '0100'.
* Flow logic of dynpro (does not contain any dynpro elements):
*PROCESS BEFORE OUTPUT.
* MODULE STATUS_0100.
*PROCESS AFTER INPUT.
* MODULE USER_COMMAND_0100.
END-OF-SELECTION.
*& Module STATUS_0100 OUTPUT
* text
MODULE status_0100 OUTPUT.
SET PF-STATUS 'STATUS_0100'. " contains push button "DETAIL"
* SET TITLEBAR 'xxx'.
* Refresh display of detail ALV list
CALL METHOD go_grid2->refresh_table_display
* EXPORTING
* IS_STABLE =
* I_SOFT_REFRESH =
EXCEPTIONS
OTHERS = 2.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDMODULE. " STATUS_0100 OUTPUT
*& Module USER_COMMAND_0100 INPUT
* text
MODULE user_command_0100 INPUT.
CASE gd_okcode.
WHEN 'BACK' OR
'END' OR
'CANC'.
SET SCREEN 0. LEAVE SCREEN.
* User has pushed button "Display Details"
WHEN 'DETAIL'.
PERFORM entry_show_details.
WHEN OTHERS.
ENDCASE.
CLEAR: gd_okcode.
ENDMODULE. " USER_COMMAND_0100 INPUT
*& Form ENTRY_SHOW_DETAILS
* text
* --> p1 text
* <-- p2 text
FORM entry_show_details .
* define local data
DATA:
ld_row TYPE i,
ls_knb1 TYPE knb1.
CALL METHOD go_grid1->get_current_cell
IMPORTING
e_row = ld_row.
READ TABLE gt_knb1 INTO ls_knb1 INDEX ld_row.
CHECK ( syst-subrc = 0 ).
SELECT * FROM knvv INTO TABLE gt_knvv
WHERE kunnr = ls_knb1-kunnr.
ENDFORM. " ENTRY_SHOW_DETAILS
Regards
Uwe -
Hi Friends,
I am trying to call a BAPI from a webdynpro application when a user
hits a button in a table. The table will have a button for each entry.
There is an iView that has the table, a custom controller that executes
the BAPI (model).
I am setting the value of the custom controller context at the onAction event handler of the iView and calling the method executeBAPI once the user hits the button. The problem is it works fine for the first time. If the user hits another button of the table on the same screen it throws a nullPointer exception. ie all the subsequent calls fail.
What could be wrong?
java.lang.NullPointerException
at com.sap.tc.prototype.ITView.onActionEventSelect(ITView.java:160)
at com.sap.tc.prototype.wdp.InternalITView.wdInvokeEventHandler(InternalITView.java:160)
at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)
at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doHandleActionEvent(WindowPhaseModel.java:420)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:132)
at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
Thanks in advance.
Nathan.Hi,
wdThis.wdGetTCRegisterCustController().wdGetContext().currentBapi_InputElement().setCount(count);
This is what i am doing at line 160. And i am setting some more values for the node.
I tried to debug it. I executed this line in the debugger and it shows the following error:
Evaluation failed. Reason(s):
Attempt to send a message to a non object value
Thanks
Nathan. -
Event Handler is not being triggered- 11G Release2
Hi all,
I developed a postprocess event handler which I am expecting to be triggered when my custom task for trusted reconciliation run. I have deployed my event handler using plugin registration utility. I put a static block in my class to see if my class iz being initialized. I see that iti is initialized but event handler is never triggered (execute method is never called). Why it is not triggered? Any help is strongly appreciated... Below is my configuration for the event handler..
<?xml version='1.0' encoding='utf-8'?>
<eventhandlers xmlns="http://www.oracle.com/schema/oim/platform/kernel"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.oracle.com/schema/oim/platform/kernel/orchestration-handlers.xsd">
<action-handler class="com.tcmb.iam.plugin.eventhandler.PostProcessEventHandler"
entity-type="User"
operation="ANY"
name="PostProcessEventHandler"
stage="postprocess" order="1002"
sync="TRUE"/>
</eventhandlers>
<?xml version="1.0" encoding="UTF-8"?>
<oimplugins xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<plugins pluginpoint="oracle.iam.platform.kernel.spi.EventHandler">
<plugin pluginclass=
"com.tcmb.iam.plugin.eventhandler.PostProcessEventHandler"
version="1.0"
name="PostProcessEventHandler">
</plugin>
</plugins>
</oimplugins>
Tahnaks in advance,
BR
ALİYEHi Nayan,
I have cheked the plugins table and my plugin is in there.Thenchecked mds_paths table I have four records there (I have deployed and undeployed few times) wich are as follow:
path element name
http://www.oracle.com/schema/oim/platform/kernel action-handler
http://www.oracle.com/schema/oim/platform/kernel action-handler
http://xmlns.oracle.com/schema/oim/platform/kernel eventhandlers
http://www.oracle.com/schema/oim/platform/kernel eventhandlers
Which schema is corrent? Is there something wrong with these records that causes my handler to do not trigger ?
Thanks a lot
BR
Aliye -
Event handler doesn't work for a Canvas inside a canvas (Possible bug in Flex 4)
Hi Guys,
I have a canvas sitting inside another canvas. When i try to catch the mouseClick event in the child canvas, im not able to do it. When i change the child canvas component to a 'Panel', the event handler works perfectly fine. Any suggestions/solutions?ok a few things you should know... it is recomended to use the spark components when working with flash builder 4 thought the mx components are available spark is much litghter in weight. also if you want to use the equivalent of a canvas in spark then you want to use a "group" but ill warn you they dont support inline styles, a border container looked more appropiate for what you were trying to do below. However. i did fix your code for flex 4.0
look below.
component:
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
creationComplete ="canvas2_creationCompleteHandler(event)">
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<fx:Script>
<![CDATA[
import mx.controls.Alert;
import mx.events.FlexEvent;
public function canvas1_clickHandler(event:MouseEvent):void
Alert.show("Clicked");
public function canvas2_creationCompleteHandler(event:Event):void
{// TODO Auto-generated method stub//
kenaCan.addEventListener(MouseEvent.CLICK, canvas1_clickHandler);
]]>
</fx:Script>
<mx:Canvas id="kenaCan"
width="400"
height="300"
borderStyle="solid"
borderColor="black"
backgroundColor="white"
/>
</mx:Canvas>
application:
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"
xmlns:local1="local.*">
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<local1:canvas/>
</s:Application>
if this post answers your question please mark it as such thanks -
Event handler getting fired on all list and libraries
I have created an event handler and add it to a custom content type. Some how this event handler is getting fired on each every list which are there inside a site. Below is my content type declaration with fields and event handler. This content type
is being activated using a featur scope at "Site".
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<!-- Parent ContentType: Document (0x0101) -->
<ContentType ID="0x01010069131024FE3C485FAEF6C36926B5FD67" Name="CIB Document" Group="CIB Content Types" Description="CIB Content Types" Inherits="FALSE" Version="0">
<FieldRefs>
<RemoveFieldRef ID="{fa564e0f-0c70-4ab9-b863-0177e6ddd247}" Hidden="TRUE" Name ="Title"></RemoveFieldRef>
<FieldRef Name="Metier"
ID="{F3ABF2F2-437B-4403-8A11-BEAE9F507009}"
DisplayName="Metier"
Sealed="TRUE"
Required="FALSE" />
<FieldRef Name="Department"
ID="{0B11D33C-B8D1-485F-A483-755BFE55C2B9}"
DisplayName="Department"
Sealed="TRUE"
Required="FALSE" />
<FieldRef Name="Owner"
ID="{FC6FE3D4-5EEE-4812-A77C-499AB9927D1A}"
DisplayName="Owner"
Sealed="TRUE"
Required="FALSE" />
<FieldRef Name="ExpiryDate"
ID="{D68E037B-63A2-42FF-8150-412972CB062F}"
DisplayName="Expiry Date"
Sealed="TRUE"
Required="FALSE" />
<FieldRef Name="SecurityStatus"
ID="{5954E9C2-921B-46FB-8A7B-2BC0F62BD011}"
DisplayName="Security Status"
Sealed="TRUE"
Required="FALSE" />
</FieldRefs>
<XmlDocuments>
<XmlDocument NamespaceURI="http://schemas.microsoft.com/sharepoint/events">
<spe:Receivers xmlns:spe="http://schemas.microsoft.com/sharepoint/events">
<Receiver>
<Name>CIBDocumentHandlerItemAdding</Name>
<Type>ItemAdding</Type>
<Assembly>Common.SharePoint.Web, Version=1.0.0.0, Culture=neutral, PublicKeyToken=68d03adf96d84a47</Assembly>
<Class>Common.SharePoint.Web.Handlers.CIBDocumentHandler</Class>
<SequenceNumber>10500</SequenceNumber>
</Receiver>
</spe:Receivers>
</XmlDocument>
</XmlDocuments>
</ContentType>
</Elements>You need to add the ListTemplateId or ListUrl to the Receiver element,
E.g. If you had a list definition with the template ID 10500, then your event receiver XML would look like this:
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<Receivers ListTemplateId="10500" >
<Receiver>
<Name>CIBDocumentHandlerItemAdding</Name>
<Type>ItemAdding</Type>
<Assembly>Common.SharePoint.Web, Version=1.0.0.0, Culture=neutral, PublicKeyToken=68d03adf96d84a47</Assembly>
<Class>Common.SharePoint.Web.Handlers.CIBDocumentHandler</Class>
<SequenceNumber>10500</SequenceNumber>
</Receiver>
</Receivers>
</Elements>
Regards, Matthew
MCPD | MCITP
My Blog
Please remember to click "Mark As Answer" if a post solves your problem or "Vote As Helpful" if it was useful.
Maybe you are looking for
-
Stock calculation report in mm module
Hi all, I have developed report for stock calculation in mm module. my opening stock and closing stock is not matching with that of MB5B.can anyone provide the guidance into this as I have worked on mm reports. Regards, Harshada
-
Does anyone know how to increase the size of the fonts so that things like phone numbers from phone book and text messages can be read by anyone ove the age of 30. The text size on my N80 is about half the size of newspaper fonts and having a blue ba
-
Dynamic OLE object not displaying proper file
We are using CR IX R2. I have a report that I would like to attach a pdf to. This pdf will be different depending on the selection of data from the rest of the report. The file location is always the same but again the name of the file will vary. The
-
CS 6 Image Windows Don't Stay Where I Put Them
I installed CS 6 yesterday. My system runs 64 bit Win 7. In Preferences > Interface, as I did in CS 5, I unchecked both Open Documents as Tabs and Enable Floating Document Window. However, unlike CS 5, in CS 6 images 'insist' on positioning themse
-
Serial number "not qualifying" for upgrade
Everything works great through the PURCHASING process, but as soon as I try to use the expensive "upgrade" from ACROBAT PRO 9 to ACROBAT PRO XI, I'm told my Pro 9 SN doesn't qualify. Why? (Mac) FYI - "chat" is useless on a Sunday apparently. So much