Results 1 to 3 of 3

Thread: problem with dropdown editing

  1. #1
    gbattine is offline Member
    Join Date
    Jan 2009
    Posts
    11

    Default problem with dropdown editing

    Hello guys,
    I've a question, I hope you can help me.
    I enter a value from a dropdown. When I edits that dropdown previous value is not correctly show, but default value is shown. So if I save I lose old value and dropdown is set to default value.
    I set value in EditView.html from this dropdown

    PHP Code:
    <select title="{MACHINEPARKSMARCHE_C_HELP}" name="machineparksmarche_c">{OPTIONS_MACHINEPARKSMARCHE_C}</select
    In EditView.php I've
    PHP Code:
    $xtpl->assign("OPTIONS_MACHINEPARKSMARCHE_C"get_select_options_with_id($app_list_strings['machineparksmarche_c'], $app_list_strings['machineparksmarche_c_options_default_key'])); 
    What could be the error?
    Printing some variable on the screen I noted that in EditView.php I've a variable 'name' in which is store saved value of dropdown. So I need some way to pass that value to dropdown...

    Could someone help me? Is there some check to do on other files?If yes, could you say me where?
    Sorry for inexperience, I'm a newbie

    Thanks

  2. #2
    vishwasrao's Avatar
    vishwasrao is offline A Prolific Poster
    Join Date
    Sep 2008
    Location
    Pune,Maharashtra,India
    Posts
    385

    Smile Re: problem with dropdown editing

    Quote Originally Posted by gbattine View Post
    Hello guys,
    I've a question, I hope you can help me.
    I enter a value from a dropdown. When I edits that dropdown previous value is not correctly show, but default value is shown. So if I save I lose old value and dropdown is set to default value.
    I set value in EditView.html from this dropdown

    PHP Code:
    <select title="{MACHINEPARKSMARCHE_C_HELP}" name="machineparksmarche_c">{OPTIONS_MACHINEPARKSMARCHE_C}</select
    In EditView.php I've
    PHP Code:
    $xtpl->assign("OPTIONS_MACHINEPARKSMARCHE_C"get_select_options_with_id($app_list_strings['machineparksmarche_c'], $app_list_strings['machineparksmarche_c_options_default_key'])); 
    What could be the error?
    Printing some variable on the screen I noted that in EditView.php I've a variable 'name' in which is store saved value of dropdown. So I need some way to pass that value to dropdown...

    Could someone help me? Is there some check to do on other files?If yes, could you say me where?
    Sorry for inexperience, I'm a newbie

    Thanks
    Hi well come here,
    plz give me ur details about Operating System,PHP version ,Apache version ,Sugarcrm Version.
    & files with full path u have changed ,
    Have u created custom dropdown or it is standard one.
    glad to help u.
    Vishwasrao Salunkhe
    vishwasrao.salunkhe@gmail.com
    Fan Of Sachin Tendulkar
    Operating System :- Windows XP
    PHP Version:- 5.3
    Apache :-2.2.11
    MYSQL :-5.1.36

  3. #3
    gbattine is offline Member
    Join Date
    Jan 2009
    Posts
    11

    Default Re: problem with dropdown editing

    Thanks for your reply,
    I sincerely hope in your help!

    About my information please consider:
    -Windows 2000
    -Php 5.028
    -Sugar CRM 4.5
    -Mysql 5


    Dropdown is a custom dropdown, added in a custom module (I bought it, it's "Machine Parks" module.
    Now it's not simple for me to show all modified files, I'll do it if you need it..
    What I need to show you is that data are correctly saved in the db after insert and they are correctly shown when I see details of entered record. Problem happens only when I switch to edit mode...
    Could you say me which are files I need to check to evaluate disalignment or missing configuration?

    Thanks,
    Regards

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 0
    Last Post: 2008-02-20, 07:41 AM
  2. Replies: 2
    Last Post: 2008-01-11, 03:28 PM
  3. Fatal Error Editing Dropdown
    By beatle in forum Help
    Replies: 0
    Last Post: 2007-09-28, 05:38 PM
  4. Problem with editing
    By spignataro in forum Help
    Replies: 2
    Last Post: 2005-01-23, 02:00 AM

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
  •