Results 1 to 2 of 2

Thread: More attribiutes in SubPanelTopCreateButton

  1. #1
    bogo123 is offline Sugar Community Member
    Join Date
    Jul 2006
    Posts
    21

    Default More attribiutes in SubPanelTopCreateButton

    Hi,

    Does anybody know how I can add more attributes in my SubPanelTopCreateButton?

    Now I have:
    HTML Code:
    <script>document.getElementById("subpanel_offers" ).cookie_name="offers_v";</script>
    <script>markSubPanelLoaded('offers');</script><table cellpadding="0" cellspacing="0"><tr><td style="padding-right: 2px; padding-bottom: 2px;">
    <form action="index.php" method="post" name="form" id="formformOffers">
    <input type='hidden' name='module' value='Offers'>
    <input type='hidden' name='enquiry_id' value='ba0fdb47-88be-e860-d1a7-44b1fcc054ab'>
    <input type='hidden' name='enquiry_name' value='Sample Enquiry Name'><input type="hidden" name="return_module" value="Enquiry" />
    <input type="hidden" name="return_action" value="DetailView" />
    
    <input type="hidden" name="return_id" value="ba0fdb47-88be-e860-d1a7-44b5fcc054ab" />
    <input type="hidden" name="action" value="EditView" />
    <input type="hidden" name="parent_type" value="Enquiry" />
    <input type="hidden" name="parent_name" value="Sample Enquiry Name" />
    <input type="hidden" name="parent_id" value="ba0fdb47-88be-e860-d1a7-44b5fcc054ab" />
    <input title='Utwórz [Alt+N]' accesskey='N' class='button' type='submit' name='button' value='  Utwórz  ' />
    </form></td></tr></table>
    and I would like to add two attributes:
    HTML Code:
    <input type="hidden" name="account_name" value="DASAL LTD" />
    <input type="hidden" name="account_id" value="69d89821-1118-8855-5346-44a3c1ae13e3" />
    where Account is known from current record.

    I found, I could use $additionalFormFields, but I can't set it in "SugarWidgetSubPanelTopButton.php"
    PHP Code:
            foreach($additionalFormFields as $key => $value)
            {
                if(
    $key != 'action')
                {
                    
    $button .= '<input type="hidden" name="' $key '" value="' $value '" />' "\n";
                }
            } 
    Any ideas?

    Thanks
    Marcin

  2. #2
    sandro_nautilus is offline Junior Member
    Join Date
    Mar 2010
    Posts
    3

    Default Re: More attribiutes in SubPanelTopCreateButton

    Quote Originally Posted by bogo123 View Post
    Hi,

    Does anybody know how I can add more attributes in my SubPanelTopCreateButton?

    Now I have:
    HTML Code:
    <script>document.getElementById("subpanel_offers" ).cookie_name="offers_v";</script>
    <script>markSubPanelLoaded('offers');</script><table cellpadding="0" cellspacing="0"><tr><td style="padding-right: 2px; padding-bottom: 2px;">
    <form action="index.php" method="post" name="form" id="formformOffers">
    <input type='hidden' name='module' value='Offers'>
    <input type='hidden' name='enquiry_id' value='ba0fdb47-88be-e860-d1a7-44b1fcc054ab'>
    <input type='hidden' name='enquiry_name' value='Sample Enquiry Name'><input type="hidden" name="return_module" value="Enquiry" />
    <input type="hidden" name="return_action" value="DetailView" />
    
    <input type="hidden" name="return_id" value="ba0fdb47-88be-e860-d1a7-44b5fcc054ab" />
    <input type="hidden" name="action" value="EditView" />
    <input type="hidden" name="parent_type" value="Enquiry" />
    <input type="hidden" name="parent_name" value="Sample Enquiry Name" />
    <input type="hidden" name="parent_id" value="ba0fdb47-88be-e860-d1a7-44b5fcc054ab" />
    <input title='Utwórz [Alt+N]' accesskey='N' class='button' type='submit' name='button' value='  Utwórz  ' />
    </form></td></tr></table>
    and I would like to add two attributes:
    HTML Code:
    <input type="hidden" name="account_name" value="DASAL LTD" />
    <input type="hidden" name="account_id" value="69d89821-1118-8855-5346-44a3c1ae13e3" />
    where Account is known from current record.

    I found, I could use $additionalFormFields, but I can't set it in "SugarWidgetSubPanelTopButton.php"
    PHP Code:
            foreach($additionalFormFields as $key => $value)
            {
                if(
    $key != 'action')
                {
                    
    $button .= '<input type="hidden" name="' $key '" value="' $value '" />' "\n";
                }
            } 
    Any ideas?

    Thanks
    Marcin
    ?????????????????????????????Answer please

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
  •