Change the popup window size in the "optional label with help" template?

G'Day Apex/javascript gurus,
I am using Apex 4.0 where I coded an HTML table for help text in one item. Now, when an user click for help in this item then the HTML table is bigger than the size of the pop up window so the client has to re size it a bit to see it fully. To fix this, I tried to create a new "optional level with help" template where I can control the size of the pop up window and make it bigger to fit my HTML table so the client does not have to resize but I could not find any parameter in the original template:
<label for="#CURRENT_ITEM_NAME#"><span class="t9optionalwithhelp"> "javascript:popupFieldHelp('#CURRENT_ITEM_ID#','&SESSION.')" tabindex="999" that help me to achieve that
I am not an expert in javascript but I appreciate greatly if somebody here could help me to create a new label (with help) template where I can control the size of the popup window.
Kind regards
Carlos
Edited by: creyes on Aug 1, 2011 1:22 AM

Hello Carlos,
You can overload the APEX javascript with your own, on the page you want it to happen. You can do that in the Page Definition - Function and Global Variable Declaration.
Copy the below code into there and change the width and height of the popup.
function popupFieldHelp(pItemId, pSessionId){
    // Show jQuery div based dialog if not running in screen reader mode, if not fall back to old popup
    if (!$x('pScreenReaderMode')) {
        apex.jQuery.getJSON(
        'wwv_flow_item_help.show_help?p_item_id=' + pItemId + '&p_session=' + pSessionId + '&p_output_format=JSON',
        function(pData){
          var lDialog = apex.jQuery("#apex_popup_field_help");
          if (lDialog.length===0) {
            // add a new div with the retrieved page
            lDialog = apex.jQuery('<div id="apex_popup_field_help">'+pData.helpText+'</div>');
            // open created div as a dialog
            lDialog
              .dialog({
                title: pData.title,
                bgiframe: true,
                width: 500,
                height: 350,
                show: 'drop',
                hide: 'drop' });
          } else {
            // replace the existing dialog and open it again
            lDialog
              .html(pData.helpText)
              .dialog('option', 'title', pData.title)
              .dialog('open');
    } else {
        popupFieldHelpClassic(pItemId, pSessionId);
    return;
}; // popupFieldHelpHope that makes sense,
Dimitri
http://dgielis.blogspot.com
http://www.apex-evangelists.com

Similar Messages

  • Apex 3.0 Q: "Optional Label with Help" default when creating new form?

    When I create a new application, usually one of the first things I do is set the default item label to "Optional", so I don't have the annoying popup help link.
    Now, when you create a new Form region, based on a table, for all the items the label is set to "Optional label with help". Am I right in hoping this is something that was overlooked when developing Apex, and that it will be fixed in version 3.0, so that it sets the items to the default label as set in the Shared Components?
    And is there a way to change the labels for a lot of items at the same time, other than changing the theme templates?

    AFAIK, label help in default manner is based on column coments of a table.
    Later there is now way to easy reedit these values but manually...

  • Managing Popup window size

    I am using RoboHelp 10 - I need to manage the popup window sizes so the larger popups (images of the main screens) can be displayed full size but without scroll bars.  Can anyone help?  If I choose the option for the popups where I decide on the size it makes all popups that size.  Suggestion????
    Also - how do I create lists so the are properly aligned.  bullet remains to the left like a hanging paragraph and the text remains indented properly ....

    Any ideas?
    When I change the settings for toolbar, status, etc, then the
    changes take effect, it seems though only the width and height
    don't work for some reason.
    I would be very grateful for any suggestions
    Thanks
    Lyle

  • Refresh only page item while submitting data from the popup window

    Hi All,
    I'm pretty new to Apex .....
    I have a form with text items as first few entries and then a radio button list and few text items again. On selecting certain radio button I have a popup window which acts as an interface for the next text item in the calling page. The purpose of having the popup window is that the text item following the radio button takes the input with certain character delimiters along with the data. Instead of using delimiters while entering the data I want a meaningful data to be keyed in the popup window and all the string operation to be done as a background process. I have been successful this far. I'm using the below javascript on click of the submit button.
    javascript:doSubmit();
    window.opener.doSubmit('REFRESH');
    window.close();
    On doing this I'm losing the values submitted for the items prior to the radio button(including radio button). Please note, I have a dynamic action set on page load to reset the values. Is it possible to refresh just the page item from the popup window.
    Also, I tried excluding the window.opener.doSubmit('REFRESH'); from the above javascript. It sets the item with the expected value (viewed it in the session items, however I would like to view the concatenated string on my calling page) but following this there is an insert operation which uses all the necessary items in the form. All values except the value returned from the popup window is populated into the table. Am I missing something.
    Any help in this regard is appreciated.
    Thank you!!!
    Regards,
    Ganesh

    Value set using Javascript is only in your browser page but is not yet available in the session. This is why the report doesn't return the expected output.
    Before refreshing the report you would need to set the session state of this item.
    You can set it after you assign the item a new value or before the report is refreshed
    For Interactive Reports, this is available built in
    you can go to Report Attributes >Advanced Attributes -> Page Items to Submit and specify P2_X1 for the field(and any other page item that the report is dependent on)
    For standard reports, you can create a Dynamic Action that is triggered "before refresh" of the report's region, and choose PLSQL as the action types, give a dummy BEGIN NULL END; for the code and specify this item name in the page item to submit field so that it sets the items's value in session.

  • Smartform doesn't show preview when the records exceed the main window size

    Hi
    When i print the smart form having line items exceeding the main window size on the page it does not show the preview. The internal table loop goes into infinite loop. Is there any means whereby if the records don't fit on the main window of the page will be continued to the next page. Right now I have no clue how it is to be resolved. I feel the problem is in layout, as when i remove the main window the internal table code works fine and it does not move in infinite loop. Please help me resolve this issue.
    Thanks in advance

    Hi
    I have deleted the table from main window and instead inserted a loop.
    Also i created the two pages. But the problem still persists.
    But for my requirement my each line item in the main window has 3 lines.
    Also my layout will be the same for all pages so is there a need to create a new page.
    Is there any mechanism whereby if the line items dont fit on the mainwindow of the page will automatically continue on another page without having to define it.. please guide? Right now the smartform goes in infinite loop if it doesn't fit in main window size
    Thanks

  • How to change the default window size display font size on Lync 2013 main window?

    Hi champs,
    Just a simple non-technical question: How to change the default window size display font size on Lync 2013 main window on Windows 7 desktop?
    Thanks,

    Hi,
    Did you mean change the Lync: Change the Default Font and Color of Instant Messages just as Edwin said above?
    If not, as I know, there is no natural way to change it.
    If yes, on the latest version of Lync 2013 client, there is a new option “IM” on Lync client “Options” list. And you need to change the default Font and Color of IM in the interface of “IM”.
    Best Regards,
    Eason Huang
    Eason Huang
    TechNet Community Support

  • Changing the minimum window size in Calendar

    I keep two programs open side by side on one of my "Desktops." They fit next to each other side by side and filled the entire screen. iCal was one of those applications. Since upgrading to Mountain Lion, the default minimum window size appears to be larger than it was in Lion. Now Calendar.app obscures part of the other application on this desktop.
    I've searched around on the internet for hours looking for a way to modify the minimum window size to restore the "side by side" configuration, but I have not been able to find anything.
    Does anyone have any advice on how to tackle this?
    Don

    I just upgraded to mountain lion.  I cannot reduce the size of ical to fit with mail on my 15" macbook pro.  In checking around, the new calendar does not allow us to size the window as we want.  This is a big miss for apple.  we need to be able to size windows as we see fit.  also, in lion, and now mountain lion, we only have the option of the stupid fake-leather looking calendar.  We should have options for this, too.
    Please let me know if there is a fix for sizing the ical window as we previously had in lion.  Apple, if you are listening, go for simplicity and flexibility.  Let us decide window sizes, look, and anything else.
    thank you
    john

  • Show the custom popup window on clicking the people name in sharepoint people search result

    Show the custom popup window on clicking the people name in sharepoint people search result
    We are doing the below code to open a popup but while clicking on name link its postback the page and not opening the popup in first click but opening in second click.The same issue occurs while navigate to second page using pagination
    The below code used to show name in item template
    <button id="NameFieldLink" class="temp" style="font-size: 12px;text-decoration:none;color:#0072c6;border:0px solid #fff;background:transparent;margin-left: 1px;height: 15px;padding: 0 10px 17px 0px;text-align: left;cursor:pointer;font-family:
    Arial, Helvetica, sans-serif;" title="">_#= DisName =#_</button> 
    The below jquery code used to open popup in control search template
    ctx.OnPostRender = []; 
    ctx.OnPostRender.push(function () {
    $(".temp").on("click", function(event)
    event.preventDefault();
    $('#fadeout').show();
    $('#pop1').find('.tab-content-people').html($(this).closest('.emp-card').find('.pop-content').html());
    $('#pop1').show();
    return false;

    I believe the issue is that you are not actually searching against the result source you made in step #1.
    It's not enough to make a result source, you have to tell the search results web part to use it.
    Try this:
    1. Go to the Pages library of Search Center
    2. Create a new Search Results page
    3. Edit the page, then edit the search results web part
    4. Change the source for the search results web part to your source
    5. Add the page to your Search Center navigation
    6. Run the search on that page
    Scot
    Author,
    Microsoft SharePoint 2013 App Development
    Author,
    Professional Business Connectivity Services
    Author,
    Inside SharePoint 2013
    Blog, www.shillier.com
    Twitter, @ScotHillier
    SharePoint Trainer, Critical Path Training

  • How do I set the Launch window size (from launch from an LMS) in Captivate 5.5?

    When my project launches from the LMS, the lauch window is smaller that the actual project size and requires the user to resize the window to see the whole project. My LMS administrator tells me that the launch window size is not controlled by the LMS so I am trying to figure out how I can set this to match the project dimensions.

    The size of the browser window CAN be controlled by the LMS, but some LMSs are hopeless in this area and don't provide the settings to do so.
    Moodle for example allows you to specify that the course content will open in a new window each time an item in the LMS TOC is clicked and what the height and width of that window will be. However, all versions of SumTotal before the latest one did not give you this option (and that despite the exhorbitant price difference between these two products.)
    So your LMS admin might be correct in that HIS particular LMS cannot control the size of the launch window, but that's not because no LMS can do this.

  • How to change the font and size in the fillable field of an encrypted PDF file?

    hi!
    I’d like to change the font and size in the fillable field of an encrypted PDF file I-485 from www.uscis.gov/files/form/i-485.pdf
    I’m using Adobe Acrobat Pro 9 in Windows XP. I firstly tried Adobe LiveCycle Designer, but the I-485 file requires password to be opened, which I don’t know.
    Then I tried to print it to a PDF file, and use the Typewriter tool to fill in the form. But got error message while printing it to PDF file:
    This PostScript file was created from an encrypted PDF file.
    Redistilling encrypted PDF is not permitted.
    The I-485 file can be exported to unencrypted postscript file, but got the same error message while trying to open the ps file.
    I don’t know much about pdf file, can anyone please help?
    Thanks a lot!

    Ask the creator of the file for a unprotected version.

  • Popup window  opens in the second page  - plz help gurus.

    Hi All,
    I'm calling a transaction through ITS. There is a hyperlink in a report brings up PDF in the popup window. Popup window comes up in the second page of the report after closing in the first page of the report. Popup comes in all the consecutive pages of the report once I click on the hyperlink. This is really frustrating. Pls let me know if i need to do any configuration to avoid this problem. 
    Thanks,
    Kumari

    Hello Kumari,
    are you using the SAP GUI for HTML (webgui)? Normally, no hyperlinks are used except on documents inside an HTMLviewer (like in TX TRIP), or when Drag & Relate is activated.
    I suppose the link is part of a document that is shown in an HTMLviewer. Though this document does not belong to the ITS or the SAP GUI for HTML it uses ITS's URLs to address a new page or document. But, with this URL the status of the ITS or the application does not change, thus showing the popup over and over.
    If you have a tool to trace the HTTP protocol you can check for the URLs that are send on a particular action. I
    Best regards,
      TJ

  • About the popup window created by if_wd_window_manager- create_window

    hi,experts
    i want to put out a pdf file in popup window.and use method create_windos of if_wd_window_manager to get it.then i find a question: i at least click twice to close the window....why? what modification i need to implement that  the window close as soon as i click the "CLOSE" button once. i guess that is normal.
    the original codes is as follows:
      data: lr_view               type ref to if_wd_view_controller,
            lr_api_main           type ref to if_wd_component,
            lr_window_man         type ref to if_wd_window_manager,
            comp_usage            type ref to if_wd_component_usage,
            l_title                   type string value 'print the contract'.
            lr_window              type ref to if_wd_window.
      lr_view = wd_this->wd_get_api( ).
      lr_api_main = wd_comp_controller->wd_get_api( ).
      lr_window_man = lr_api_main->get_window_manager( ).
    l_title = wd_comp_controller->model->get_text( '006' ).
      call method lr_window_man->create_window
        exporting
          modal        = abap_true
          window_name  = 'POPUP'
          title        = l_title
          close_button = abap_on
         BUTTON_KIND  = '1'
         default_button = '5'
        receiving
          window       = lr_window.
      lr_window->open( ).
    thanks..looking forwards to your help!

    hi ,Sajid
    1.
    data l_api_v_new_assignment type ref to if_wd_view_controller.
      l_api_v_new_assignment = wd_this->wd_get_api( ).
      data window_controller type ref to if_wd_window_controller.
      window_controller = l_api_v_new_assignment->get_embedding_window_ctlr( ).
      data window type ref to if_wd_window.
      window = window_controller->get_window( ).
      window->close( ).
    to your first option.   my codes are written  in a view of the main windows and the popup window is another, so can't get the exact window.. so there is a dump error after i test this one.
    iF MO_POPUP TYPE REF TO IF_WD_WINDOW, IS AN ATRIBUTE DEFINED IN COMPONENT CONTROLLER
    and in popup_method this is the coding related for opening popup .
    DATA:lo_api TYPE REF TO if_wd_component,
    lo_win_manager TYPE REF TO if_wd_window_manager,
    lo_api = wd_this->wd_get_api( ).
    lo_win_manager = lo_api->get_window_manager( )
    wd_this->mo_popup = lo_win_manager->create_window(
    title = 'xyz'
    window_name = 'WINDOW NAME'
    button_kind = if_wd_window=>co_buttons_okcancel
    message_type = if_wd_window=>co_msg_type_warning ).
    wd_comp_controller->mo_popup->open( ).
    Then for closing pop up on event handler method of no write the following coding
    wd_comp_controller->mo_popup->close( ).
    to second one...  i think  this part of codes are the same as mine except the last sectence...... and i add the last sentence in my coding but nothing sepecial happend...
    looking forward for more helps...thanks a lot

  • Close popup window and refresh the parent window

    Hello,
    I have a button in a normal report, when clicked opens up an popup window which is a form containing some items and here in this form (i have some editable text items) I make some changes and click on the apply changes button -- this should update the form, close the popup window and should refresh the parent window.
    can anyone please help me out with this issue.
    Thanks,
    Orton

    you have your popup window. When they apply the changes you want it to close the window, right?
    Modify the button (save, apply changes) and give it url redirect to the custom function you create (See below): javascript:saveChanges();
    in the page header, add a new function:
    <script type="text/javascript">
    function saveChanges(){
         doSubmit('SAVE');//this is the line to save the current form on the popup window. (This assumes SAVE is the request value that should udpate the db)
         window.close();//close the popup window
         window.opener.doSubmit('REFRESH');//call doSubmit function on the parent window to cause the page to refresh.
    </script>

  • Passing Value from a Popup Window Back to the Parent Window

    I am using JSF. I try to pass a value that is entered by users in the popup window back to a text field in the parent window.
    quote: document.forms[ ].elements[ ] is null or not an object.
    The relevant code snippets are shown below. The screen1.jsp is the parent window:
             <script language="JavaScript1.1">
               function doPopup(source)
                    popup = window.open("externalFilePopup.jsp",
                        "popup",
                         "height=300,width=200,toolbar=no,menubar=no,"                    + "scrollbars=yes");
                    popup.openerFormId = source.form.id;
                    popup.focus();
               </script>
    <h:outputText value="Enter the external system file name"/>        <h:inputText value="#{dataManagementBean.ip}" size="18" />
    <h:commandButton value="..." onclick="doPopup(this); return false;" />
    ..........The externalFilePopup.jsp is the popup window:
            <script language="JavaScript1.1">
                function doSave( value )
                   var formId = window.openerFormId;
                   opener.document.forms[ formId ].elements[ formId + ":ip" ].value = value;
                   window.close();
            </script>
         <h:outputText value="IP Address: "/>
         <h:inputText size="25" value="#{dataManagementBean.ip }" required="true"/>
         <h:commandButton value="OK" onclick="doSave('#{dataManagementBean.ip}');"/>
            .......... The script error occurs when I click on this OK button.
    Please point out the mistakes in my code. Thank you.

    I have made some modifications to the code in the popup window. The error reported in my previous posting is gone. But, I still have several problems:
    1. syntax error in the popup window jsp page: line 45, char 21, syntax error, ..., Do you want to continue running script on this page?2. The popup window does not close after I click on the OK button that I coded in the popup window jsp.
    3. The value that I entered in the popup window eventually gets passed back to the text field in the parent window only if I re-run the application.
    The relevant JavaScript code snippets are:
            <script language="JavaScript1.1">
                function doSave( value )
                   var formId = window.openerFormId;
                   opener.document.forms[ formId ].form[ formId + ":ip" ].value = value;
                   window.close();
            </script>
                                       <h:outputText value="IP Address: "/>
         <h:inputText size="25" id="ip" value="#{dataManagementBean.ip }" required="true"/>
         <h:commandButton value="OK" onclick="doSave('ip'); return=false;"/>
    ......What are the mistakes that I made?

  • I allowed popups for an applicaiton that was not letting players gift, but now gifting is fixed & I want to stop the popup I allowed under Firefox options.

    A month ago I was playing an application on Facebook & the app messed up and was not letting players gift. I noticed in the browser a message from Firefox with an option box. I clicked the option box & allowed popups for this application only (it was an app called Fairy Village). Now they have the gifting glitch fixed but the popup I allowed on the app is preventing me from gifting. I allowed the popups for this 1 app on both my computers, a laptop & a desktop. Both have Windows XP as the operating system. How can I reverse the option of allowing popups for this app to not allowing popups for this app?

    Sorry edmeister, but I'm a 72-year-old female & not all that familiar with all this. I did read about popup blocker settings but it told me to go to my Firefox button, click on tools...When I click on the Firefox box just above my browser on my laptop, there is no option for tools. Am I suppose to be in a different place to do this or do I need to be in the application where I allowed the popup? I'm sorry I'm such a fool when it comes to these things. This was the application, Fairy Village, on Facebook. I have allowed the popup for both my laptop & my desktop...Help please & sorry again I'm not smarter in these areas.

Maybe you are looking for

  • Can you use the same apps on 2 different iphones but have diff

    Hi Im a complete novice with using itunes. I just want to know if its possible for me and my wife to share the same apps but not the same contacts and if so how can this be done.

  • Goods issue of sales order stock

    Hi,        We are implementing an MTO scenario.  We are not sure what set up is required  for goods movements for spl stock E? The problem we are facing is customer number is not getting populated in Material document during PGI and COPA document? Al

  • Mac Pro 3.1 graphics card not found

    SOS !!! Last night I shuted down my Mac Pro ok. This morning I power it on, it passes power on test (it makes the beep) , but the graphics card fun remains at full speed making noise and I have no signal on my display screen! I connected to my Mac vi

  • SAPScript printing through F.27

    Hi everubody, I have the following issue. When I try to print a SAP form (SAP Script) from transaction F.27 (Periodic Account Statements) with Company Code 1, SAP generates the spool request and tue output preview in SP01 seems to be correct. But, If

  • Scripts : pl help

    Dear gurus, Can we write hard coded text in scripts with black background and white letters. Normally we write it in the opposite way. Pl help. Thanks Sadhu Kishore