1 Reply Latest reply: Aug 11, 2011 10:11 AM by 881845 RSS

    Customizing Apex'JS function 'popupFieldHelp'

    881845
      Hi,

      I would like to add sort of popup screen to the value in one column of a table in Apex (like the help box on standard lables).
      In the (help) box , I want to display a value of that same record.

      More specific: there a table displayed where one of the values contains a sql statement. In stead of displaying the sql statement in the report, I would like to display the static text "sql" with a link to display the actual sql statement in a popup (help?) box (without leaving the page). Is there any way to do this?

      Thanks!

      Bram

      Edited by: user8878313 on 11-aug-2011 8:32
        • 1. Re: Add help text to a value in a table
          881845
          An update:
          I found the function "popupFieldHelp" in the js files from Apex:
          -----
          popupFieldHelp(b,a)
               {
               if(!$x("pScreenReaderMode")){
                    apex.jQuery.getJSON(
                         "wwv_flow_item_help.show_help?p_item_id="+b+"&p_session="+a+"&p_output_format=JSON",
                         function(c){
                              var d=apex.jQuery("#apex_popup_field_help");
                              if(d.length===0){
                                   d=apex.jQuery('<div id="apex_popup_field_help">'+c.helpText+"</div>");
                                   d.dialog({title:c.title,bgiframe:true,width:500,height:350,show:"drop",hide:"drop"})
                              }
                              else{
                                   d.html(c.helpText).dialog("option","title",c.title).dialog("open")
                              }
                         }
                    )
               }
               return
               }
          -----

          In want to copy this into a page body with an new function name; but I would like to get out the part where the function retrieves the help text (the jQuery) and replace it by a fixed [div] [div] html part.
          Does anyone know how to get the query out of this function?

          Edited by: user8878313 on 11-aug-2011 8:11