Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Custom fields' value appear in edit view but not in detail view, and vice- versa

  1. #1
    manish.joshi is offline Sugar Community Member
    Join Date
    Mar 2007
    Posts
    33

    Default Custom fields' value appear in edit view but not in detail view, and vice- versa

    Dear team,

    I completely customized the 'Documents' module and added some custom fields. And to test it out I entered a record. There is a particular case of two fields. One of them shows the value in the Edit view but not in the Detail view, and the other one shows the value in Detail view but not in the Edit view. I have added the screen shots below.

    Any ideas why this could be happening, and what should be the approach to resolve this. Right now its easy for me as I am still developing and can add two new custom fields and replace these two, but can this happen down the line 6 months when the system is in use?

    Cheers!

    The edit view: Notice the RED circle (bit impure circles ) showing the value, and GREEN one not showing the value


    The Detail view: Now notice the corresponding RED circle not showing the value, and GREEN one showing the value


    My environment is:
    Linux 2.6.19.2-grsec-sg5
    Sugar OpenSource Version 4.5.1e (Build 1049)
    MySQL Server version: 5.0.27
    Apache 1.3.37 (Unix)
    PHP 5.0.5
    ________
    Nexium settlements
    Last edited by manish.joshi; 2011-04-30 at 11:16 PM.

  2. #2
    VeonConsulting is offline Sugar Community Member
    Join Date
    Jul 2007
    Posts
    97

    Default Re: Custom fields' value appear in edit view but not in detail view, and vice- versa

    Hi Manish...

    It is tough to tell what could be the problem, but apply the same customization in some other version,e.g., 4.5.1 d and see if you have the same problem.

    Regards.
    Team Veon
    Veon Consulting Pvt Ltd.
    Hyderabad, India.
    Phone - +91-40-66444272/73/74
    Veon Consulting Pvt Limited
    Skype - veon.consulting / prasad.veon

  3. #3
    manish.joshi is offline Sugar Community Member
    Join Date
    Mar 2007
    Posts
    33

    Default Re: Custom fields' value appear in edit view but not in detail view, and vice- versa

    Hi,

    Thanks. But this customization is nothing more than a custom field. I have many more in this same module as one can see in the screen shot, and in other modules as well. But never faced this kind of problem. Ya.. I understand that its difficult to assume what the problem could be, but just in case someone has faced similar issue...??

    Cheers!
    ________
    MEDICAL MARIJUANA
    Last edited by manish.joshi; 2011-04-30 at 11:16 PM.

  4. #4
    SamuelAugy is offline Sugar Community Member
    Join Date
    Sep 2007
    Location
    Paris (France)
    Posts
    238

    Default Re: Custom fields' value appear in edit view but not in detail view, and vice- versa

    Could you ckeck in the EditView.php and in the DetailView.php that you have a line like :
    $xtpl->assign("CAMPAIGN_ID", $focus->campaign_id);

    where CAMPAIGN_ID have to be in the .html after the "value" balise and the $focus->campaign_id is you custom field.

  5. #5
    JWO112 is offline Sugar Community Member
    Join Date
    Jul 2007
    Posts
    39

    Default Re: Custom fields' value appear in edit view but not in detail view, and vice- versa

    I have a similar issue; we took the "Campaign" field off of the edit view of Opportunities while it wasn't in use. Problem is, now the field isn't available in studio to put it back on! It shows up in the detail view, etc... but not in the edit view.
    Any help would be greatly appreciated!
    -Justin

  6. #6
    kbrill's Avatar
    kbrill is offline SugarCRM PS Engineer
    Join Date
    Jul 2004
    Location
    St Louis, MO
    Posts
    3,183

    Default Re: Custom fields' value appear in edit view but not in detail view, and vice- versa

    Quote Originally Posted by JWO112
    I have a similar issue; we took the "Campaign" field off of the edit view of Opportunities while it wasn't in use. Problem is, now the field isn't available in studio to put it back on! It shows up in the detail view, etc... but not in the edit view.
    Any help would be greatly appreciated!
    -Justin
    This is a bug in Studio that I think they have fixed in 451f. For now you need to add it manually with a text editor. You can also use the 'history' function to revert to a version before you removed the field and that should work too.

    For the problem that started this thread, I would need to see the DetailView.html and the EditView.html from that module.
    Kenneth Brill - Help Forum Moderator

    I do not respond to 'Private Messages'. Please email me directly instead

    When asking for help, PLEASE give us your Server Information and Version Numbers as asked for on the 'Post New Message' screen as well as any JavaScript errors shown at the bottom of the browser window.
    Help us Help You

  7. #7
    manish.joshi is offline Sugar Community Member
    Join Date
    Mar 2007
    Posts
    33

    Default Re: Custom fields' value appear in edit view but not in detail view, and vice- versa

    Hello Kenneth,

    Please find below the DetailView.html. I noticed that the field not showing the value is appearing between <!-- BEGIN: open_source --> and <!-- END: open_source -->. The fieldname is RNWAYLENGTH_C.

    HTML Code:
    -->
    <!-- BEGIN: main -->
    <table width="100%" cellpadding="0" cellspacing="0" border="0">
    <tr>
    	<td style="padding-bottom: 2px;">
    		<form name="DetailView" method="POST" action="index.php" enctype="multipart/form-data">
    			<input type="hidden" name="module" value="Documents">
    			<input type="hidden" name="record" value="{ID}">
    			<input type="hidden" name="action">
    			<input type="hidden" name="isDuplicate">
    			<input type="hidden" name="old_id" value="{DOCUMENT_REVISION_ID}">
    			<input type="hidden" name="return_module" value="{RETURN_MODULE}">
    			<input type="hidden" name="return_id" value="{RETURN_ID}">
    			<input type="hidden" name="return_action" value="{RETURN_ACTION}">
    			
    			<input title="{APP.LBL_EDIT_BUTTON_TITLE}" accessKey="{APP.LBL_EDIT_BUTTON_KEY}" class="button" onclick="this.form.return_module.value='Documents'; this.form.return_action.value='DetailView'; this.form.return_id.value='{ID}'; this.form.action.value='EditView'" type="submit" name="Edit" value="  {APP.LBL_EDIT_BUTTON_LABEL}  ">
    			<input title="{APP.LBL_DUPLICATE_BUTTON_TITLE}" accessKey="{APP.LBL_DUPLICATE_BUTTON_KEY}" class="button" onclick="this.form.return_module.value='Documents'; this.form.return_action.value='index'; this.form.isDuplicate.value=true; this.form.action.value='EditView'" type="submit" name="Duplicate" value=" {APP.LBL_DUPLICATE_BUTTON_LABEL} ">
    			<input title="{APP.LBL_DELETE_BUTTON_TITLE}" accessKey="{APP.LBL_DELETE_BUTTON_KEY}" class="button" onclick="this.form.return_module.value='Documents'; this.form.return_action.value='ListView'; this.form.action.value='Delete'; return confirm('{APP.NTC_DELETE_CONFIRMATION}')" type="submit" name="Delete" value=" {APP.LBL_DELETE_BUTTON_LABEL} ">
    		</form>
    	</td>
    	<td align="right">{ADMIN_EDIT}</td>
    </tr>
    </table>
    
    
    	<table width="100%" border="0" cellspacing="{GRIDLINE}" cellpadding="0" class="tabDetailView">
    {PAGINATION}
    	<tr>
    		<td width="15%" valign="top" class="tabDetailViewDL"><span sugar='slot1'>{MOD.LBL_DOC_NAME}</span sugar='slot'></td>
    		<td width="35%" valign="top" class="tabDetailViewDF"><span sugar='slot1b'>{DOCUMENT_NAME}&nbsp;</span sugar='slot'></td>		
            <td width="15%" valign="top" class="tabDetailViewDL"><span sugar='slot2'>{MOD.apttype_c}</span sugar='slot'></td>
    		<td width="35%" valign="top" class="tabDetailViewDF"><span sugar='slot2b'>{APTTYPE_C}</span sugar='slot'></td>		        
    	</tr>
    	<tr>
            <td width="18%" valign="top" class="tabDetailViewDL"><span sugar='slot3'>{MOD.LBL_DOC_VERSION}</span sugar='slot'></td>
            <td width="35%" valign="top" class="tabDetailViewDF"><span sugar='slot3b'>{REVISION}&nbsp;</span sugar='slot'></td>	
            <td valign="top" class="tabDetailViewDL"><span sugar='slot4'>{MOD.airportcood_c}</span sugar='slot'></td>
    		<td valign="top" class="tabDetailViewDF"><span sugar='slot4b'>{AIRPORTCOOD_C}</span sugar='slot'></td>		        
    	</tr>
    	<tr>
    		<td width="15%" valign="top" class="tabDetailViewDL"><span sugar='slot5'>{MOD.fuelyesno_c}</span sugar='slot'></td>
    		<td width="35%" valign="top" class="tabDetailViewDF"><span sugar='slot5b'>{FUELYESNO_C}</span sugar='slot'></td>		
            <td width="15%" valign="top" class="tabDetailViewDL"><span sugar='slot6'>{MOD.rnwaystrngth_c}</span sugar='slot'></td>
    		<td width="35%" valign="top" class="tabDetailViewDF"><span sugar='slot6b'>{RNWAYSTRNGTH_C}</span sugar='slot'></td>		        
    	</tr>
    	<tr>
    		<td width="15%" valign="top" class="tabDetailViewDL"><span sugar='slot7'>{MOD.rnwayelevtion_c}</span sugar='slot'></td>
    		<td width="35%" valign="top" class="tabDetailViewDF"><span sugar='slot7b'>{RNWAYELEVTION_C}</span sugar='slot'></td>	
    <!-- BEGIN: pro -->			
            <td width="15%" valign="top" class="tabDetailViewDL"><span sugar='slot8'>{MOD.LBL_TEAM}</span sugar='slot'></td>
    		<td width="35%" valign="top" class="tabDetailViewDF"><span sugar='slot8b'>{TEAM}&nbsp;</span sugar='slot'></td>
    <!-- END: pro -->
    <!-- BEGIN: open_source -->
    		<td width="15%" class="tabDetailViewDL"><span sugar='slot9'>{MOD.rnwaylength_c}</span sugar='slot'></td>
    		<td width="35%" class="tabDetailViewDF"><span sugar='slot9b'>{RNWAYLENGTH_C}</span sugar='slot'></td>
    <!-- END: open_source -->
    	</tr>
    	<tr>
    		<td width="15%" valign="top" class="tabDetailViewDL"><span sugar='slot10'>{MOD.aptopsfrom_c}</span sugar='slot'></td>
    		<td width="35%" valign="top" class="tabDetailViewDF"><span sugar='slot10b'>{APTOPSFROM_C}</span sugar='slot'></td>		
            <td width="15%" valign="top" class="tabDetailViewDL"><span sugar='slot11'>{MOD.aptopsto_c}</span sugar='slot'></td>
    		<td width="35%" valign="top" class="tabDetailViewDF"><span sugar='slot11b'>{APTOPSTO_C}</span sugar='slot'></td>		        
    	</tr>
    	<tr>
    		<td width="15%" valign="top" class="tabDetailViewDL"><span sugar='slot12'>{MOD.atcperson_c}</span sugar='slot'></td>
    		<td width="35%" valign="top" class="tabDetailViewDF"><span sugar='slot12b'>{ATCPERSON_C}</span sugar='slot'></td>		
            <td width="15%" valign="top" class="tabDetailViewDL"><span sugar='slot13'>{MOD.atcphone_c}</span sugar='slot'></td>
    		<td width="35%" valign="top" class="tabDetailViewDF"><span sugar='slot13b'>{ATCPHONE_C}</span sugar='slot'></td>		        
    	</tr><tr><td width="15%" valign="top" class="tabDetailViewDL" colspan="1"><span sugar='slot20'>&nbsp;</span sugar='slot'></td><td width="35%" valign="top" class="tabDetailViewDF" colspan="1"><span sugar='slot20b'>&nbsp;</span sugar='slot'></td>
    <td width="15%" valign="top" class="tabDetailViewDL" colspan="1"><span sugar='slot21'>&nbsp;</span sugar='slot'></td><td width="35%" valign="top" class="tabDetailViewDF" colspan="1"><span sugar='slot21b'>&nbsp;</span sugar='slot'></td></tr>
    	
    	<tr>
    		<td width="15%" valign="top" class="tabDetailViewDL"><span sugar='slot14'>{MOD.srvcsprtr_c}</span sugar='slot'></td>
    		<td width="35%" valign="top" class="tabDetailViewDF"><span sugar='slot14b'><div title="SRVCSPRTR_C_HELP" >{SRVCSPRTR_C}</div></span sugar='slot'></td>		
            <td width="15%" valign="top" class="tabDetailViewDL"><span sugar='slot15'>&nbsp;</span sugar='slot'></td>
    		<td width="35%" valign="top" class="tabDetailViewDF"><span sugar='slot15b'>&nbsp;</span sugar='slot'></td>		        
    	</tr><tr><td width="15%" valign="top" class="tabDetailViewDL" colspan="1"><span sugar='slot22'>{MOD.srvcprvdr_c}</span sugar='slot'></td><td width="35%" valign="top" class="tabDetailViewDF" colspan="1"><span sugar='slot22b'>{SRVCPRVDR_C}</span sugar='slot'></td>
    <td width="15%" valign="top" class="tabDetailViewDL" colspan="1"><span sugar='slot23'>{MOD.srvcmobile_c}</span sugar='slot'></td><td width="35%" valign="top" class="tabDetailViewDF" colspan="1"><span sugar='slot23b'>{SRVCMOBILE_C}</span sugar='slot'></td></tr>
    <tr><td width="15%" valign="top" class="tabDetailViewDL" colspan="1"><span sugar='slot24'>{MOD.srvcoffphn_c}</span sugar='slot'></td><td width="35%" valign="top" class="tabDetailViewDF" colspan="1"><span sugar='slot24b'>{SRVCOFFPHN_C}</span sugar='slot'></td>
    <td width="15%" valign="top" class="tabDetailViewDL" colspan="1"><span sugar='slot25'>{MOD.srvchomephn_c}</span sugar='slot'></td><td width="35%" valign="top" class="tabDetailViewDF" colspan="1"><span sugar='slot25b'>{SRVCHOMEPHN_C}</span sugar='slot'></td></tr>
    <tr><td width="15%" valign="top" class="tabDetailViewDL" colspan="1"><span sugar='slot26'>{MOD.srvcfax_c}</span sugar='slot'></td><td width="35%" valign="top" class="tabDetailViewDF" colspan="1"><span sugar='slot26b'>{SRVCFAX_C}</span sugar='slot'></td>
    <td width="15%" valign="top" class="tabDetailViewDL" colspan="1"><span sugar='slot27'>{MOD.srvcemail_c}</span sugar='slot'></td><td width="35%" valign="top" class="tabDetailViewDF" colspan="1"><span sugar='slot27b'>{SRVCEMAIL_C}</span sugar='slot'></td></tr>
    <tr><td width="15%" valign="top" class="tabDetailViewDL" colspan="1"><span sugar='slot28'>{MOD.srvcadrs_c}</span sugar='slot'></td><td width="35%" valign="top" class="tabDetailViewDF" colspan="1"><span sugar='slot28b'>{SRVCADRS_C}</span sugar='slot'></td>
    <td width="15%" valign="top" class="tabDetailViewDL" colspan="1"><span sugar='slot29'>{MOD.srvccity_c}</span sugar='slot'></td><td width="35%" valign="top" class="tabDetailViewDF" colspan="1"><span sugar='slot29b'>{SRVCCITY_C}</span sugar='slot'></td></tr>
    <tr><td width="15%" valign="top" class="tabDetailViewDL" colspan="1"><span sugar='slot30'>{MOD.srvcstate_c}</span sugar='slot'></td><td width="35%" valign="top" class="tabDetailViewDF" colspan="1"><span sugar='slot30b'>{SRVCSTATE_C}</span sugar='slot'></td>
    <td width="15%" valign="top" class="tabDetailViewDL" colspan="1"><span sugar='slot31'>{MOD.srvcpstlcd_c}</span sugar='slot'></td><td width="35%" valign="top" class="tabDetailViewDF" colspan="1"><span sugar='slot31b'>{SRVCPSTLCD_C}</span sugar='slot'></td></tr>
    <tr><td width="15%" valign="top" class="tabDetailViewDL" colspan="1"><span sugar='slot32'>{MOD.srvccntry_c}</span sugar='slot'></td><td width="35%" valign="top" class="tabDetailViewDF" colspan="1"><span sugar='slot32b'>{SRVCCNTRY_C}</span sugar='slot'></td>
    <td width="15%" valign="top" class="tabDetailViewDL" colspan="1"><span sugar='slot33'>&nbsp;</span sugar='slot'></td><td width="35%" valign="top" class="tabDetailViewDF" colspan="1"><span sugar='slot33b'>&nbsp;</span sugar='slot'></td></tr>
    		
    	
    		
    		
    	</table>
    
    {JAVASCRIPT}
    <!-- END: main -->
    The EditView.html follows...
    ________
    Babes live
    Last edited by manish.joshi; 2011-04-30 at 11:16 PM.

  8. #8
    manish.joshi is offline Sugar Community Member
    Join Date
    Mar 2007
    Posts
    33

    Default Re: Custom fields' value appear in edit view but not in detail view, and vice- versa

    Hello Kenneth,

    Please find below the first half of EditView.html. The second half follows in next reply because of character limitation. The concerned field appears in second half.

    HTML Code:
    -->
    -->
    <!-- BEGIN: main -->
    <script type="text/javascript" src="include/javascript/popup_parent_helper.js?s={SUGAR_VERSION}&c={JS_CUSTOM_VERSION}"></script>
    <script type="text/javascript" src="include/JSON.js?s={SUGAR_VERSION}&c={JS_CUSTOM_VERSION}"></script>
    <script type="text/javascript" src="include/jsolait/init.js?s={SUGAR_VERSION}&c={JS_CUSTOM_VERSION}"></script>
    <script type="text/javascript" src="include/jsolait/lib/urllib.js?s={SUGAR_VERSION}&c={JS_CUSTOM_VERSION}"></script>
    <script type="text/javascript">{JSON_CONFIG_JAVASCRIPT}</script>
    <script type="text/javascript" src="include/javascript/jsclass_base.js"></script>
    <script type="text/javascript" src="include/javascript/jsclass_async.js"></script>
    <script type="text/javascript" src="modules/Documents/documents.js?s={SUGAR_VERSION}&c={JS_CUSTOM_VERSION}"></script>
    
    
    <table width="100%" cellpadding="0" cellspacing="0" border="0">
    <tr>
    	<td style="padding-bottom: 2px;">
    			<form name="EditView" method="POST" action="index.php" enctype="multipart/form-data">
    			<input type="hidden" name="module" value="Documents">
    			<input type="hidden" name="record" value="{ID}">
    			<input type="hidden" name="action">
    			<input type="hidden" name="old_id" value="{OLD_ID}">
    			<input type="hidden" name="return_module" value="{RETURN_MODULE}">
    			<input type="hidden" name="return_id" value="{RETURN_ID}">
    			<input type="hidden" name="return_action" value="{RETURN_ACTION}">
    			<input type="hidden" name="parent_id" value="{PARENT_ID}">
    			<input type="hidden" name="parent_type" value="{PARENT_TYPE}">
    			<input type="hidden" name="parent_name" value="{PARENT_NAME}">
    			<input type="hidden" name="load_signed_id" value="{LOAD_SIGNED_ID}">
    			<input title="{APP.LBL_SAVE_BUTTON_TITLE}" accessKey="{APP.LBL_SAVE_BUTTON_KEY}" class="button" onclick="this.form.action.value='Save'; status=verify_data(this.form); if (status) {document.getElementById('related_doc_rev_id').disabled=false;};return status;" type="submit" name="button" value="  {APP.LBL_SAVE_BUTTON_LABEL}  " > <input title="{APP.LBL_CANCEL_BUTTON_TITLE}" accessKey="{APP.LBL_CANCEL_BUTTON_KEY}" class="button" onclick="this.form.action.value='{RETURN_ACTION}'; this.form.module.value='{RETURN_MODULE}'; this.form.record.value='{RETURN_ID}'" type="submit" name="button" value="  {APP.LBL_CANCEL_BUTTON_LABEL}  "></td>
    	<td align="right" nowrap><span  class="required">{APP.LBL_REQUIRED_SYMBOL}</span> {APP.NTC_REQUIRED}</td>
    	<td align='right'>{ADMIN_EDIT}</td>
    	</tr>
    </table>
    
    <table width="100%" border="0" cellspacing="0" cellpadding="0"  class="tabForm">
    <tr>
    <td>
    	<table width="100%" border="0" cellspacing="1" cellpadding="0">
    	<!-- BEGIN: parent_name -->
    	<tr>
            <td width="15%" class="dataLabel"><span sugar='slot1'>{LBL_PARENT_NAME}</span sugar='slot'></td>
            <td width="85%" colspan=3 class="dataField"><span sugar='slot1b'>{PARENT_NAME}</span sugar='slot'></td>	
    	</tr>
    	<!-- END: parent_name -->
    	
    	<tr>
            <td width="15%" class="dataLabel"><span sugar='slot3'>{MOD.LBL_DOC_NAME}&nbsp;<span class="required">{APP.LBL_REQUIRED_SYMBOL}</span></span sugar='slot'></td>
            <td width="35%" class="dataField"><span sugar='slot3b'><input name='document_name' tabindex='1' type='text' size=40 value="{DOCUMENT_NAME}"></span sugar='slot'></td>	
            <td width="15%" class="dataLabel"><span sugar='slot4'>{MOD.apttype_c}</span sugar='slot'></td>
    		<td width="35%" class="dataField"><span sugar='slot4b'><select name="apttype_c" title="{APTTYPE_C_HELP}">{OPTIONS_APTTYPE_C}</select></span sugar='slot'></td>		        
    	</tr>
    	<tr>
            <td width="18%" class="dataLabel"><span sugar='slot5'>{MOD.LBL_DOC_VERSION}&nbsp;<span class="required">{APP.LBL_REQUIRED_SYMBOL}</span></span sugar='slot'></td>
            <td width="35%" class="dataField"><span sugar='slot5b'><input name='revision' {DISABLED} tabindex='2' type='text' value='{REVISION}'></span sugar='slot'></td>	
            <td width="18%" class="dataLabel"><span sugar='slot6'>{MOD.airportcood_c}</span sugar='slot'></td>
            <td width="35%" class="dataField"><span sugar='slot6b'><input type='text' name='airportcood_c' id='airportcood_c' size='20' maxlength='50' value='{AIRPORTCOOD_C}' title='{AIRPORTCOOD_C_HELP}'></span sugar='slot'></td>	
    	</tr>	
    	<tr>
    		<td valign="top" class="dataLabel"><span sugar='slot7'>{MOD.fuelyesno_c}</span sugar='slot'></td>
    		<td class="dataField"><span sugar='slot7b'><select name="fuelyesno_c" title="{FUELYESNO_C_HELP}">{OPTIONS_FUELYESNO_C}</select></span sugar='slot'></td>
    		<td valign="top" class="dataLabel"><span sugar='slot8'>{MOD.rnwaystrngth_c}</span sugar='slot'></td>
    		<td class="dataField"><span sugar='slot8b'><input type='text' name='rnwaystrngth_c' id='rnwaystrngth_c' title='{RNWAYSTRNGTH_C_HELP}' size='20' maxlength='11' value='{RNWAYSTRNGTH_C}'></span sugar='slot'></td>	
    	</tr><tr><td valign="top" class="dataLabel" colspan="1"><span sugar='slot18'>{MOD.rnwayelevtion_c}</span sugar='slot'></td><td class="dataField" colspan="1"><span sugar='slot18b'><input type='text' name='rnwayelevtion_c' id='rnwayelevtion_c' title='{RNWAYELEVTION_C_HELP}' size='20' maxlength='11' value='{RNWAYELEVTION_C}'></span sugar='slot'></td>
    <td valign="top" class="dataLabel" colspan="1"><span sugar='slot19'>{MOD.rnwaylength_c}</span sugar='slot'></td><td class="dataField" colspan="1"><span sugar='slot19b'><input type='text' name='rnwaylength_c' id='rnwaylength_c' title='{RNWAYLENGTH_C_HELP}' size='20' maxlength='11' value='{RNWAYLENGTH_C}'></span sugar='slot'></td></tr>
    <tr><td valign="top" class="dataLabel" colspan="1"><span sugar='slot20'>{MOD.aptopsfrom_c}</span sugar='slot'></td><td class="dataField" colspan="1"><span sugar='slot20b'><input type='text' name='aptopsfrom_c' id='aptopsfrom_c' size='20' maxlength='50' value='{APTOPSFROM_C}' title='{APTOPSFROM_C_HELP}'></span sugar='slot'></td>
    <td valign="top" class="dataLabel" colspan="1"><span sugar='slot21'>{MOD.aptopsto_c}</span sugar='slot'></td><td class="dataField" colspan="1"><span sugar='slot21b'><input type='text' name='aptopsto_c' id='aptopsto_c' size='20' maxlength='50' value='{APTOPSTO_C}' title='{APTOPSTO_C_HELP}'></span sugar='slot'></td></tr>
    <tr><td valign="top" class="dataLabel" colspan="1"><span sugar='slot22'>{MOD.atcperson_c}</span sugar='slot'></td><td class="dataField" colspan="1"><span sugar='slot22b'><input type='text' name='atcperson_c' id='atcperson_c' size='20' maxlength='50' value='{ATCPERSON_C}' title='{ATCPERSON_C_HELP}'></span sugar='slot'></td>
    <td valign="top" class="dataLabel" colspan="1"><span sugar='slot23'>{MOD.atcphone_c}</span sugar='slot'></td><td class="dataField" colspan="1"><span sugar='slot23b'><input type='text' name='atcphone_c' id='atcphone_c' size='20' maxlength='50' value='{ATCPHONE_C}' title='{ATCPHONE_C_HELP}'></span sugar='slot'></td></tr><tr><td valign="top" class="dataLabel"  colspan="1"><span sugar='slot37'>&nbsp;</span sugar='slot'></td><td class="dataField"  colspan="1"><span sugar='slot37b'>&nbsp;</span sugar='slot'></td>
    <td valign="top" class="dataLabel"  colspan="1"><span sugar='slot38'>&nbsp;</span sugar='slot'></td><td class="dataField"  colspan="1"><span sugar='slot38b'>&nbsp;</span sugar='slot'></td></tr>
    Regards,
    Manish Joshi
    ________
    Nevada medical marijuana dispensaries
    Last edited by manish.joshi; 2011-04-30 at 11:17 PM.

  9. #9
    manish.joshi is offline Sugar Community Member
    Join Date
    Mar 2007
    Posts
    33

    Default Re: Custom fields' value appear in edit view but not in detail view, and vice- versa

    This is the second half of EditView.html. Here also the field not showing the value appears between <!-- BEGIN: open_source --> and <!-- END: open_source -->. The field name is SRVCPSTLCD_C.


    HTML Code:
    <tr><td valign="top" class="dataLabel" colspan="1"><span sugar='slot24'>{MOD.srvcsprtr_c}</span sugar='slot'></td><td class="dataField" colspan="1"><span sugar='slot24b'><div title="SRVCSPRTR_C_HELP" >{SRVCSPRTR_C}</div></span sugar='slot'></td>
    <td valign="top" class="dataLabel" colspan="1"><span sugar='slot25'>&nbsp;</span sugar='slot'></td><td class="dataField" colspan="1"><span sugar='slot25b'>&nbsp;</span sugar='slot'></td></tr>
    <tr><td valign="top" class="dataLabel" colspan="1"><span sugar='slot26'>{MOD.srvcprvdr_c}</span sugar='slot'></td><td class="dataField" colspan="1"><span sugar='slot26b'><input type='text' name='srvcprvdr_c' id='srvcprvdr_c' size='20' maxlength='50' value='{SRVCPRVDR_C}' title='{SRVCPRVDR_C_HELP}'></span sugar='slot'></td>
    <td valign="top" class="dataLabel" colspan="1"><span sugar='slot27'>{MOD.srvcmobile_c}</span sugar='slot'></td><td class="dataField" colspan="1"><span sugar='slot27b'><input type='text' name='srvcmobile_c' id='srvcmobile_c' size='20' maxlength='50' value='{SRVCMOBILE_C}' title='{SRVCMOBILE_C_HELP}'></span sugar='slot'></td></tr>
    <tr><td valign="top" class="dataLabel" colspan="1"><span sugar='slot28'>{MOD.srvcoffphn_c}</span sugar='slot'></td><td class="dataField" colspan="1"><span sugar='slot28b'><input type='text' name='srvcoffphn_c' id='srvcoffphn_c' size='20' maxlength='50' value='{SRVCOFFPHN_C}' title='{SRVCOFFPHN_C_HELP}'></span sugar='slot'></td>
    <td valign="top" class="dataLabel" colspan="1"><span sugar='slot29'>{MOD.srvchomephn_c}</span sugar='slot'></td><td class="dataField" colspan="1"><span sugar='slot29b'><input type='text' name='srvchomephn_c' id='srvchomephn_c' size='20' maxlength='50' value='{SRVCHOMEPHN_C}' title='{SRVCHOMEPHN_C_HELP}'></span sugar='slot'></td></tr>
    <tr><td valign="top" class="dataLabel" colspan="1"><span sugar='slot30'>{MOD.srvcfax_c}</span sugar='slot'></td><td class="dataField" colspan="1"><span sugar='slot30b'><input type='text' name='srvcfax_c' id='srvcfax_c' size='20' maxlength='50' value='{SRVCFAX_C}' title='{SRVCFAX_C_HELP}'></span sugar='slot'></td>
    <td valign="top" class="dataLabel" colspan="1"><span sugar='slot31'>{MOD.srvcemail_c}</span sugar='slot'></td><td class="dataField" colspan="1"><span sugar='slot31b'><input type='text' name='srvcemail_c' id='srvcemail_c' size='20' maxlength='50' value='{SRVCEMAIL_C}' title='{SRVCEMAIL_C_HELP}'></span sugar='slot'></td></tr>
    <tr><td valign="top" class="dataLabel" colspan="1"><span sugar='slot32'>{MOD.srvcadrs_c}</span sugar='slot'></td><td class="dataField" colspan="1"><span sugar='slot32b'><input type='text' name='srvcadrs_c' id='srvcadrs_c' size='20' maxlength='50' value='{SRVCADRS_C}' title='{SRVCADRS_C_HELP}'></span sugar='slot'></td>
    <td valign="top" class="dataLabel" colspan="1"><span sugar='slot33'>{MOD.srvccity_c}</span sugar='slot'></td><td class="dataField" colspan="1"><span sugar='slot33b'><input type='text' name='srvccity_c' id='srvccity_c' size='20' maxlength='50' value='{SRVCCITY_C}' title='{SRVCCITY_C_HELP}'></span sugar='slot'></td></tr>
    
    	<tr>
    		<td valign="top" class="dataLabel"><span sugar='slot9'>{MOD.srvcstate_c}</span sugar='slot'></td>
    		<td class="dataField"><span sugar='slot9b'><input type='text' name='srvcstate_c' id='srvcstate_c' size='20' maxlength='50' value='{SRVCSTATE_C}' title='{SRVCSTATE_C_HELP}'></span sugar='slot'></td>
    
    
    	<!-- BEGIN: open_source -->
    		<td width="20%" class="dataLabel"><span sugar='slot11'>{MOD.srvcpstlcd_c}</span sugar='slot'></td>
    		<td width="30%" class="dataField"><span sugar='slot11b'><input type='text' name='srvcpstlcd_c' id='srvcpstlcd_c' size='20' maxlength='50' value='{SRVCPSTLCD_C}' title='{SRVCPSTLCD_C_HELP}'></span sugar='slot'></td>
    	<!-- END: open_source -->
    			
    	</tr><tr><td valign="top" class="dataLabel" colspan="1"><span sugar='slot34'>{MOD.srvccntry_c}</span sugar='slot'></td><td class="dataField" colspan="1"><span sugar='slot34b'><input type='text' name='srvccntry_c' id='srvccntry_c' size='20' maxlength='50' value='{SRVCCNTRY_C}' title='{SRVCCNTRY_C_HELP}'></span sugar='slot'></td>
    <td valign="top" class="dataLabel" colspan="1"><span sugar='slot35'>&nbsp;</span sugar='slot'></td><td class="dataField" colspan="1"><span sugar='slot35b'>&nbsp;</span sugar='slot'></td></tr>
    
    
    	
    		
    	
    	</table>
    </td>
    </tr>
    </table>
    <div style="padding-top: 2px">
    	<input title="{APP.LBL_SAVE_BUTTON_TITLE}" accessKey="{APP.LBL_SAVE_BUTTON_KEY}" class="button" onclick="this.form.action.value='Save'; status=verify_data(this.form); if (status) {document.getElementById('related_doc_rev_id').disabled=false;};return status;" type="submit" name="button" value="  {APP.LBL_SAVE_BUTTON_LABEL}  " > <input title="{APP.LBL_CANCEL_BUTTON_TITLE}" accessKey="{APP.LBL_CANCEL_BUTTON_KEY}" class="button" onclick="this.form.action.value='{RETURN_ACTION}'; this.form.module.value='{RETURN_MODULE}'; this.form.record.value='{RETURN_ID}'" type="submit" name="button" value="  {APP.LBL_CANCEL_BUTTON_LABEL}  ">
    </div>
    </form>
    <script type="text/javascript" language="JavaScript">
    	Calendar.setup ({
    		inputField : "active_date_field", ifFormat : "{CALENDAR_DATEFORMAT}", showsTime : false, button : "active_date_trigger", singleClick : true, step : 1
    	});
    	
    	Calendar.setup ({
    		inputField : "exp_date_field", ifFormat : "{CALENDAR_DATEFORMAT}", showsTime : false, button : "exp_date_trigger", singleClick : true, step : 1
    	});
    
    
    	function setvalue(source) {
    		src= new String(source.value);
    		target=new String(source.form.document_name.value);
    
    		if (target.length == 0) {
    			lastindex=src.lastIndexOf("/");
    			if (lastindex == -1) {
    				lastindex=src.lastIndexOf("\\");
    			} 
    			if (lastindex == -1) {
    				source.form.document_name.value=src;
    				source.form.escaped_document_name.value = src;
    			} else {
    				source.form.document_name.value=src.substr(++lastindex, src.length);
    				source.form.escaped_document_name.value = src.substr(lastindex, src.length);
    			}	
    		}			
    	}
    	
    	function toggle_template_type(istemplate) {
    		template_type = document.getElementById('template_type');
    		if (istemplate.checked) {
    			//template_type.enabled=true;
    			template_type.disabled=false;
    		} else {
    			//template_type.enabled=false;
    			template_type.disabled=true;					
    		}
    	}
    </script>
    
    
    
    {JAVASCRIPT}
    <!-- END: main -->
    Regards,
    Manish Joshi
    ________
    Vaporizer volcano
    Last edited by manish.joshi; 2011-04-30 at 11:17 PM.

  10. #10
    kbrill's Avatar
    kbrill is offline SugarCRM PS Engineer
    Join Date
    Jul 2004
    Location
    St Louis, MO
    Posts
    3,183

    Default Re: Custom fields' value appear in edit view but not in detail view, and vice- versa

    Can you just attach the files to a message instead of including them? vBulletin changes the files enough that its easier to debug actual copies.
    Kenneth Brill - Help Forum Moderator

    I do not respond to 'Private Messages'. Please email me directly instead

    When asking for help, PLEASE give us your Server Information and Version Numbers as asked for on the 'Post New Message' screen as well as any JavaScript errors shown at the bottom of the browser window.
    Help us Help You

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •