Carousel - Add Method

Add a new design instance

Member of Carousel (PRIM_CARO)

Parameters

NameTypeData TypeDescription
Result*Result (Optional)PRIM_CARO.CarouselItemReference to the new design instance
DesignType*InputPRIM_OBJTName of the reusable part to be used to create a new design instance

Details

The Add method is used to add specialized design type instances to the Carousel.
 
Design reusable parts must implement the Prim_Book.iBookDesign interface and inherit from the class specified in the Design property of the Book.
 
When using the Add method, Carousel no longer works like a LANSA list, and is intended for more advanced implementations.

Example

Adding a specialized design type, in case a page for an Employee data object.
Mthroutine Name(AddItem)
 
   Define_Com Class(#prim_Carousel.CarouselItem) Name(#Item) Reference(*Dynamic)
 
   #Item <= #Carousel.Add(#MyEmployeeItem)
   #Item.RelatedReference <= #DataEmployee
 
Endroutine

See also

All Component Classes

Technical Reference

Febuary 18 V14SP2