ServerMapping with more attribute

  1. #1

    ServerMapping with more attribute

    Hi!
    I'd like know how to use ServerMapping with more than one attribute:

    Store...
    
     <Reader>
       <ext:JsonReader IDProperty="ID">
          <Fields>
            <ext:RecordField Name="ID" Type="Int" />
            <ext:RecordField Name="Name" />
            <ext:RecordField Name="Surname" />
            <ext:RecordField Name="Department" ServerMapping="Department.Id" />      ???
            <ext:RecordField Name="??????????" ServerMapping="Department.Name" />    ???
          </Fields>
       </ext:JsonReader>
     </Reader>
    
     <ColumnModel runat="server">                
       <Columns>
          <ext:Column Header="ID" DataIndex="ID" />
          <ext:Column Header="NAME" DataIndex="Name" />
          <ext:Column Header="SURNAME" DataIndex="Surname" />
          <ext:Column DataIndex="??????" Header="ID" Width="240" />
          <ext:Column DataIndex="??????" Header="Name" Width="240" />
     </Columns>
     </ColumnModel>
    Maia.
    Coolite 1.0
    Last edited by geoffrey.mcgill; Aug 11, 2010 at 7:51 AM. Reason: spelling mistake
  2. #2
    Hi!
    Servermapping works with more than one attribute of the same object?
    Tks.
    Maia.
  3. #3
    Hi,

    <ext:RecordField Name="DepartmentId" ServerMapping="Department.Id" />   
    <ext:RecordField Name="DepartmentName" ServerMapping="Department.Name" />

    <ext:Column DataIndex="DepartmentId" Header="ID" Width="240" />
    <ext:Column DataIndex="DepartmentName" Header="Name" Width="240" />
  4. #4
    It´s works...
    Tks.
    Maia.

Similar Threads

  1. Replies: 6
    Last Post: Feb 23, 2011, 1:05 PM
  2. [CLOSED] ServerMapping and RemoteSort
    By Timothy in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Dec 17, 2009, 12:12 PM
  3. Replies: 6
    Last Post: Aug 06, 2009, 1:17 PM

Posting Permissions