Passing values to a modal dialog window...

Hi All,
Is there a way to pass massive amount of data into a pop-up
modal dialog window? I have this following code that keeps giving
me a JavaScript error whenever I have like 2000 characters in the
documen.myForm.Product_Details textarea field. Any suggestions or
advice is greatly appreciated, and thank you very much in advance!
function Modal_NewWin() {
var width = 750;
var depth = 200;
var productDetails = document.myForm.Product_Details.value;
var url =
"PreviewProducts.cfm?ProductID=#GetProductInfo.ProductID#&ProductDetails="
+ productDetails;
var sfeatures = "dialogHeight: " + depth + "px; dialogWidth:
" + width + "px; dialogTop: px; dialogLeft: px; center: Yes; help:
No; resizable: No; status: No;";
return window.showModalDialog(url,'',sfeatures);

can you use JSStringFormat() without first submitting the
form??? (so CF can see the value in the form field jsstringformat
is applied to..)
submitting a form to the preview page will solve the problem
for sure, but then you will somehow have to have 2 different action
target for the form, so that clicking 'preview' button submits the
form to the modal window, and clicking a 'save' button will submit
the form to another action page that inserts values into a db...
you can do that, again with some more javascript...
as html-escaping javascripts are readily available on various
script sites, i think it will be easier to employ one of them...
(please note that i am assuming quiet a lot about how the
AppDeveloper's form works and what it does, since he never
explained it himself...)

Similar Messages

  • Modal dialog window to system

    Hi,
    I could not find proper link to post this, so I am posting here.
    I want a system level dialog window i.e. when this window is visible it should always be at top most and user should not allowed to select other applications.
    I used runModalForWindow method of NSApp but it is creating modal window with respect to my application and I am able to select other applications.
    I want my modal dialog should be top most dialog to my application and user should not be able to select other application.
    Thanks.

    Hi
    My application is running in kiosks environment. So I want when any modal dialog pops up in desktop from my application, user should not be able to select any other application from the desktop i.e. I want my modal dialog window should always be at the topmost.
    If it is not possible to have a system level dialog window, any alternate solution so that my modal dialog will be at topmost and user should not be able to select any other application as long as this dialog is visible will really helpful to solve my problem.
    Thanks.

  • Modal Dialog window

    Hi,
    I have designed a XDP form using Adobe designer 7.0 in which i have a button. now i want a modal dialog window to be opened on click of a button.
    how can i do this? what should be the type of button?
    Thanks,
    rajasekhar MV

    Hi
    My application is running in kiosks environment. So I want when any modal dialog pops up in desktop from my application, user should not be able to select any other application from the desktop i.e. I want my modal dialog window should always be at the topmost.
    If it is not possible to have a system level dialog window, any alternate solution so that my modal dialog will be at topmost and user should not be able to select any other application as long as this dialog is visible will really helpful to solve my problem.
    Thanks.

  • Open list form across host header site collections via Modal Dialog window

    Hello,  I have a web application that has two host header site collections in it.  When a user is on Host Header A, I need to open a list's display form that's located on Host Header B.  I'm using the JS function  SP.UI.ModalDialog.showModalDialog(options)
    to open a dialog window to the host header B list's display form.  It loads and shows all the columns, but there are a couple issues.
    1) The scroll bar on the dialog window is not active (can't scroll up or down to see all the columns).  This is an issue on all browsers (IE 8 &9, Chrome, FF)
    2) In IE, the SP ribbon does not display.  In Chrome and FF the ribbon does display and the buttons work fine.
    There's no errors in the ULS logs, and if I use IE8, there's a JavaScript "Access Denied" error.  I've confirmed the user account has permissions on both sites & list.
    My first thought had to do with anonymous access being turned on at the web application level (not the site level) and the credentials not being passed to the new site collection.  But this isn't the case because in Chrome, the ribbon shows and the
    buttons are security trimmed correctly based on the users permissions.  So I know the credentials are getting passed through the dialog window.  And when I use the "Edit' button on the ribbon in chrome, it opens a new dialog window and everything
    works correctly (Scroll bar and ribbon).
    Has anybody been able to successfully open a list form across two separate host header site collections?

    I ended up getting around the cross site collection in the modal window issue by using a custom ASPX page that works as a redirect using JS.  
    The link the end user clicks pops open the aspx page in a dialog window.  I then pull the URL of the list item I want to open from the URL and have JS open that form in the modal window.  The key seems to be to open the redirect aspx page under
    the same site collection as the list item you want to view.
    Here's the JS that's in the aspx page.
    <script type="text/javascript">
    // We name the current dialog windown
    window.name = "newSiteWindow";
    // wait until we know the the JS lib is loaded
    ExecuteOrDelayUntilScriptLoaded(loadNewSite, "sp.js");
    function loadNewSite() {
    //grab the list item URL from the URL of the dialog window using a pre created function
    newURL = GetUrlParmByName("listItem");
    //append our dlg query to the end so everything displays correctly. If you do not use IsDlg=0, the ribbon does not display and the window will not scroll.
    newURL = newURL + "&IsDlg=0";
    //use the current window to open the list item we want to go to.
    window.open(newURL, "newSiteWindow");
    </script>

  • How do I set (or auto populate) the value of a modal dialog field using javascript?

    I have a Modal Dialog on my SharePoint 2010 page the following fields: Your Name, Subject, Priority, Message. 
    It links to a list I have on the site. The second field, Subject, I want to auto populate it when the window opens, so the user can leave it as is or modify the subject. I want to set the field value using javascript. 
    I've tried setting the field with this code:
    document.getElementById('Subject').value = "Test";
    and also, this:
    setFieldValue('Subject','My custom value');
    Neither work. 
    How do I set the value of the subject field when the user first opens the dialog using javascript?
    Please help.

    I am sure, you are looking at default field value of a list column(single line) in a modal window, if so please try below code
    <script src="https://code.jquery.com/jquery-2.1.0.min.js" type="text/javascript" abp="397"></script><script type="text/javascript" abp="398">
    $(document).ready(function(){
    $('input[name*="Subject"]').val("Test");
    </script>​​​​​​
    Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

  • Javascript call from Flash in modal dialog window

    Hi.
    As I see it's impossible to call Javascript function from
    flash in modal dialog (opened with showModalDialog), neither with
    getURL nor with ExternalInterface.call.
    The only solution I found (in my case it's enough, I only
    need to refresh some DIV content in the page from flash) is to
    catch error in the modal dialog (Javascript window.onerror) and
    then do some operations.
    I'm intereseted: is this for security reason on Win XP SP2? I
    didn't found any solution, but is there any?

    Hi Gary,
    Actually I'm not very sure that whether it is the VS issue if it still has this issue in a new Environment.
    To make sure that it is not the VS setup file issue, one idea is that you could re-download your VS2013 Pre version here:
    http://www.visualstudio.com/downloads/download-visual-studio-vs
    And then re-install it again. Test the result. Hope that it is not the VS setup file issue.
    If still no help, really sorry for that I couldn't repro this issue in my side. But
    you can submit this feedback to Microsoft Connect feedback portal:
    http://connect.microsoft.com/VisualStudio/feedback/CreateFeedback.aspx,Microsoft
    engineers will evaluate them seriously. You could share this project in your report, the product team members would troubleshoot and repro this issue.
    You will get email notification for update in your connect report.
    If you submit it, please share us the link here, so we could get the latest information from the product team members.
    Sincerely,
    Jack
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Pass values between views of different window

    Hello Experts,
    I am a newbie in ABAP Webdynpro. I have 2 views in 2 different windows. I want to pass values calculated from one view to the other view. But i cannot connect the views.
    If the views were within the same window, I could connect them using inbound and oubound plugs with parameters. However in this case i am unable to establish the navigation link between these 2 views.
    Has anyone of you experts come across such kind of requirement? If so, can you please guide how to connect the 2 views?
    Thanks and regards,
    Nitish.

    Everyone,
    I was finally able to connect the 2 views by using the component controller.
    I created an attribute on the context of the component controller and read/set of the attribute of component controller on the button click event.
    To access the attribute of the component controller, please find below a code snippet which was useful to me:
    Data declaration for accessing the component controller
    DATA:
           lo_component     type REF TO if_wd_component,
           lo_context       type REF TO if_wd_context,
           lo_controller    type REF TO if_wd_controller,
           lo_node          type ref to if_wd_context_node,
           lo_child         type REF TO  if_wd_context_node.
    DATA lo_el_test_depts  TYPE REF TO if_wd_context_element.
    get component controller API
      lo_component = wd_comp_controller->wd_get_api( ).
      lo_controller ?= lo_component.
    accessing the context of the component controller
      CALL METHOD lo_controller->get_context
       RECEIVING
       context =  lo_context.
    lo_context is the required context, from here we can manipulate its components
    get to the root node in context of component controller
      lo_node = lo_context->root_node.
    using lo_node i was able to  read and write to the attribute i created in component controller.
    Thank you all for your help.
    Nitish.
    Edited by: Nitu_0105 on Apr 8, 2011 3:29 PM

  • How to pass value from new pop up window to the input field

    Hi,
    i have a F4 help on a input type field and adjacent to that two more input fields, on clicking the help on the first input field a new pop up window opens, the value in this pop up window is to be selected to give the value in that field and the other two values should be appeared in the input type. suppose the pop up window has three fields "15   LIMA  PLANT   45802 ", so on clicking it in input field only 15 should go to the firstinput fields and "LIMA PLANT" and "45802" should go to new window
    do anyone know this?

    avoid duplicate threads
    F4 help in dropdownlistbox and values in input fields
    if you feel that the thread heading or content is not what you wanted, you can edit it and leave a note in the same thread that you have edited it.
    Raja

  • Hiding modal dialog-window

    I wrote a class extending JDialog. That window was meant to close when pressing a button via the this.hide() method. But I always have to click the button twice. When i click it only once, the window disappears for a very short time and is repainted immediately. Clicking a second time makes the window disappear. What have I done wrong? Notice that the window is set to modal with this.setModal(true).

    this.setVisible(false);worked for me.

  • Jquery Modal Dialog - passing item values

    Hi Everyone,
    I know...there are a lot of information about how to implement modal dialog form.....but I cannot find an answer on how to deal with my situation.
    What I am trying to achieve is to create a form in apex page, assign items to this form , add Jquery script to the page header where I am going to call this form into modal dialog ..... fill out items in modal dialog and when click on "Create" - insert value of the items into my table.
    Yes, this is common thing to do (like here http://shijesh.wordpress.com/2010/04/10/jquery-modal-form-in-apex-4 )....but I am trying to find a way where I don't need to create function for my "Crete" button which will call OnDemand Process. Anyways, here is what and how I am trying to do this and please correct me where I am wrong.
    *1.* I do have a table called "inventory_modal", ID column has a PK and trigger/sequence is there too.
    *2.* Do have a page with Form Region with data entry based on my table and Static ID "myModalForm".
    *3.* Do have items assigned to my From Region :
    :P23_ID (hidden):P23_INVENTORY_DATE (data picker)
    :P23_ASSET_ID (number)
    :P23_CONDITION (text field)
    :P23_INVENTORY_OWNER (text field)
    :P23_STATUS (text field)
    :P23_LOCATION (text field)
    :P23_COMMENTS (text field)>
    *4.* Do have a button called "Open Modal" to open my form in dialog window with redirect to URL: javascript:openForm();*5.* Do have an On Submit - After Computations and Validations process
    insert into inventory_modal  (id, inventory_date, asset_id, condition, inventory_owner, status, location, comments)
                   values (:P23_ID, to_date(:P23_INVENTORY_DATE,'&APP_DATETIME_FORMAT.'), :P23_ASSET_ID, :P23_CONDITION,
                              :P23_INVENTORY_OWNER, :P23_STATUS, :P23_LOCATION, :P23_COMMENTS); the process is Conditional with Request = Expression1 , where Expresseion1 is set to "CREATE".
    *6.* And here is HTML Header Jquery script where I am calling "myModalForm" form to open in dialog window and by selecting "Create" button passing "CREATE" vallue back to page which should fire my process to insert data:
    <link rel="stylesheet" href = "http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/themes/
    redmond/jquery-ui.css" type="text/css" />
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js"> </script>
    <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.js"> </script>
    <script type="text/javascript">
    $( function() {
       $('#myModalForm').dialog(
            modal : true ,
            autoOpen : false ,
            buttons  : {
                Cancel : function() {$(this).dialog("close")},
                Create : function() {$(this).dialog("close");doSubmit('CREATE')}
    function openForm()
        $('#myModalForm').dialog('open');
    So, and here is my question. I don't want to use any OnDemand Process, I would like dialog window to pass values to my regular procedure in my page. I had an assumption that Create : function() {$(this).dialog("close");doSubmit('CREATE')} will do the trick but apparently it doesn't. Is there any way to do it?
    Here is my testing page : http://apex.oracle.com/pls/apex/f?p=39330:23
    If you click on Open Modal, it will open my form in modal dialog window, on create it will send "CREATE" request to my procedure which will insert data into table....but it unfortunately it will insert only NULLS into my table (only ID column will have data as it has trigger/sequence). So, click Create and then refresh the page.
    Thanks

    Hi Jari,
    Thanks for your surrestion.
    I am not exactly sure on how to set ajax item session, does this looks ok for whatever I want to do?
    <script type="text/javascript">
    $( function() {
       $('#myModalForm').dialog(
            modal : true ,
            autoOpen : false ,
            buttons  : {
                Cancel : function() {$(this).dialog("close")},
                Create : function() {
                                              ajaxRequest.add('P23_ID',html_GetElement('P23_ID').value);
                                              ajaxRequest.add('P23_INVENTORY_DATE',html_GetElement('P23_INVENTORY_DATE').value);
                                              ajaxRequest.add('P23_ASSET_ID',html_GetElement('P23_ASSET_ID').value);
                                              ajaxRequest.add('P23_CONDITION',html_GetElement('P23_CONDITION').value);
                                              ajaxRequest.add('P23_INVENTORY_OWNER ',html_GetElement('P23_INVENTORY_OWNER ').value);
                                              ajaxRequest.add('P23_STATUS',html_GetElement('P23_STATUS').value);
                                              ajaxRequest.add('P23_LOCATION',html_GetElement('P23_LOCATION').value);
                                              ajaxRequest.add('P23_COMMENTS',html_GetElement('P23_COMMENTS').value);
                                              ajaxResult = ajaxRequest.get();
                                              $(this).dialog("close");
                                              doSubmit('CREATE');}
    function openForm()
        $('#myModalForm').dialog('open');
    </script>

  • Passing values from javascript in pop up window to parent jsp

    Hi
    I am trying to pass values from a pop up window to the main window that popped this child window , with the idea to have the parent window refresh itself with value from pop up window.But the values are not going through.I do a request on the hidden variable but when the parent
    jsp refreshes , the variable is still null...
    The following is the code i have .
    Parent jsp:a.jsp
    <form name='summary'>
    <input type=hidden name=customerid value="">
    <input type="button" class="textButton" name="action" value="customerlist" onClick="javascript:openWin('b.jsp','800','350')">
    <script>
    function openWin(loc, w, h) {
    var newWin = window.openloc,"HTML",'dependent=1,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=' + w + ',height=' + h);
    newWin.window.focus();
    </SCRIPT>
    <%
    String optionVal = request.getParameter("customerid");%>
    var user = "<%= optionVal%>";
    </form>
    child jsp- b.jsp (pop up window)
    <script>
    function closer(){
    var val = document.formname.id.selected.value;
    window.opener.document.summary.customerid.value = val;
    window.opener.location.reload();
    </script>
    <form name = formname>
    <input type="text" name="id" value = ''>
    <input type="button" class="textButton" value="select"
    onClick="closer();window.close();">
    </form>
    Any ideas on what i am missing
    Thanks
    Arn

    use window.opener.document.forms[0].filedname.value = 'value u need to set'

  • Modal INLINE dialog windows

    Hello,
    I'm facing some issues with the modal dialog windows that are embedded in an window and are not opened as a separate window. I saw the "tutorials" in different weblogs and the book of Jung/McKellar for the "F4-Help". It works well unless I integrate it into the portal. There, I do have two issues:
    1. It looks much different as if I would open it directly from the backened system. The close/maximize buttons are different and the ok button at the botton is on the right side and not on the left side. It's not tragical but I'm asking why.
    2. It's only possible to open ist once. If I open it the second time I dont see any buttons like maximizing etc.
    I really hope anyone of you can help me. It's a great feature and I would appreciate any help and reward point therefore.
    thanks and regards
    Markus Armbruster

    hi
    good
    go through this link,might give you some solution
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCDWBERG/BCDWBERG.pdf
    http://www1.sapdesignguild.org/resources/ma_guidelines_2/ma_guidelines_2.pdf
    thanks
    mrutyun^

  • Howto create non-modal dialogs using ADF Faces

    I would like to use Dialogs in a non-modal manner.
    Trying to use
    <af:commandLink useWindow="true" action="dialog:infoPopup" blocking="false">
    <af:setActionListener from="#{row.xyId}" to="#{infoPopup.currentId}" />
    </af:commandLink>
    doesn't work as expected. I'll get the dialog, but I can't use the page behind it.
    Alternatively I tried to show the page using Javascript opening the pageInfo.faces, but here I have an order problem. The onClick event is processed first and the #{infoPopup.currentId} will be populated after rendering the JSF page. But I want to show infos depending on the xyId.
    Is there any other way to open windows/dialogs?
    Thanks in advance
    Stephan

    The "blocking" attribute basically just blocks you from clicking the commandLink or commandButton twice (or more) before the first click has been processed by the server and a response has been received.
    It is a very good util for avoiding those unwanted IndexOutOfBoundsExcepions when a user hits many buttons thus sending multiple requests to the server.
    By the way, I'd like to see the answer to the non-modal dialog window, because we have a need for them, too.
    Kind regards,
    dj

  • Invoke External Link on a Dialog Window

    What's the easiest way of invoking an external link (ex: http://www.google.com) in a modal Dialog window. I want to achieve something like the select input text component, but for external links that in our case will be external applications.
    Do I need to create a dummy .jspx/.jsp for each external link ?
    Thanks,
    Claudio.

    Thanks for the reply.
    The main page is made up of multiple inputText boxes that we want to popluate based on the row we select. Is it possible to populate inputTexts from the table? Or do we need another ADF table like your example shows?
    Thanks

  • How do you pass a column link value into modal dialog

    Hi everyone,
    I've got quite a tricky problem...To spell it out:
    1. I have a calendar with column links.
    2. I have a (popup) report on a separate page that shows detailed information about the record selected in 1.
    3. To eliminate the extra page, I've moved the report region to the calendar page, and created a modal dialog to display the report.
    Here's my dilemma, how do I 'get' the value of the column link (when clicked) so that I can use it when calling the modal report?
    (APEX 4.0)
    Thanks!

    True Andy.
    Combining the two examples then:
    function openModal(pVal1,pVal2)
    var l_Return = null;
    var get = new htmldb_Get(null, $x('pFlowId').value, 'APPLICATION_PROCESS=DUMMY', 14);
    get.add('P14_REPORT_FILTER1', pVal1); // set up page items to receive value
    get.add('P14_REPORT_FILTER2',pval2);
    gReturn = get.get(''); // Calls dummy process to set session state
    var tab = $('#REGION_STATIC_ID'); // grabs the region static id
    var report_id_str=$("div[id^=report_]", tab).attr("id"); // finds the 'report_'
    var report_id=report_id_str.match(/\d+/)[0]; // gets just the numeric id
    $a_report(report_id, '1', '15', '15'); // refreshes the report
    // Call to show modal here
    } You'll need to sub REGION_STATIC_ID for your region_static ID and make sure that it exists in the template.
    You could also just sub out the three lines between gReturn and $a_report with the hardcoded value of the region ID like:
    var report_id='R6974536412746853317'.substring(1);
    but if you and your region numbers change (if you import your app into a different app_id) then you'd have to go back and fix these.
    HTH, Thanks Andy for making me READ (not SCAN) the actual post :)

Maybe you are looking for

  • My iPhone is not showing up in iTunes, or Windows Explorer.

    I have looked around searching and tried to uninstall everything that had anything to do with Apple and iTunes. Nothing worked. I also have gone into the computer managment and stopping and starting the apple managment and iPod service. Still, nothin

  • Kernal Panic with OS 10.4.6 install

    Repeated attempts to install OS 10.4.6 over 10.2.8 each time resulted in kernal panic. Despite restarting from outboard Firewire HD and using Disk Repair to correct permissions and repair the Macintosh HD, no joy followed. TechTool Deluxe 3.0.3 repor

  • Order of tracks in MuVo V100

    My MuVo V00 currently plays the tracks of an album in alphabetical order, not in the order of the album. How do I change this? The tracks have been ripped by using MuVos own program.

  • My customer wants to create hyperlinks in the editor - surely this is possible?  And, if so, how?

    My customer simply wants to create hyperlinks when adding content to her site; this doesn't seem possible within the Muse editing interface.  It must be, surely?  That's the most basic thing to do with a web page. 

  • How to get the  page count in XML Publisher Report

    Hi Team, I am generating one xml report. I want to get the total Page count in XML publisher report. This page count is depends on the input Parameters at runtime. How to get this total page count on the runtime dynamically. Best Regards Sri