Topic
  • 1 reply
  • Latest Post - ‏2011-08-05T11:41:46Z by SystemAdmin
SystemAdmin
SystemAdmin
151 Posts

Pinned topic Implementing freezing with IloTableFreezeHook

‏2011-08-05T08:13:15Z |
Hi,
Where can I find more information on implementing freezing with IloTableFreezeHook, in addition to the documentation? Is there an example in the distribution where IloTableFreezeHook is used to implement freezing? Thanks, Susara.
Updated on 2011-08-05T11:41:46Z at 2011-08-05T11:41:46Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    151 Posts

    Re: Implementing freezing with IloTableFreezeHook

    ‏2011-08-05T11:41:46Z  
    The Nurse demo is using IloTableFreezeHook on view Assignements that is an ArrayView2D.
    Below the view declaration with the freeze hook:

    <view id="Assignments">
    <arrayView2D tableId="app.NURSE_ASSIGNMENTS" columnId="VALUE">
    <rowRange>
    <foreignKeyRange foreignKeyId="FK_1_SHIFTS">
    <rangeDisplay>
    <columnDisplay columnId="DEPARTMENT" display="Department"/>
    <columnDisplay columnId="DAY" display="Day"/>
    <columnDisplay columnId="START_TIME" display="Start Time"/>
    <columnDisplay columnId="END_TIME" display="End Time"/>
    </rangeDisplay>
    </foreignKeyRange>
    </rowRange>
    <colRange>
    <foreignKeyRange foreignKeyId="FK_0_NURSES">
    <rangeDisplay>
    <columnDisplay columnId="NAME" display="Nurse"/>
    </rangeDisplay>
    </foreignKeyRange>
    </colRange>
    <hooks>
    <tableHook class="ilog.hook.IloTableFreezeHook">
    <arguments>
    <section name="section1">
    <arg name="outputTableId" value="app.NURSE_ASSIGNMENTS"/>
    <arg name="outputColumnId" value="VALUE"/>
    <arg name="freezeTableId" value="app.REQUIRED_ASSIGNMENTS"/>
    <arg name="freezeColumnId" value="BOOL_VALUE"/>
    </section>
    </arguments>
    </tableHook>
    </hooks>
    </arrayView2D>
    </view>