Changing the order of child business objects in the instance list tree

Visual LANSA Framework

Changing the order of child business objects  in the instance list tree

When business object relationships are defined they appear in the instance list tree in the order they were defined. Currently there is no automatic facility to change the display order.  If you need to change the order, do this:

Open your main XML (eg: VF_SY001_System.XML) with Notepad, maybe saving a copy first.  Look for the relationship definition blocks. They look like this:

 

<OBJECT TYPE="RELATION" CLASS="VF_FP024" ID="whatever" >

<…..>

<…..>

</OBJECT> 

 

They will be nested inside a VF_FP003 block like this:

 

<OBJECT TYPE="BUSINESS_OBJECT" CLASS="VF_FP003" ID="whatever" >

<…..>

<…..>

<OBJECT TYPE="RELATION" CLASS="VF_FP024" ID="whatever" > 

<…..>

<…..>

</OBJECT> 

 

<OBJECT TYPE="RELATION" CLASS="VF_FP024" ID="whatever" >

<…..>

<…..>

</OBJECT> 

<…..>

<…..>

</OBJECT> 

  

Rearrange the complete VF_FP024 blocks inside the VF_FP003 blocks into the desired order then save changes and restart VLF.