Print Thread
Formal all Packages
#58182 07/27/18 05:59 PM
Joined: Apr 2013
Posts: 6
Florian
C
Member
OP Offline
Member
C
Joined: Apr 2013
Posts: 6
Florian
Hello all,

There is a way to format all packages with beautifier ?

Thanks

Re: Formal all Packages
Charles Boeing #58183 07/28/18 09:48 AM
Joined: Aug 1999
Posts: 22,220
Member
Offline
Member
Joined: Aug 1999
Posts: 22,220
Not directly, but You can use the BEAUTIFY command in the Command Window for batch operations:

[quote]
BEAUT[IFY] File | Object
Beautifies the specified file or database object, using the current rules or the rules specified with the SET BEAUTIFIERRULES command.[/quote]


Marco Kalter
Allround Automations
Re: Formal all Packages
Marco Kalter #58194 07/31/18 08:16 PM
Joined: Apr 2013
Posts: 6
Florian
C
Member
OP Offline
Member
C
Joined: Apr 2013
Posts: 6
Florian
Thanks Marco, this helpme a lot.

Re: Formal all Packages
Charles Boeing #64098 07/22/22 10:58 PM
Joined: Aug 2003
Posts: 63
V
Member
Offline
Member
V
Joined: Aug 2003
Posts: 63
Marco,
not sure if I'm doing something wrong or just do not understand something.
What does BEAUTIFY Object exactly doing? I was expecting specified object being beautified in DB, but instead this is what is happening for me:
1. If Object is not currently opened in program window - running this command doesn't do anything.
2. If Object is currently opened in program window - this window is beautified.
Is it expected behavior? I was hoping just to build script for batch beautifying of hundreds of packages, but it doesn't look like working for me if this is expected behavior...
Could you please clarify?
Thank you!!!!

Re: Formal all Packages
Charles Boeing #64100 07/25/22 09:20 AM
Joined: Aug 1999
Posts: 22,220
Member
Offline
Member
Joined: Aug 1999
Posts: 22,220
In version 14 option 1 did not always work correctly. In version 15 it beautifies the source from the database, and then recompiles the beautified source into the database again.

Perhaps you are using version 14 or earlier?


Marco Kalter
Allround Automations

Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.092s Queries: 14 (0.007s) Memory: 2.5156 MB (Peak: 3.0427 MB) Data Comp: Off Server Time: 2024-05-17 05:04:32 UTC
Valid HTML 5 and Valid CSS