Rectifying according to Best Practices

Hi Everyone, i have a scattered data files and logic across two modules for my application. Is it possible to rectify them via Copy paste or do i need to build them from Scratch.

Solution

You dont need to build them from scratch, you can move to another module. But if you want to move from reactive to the traditional type of application or the opposite you will need to refactor, which means, building from scratch. But if is the same type of application/module you don't need to worry, just be careful with pulling references, by copying something from another module you will create references if what you are copying as dependencies inside the module that you are trying to copy, just see if you create references and if so you will need to delete those references and create or copy what you need to the module that you are trying to move to.

But I will leave here some content

https://www.outsystems.com/forums/discussion/67778/should-my-data-model-definition-be-in-a-separate-module/

https://success.outsystems.com/Documentation/Best_Practices/Development/OutSystems_Platform_Best_Practices?_gl=1*ens1j*_ga*NTE5ODUyNDc3LjE2NDgwMjU1NDM.*_ga_ZD4DTMHWR2*MTY0OTE1MTk2MS4zLjEuMTY0OTE1NzA0Mi4xOQ..

https://www.outsystems.com/training/courses/69/refactoring-applications/

https://www.outsystems.com/training/lesson/1230/extracting-elements-without-impacting-consumers

Regards,

Márcio

mvp_badge
MVP

I really don't understand why you ask this? If you ask if you can copy/paste code between modules, why not first try it before asking. Then you wouldn't need to ask.

I tried using copy and paste but it is using the other module as dependencies when i copy it. Hence asked.

mvp_badge
MVP

When I select a client actio, server action or screen, etc. and press Ctrl+C and then press Ctrl+V in another module the action is copied, no reference is set between the modules.

Hi Daniel,
Could you help out with the process .. Thank you in advance



https://www.outsystems.com/forums/discussion/61076/how-to-install-osp-file-in-another-environment-in-outsystems-11/

Also if is giving you errors because is trying to look for something that it's not there, you just need to look for the references and copy all the other elements that it's depending on.

Regards,

Márcio

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.