on 08-11-2014 9:37 PM
Hi,
My requirement is to display all inactive employees in the system. Then the users selects an employee and clicks a button to convert him into a contact.
I have created an OWL which queries the standard Employee BO and displays the list of inactive employees. Everything works fine till now.
Then I have added a button linked to an event handler, the event handler has the following functions:
1. Create a new instance of the custom BO -> works.
2. Call the custom BO action. When this is added the OWL screen does not even load, it just dumps.
Could you please let me know why this is happening? And how do I call the custom BO action in order to create the contact?
Regards,
Sai
Hello Sai,
Does it dump after you've added the Event Handler to the UI or when you call the EventHandler?
Can you share some info from the dump?
Thanks,
Horst
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Horst,
The dump happens after the event handler which calls the custom BO action is added.
I am pasting the UI dump below:
SAP.BYD.LS.UI.Core.Controller.Event.FatalEventProcessingException ---> SAP.BYD.LS.UI.Core.API.Connectivity.BackendProcessingFailedException ---> System.Net.WebException: [HttpWebRequest_WebException_RemoteServer]
Arguments: NotFound
Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=5.1.30514.0&File=System.Windows.dll&Key=HttpWe... ---> System.Net.WebException: [HttpWebRequest_WebException_RemoteServer]
Arguments: NotFound
Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=5.1.30514.0&File=System.Windows.dll&Key=HttpWe...
at System.Net.Browser.BrowserHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult)
at System.Net.Browser.BrowserHttpWebRequest.<>c__DisplayClassa.<EndGetResponse>b__9(Object sendState)
at System.Net.Browser.AsyncHelper.<>c__DisplayClass4.<BeginOnUI>b__0(Object sendState)
--- End of inner exception stack trace ---
at System.Net.Browser.AsyncHelper.BeginOnUI(SendOrPostCallback beginMethod, Object state)
at System.Net.Browser.BrowserHttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at SAP.BYD.LS.UI.Core.Connector.Http.LsHttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at SAP.BYD.LS.UI.Core.Connector.BulkConnector.Io.BackendAdapter.HttpWebRequest_BeginGetResponse_Callback(IAsyncResult asyncResult)
--- End of inner exception stack trace ---
at SAP.BYD.LS.UI.Core.Connector.BulkConnector.Io.ErrorAnalyzer.AnalyzeError(WebException cause)
at SAP.BYD.LS.UI.Core.Connector.BulkConnector.Io.BackendAdapter.HttpWebRequest_BeginGetResponse_Callback(IAsyncResult asyncResult)
--- End of inner exception stack trace ---
at SAP.BYD.LS.UI.Core.Controller.Event.Operations.BackendOperationExecutor.HandleBlockingOperation(EventType operation)
at SAP.BYD.LS.UI.Core.Controller.Event.Operations.BackendOperationExecutor.Execute(UXEventHandlerType handlerDefinition, UXEventHandlerOperationType operationDefinition, Boolean continueOperation, EventHandlerExecutionStarted handler)
at SAP.BYD.LS.UI.Core.Controller.Event.Operations.BackendOperationExecutor.DoProcess(UXEventHandlerType handlerDefinition, UXEventHandlerOperationType operationDefinition, EventHandlerExecutionStarted handler)
at SAP.BYD.LS.UI.Core.Controller.Event.Operations.OperationExecutor.Process(IEventProcessor eventProcessor, UXEventHandlerType handlerDefinition, UXEventHandlerOperationType operationDefinition, Boolean continueOperation, EventHandlerExecutionStarted handler, Boolean doFinalize)
Regards,
Sai
Hello Sai,
The issue here is that the action does not know which is the created instance; there is no binding possible to this new instance.
But let's go back to what you want ot achieve:
As we can not extend a Standard BO with actions you need a Custom BO which points to the employee instance.
Therefore I suggest the following
HTH,
Horst
Hi Sai,
Thanks for reply.
My requirement is that, Converting account to customer with the approval process.So, i did the following steps.
1. created custom BO
2. Created approval process for custom BO
Now i want to call the actions of custom BO approval process from accounts tab.
Can i be able to do it from accounts screen by extending the BO?is there some other way to achieve this?
Regards,
Mani
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.