Pagination Table migration

About this task

Pagination table requests customer to use table id (defined in xui) to be the prefix of pagination data. After applied NR01-2, BTT tooling will generate new type id (pageName_widgetId) for every widget. This change may cause the id inconsistent. Customer need to change the pagination data definition if pagination table used. Below are the detailed steps for customer to migrate pagination table transactions:

Procedure

  1. Open the transaction in which the pagination data is defined
  2. Click the “Data” tab in transaction editor, locate and open the “paginationData” record definition, please reference the below screen capture:
    <kColl id="paginationData">
    				<data id="Ipt1_rowsPerPage" value="10" refType="Integer"/>    
          <data id="Ipt1_pageKook" value="1" refType="Long"/>    
          <data id="Ipt1_enableNext" value="false" refType="Boolean"/>
          <data id="Ipt1_enablePrevious" value="false" refType="Boolean"/>
          <field id="Ipt1_errMsg"/>      
    </kColl>
  3. For each element of pagination controlling data definition, e.g. “Ipt1_rowsPerPage”, change the name to ${PAGE_NAME}_+”OriginalName”. “${PAGE_NAME}” is the page’s name in which pagination table is defined.
  4. Suppose the page name is “Ipt1Page.xui”, after changing the names, following definitions are expected:
    <kColl id="paginationData">           
     								<data id="Ipt1Page_Ipt1_rowsPerPage" value="10" refType="Integer"/>
                <data id="Ipt1Page_Ipt1_pageKook" value="1" refType="Long"/>
                <data id="Ipt1Page_Ipt1_enableNext" value="false" refType="Boolean"/>
                <data id="Ipt1Page_Ipt1_enablePrevious" value="false" refType="Boolean"/>
                <field id="Ipt1Page_Ipt1_errMsg"/>
    </kColl>
  5. After renaming the pagination control data definitions, generate the transaction.
  6. Then customer need to change the mappings definitions which are created while creating pagination table, below are the detailed steps to changing the mapping definitions:
    1. Open the XUI page that contain pagination table, in this case, the page name is “Ipt1Page.xui”.
    2. Click the pagination table widget, then click “Pagination” tab in the “Properties” window, see below screen capture.
    3. Click the “nextInputMapping” item and click “Browse” button, then the mapping editor popped up, see below screen capture:
    4. For each mapping item, update the “From” column to latest pagination control data definition, see below captures: before and after updating:

      Before

      After

    5. Apply same actions (steps “c” and “d”) to “previousMapping”.
    6. Click the “normalOutputMapping” item and click “Browse” button, then the mapping editor popped up, see below screen capture:
    7. For each mapping item, update the “To” column to latest pagination control data definition, see below captures: before and after updating:

      Before

      After

    8. Apply same actions (steps “f” and “g”) to “errorOutputMapping”.
  7. After applying above actions, generate the XUI page. Finally, the task is finished.