cancel
Showing results for 
Search instead for 
Did you mean: 

Two solutions to extend the same object

Jakub
Participant
0 Kudos

Dear experts,

I don't understand one thing and i cann't find answer to my problem.
Suppose I created two solutions and in each one i extended the same business object by element. I created simple code in EventAfterModify (e.g. this.test1 = this.ID ). I set breakpoint in one solution and I do action to call this event.
Here is my question: In debugger I can see only the element (in root) which i add on solution which i debug. What is with the another solution ? Is work or what ?

Regards,
Jakub

Accepted Solutions (1)

Accepted Solutions (1)

jravnik
Participant

Hi Jakub,

each solution is in its own container. They cannot communicate with each other. This does also affect the debugger, since it is bound to the business users session. You can see metadata from other solution events, but only use breakpoints in the currently open solution.

Lets say you have solution A and solution B. Both have an extension on the Customer-Root-BeforeSave event. If you open solution A and set a breakpoint in the script it will stop the transaction of the current business users session. That means that the code of solution B may already have been executed (before A), maybe it executes after you release the breakpoint (proceed) (after A). The only thing you will see in the output window is that it has been executed (metadata), but you cannot set breakpoints in B.

However both events will be called and executed. The order in which they get called cannot be modified.

Hope that helps!

Best regards

Jürgen

Answers (0)