Hello community,

I'm working on an assembly package and I'm dealing with some problems due to some customizations, in fact I tried to modify the replacing object of the Account, in particular the 'AccountInserting' event.
After this operations I noticed that the source code of the object remains empty and that the changes don't work, while doing the same operations in a "simple" package the source code is filled in and the changes work.

 

Do you have any idea why this is happening and how to fix this issue?
Let me know.

 

Thanks,
Luca

Like 0

Like

4 comments
Best reply

Hello Luca,

 

As stated in the Academy article here

  • It is not possible to implement object business logic via event sub-processes in the Object Designer. Use EntityEventListener to work with the event model. The EntityEventListener event set does not entirely match the event model in Creatio IDE. Learn more about the Entity event layer: Objects business logic.

And enabling the event on the object is needed for the sub-process in the object designer only. Please use the EntityEventListener instead.

 

Best regards,

Oscar

Hello Luca,

 

As stated in the Academy article here

  • It is not possible to implement object business logic via event sub-processes in the Object Designer. Use EntityEventListener to work with the event model. The EntityEventListener event set does not entirely match the event model in Creatio IDE. Learn more about the Entity event layer: Objects business logic.

And enabling the event on the object is needed for the sub-process in the object designer only. Please use the EntityEventListener instead.

 

Best regards,

Oscar

Hi Oscar,
I actually enabled the event on the object just to use it (as you said) in the sub-process in the object designer, but the customizations that I made there didn't work in an assembly package,  instead worked in a simple one.
Let me know if I have made myself clear or if you need other explanations.

Thank you.

Best regards,

Luca

Luca Tavasanis,

 

Hi,

 

As you said, you've enabled the event on the object to use in the sub-process in this object and did it in the assembly package. As stated on the Academy - it's impossible to use sub-processes on the object in the assembly package (and as a result the source code for the object won't be updated in case you are designing this sub-process in the assembly package). Can you please clarify what exactly is expected here?

 

Best regards,

Oscar

Hi Oscar,

sorry but I didn't understand that you were talking about the assembly package, my fault.

I will try the solution that you suggested with the EntityEventListener.

 

Thank you for your help!

Best regards,

 

Luca

Show all comments

Hello,

 

I've implemented some code because of the changes on the new version which is coming and do not support DB.Executor.

 

But when i'm executing my source code, the json result is dynamic : i've only the fields which are not empty.

In order to have a great code i've parse the json. So the format is correct that's a great json but I don't know how can I include empty field/value.

 

Is there somebody who can explain me how can I do in order to include all fields in the object to the json return list?

 

Thanks a lot.

Like 0

Like

0 comments
Show all comments

we have a custom button on the section page that triggers a process.

When the business process returns to the section page code, is it possible to capture a return parameter from the process  ? how ?

Like 0

Like

1 comments

The issue is that the process will execute asynchronously. The only way to get the value back from the process is, instead of using it as an output param, to send it as a message using a script task in the process that you will retrieve with client-side code on the page. 

You can see an article outlining how to do this here: https://customerfx.com/article/sending-a-message-from-server-side-c-to-…

 

Basically, at the end of your process, you'll add a script task. In that script task you'll get the param value, then send it as a message (as outlined in the article). Then, in your page code, you'll listen for that message, check to make sure it's the message sent from your process, and then read the value and do whatever is needed with it.

Ryan

Show all comments

Dear mates,

I used to access object source code from advanced settings but since few weeks i can just open a window with readonly feature:

 

i can still access by the page designer but it is a longuer way to made development.

Does anyone know why i can not reach the source code from the advanced settings ?

thank you,
Nicolas

Like 0

Like

2 comments
Best reply

Hello Nicolas,

 

There was no possibility to edit the source code of the object ever in the Creatio app using the object "Source code" option. The window with the source code is always opened in the read-only mode. The only thing that you can edit and save is the content of the "Modification package" tab of the object metadata.

 

Best regards,

Oscar

Hello Nicolas,

 

There was no possibility to edit the source code of the object ever in the Creatio app using the object "Source code" option. The window with the source code is always opened in the read-only mode. The only thing that you can edit and save is the content of the "Modification package" tab of the object metadata.

 

Best regards,

Oscar

Oscar Dylan,

Hello Oscar,

 

I apologize for disturbing you.

I was trying to access the orderpage by the order object... mistake.

Novice i am.

 

 

Have a nice day and thank you again
Best regards,

 

Nicolas

 


 

 

Show all comments