How to adjust the initial size in an axvw

When creating a multi-panel axvw sometimes you want to adjust the size of the panels from the default to allow for more data to show. To do this you need to set the initialSize in the layout panel.

Before
After
<view version="2.0">

    <designInfo type="edit" pattern="ab-viewdef-editform-drilldown-two-level" isAlterable="true"/>

	<layout id="main">
		<west initialSize="30%" split="true"/>
		<center id="row1col2" />
	</layout>

	<layout id="nested_west" containingLayout="main" region="west">
		<north id="row1col1" initialSize="60%" split="true" />
		<center id="row2col1" />
	</layout>

    <title translatable="true">Manage Lease Invoices</title>
    
    <dataSource id="abViewdefEditformDrilldownTwoLevel_ds_0">
        <table name="ls" role="main"/>
        <field table="ls" name="ls_id"/>
        <field table="ls" name="description"/>
        <field table="ls" name="bl_id"/>
        <field table="ls" name="pr_id"/>
    
    </dataSource>

    <!--ViewDef-DrillDown2Tgrp-Panel-Properties-Begin-->      
    <panel type="grid" id="abViewdefEditformDrilldownTwoLevel_topPanel" dataSource="abViewdefEditformDrilldownTwoLevel_ds_0" selectionEnabled="true" layoutRegion="row1col1">
    <!--ViewDef-DataTgrp-Panel-Properties-End-->  
        <title translatable="true">Leases</title>
        <action id="abViewdefEditformDrilldownTwoLevel_refresh">
            <title translatable="true">Refresh</title>
            <command type="showPanel" panelId="abViewdefEditformDrilldownTwoLevel_topPanel"/>
        </action>    
        <field name="ls_id" table="ls" controlType="link">
            <command type="showPanel" panelId="abViewdefEditformDrilldownTwoLevel_bottomPanel" showSelectValueAction=""/>
        </field>
        <field name="description" table="ls" controlType="link">
            <command type="showPanel" panelId="abViewdefEditformDrilldownTwoLevel_bottomPanel" showSelectValueAction=""/>
        </field>
        <field name="bl_id" table="ls" controlType="link">
            <command type="showPanel" panelId="abViewdefEditformDrilldownTwoLevel_bottomPanel" showSelectValueAction=""/>
        </field>
        <field name="pr_id" table="ls" controlType="link">
            <command type="showPanel" panelId="abViewdefEditformDrilldownTwoLevel_bottomPanel" showSelectValueAction=""/>
        </field>
        <indexField table="ls" name="ls_id"/>
    </panel>
    
    <dataSource id="abViewdefEditformDrilldownTwoLevel_ds_1">
        <table name="invoice" role="main"/>
        <field table="invoice" name="ls_id"/>
        <field table="invoice" name="invoice_id"/>
        <field table="invoice" name="date_expected_rec"/>
    
    </dataSource>
      
    <panel type="grid" id="abViewdefEditformDrilldownTwoLevel_bottomPanel" dataSource="abViewdefEditformDrilldownTwoLevel_ds_1" showOnLoad="false" selectionEnabled="true" layoutRegion="row2col1">
        <title translatable="true">Invoices</title>
        <action id="abViewdefEditformDrilldownTwoLevel_addNew">
            <title translatable="true">Add New</title>
            <command type="showPanel" panelId="abViewdefEditformDrilldownTwoLevel_detailsPanel" newRecord="true"/>
        </action>
        <action id="abViewdefEditformDrilldownTwoLevel_refresh">
            <title translatable="true">Refresh</title>
            <command type="showPanel" panelId="abViewdefEditformDrilldownTwoLevel_bottomPanel"/>
        </action>    
        <field name="ls_id" table="invoice" controlType="link">
            <command type="showPanel" panelId="abViewdefEditformDrilldownTwoLevel_detailsPanel" showSelectValueAction=""/>
        </field>
        <field name="date_expected_rec" table="invoice" controlType="link">
            <command type="showPanel" panelId="abViewdefEditformDrilldownTwoLevel_detailsPanel" showSelectValueAction=""/>
        </field>
        <field name="invoice_id" table="invoice" controlType="link" hidden="true">
            <command type="showPanel" panelId="abViewdefEditformDrilldownTwoLevel_detailsPanel" showSelectValueAction=""/>
        </field>
        <indexField table="invoice" name="invoice_id"/>
    </panel>
    
    <dataSource id="abViewdefEditformDrilldownTwoLevel_ds_2">
        <table name="invoice" role="main"/>
        <field table="invoice" name="ls_id"/>
        <field table="invoice" name="rsc_invoice_id"/>
        <field table="invoice" name="invoice_id"/>
        <field table="invoice" name="ac_id"/>
        <field table="invoice" name="status"/>
        <field table="invoice" name="amount_billed"/>
        <field table="invoice" name="amount_tax"/>
        <field table="invoice" name="amount_billed_total"/>
        <field table="invoice" name="currency_invoice"/>
        <field table="invoice" name="date_sent"/>
        <field table="invoice" name="date_expected_rec"/>
        <field table="invoice" name="description"/>
        <field table="invoice" name="doc"/>
    
    </dataSource>
      
    <panel type="form" id="abViewdefEditformDrilldownTwoLevel_detailsPanel" dataSource="abViewdefEditformDrilldownTwoLevel_ds_2" showOnLoad="false" labelsPosition="top" columns="2" layoutRegion="row1col2">
        <title translatable="true">Invoices</title>
        
        <action id="abViewdefEditformDrilldownTwoLevel_save">
            <title translatable="true">Save</title>
            <command type="saveForm"/>
            <command type="showPanel" panelId="abViewdefEditformDrilldownTwoLevel_bottomPanel" applyParentRestriction="false"/>
        </action>
        <action id="abViewdefEditformDrilldownTwoLevel_delete">
            <title translatable="true">Delete</title>
            <command type="deleteRecord"/>
            <command type="showPanel" panelId="abViewdefEditformDrilldownTwoLevel_detailsPanel" show="false"/>
            <command type="showPanel" panelId="abViewdefEditformDrilldownTwoLevel_bottomPanel" applyParentRestriction="false"/>
        </action>
        <action id="abViewdefEditformDrilldownTwoLevel_cancel">
            <title translatable="true">Cancel</title>
            <command type="showPanel" panelId="abViewdefEditformDrilldownTwoLevel_detailsPanel" show="false"/>
        </action>    
        <field name="ls_id" table="invoice" showSelectValueAction=""/>
        <field name="invoice_id" table="invoice" showSelectValueAction="" hidden="true"/>
        <!--<field name="ac_id" table="invoice" showSelectValueAction=""/>-->
        <!--<field name="status" table="invoice" showSelectValueAction=""/>-->
        <!--<field name="amount_billed" table="invoice" showSelectValueAction=""/>-->
        <!--<field name="amount_tax" table="invoice" showSelectValueAction=""/>-->
        <field name="amount_billed_total" table="invoice" showSelectValueAction=""/>
        <field name="currency_invoice" table="invoice" showSelectValueAction=""/>
        <!--<field name="date_sent" table="invoice" showSelectValueAction=""/>-->
        <field name="date_expected_rec" table="invoice" showSelectValueAction=""/>
        <field name="doc" table="invoice" showSelectValueAction=""/>
        <field name="description" table="invoice" showSelectValueAction=""/>
    </panel>
</view>

Was this helpful?

0 / 0

Leave a Reply 0

Your email address will not be published. Required fields are marked *