Correct Indention in Architect

Posted by bheavican on 04-Nov-2009 08:59

Is there a way to modify the correct indention in Architect?  It works really well for aligning variable definitions but i'd like to change how it aligns queries.

DEFINE VARIABLE UserName AS CHARACTER NO-UNDO.

DEFINE VARIABLE UserPassword AS CHARACTER NO-UNDO.

becomes

DEFINE VARIABLE UserName     AS CHARACTER NO-UNDO.

DEFINE VARIABLE UserPassword AS CHARACTER NO-UNDO.

but i'd like to change

FOR EACH Car WHERE

Car.CarDesc BEGINS "Red"

NO-LOCK:

END.

from doing this

FOR EACH Car WHERE

  Car.CarDesc BEGINS "Red"

  NO-LOCK:

END.

to doing this

FOR EACH Car WHERE

         Car.CarDesc BEGINS "Red"

         NO-LOCK:

END.

All Replies

Posted by Sunil Belgaonkar on 04-Nov-2009 09:07

Hello

OpenEdge Architect currently does not provide ability to customize indentation. This ability to customize indentation feature is on OEA roadmap and I would  recommend you to enter an ERS for this and vote on it. Thanks.

Regards

Sunil.

Posted by bheavican on 04-Nov-2009 09:08

Thanks for the quick response!!

Posted by Torben on 04-Nov-2009 09:26

And I'll like it to change it to:

FOR EACH Car WHERE Car.CarDesc BEGINS "Red":U NO-LOCK:

END.

Posted by bheavican on 04-Nov-2009 11:12

I submitted ERS #0000003969 for this functionality.

Posted by TNylund on 19-May-2011 07:29

Hello,

Has any progress been made re this matter? Since the ERS is down I can't find any way to find more information on this issue, and I'd really, really like to find out what its status is. (And I would REALLY like to find out that the status is that there is now some way to customise the indentation...)

Regards,

Tina

Posted by Thomas Mercer-Hursh on 19-May-2011 11:42

And I would prefer:

for each Car no-lock

    where Car.CarDesc begins "Red"

    and   Car.Something = 5

    :

   

One needs to include the multiple conditions to have a complete specification.   Some like the connector at the end.  I prefer it at the beginning.  Putting the lock next to the table is much clearer and keeps one out of various kinds of ambiguity.

The refactoring to add the :U is really a refactoring task, not an indentation task.  So is putting the lock phrase in the right place.

This thread is closed