Customizing WYSIWYG to add command in tool bar.

hi All,
i want to add a command in editor's tool bar which insert anchor tag and insert custom metadata as link (i have a custom metadata called xPortalLink which has auto generated link of data file on portal) inside editor. i suppose thr r 2 ways to do it.
-use custom configuration script
-customize link wizard to add additional option
i tried 1st option for couple of days but got stuck at point, how to return custom metadata
thr are few example provided in UCM. i started with image ss_fck_image_command.js and was able to insert anchor tag with predefined text and link. (something link <a href="http://www.google.com">click here</a>)
but in href i want to return my custom metadata.
i have very little understanding of FCKEditor APIs and this is how part retuning query result looks like
SimpleCommand.prototype.BrowseForImage = function()
            var options = {};
            options.queryText = 'dExtension <Matches> `xml` <AND> xWebsiteObjectType <Matches> `Data File`';       
            options.callback = $CB(this, function(returnParams)
                if (WCM.IsValid(returnParams) && WCM.IsValid(returnParams.docUrl xPortalLink) && WCM.IsValid(returnParams.dDocName))
                    this.dDocName = returnParams.dDocName;
                    this.urlInput.value = returnParams.docUrl xPortalLink;
            FCKElementAPI.ChooseManagedItem(options);
as far as customization of link wizard i don't know where to find js and html files for it.(tried to look into weblayout/3rdparty/FCKEditor).
please provide me any suggestion/solution on how to achieve it.
thanks
-somesh

Hi,
Give the PF ststus name in  the PF status parameter of ALV FM
I_CALLBACK_PF_STATUS_SET          = ' PF_STATUS'. " this parameter of ALV FM
FORM pf_status USING pt_extab TYPE slis_t_extab.
  SET PF-STATUS 'MAIN' .
ENDFORM.                    "pf_status
Then create a main PF status by double clicking on it , after this goto EXTRA in menu
EXTRA>ADJUST TEMPLATE> then give program - SAPLSLVC and status - STANDARD this will give u standard toolbar of ALV ,
THen add what ever button you require in application toolbar
Regards,
Madhukar Shetty

Similar Messages

  • How to add a standard tool bar in alv

    H i
    i am developing a custom report  in Alv interactive report for to dispaly MRP information.
    Can you sejjest me how to add  a standard tool bar in alv.
      i displayed one final alv grid display there i have to add standard tool bar and application tool bar.
    Thanks,
    Rams
    Edited by: Ramsoft on Oct 27, 2010 12:09 PM

    Hi,
    Give the PF ststus name in  the PF status parameter of ALV FM
    I_CALLBACK_PF_STATUS_SET          = ' PF_STATUS'. " this parameter of ALV FM
    FORM pf_status USING pt_extab TYPE slis_t_extab.
      SET PF-STATUS 'MAIN' .
    ENDFORM.                    "pf_status
    Then create a main PF status by double clicking on it , after this goto EXTRA in menu
    EXTRA>ADJUST TEMPLATE> then give program - SAPLSLVC and status - STANDARD this will give u standard toolbar of ALV ,
    THen add what ever button you require in application toolbar
    Regards,
    Madhukar Shetty

  • Hard Copy function in Customized Local layout ( Alt +F12) on tool bar

    Hi Experts,
    In SAP, the last button on the tool bar (i.e Customized Local layout - Alt + F12) use to automatically print a copy of the current transaction on screen when we selected the u201CHard Copyu201D command.
    But now, when we select u201CHard Copyu201D a screen comes up as if to save as a file. How can we change so as to automatically print?
    Thanks in advance
    Raghu

    hi,
    This is because of incorrect print configuration.
    Goto,
    From any report program select:
    Program-->print. In the print list screen window , click on properties.
    check whether these values are there in correspodnign field .
    1.Tome of printing -- print out immediately
    2.format -- x_65_132.
    3.sppol request -- (any name with RS).
    4.SAp cover sheets -- default settings .
    5.os cover sheet -- default setings.
    6.New sppol request --- yes
    Let me know if u still have the problem .

  • How do I get custom icon for favorites on my tool bar instead of a empty square

    I am trying to add an Image to a book marked page on my favorites toolbar that has a empty square and do not seem to be able to do this .I keep trying add ons but they are only allowing common icons .I know that I have been able to create buttons easily in the past but can not do so now .I tried several add ons that say just right click and i have looked at customize tool bar .I am missing somethig what is it ?

    ''Be patient, most of us are volunteers.''
    That webpage doesn't have a Favicon image.
    Come up with an image that you want and pick an extension [https://addons.mozilla.org/en-US/firefox/search/?q=Favicon&appver=15.0.1&platform=windows that inserts a Favicon or changes the Favicon].

  • How do I add a new Tool Bar?

    I wish to use Firefox as my browser -
    However, I would like to add the OBA-TEP Tool bar, if I can't, then Firefox will be of no use to me.
    Can somebody Help please?

    4th item in a Google search for '''OBA-TEP Tool bar'''
    http://obatep.ourtoolbar.com/
    Firefox installation instructions are here:
    http://obatep.ourtoolbar.com/ffinstallation/

  • When I go to new pages, a bar appears at the bottom of the screen letting me know McAfee thinks the site is safe. I have to close it manually. I have tried un-checking add on under tool bars, but that doesn't stop it. How can make it stop?

    This has begun since I upgraded to Firefox 4.

    There is a problem with the McAfee Site Advisor that causes the add-ons bar to constantly re-appear. Until McAfee fix their add-on the solution is to disable or uninstall the McAfee Site Advisor.
    https://support.mozilla.com/kb/Uninstalling+add-ons

  • How do I add a print button to the tool bar?

    When I open the menu there is not a "print" button to add to the tool bar. Even under customize there is not a "print" button. How do I print from mozilla?

    The Print button in the "3-bar" Firefox menu button drop-down list opens the Print Preview window.
    You can click the Print button in the Print Preview window or use the Print item in the File menu (File > Print) or use the Ctrl+P shortcut to have access to the print selection item and other print setup options.
    You can look at this extension:
    *Universal Print: https://addons.mozilla.org/firefox/addon/universal-print/
    There are other things that need attention.
    Your System Details list shows that you have a user.js file in the profile folder to initialize prefs each time Firefox starts.
    The user.js file is only present if you or other software has created this file and normally it wouldn't be there.
    You can check its content with a plain text editor (right-click: "Open with"; do not double-click).
    The user.js file is read each time Firefox is started and initializes preferences to the value specified in this file, so preferences set via user.js can only be changed temporarily for the current session.
    You can delete the user.js file if you didn't create this file yourself.
    *http://kb.mozillazine.org/Preferences_not_saved

  • TOOL BAR ADD TAB NOT WORKING EVEN AFTER REINSTALL.

    ADD TAB IN TOOL BAR HAS BECOME NON RESPONSIVE. UNINSTALL AND REINSTALL DIDN'T HELP. YOU CAN STILL GET NEW TABS BY RT CLICKING FROM BOOKMARKS. BUT THE BUTTON AND THE PULL DOWN MENUS DON'T WORK. MY FIRST SUSPECT IS A VIRUS AS I JUST CLEANED ONE OUT OF MY SYSTEM. MAYBE A BROWSER HELPER LEFT SOMETHING FROM IT IN THE CODE. THIS WAS ABOUT THE TIME THAT NEW THREAT TO MOST OF THE WINDOWS SYSTEMS WENT OUT. SORRY CAN'T REMEMBER WHICH VIRUS I CLEANED. I CAUGHT IT AND CLEANED IT AUTOMATICALLY.

    I ADAPTED THIS STYLE AS EASIER TO TYPE AND READ AND... ''so I could interject a subtext easier.'' SHOUTING WAS NEVER THE INTENT. ''sorry about that Chief.''
    THANK YOU FOR THE QUICK RESPONSE AND MUCH NEEDED HELP!!!!!
    ''seats are cheap here.''
    THE ASK TOOLBAR WAS ONE OF THOSE THINGS I USUALLY LOCATE AND OPT OUT OF WHEN INSTALLING A NEW PROGRAM. I DIDN'T CATCH IT THE LAST TIME AND HAD A LITTLE TROUBLE GETTING RID OF IT SO I DISABLED IT ''or so I thought'' WITH THE INTENT TO GET IT LATER. I HAD TRIED TO USE THE [ADD/REMOVE] FROM THE CONTROL PANEL WITHOUT SUCCESS.''I completely forgot about the firefox add on console. ''
    I'VE SINCE TAKEN THAT OPTION AND I'M SURE THAT WILL FIX THE ISSUE. ILL LET YOU KNOW.
    THANKS AGAIN FOR THE GOOD WORK!!!!!! ''gee, I hope he heard me. they say that more than three exclamation marks is an indication of a damaged psyche.''

  • By clicking add-ons in my tool bar it starts on the existing opened window how can i change it on new window

    By clicking an add-on in tool bar it can't open in new window rather than it occupies the existing window how can I change this.

    JavaScript links that specify a window size open by default in a new window and not in a new tab.
    See:
    * http://kb.mozillazine.org/browser.link.open_newwindow.restriction (0)
    * http://kb.mozillazine.org/browser.link.open_newwindow (3)
    To open the <i>about:config</i> page, type <b>about:config</b> in the location (address) bar and press the "<i>Enter</i>" key, just like you type the url of a website to open a website.<br />
    If you see a warning then you can confirm that you want to access that page.<br />

  • Just changed to Firefox and lost my translation Icon. Is there a translation that can be included in the tool bar

    With my other browser I had a google toolbar. On this bar was a translation and it gave me the option to translate my web pages. I deal with a Cuban company and require some things translated. When I go into the web site it is good but when I bring up Google search, which has a translate option, it bumps me off the web site. When I go in to the Web site it bumps the google tool bar out. Help..I have been using it for a long time with the Big E. is there anyway to add the google tool bar to firefox? I am enjoying Firefox but will have to return to the Big E to have access to this option.

    Also, see these support articles: <br />
    https://support.mozilla.com/en-US/kb/how-do-i-use-bookmarks <br />
    https://support.mozilla.org/en-US/kb/Bookmarks%20Toolbar

  • How do i get to the tool bar choices for safari

    Where do i find the choices to add to the tool bar for safari in Lion
    how do i get to it?
    also anyone know how we can customize the left side panel on mail??

  • Display of push button in the application tool bar in an ALV report

    Hello everyone,
    Query:
    Is it possible to display a custom push button in the application tool bar while displaying an ALV report(1st one)?
    On pressing this custom push button will I be able to display another ALV report(2nd one) based on the selection made on the current ALV report(1st one)?

    Hiii..
    I have written a sample code for You
    <b>"Call the below FunctionModule For Displaying The List
    " And see the bolded line in the Below FunctionModule
    " STANDARD_02 and USER_COMMAND are the subroutine Names</b>
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
      I_INTERFACE_CHECK              = ' '
      I_BYPASSING_BUFFER             =
      I_BUFFER_ACTIVE                = ' '
       i_callback_program             = sy-repid
       <b>i_callback_pf_status_set       = 'STANDARD_02'</b>
      <b> i_callback_user_command       = 'USER_COMMAND '</b>
       i_structure_name               =  'ZST_SCARR'
       is_layout                      = is_layout
       it_fieldcat                    = gt_fieldcat[]
      IT_EXCLUDING                   =
      IT_SPECIAL_GROUPS              =
      IT_SORT                        =
      IT_FILTER                      =
      is_sel_hide                    = is_sel_hide
      I_DEFAULT                      = 'X'
      I_SAVE                         = ' '
      IS_VARIANT                     =
       it_events                      = e03_lt_events[]
      IT_EVENT_EXIT                  =
      is_print                       = t
      IS_REPREP_ID                   =
      I_SCREEN_START_COLUMN          = 0
      I_SCREEN_START_LINE            = 0
      I_SCREEN_END_COLUMN            = 0
      I_SCREEN_END_LINE              = 0
      IR_SALV_LIST_ADAPTER           =
      IT_EXCEPT_QINFO                =
      I_SUPPRESS_EMPTY_DATA          = ABAP_FALSE
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER        =
      ES_EXIT_CAUSED_BY_USER         =
      TABLES
        t_outtab                       = it_scarr
    EXCEPTIONS
       program_error                  = 1
       OTHERS                         = 2
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
       FORM PF_STATUS_SET
    <b>" Here Set A Button In Application Toolbar Using PF- Status</b>
    FORM standard_02 USING  extab TYPE slis_t_extab.
      SET PF-STATUS 'STANDA02' EXCLUDING extab.
    ENDFORM.                    "STANDARD_02
    *&      Form  USER_COMMAND
          text
         -->R_UCOMM    text
         -->RS_SELFIELDtext
    FORM user_command USING r_ucomm LIKE sy-ucomm
                      rs_selfield TYPE slis_selfield.
      CASE r_ucomm.
    <b> "menubutton with functioncode GOTO's Action</b>
        WHEN  'GOTO'.  
          READ TABLE it_scarr INDEX rs_selfield-tabindex. "cursorposit.
          IF sy-subrc = 0.
            WRITE:/ it_scarr-carrid,
                  /  it_scarr-carrname.
          ENDCASE.
    ENDFORM.                    "USER_COMMAND<b></b>
    Hope it helps..
    Regards,
    Simy

  • How to add custom buttons in the tool bar of the crystal reports viewer

    Hi,
    I'm using Crystal report viewer (Crystal 2008) in my report and I want to add custom buttons and handle them in the tool bar of the viewer. Is there anyway to achieve this?
    Please help me in this regard.
    Thanks in advance.
    Siva.

    I did this by adding a picturebox to the toolbar, the same size as the buttons, and loading in an image, and putting code into the Click event of the picturebox.
    I also put code into the MouseHover event to change the picture's background color and into the MouseLeave event to change it back.
    I have a couple of these buttons. They work very nicely and really look like part of the toolbar.

  • Custom Tool Bar in Adobe

    Hi all,
    We have an requirement where in we have to provide a tool bar to the end user to edit the PDF at run time. The user should be able to select elements from the tool bar to add to the form. Is it possible through ALD?? or is there any other ADOBE tool through which we can acheive this?
    The user's have been using a Standard Template in MS Word till now, in which custom tool bar was created with Visual Basic Macros, which embeds things in doc file, which become place holders for SAP Data. They can freely edit the doc file to keep or delete what they want as per their requirement.
    Can we acheive a simmilar requirement in Adobe?
    We have to create such a standard template in PDF.
    I tried with ALD 8.0, but i guess we cannot add a  custom tool bar with it.
    Regards,
    Runal

    Hi,
    As of my knowledge on SAP IFBA custom toolbars or tabs or Upload(in online IFBA i.e. through webdynpro ABAP) functionalities are not supported. If your requirement demands to design these kind of forms then on your own you need to have a work arround. If you design these kind of forms then the performance of the adobe forms get decreases.
    If you find any workaround to these functionalities it will be nice if you present them in a Blog.
    Regards
    Pradeep Goli

  • Custom button in alv and disabling all buttons in application tool bar

    Experts,
    Could you please  help me for the below requirements.
    1). How to disable all the buttons (like sorting, print, find, set filter...etc.) in tool bar using oops?
    2). Where can I add my custom download button in alv report using oops?
    Thanks in advance...
    Sridhar..

    Step1:
    Create on local class
    Class <LCL_EVENT_RECEIVER> Definition
    Define the below public methods.
    Method Name     HANDLE_TOOLBAR
    Event Name     TOOLBAR
    Event Class     CL_GUI_ALV_GRID
    Importing     E_OBJECT, E_INTERACTIVE
    Method Name     HANDLE_USER_COMMAND
    Event Name     USER_COMMAND
    Event Class     CL_GUI_ALV_GRID
    Importing     E_UCOMM
    Class <LCL_EVENT_RECEIVER> Implementation 
    .     Method HANDLE_TOOLBAR
         Declare the structure <LS_TOOLBAR> of structure type STB_BUTTON
         Append the button information as given below into table E_OBJECT->MT_TOOLBAR to         display the custom button on ALV grid.
                               LS_TOOLBAR-FUNCTION = u2018DOWNu2019
                         LS_TOOLBAR-QUICKINFO = u2018downloadu2019
                         LS_TOOLBAR-TEXT = u2018downloadu2019
         Method HANDLE_USER_COMMAND
    In this method if E_UCOMM = u2018DOWNu2019 write your logic.
    Step2:
    1.     To excluding the ALV grid buttons, fill the <LT_EXC> with function code CL_GUI_ALV_GRID=>MC_FC_EXCL_ALL
    2.     To generate the ALV Grid, call the method SET_TABLE_FOR_FIRST_DISPLAY
    Class     CL_GUI_ALV_GRID
    Method Name     SET_TABLE_FOR_FIRST_DISPLAY
    Exporting     
    I_STRUCTURE_NAME      ZDS_CM_EXT_SEL
    LS_LAYOUT                    <LS_LAYOUT>
    IT_TOOLBAR_EXCLUDING     <LT_EXC>
    Changing     
    IT_OUTTAB                    <GT_EXT_SEL>
    Create the Instance for class <LCL_EVENT_RECEIVER>
    Class     <LCL_EVENT_RECEIVER>
    Instance Name     <LO_EVENT_FNAME>
    Now set handler  <HANDLE_USER_COMMAND> and <HANDLE_TOOLBAR_FNAME> events using instance <LO_EVENT_FNAME>
    Call method 'SET_TOOLBAR_INTERACTIVE' to raise event TOOLBAR
    Class     CL_GUI_ALV_GRID
    Instance Name     <GO_GRID>
    Method Name     SET_TOOLBAR_INTERACTIVE

Maybe you are looking for