Hello, |
Re: How to get an handle of the last object
Load Standard view or switch off filtering, sorting, outlining etc. to be sure all non-deleted objects are in view. After that use the "last" function Object lasto = last(current Module) |
Re: How to get an handle of the last object It's a bit hidden in the DXL manual (but then, what is not hidden in the DXL maunal ...) but you find it in the "Navigation from an object" section: Object last(Module m) Note that this returns the last object as it appears in the displayed module, hence you have to check for filters and the display of delete objects. Object creation is covered in the "Object management" section, the perm you want to use is Object create(below(Object o))
create below last current Module
but you should check that current Module is not null, that you have edit right, that the last object is not deleted, etc ... |