Document Distribution with customized event.
Hi,
Is anyone familiar with the fenomenon "document distribution" in SAP? The following is the case:
When a document is changed and saved in SAP the event DRAW.CHANGED is triggered. In SWETYPV you can link this event to the receiver DISTRIBUTION. Here the document distribution is started and also with a function module is checked whether the status of the document is released. This works fine.
However at a customer, I need to define an event which is only triggered if the status chages from 02 to 03. Did this in SWEC and thew event is triggered at the right moment. I linked this event to the receiver DISTRIBUTION and also the receiver is started, but without any values. Result document isn't distributed.
I read something about the FM SWE_CD_TEMPLATE_CONTAINER_FB_2, but I don't know if this will help me. I also don't know in which direction I've to modify this FM. Could anybody suggest a solution if you ever encountered the same problem?
Kind regards,
Joost van Poppel
Hi Christoph
I have generated the profile and assigned to the correct user. In ST01, when I tested the autorization checks, all auth. objects checks are fine except C_DRAW_TCS.
For C_DRAW_TCS the auth. check is happening for only "03 Display" activity.It is not happening for the activity "59 Distribute". I have maintained the auth. object for both Display and Distribute. as follows
C_DRAW_TCS
ACTVT : Display, Distribute
DOKAR : DRW
DOKST : RL
But the auth. check is carried out for only display.
C_DRAW_TCS RC=0 DOKAR=DRW;DOKST=RL;ACTVT=03; and it displays Authorization check successful. For distribute the auth. check itself is not carried out.
Help me in sorting out the problem.
Regards
S.Sivakumar
Similar Messages
-
Trying to make up a Modal Dialog with customized event dispatcher
Hello everyone.
I try to make up a ModalDialog class with customized event dispatcher in order to wait an invoker.
But it fails :-(
import javafx.event.ActionEvent;
import javafx.event.Event;
import javafx.event.EventDispatchChain;
import javafx.event.EventHandler;
import javafx.event.EventTarget;
import javafx.event.EventType;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.layout.BorderPane;
import javafx.scene.layout.HBox;
import javafx.stage.Modality;
import javafx.stage.Stage;
import javafx.stage.StageStyle;
import javafx.stage.Window;
import javafx.stage.WindowEvent;
import com.sun.javafx.stage.WindowEventDispatcher;
import java.util.ArrayList;
public class ModalDialog extends Stage {
ArrayList<Button> buttons;
int rc;
Stage stage;
Event event;
EventDispatchChain tail;
public ModalDialog( Window owner, String title ){
initModality( Modality.APPLICATION_MODAL );
initOwner( owner );
initStyle( StageStyle.UTILITY );
setTitle( title );
stage = this;
public void setContents( Group group, ArrayList<Button> buttons ){
BorderPane root = new BorderPane();
Scene scene = new Scene(root);
setScene(scene);
root.setCenter( group );
this.buttons = buttons;
HBox buttonPane = new HBox();
buttonPane.setSpacing(10);
for( int i=0 ; i<buttons.size() ; i++ ){
buttons.get(i).setOnAction( actionHandler );
buttonPane.getChildren().setAll( buttons );
root.setBottom( buttonPane );
public int show( double screenX, double screenY ){
setX( screenX ); setY( screenY );
show();
MyWindowEventDispatcher dispatcher = new MyWindowEventDispatcher( stage );
setEventDispatcher( dispatcher );
while(true){
event = dispatcher.dispatchEvent( event, tail );
EventType<? extends Event> type = event.getEventType();
if( type==WindowEvent.WINDOW_HIDDEN ){
break;
return( rc );
EventHandler<ActionEvent> actionHandler = new EventHandler<ActionEvent>() {
public void handle( ActionEvent e ){
EventTarget src = e.getTarget();
rc = buttons.indexOf( src );
stage.hide();
class MyWindowEventDispatcher extends WindowEventDispatcher {
public MyWindowEventDispatcher( Window window ){
super( window );
public Event dispatchEvent( Event event, EventDispatchChain tail) {
ModalDialog.this.event = dispatchCapturingEvent( event );
ModalDialog.this.tail = tail;
return( event );
}A sample code to invoke ModalDialog
import java.util.ArrayList;
import javax.swing.JOptionPane;
import javafx.application.Application;
import javafx.event.EventHandler;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.stage.Stage;
import javafx.stage.WindowEvent;
public class WindowEvent06 extends Application {
Stage mainStage;
public void start(Stage stage) throws Exception {
Group root = new Group();
Scene scene = new Scene(root);
stage.setScene(scene);
stage.setTitle("WindowEvent06");
mainStage = stage;
stage.setOnCloseRequest(new EventHandler<WindowEvent>() {
public void handle(WindowEvent e){
ModalDialog dialog = new ModalDialog( mainStage, "Question" );
Button yes = new Button( "Yes" );
Button no = new Button( "No" );
ArrayList<Button> buttons = new ArrayList<>();
buttons.add(yes); buttons.add(no);
Label msg = new Label( "Really Exit ?" );
Group groupInDialog = new Group();
groupInDialog.getChildren().add( msg );
dialog.setContents( groupInDialog, buttons );
int ans = dialog.show( 300, 300 );
System.out.println("returned from a modal dialog");
if( ans == 1 ){
e.consume(); // this blocks window closing
stage.show();
public static void main(String[] args) {
launch(args);
}Hi,
The logic what you follows is some what in the right direction but need to have some changes.
What I would say is, first consume the windowClose event. Then open the dialog box and close the parent accordingly.
So after refactoring your code.
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.layout.BorderPane;
import javafx.scene.layout.HBox;
import javafx.stage.Modality;
import javafx.stage.Stage;
import javafx.stage.StageStyle;
public class ModalDialog extends Stage {
Stage owner;
Stage stage;
BorderPane root;
public ModalDialog( Stage owner, String title){
root = new BorderPane();
stage = this;
this.owner = owner;
initModality( Modality.APPLICATION_MODAL );
initOwner( owner );
initStyle( StageStyle.UTILITY );
setTitle( title );
setContents();
public void setContents(){
Scene scene = new Scene(root,150,150);
setScene(scene);
Group groupInDialog = new Group();
groupInDialog.getChildren().add( new Label("Really Exit ?") );
root.setCenter( groupInDialog );
Button yes = new Button( "Yes" );
yes.setOnAction(new EventHandler<ActionEvent>() {
@Override
public void handle(ActionEvent paramT) {
stage.close(); // Closing the pop up.
owner.close(); // Closing the parent stage also.
Button no = new Button( "No" );
no.setOnAction(new EventHandler<ActionEvent>() {
@Override
public void handle(ActionEvent paramT) {
stage.close(); // Closing the pop up only
HBox buttonPane = new HBox();
buttonPane.setSpacing(10);
buttonPane.getChildren().addAll(yes,no);
root.setBottom(buttonPane);
stage.show();
}And the main class to check this implementation is
import javafx.application.Application;
import javafx.event.EventHandler;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.stage.Stage;
import javafx.stage.WindowEvent;
public class WindowEvent06 extends Application {
public void start(final Stage stage) throws Exception {
Group root = new Group();
Scene scene = new Scene(root);
stage.setScene(scene);
stage.setTitle("WindowEvent06");
stage.setOnCloseRequest(new EventHandler<WindowEvent>() {
public void handle(final WindowEvent e){
e.consume(); // Consuming the event by default.
new ModalDialog( stage, "Question");
stage.show();
public static void main(String[] args) {
launch(args);
}I hope the above code will give you some idea what i mean. :)
Happy Coding !!
Regards,
Sai Pradeep Dandem.
Edited by: Sai Pradeep Dandem on Jan 20, 2012 4:03 AM -
Document Distribution with attached documents coming across in BIN format
Hello all,
I have 3 dist types defined in the system. RML, RMA, and INT
RMA sends to SAP Office and includes a link to the document defined in DMS and seems to work correctly.
RML sends the document to SAP Office as an attachment but the attached documents always is in BIN format and cannot be opened by the application.
INT sends to my external email but has the same problem as above, the attachment is always in a BIN format and cannot be opened.
This works the same with several different applications in DMS, Word, Excel, Text Files, etc.
Can anyone give me an idea what I may be missing in config that is keeping this from working correctly. We are running SAP ECC 6.0
Thanks,
BillHi Bill,
Please check the following customizing in your system:
1) Please check you have maintained suitable length of syntax group for
Windows NT. Please maintain it more than 20.
Please proceed as follows to correct this entry:
Run the tcode SPRO
Implementation Guide for R/3 Customizing (IMG)
Cross-Application Components
Document Management System
Document Distribution
General Settings
Platform-Independent File Names
Maintain file names and file paths across all clients
Syntax group definition
2) Please check the 'File processing' value for distribution type 'INT'.
Please set it as '2'.
Further please check note 355048 and as mentioned your settings in transaction DC30 for the workstation applications.
Best regards,
Christoph -
Background:
8.2 version
I'm trying to throw/receive a custom event but nothing is working for the receive to work. Below is the event information.
I create a process that throws the event. I create another process that has the event as, I have tried both Start point and Receive. It will not trap no matter what I do. How do I debug this?
Cheers,
Event:
Asynchronous
Event Data Template:
<?xml version="1.0" encoding="UTF-8"?>
<schema targetNamespace="http://www.ec.gc.ca/xsd/SampleData/" elementFormDefault="qualified" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://www.ec.gc.ca/xsd/SampleData/">
<element name="SendEmail">
<complexType >
<all>
<element name="EmailTo" type="string" />
<element name="EmailFrom" type="string" />
<element name="EmailSubject" type="string" />
<element name="EmailCC" type="string" />
<element name="EmailBCC" type="string" />
<element name="EmailBody" type="string" />
</all>
</complexType>
</element>
</schema>Hi Jasmin,
I have a custom event set up with a schema for the message as well as the main event. When I dispatch the event, the listener event I have set up does not receive the message body and I get an adobe.workflow.template.document.TemplateNodeNotFoundException: Template object ER1319221392779 not found.
The event thrower is using a schema for the message body and the event receiver also uses an INPUT variable of type xml set to the same schema.
Any idea what I'm doing wrong?
Thanks,
Jack -
Create Document Set with custom Create Only permission set
Here is the situation. We have a requirement where my customer wants to create document sets, however, document set/document level permissions are required.
Setup: We created a new permission level called "Create Only". We then give the user Read and Create only permissions. This allows the user to theoretically create the item. We then run a Workflow on create that Replaces the permissions so that
you are only allowed to view the ones you created along with other security groups based on their choices in the metadata fields.
This setup works PERFECTLY when using a List or Form Library.
However, for the life of me I cannot get it to work for Document Sets. If I have the same setup, I get an Access Denied message. However, it still creates the document set.
What is weird, I've been playing around with custom permission levels and it seems as though the user has to have EDIT permissions at a minimum in order to create the document set. This will not work for me since I dynamically assign permissions to each
document set based on what they select.
As a side note, the only tool I have at my disposal is SharePoint Designer 2010.
Does anyone know if there is an actual requirement to have EDIT permissions when creating a Document Set? Any input would be greatly appreciated.
Alternatively, is there a way to setup permissions on a library for all NT Authenticated users so that we can give them the necessary permissions to create the Document Set, but still prevent them from see the other items and then the Workflow would set
the permissions accordingly?
I believe the more granular the permissions it uses those permissions instead so would this work? I have not tested this theory yet.Hi,
According to your description, my understanding is that you want to know if there is an actual requirement to have EDIT permissions when creating a Document Set and is there a way to setup permissions on a library for all NT Authenticated users and prevent
them from seeing items created by others.
For the first question, per my knowledge, if a user is given the Add Items permission, he/she can create a document set in SharePoint.
However, there is an error “access denied” after the document set is created. It is due to the user has no permission to access the page which SharePoint will redirect the user to after finishing creating the document set.
If the user is also given Edit Items permission, there will be no error when he/she create a document set.
For the second question, I recommend to follow the link below to
customize item permissions for each document submitted to a document library and remember to give the
NT Authenticated users contribute permission.
http://blogs.technet.com/b/spke/archive/2010/04/09/configure-item-level-permissions-for-document-libraries-sharepoint-2010-edition.aspx
To grant permission to NT Authenticated users, please refer to the link below:
http://office.microsoft.com/en-in/sharepoint-server-help/what-happened-to-add-all-authenticated-users-HA101805183.aspx
Best regards.
Thanks
We
are trying to better understand customer views on social support experience, so your participation in this
interview project would be greatly appreciated if you have time.
Thanks for helping make community forums a great place. -
Need help with custom event from Main class to an unrelated class.
Hey guys,
I'm new to Flash and not great with OOP. I've made it pretty far with google and lurking, but I've been pulling my hair out on this problem for a day and everything I try throws an error or simply doesn't hit the listener.
I'm trying to get my Main class to send a custom event to an unrelated class called BigIcon. The rest of the code works fine, it's just the addEventListener and dispatchEvent that isn't working.
I've put in the relevant code in below. Let me know if anything else is needed to troubleshoot. Thank you!
Main.as
package
import flash.display.MovieClip;
import flash.events.MouseEvent;
public class Main extends MovieClip
var iconLayer_mc:MovieClip = new MovieClip();
public function Main()
Spin_btn.addEventListener(MouseEvent.CLICK,fl_MouseClickHandler);
addChildAt(iconLayer_mc,0);
placeIcons();
function placeIcons():void
var i:int;
var j:int;
for (i = 0; i < 4; i++)
for (j = 0; j < 5; j++)
//iconString_array has the names of illustrator objects that have been converted to MovieClips and are in the library.
var placedIcon_mc:BigIcon = new BigIcon(iconString_array[i][j],i,j);
iconLayer_mc.addChild(placedIcon_mc);
function fl_MouseClickHandler(event:MouseEvent):void
dispatchEvent(new Event("twitchupEvent",true));
BigIcon.as
package
import flash.display.MovieClip;
import flash.events.Event;
import flash.utils.getDefinitionByName;
public class BigIcon extends MovieClip
private var iconImage_str:String;
private var iconRow_int:int;
private var iconColumn_int:int;
public function BigIcon(iconImage_arg:String, iconRow_arg:int, iconColumn_arg:int)
iconImage_str = iconImage_arg;
iconRow_int = iconRow_arg;
iconColumn_int = iconColumn_arg;
this.addEventListener(Event.ADDED_TO_STAGE, Setup);
function Setup(e:Event)
this.y = iconRow_int;
this.x = iconColumn_int;
var ClassReference:Class = getDefinitionByName(iconImage_str) as Class;
var thisIcon_mc:MovieClip = new ClassReference;
this.addChild(thisIcon_mc);
addEventListener("twitchupEvent", twitchUp);
function twitchUp(e:Event)
this.y += 10;Ned Murphy wrote:
You should be getting an error for the Main.as class due to missing a line to import the Event class...
import flash.events.Event;
My apologies, I should attempt to compile my example code before I ask for help...
Alright, this compiles, gives me no errors, shows my 'book' and 'flowers' icons perfectly when ran, and prints 'addEventListener' to the output window as expected. I get no errors when I press the button, 'dispatchEvent' is output (good), but the 'twitchUp' function is never called and 'EventTriggered' is never output.
How do I get the 'twitchUp' event to trigger?
Main.as
package
import flash.display.MovieClip;
import flash.events.MouseEvent;
import flash.events.*;
public class Main extends MovieClip
var iconLayer_mc:MovieClip = new MovieClip();
var iconString_array:Array = new Array(2);
public function Main()
Spin_btn.addEventListener(MouseEvent.CLICK,fl_MouseClickHandler);
addChildAt(iconLayer_mc,0);
buildStringArray();
placeIcons();
function buildStringArray():void
var i:int;
var j:int;
for (i = 0; i < 2; i++)
iconString_array[i] = new Array(3);
for (j = 0; j < 3; j++)
if (Math.random() > .5)
//'flowers' is the name of an illustrator object that has been converted to a MovieClip and is in the library
iconString_array[i][j] = "flowers";
else
//'book' is the name of an illustrator object that has been converted to a MovieClip and is in the library
iconString_array[i][j] = "book";
function placeIcons():void
var i:int;
var j:int;
for (i = 0; i < 2; i++)
for (j = 0; j < 3; j++)
//iconString_array has the names of illustrator objects that have been converted to MovieClips and are in the library.
var placedIcon_mc:BigIcon = new BigIcon(iconString_array[i][j],i*50,j*50);
iconLayer_mc.addChild(placedIcon_mc);
function fl_MouseClickHandler(event:MouseEvent):void
dispatchEvent(new Event("twitchupEvent",true));
trace("dispatchEvent");
BigIcon.as
package
import flash.display.MovieClip;
import flash.events.*;
import flash.utils.getDefinitionByName;
public class BigIcon extends MovieClip
private var iconImage_str:String;
private var iconRow_int:int;
private var iconColumn_int:int;
public function BigIcon(iconImage_arg:String, iconRow_arg:int, iconColumn_arg:int)
iconImage_str = iconImage_arg;
iconRow_int = iconRow_arg;
iconColumn_int = iconColumn_arg;
this.addEventListener(Event.ADDED_TO_STAGE, Setup);
function Setup(e:Event)
this.y = iconRow_int;
this.x = iconColumn_int;
var ClassReference:Class = getDefinitionByName(iconImage_str) as Class;
var thisIcon_mc:MovieClip = new ClassReference;
this.addChild(thisIcon_mc);
addEventListener("twitchupEvent", twitchUp);
trace("addEventListener");
function twitchUp(e:Event)
this.y += 10;
trace("EventTriggered");
Output:
[SWF] Untitled-1.swf - 40457 bytes after decompression
addEventListener
addEventListener
addEventListener
addEventListener
addEventListener
addEventListener
dispatchEvent
[UnloadSWF] Untitled-1.swf
Test Movie terminated. -
I am trying to work with the EventDispatcher class to dispatch a custom event to stop a video from playing. The video plays inside a MovieClip with an attached class file called PlayerProfile. I want the video in the PlayerProfile MovieClip to stop playing when the user clicks on another MovieClip called ScrollBox. I'm getting no compile or runtime erros, but the code is not stopping the video. I have seen use of a public static constant to represent the custom event. Is that what I am missing here.
Any help, as always, is much appreciated.
Here is the code for the PlayerProfile MovieClip with relevant code in bold:
package
import flash.display.MovieClip;
import gs.TweenLite;
import flash.events.MouseEvent;
import flash.events.Event;
public class PlayerProfile extends MovieClip
public function PlayerProfile()
this.ProfileButton_mc.buttonMode = true;
this.StatisticsButton_mc.buttonMode = true;
this.HomeButton_mc.buttonMode = true;
this.VideoButton_mc.buttonMode = true;
this.ProfileButton_mc.addEventListener(MouseEvent.CLICK, profileClickHandler);
this.StatisticsButton_mc.addEventListener(MouseEvent.CLICK, statisticsClickHandler);
this.HomeButton_mc.addEventListener(MouseEvent.CLICK, homeClickHandler);
this.VideoButton_mc.addEventListener(MouseEvent.CLICK, videoClickHandler);
TweenLite.from(this, .5, {alpha:0});
//adds the listener to receive the stopVideo custom event
this.addEventListener("stopVideo", stopVideoHandler);
//method to stop the video
private function stopVideoHandler(event:Event):void
this.Video_mc.stop();
private function profileClickHandler(event:MouseEvent):void
this.Video_mc.stop();
this.gotoAndStop("Profile");
TweenLite.from(event.target, .5, {alpha:0});
private function statisticsClickHandler(event:MouseEvent):void
this.Video_mc.stop();
this.gotoAndStop("Stats");
TweenLite.from(event.target, .5, {alpha:0});
private function homeClickHandler(event:MouseEvent):void
this.Video_mc.stop();
event.target.root.gotoAndStop("Home");
private function videoClickHandler(event:MouseEvent):void
this.gotoAndStop("Video");
TweenLite.from(event.target, .5, {alpha:0});
Here is the code on my Main Timeline that dispatches the event, again with relevant code in bold:
stop();
//adds listeners to call the profile functions
this.ScrollBox.addEventListener(MouseEvent.CLICK, clickHandler);
//functions to advance the movie to the profiles
function clickHandler(event:MouseEvent):void
gotoAndStop(event.target.name);
//code to dispatch the custom event
this.ScrollBox.addEventListener(MouseEvent.CLICK, stopVideoHandler);
function stopVideoHandler(event:Event):void
dispatchEvent(new Event("stopVideo"));you have a scope issue. your PlayerProfile instance is listening for that custom event. your PlayerProfile instance must dispatch that event for the listener to detect it. ie, if pp is your PlayerProfile instance on your main timeline, use:
pp.dispatchEvent(new Event("stopVideo")); -
Document distribution with restriction on Status of the DIR
Hi all
In my business scenario, I need to restrict Document distribution based on Status of the DIR.(i.e) A user should be able to distribute a DIR of a particular status(RL-Release) he cannot the distribute the DIR in status(IP-In process).
I have maintained the following values in the auth. object,
<b>C_DRAW_TCD</b>
ACTVT : Create or generate, Change, Display, Distribute
DOKAR : DRW
<b>C_DRAW_TCS</b>
ACTVT : Display, Distribute
DOKAR : DRW
DOKST : RL
But still I am able to distribute the document in IP status(which I have not specified in the auth. object C_DRAW_TCS)
Is there any change in what i have done or any new object to be added?
Help me in finding out the solution.
Regards
S.SivakumarHi Christoph
I have generated the profile and assigned to the correct user. In ST01, when I tested the autorization checks, all auth. objects checks are fine except C_DRAW_TCS.
For C_DRAW_TCS the auth. check is happening for only "03 Display" activity.It is not happening for the activity "59 Distribute". I have maintained the auth. object for both Display and Distribute. as follows
C_DRAW_TCS
ACTVT : Display, Distribute
DOKAR : DRW
DOKST : RL
But the auth. check is carried out for only display.
C_DRAW_TCS RC=0 DOKAR=DRW;DOKST=RL;ACTVT=03; and it displays Authorization check successful. For distribute the auth. check itself is not carried out.
Help me in sorting out the problem.
Regards
S.Sivakumar -
Hi all,
I'm using SharePoint Online, but I'm seeing the same behavior in an on-prem 2013 instance as well. My situation is this:
- I've created a document library
- I've created a custom content type and attached a custom document template to it
- I've assigned the custom content type to the document library, and disabled the default "document" option
What I'm expecting to see is that when I browse to the document library and click "new document", that either a) a picklist appears allowing me to specify the document template I want (using the custom template I specified) or b) open the custom
template itself. That doesn't happen - instead, when I click new document I'm prompted to upload a file, which seems to contradict the whole point of using a custom content type/custom document template combo.
Am I missing something? The custom template isn't in the Forms library, which seems to be a problem if I wanted to use the custom document template instead of the default.
Ideally I'd like a menu like the one shown here:
http://social.msdn.microsoft.com/Forums/en-US/59ce3bd8-bf7f-4872-ae76-60d8c81dfc32/display-content-types-on-new-document-button-in-document-libraries?forum=sharepointgeneral, except with me being able to control the list of items that is shown.
Any ideas? Thanks!Hi Brain,
What you have done is by design behavior.
If you want to show the Office document templates list (e.g. below image from your above referenced link) to select when click "+new document" link, this will need to install Office Web App 2013 which provides this feature,
you can new document and see it is using WopiFrame.aspx page, please see more from below article about how to configure OWA 2013 for SharePoint 2013 on-premise.
http://technet.microsoft.com/en-us/library/ff431687(v=office.15).aspx
Thanks,
Daniel Yang
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]
Daniel Yang
TechNet Community Support -
How do I set up new Document Profile with custom page sizes?
I see that different profiles have different sets of page sizes. I need a set of page sizes which I use often, and I would like to create a set of these sizes in a new profile, or at least somehow add them to the very minimal set of page sizes which can be selected when setting up a new document. Can this be done?
Thanks Jerron, I have done this but it only adds one document at one size to the list of presets. The list of sizes that comes with it is the same as the preset it was created from originally. What I would like to do is add to the list of sizes which comes with any one of the document presets or create a new one with a new list of sizes.
-
JSR 168 Portlets -- IPC with Custom Events
Please find the right and left portlets code :
Right portlet code :
<?xml version="1.0" encoding="UTF-8"?>
<portal:root xmlns:netuix="http://www.bea.com/servers/netuix/xsd/controls/netuix/1.0.0"
xmlns:portal="http://www.bea.com/servers/netuix/xsd/portal/support/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.bea.com/servers/netuix/xsd/portal/support/1.0.0 portal-support-1_0_0.xsd">
<netuix:javaPortlet asyncContent="ajax" cacheRenderDependencies="true"
definitionLabel="TopRight_1" portletName="TopRight" presentationStyle="width: 80px;"
skeletonUri="/framework/skeletons/intranetvz/window_withouttitle.jsp" title="TopRight"/>
</portal:root>
Left portlet code :
<?xml version="1.0" encoding="UTF-8"?>
<portal:root xmlns:netuix="http://www.bea.com/servers/netuix/xsd/controls/netuix/1.0.0"
xmlns:portal="http://www.bea.com/servers/netuix/xsd/portal/support/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.bea.com/servers/netuix/xsd/portal/support/1.0.0 portal-support-1_0_0.xsd">
<netuix:javaPortlet asyncContent="ajax" definitionLabel="TopLeft" portletName="TopLeft"
skeletonUri="/framework/skeletons/intranetvz/window_withouttitle.jsp" title="TopLeft">
<netuix:handleCustomEvent event="messageCustomEvent" eventLabel="handleCustomEvent1"
fromSelfInstanceOnly="false" onlyIfDisplayed="true" sourceDefinitionWildcard="any">
<netuix:invokeJavaPortletMethod method="getMessage"/>
</netuix:handleCustomEvent>
</netuix:javaPortlet>
</portal:root> -
Hi Gurus,
Has any one implemented the Document Distribution in DMS?
Please share your experience and documents if any?
email id: [email protected]
Points would be awarded.
Thanks,
Paddy.Hi paddy
I have done document distribution and it is working fine..
kindly check the following
Steps
1)Recipient Management
Show all entries for recipient management
User menu document management system Environment Document distribution Recipient Office User
Use the address info and communication type RML. Show all entries.
2) Customizing settings :
Under Document management → Document distribution→ Distribution type→ Define distribution types
Click on the distribution type which you want to activate and make it default.
3) Go to DIR, Environment ---> doc distribution ---> create recepient list and save the recipient list.
4) Start the distribution with your defined entries. T code CVI8
5) Look at the log entries. CVI9
6) Use the Workplace in the standard SAP menu. If you did everything in the right way, you will find an entry in your workplace ( t code SBWP).
7) Refer Note 824949-Document distribution: for Activating Event type linkage.
Thank you
Regards,
nitin
Award points if useful
Edited by: nitin bhagat on Mar 31, 2008 8:59 AM -
Null pointer Exception with Custom EventQueue
I created a simple class customEventQueue which is extended from EventQueue class and pushed it using
Toolkit.getDefaultToolkit().getSystemEventQueue().push(customEventQueue);
Now, whenever there are three modal dialogs on top of a frame and if I click on top dialog that closes all three dialog boxes, I get nullpointer exception in console. The custom event class does not have any method in it. It just extends from EventQueue.
I checked it in different JRE and it happens only in JRE1.3.1.
Has anybody tried the same thing with custom event queue? Any help is most welcome. Thanks...
java.lang.NullPointerException
at sun.awt.windows.WInputMethod.dispatchEvent(Unknown Source)
at sun.awt.im.InputContext.dispatchEvent(Unknown Source)
at sun.awt.im.InputMethodContext.dispatchEvent(Unknown Source)Hi Chandel me having the same problem
java.lang.NullPointerException
at sun.awt.windows.WInputMethod.dispatchEvent(Unknown Source)
at sun.awt.im.InputContext.dispatchEvent(Unknown Source)
at sun.awt.im.InputMethodContext.dispatchEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown
Source)
at
java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Sour
ce)
at
java.awt.DefaultKeyboardFocusManager.pumpApprovedKeyEvents(Unknown So
urce)
at
java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Sour
ce)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown
Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.SequencedEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown
Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown
Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Th bigger problem is that i don't know what is causing this exception, cause the stack trace doesn't mention the line of code where the exception occurred.
In earlier version of java we had pData null pointer exception. This bug manifests when the pull down menu doesn't fit completely into the frame's bounds and swing has to create a seaprate window for the pull-down.
The problem is that WInputMethod caches a reference to peer and that that reference becomes stale when peer is destroyed and recreated.
In this bug cached peer reference becomes stale as the Window for the menu is hidden (and its peer is destroyed) and shown again (with new peer this time).
WInputMethod have a cached reference to the old peer but that old peer is not connected to the underlying native window used to display the menu.
But it's been fixed. I want to know if our problem is in some way related to this pData bug.
Thanx. -
Documentation for custom event listeners
Hi,
I am searching in portal 8.1 documents for using custom events, coding and registering event listeners, and using them in jsp pages. So far my search has been unsuccessful.
Can some one let me know where i find this info?
-thanksHi J,
Thanks for your reply.
I didn’t find the custom work item Web Access control Official documents, but you can refer to the information in these articles(it’s same in TFS 2013):
http://blogs.msdn.com/b/serkani/archive/2012/06/22/work-item-custom-control-development-in-tf-web-access-2012-development.aspx
http://blogs.msdn.com/b/serkani/archive/2012/06/22/work-item-custom-control-development-in-tf-web-access-2012-deployment.aspx
For how to debug TFS Web Access Extensions, please refer to:
http://www.alexandervanwynsberghe.be/debugging-tfs-web-access-customizations/.
For the custom work item Web Access control Official documents, you can
submit it to User Voice site at: http://visualstudio.uservoice.com/forums/121579-visual-studio. Microsoft engineers will evaluate them seriously.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Std workflow for document distribution.
Hi Gurus,
Scenario is I donot have a workflow resource for customization. I need to send the document for Approval to a list of 4 Approvers after I set the status to "For Approval". Can we achieve it through document distribution with any std workflow avalaible which can be triggered after I set the status to " For Approval"?
Thanks
PadHi Sri,
Thanks for the reply. I had the Workflow WS 20000104 inserted at the " For Approval " status. Then I created a new DIR and before setting this status I created the receipient list with my user Id . After I set the status "For Approval" I cannot see any work item in SBWP. Am I missing any step?
If in case its because of the Workflow linkage inactive, could any of the Workflow experts guide me
on how to do that.
Thanks,
Paddy
Maybe you are looking for
-
XML Publisher Error with reports published in XML publisher
Hi All, I am geting the following error with a report published using XML Publisher The XML page cannot be displayed Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later. The system c
-
ADF swing: JTabbedPane does not display column names.
Hi all, I have created an ADF Panel, which allows the user to run a few simple queries against an Oracle database done using ADF view objects and ADF view links and ADF application module. From the data control area I drag and drop a view link contai
-
Condition Reporting within a Web Template
We need create a condition that list the top 10 customer by volume and total for all other and a grand total. I created a condition for top 10 and it displayed the top 10 fine and a grand total. I can not seem to get a total for all other customers.
-
Safari 6 opens Mail when opening an XML file
Hi all, I just upgraded to Mac OS 10.8 w/Safari 6. I used Safari to look at my podcast XML feed and make sure it was OK once in a while. Now, with 10.8, going to an XML file opens Mail with the error "no app associated with this type of file". Any
-
Search for a particular string in a field
Hi all, let us say I have some characteristic name in field ATNAM. Now I want to search if the name in the field matches the pattern CO*GLI i.e., the name should have CO at the beginning and GLI at the end and can have anything in the middle. Please