Hi,
I have a problem after adding custom field in account popup. The field are present but i can t do a sort on this column. I can search with a custom field, but no sort possible . Here my Popup_picker code and my popupdefs. Any ideas ?
thankx
Popup_picker
....
<td class="dataLabel" nowrap="nowrap">{MOD.LBL_PHONE_OFFICE}</td>
<td class="dataField" nowrap="nowrap"><input type="text" size="20" name="phone_office" class="dataField" value="{PHONE_OFFICE}" /></td>
<td class="dataLabel" nowrap="nowrap">{MOD.LBL_OWNERSHIP}</td>
<td class="dataField" nowrap="nowrap"><input type="text" size="20" name="ownership" class="dataField" value="{OWNERSHIP}" /></td>
</tr>
<tr>
<td class="dataLabel" nowrap="nowrap">{MOD.Code_client__c_0}</td>
<td class="dataField" nowrap="nowrap"><input type="text" size="4" name="code_client_c" class="dataField" value="{CODE_CLIENT_C}" /></td>
</tr>
...
<td scope="col" width="20%" class="listViewThS1"><a href="{ORDER_BY}PHONE_OFFICE" class="listViewThLinkS1">{MOD.LBL_PHONE_OFFICE}{ar row_start}{PHONE_OFFICE_arrow}{arrow_end}</a></td>
<td scope="col" width="20%" class="listViewThS1"><a href="{ORDER_BY}OWNERSHIP" class="listViewThLinkS1">{MOD.LBL_OWNERSHIP}{arrow _start}{OWNERSHIP_arrow}{arrow_end}</a></td>
<td scope="col" width="20%" class="listViewThS1"><a href="{ORDER_BY)CODE_CLIENT_C" class="listViewThLinkS1">{MOD.Code_client__c_0}{ar row_start}{CODE_CLIENT_C_arrow}{arrow_end}</a></td>
</tr>
<!-- BEGIN: row -->
<tr height="20"
onmouseover="setPointer(this, '{ACCOUNT.ID}', 'over', '{BG_COLOR}', '{BG_HILITE}', '{BG_CLICK}');"
onmouseout="setPointer(this, '{ACCOUNT.ID}', 'out', '{BG_COLOR}', '{BG_HILITE}', '{BG_CLICK}');"
onmousedown="setPointer(this, '{ACCOUNT.ID}', 'click', '{BG_COLOR}', '{BG_HILITE}', '{BG_CLICK}');">
<td class="{ROW_COLOR}S1" bgcolor="{BG_COLOR}" valign='top'>{PREROW}</td>
<td scope='row' valign="top" class="{ROW_COLOR}S1" bgcolor="{BG_COLOR}"><{TAG_TYPE} href="#" onclick="send_back('Accounts','{ACCOUNT.ID}');" class="listViewTdLinkS1">{ACCOUNT.NAME}</{TAG_TYPE}></td>
<td valign="top" class="{ROW_COLOR}S1" bgcolor="{BG_COLOR}">{ACCOUNT.CITY}</td>
<td valign="top" class="{ROW_COLOR}S1" bgcolor="{BG_COLOR}">{ACCOUNT.PHONE_OFFICE}</td>
<td valign="top" class="{ROW_COLOR}S1" bgcolor="{BG_COLOR}">{ACCOUNT.OWNERSHIP}</td>
<td valign="top" class="{ROW_COLOR}S1" bgcolor="{BG_COLOR}">{ACCOUNT.CODE_CLIENT_C}</td>
Popupdefs
$popupMeta = array('moduleMain' => 'Account',
'varName' => 'ACCOUNT',
'orderBy' => 'name',
'whereClauses' =>
array('name' => 'accounts.name',
'billing_address_city' => 'accounts.billing_address_city',
'phone_office' => 'accounts.phone_office',
'ownership' => 'accounts.ownership',
'code_client_c' => 'accounts_cstm.code_client_c'),
'searchInputs' =>
array('name', 'billing_address_city', 'phone_office', 'ownership', 'code_client_c'),
'create' =>
array('formBase' => 'AccountFormBase.php',
'formBaseClass' => 'AccountFormBase',
'getFormBodyParams' => array('','','AccountSave'),
'createButton' => $mod_strings['LNK_NEW_ACCOUNT']
)
);


LinkBack URL
About LinkBacks



Reply With Quote
Bookmarks