Refreshing data in an IFRAME with new value

Hi all,
I have a jsp which has 2 forms 'frame_form' and 'main_form'. The 'frame_form' has a dropdown which contains list of cheque types (with the current cheque type selected) while 'main_form' contains an IFRAME whose src is a jsp to whom i passed the value of the selected cheque type. This value is contained in a java variable 'cType'.
<%
String cType="";
cType = "3";
%>
<body bgcolor="#C0C0C0" text="#000000">
<form name="frame_form" method="POST" action="">
<select size="1" name="type" onChange="typeChanged();">
<option value="1">Regular</option>
<option value="2">Manual</option>
<option value="3" selected >Reversal</option>
</select>
</form>
<form name="main_form" method="POST" action="">
<IFRAME height="500" width="760" src="adjmain.jsp?ctype=<%=cType%>" name="main" scrolling="no" frameborder="0">
</IFRAME>
</form>
</body>
When user change the selection of cheque type, I want to retrieve data in 'main_form' again with the new value. I have defined a javascript funtion typeChanged() for this purpose but here I am lost on how to do it. As we are passing the value of a java varaible 'cType' to jsp, I believe I have to set its value to the one user selected and then refresh the IFRAME. But dont know how to do it. Can anybody please help me?
Thanks

Right off hand, without changing what you have
already, I would have your typeChanged() javascript
function get the selected value of the dropdown and
then call another javascript function which is on
adjmain.jsp which receives the new value as a
parameter, sets this value in a hidden field, and then
calls 'submit()' for itself (adjmain.jsp). Thus,
adjmain.jsp will then be able to access this hidden
value using 'request.getParameter("hiddenValueName")
and will reload based on the 'newly' selected value.
Hope that helps...I find an easier solution :
function typeChanged()
var ct = document.frame_form.type.value;
document.all.main.src="adjmain.jsp?ctype="+ct;
Thanks for your input.

Similar Messages

  • UIInput will not refresh with new value

    I have the following JSF component
    <h:inputText id="entryfee" binding="#{entryform.evententryfee}" value=""/>
    in a onchangeevent in another component I have the following
    double entryfee = 100.0;
    FacesContext mycontext = FacesContext.getCurrentInstance();
    evententryfee.setValue(String.valueOf(entryfee));
    evententryfee.updateModel(mycontext);
    evententryfee is updated but the new value is not displayed by the component
    How do I refresh the display to show the new value ?

    Why do you use the component binding instead of a normal value binding?
    You can write
    <h:inputText id="entryfee" value="#(entryform.entryfee}"/>
    Anyway, a component binding does not overwrite the attribute whichi is explictly specifed by the tag.
    So, if you insist to use the component binding, you can write
    <h:inputText id="entryfee" binding="#{entryform.evententryfee}"/>

  • How to export "Managed by" field of Distribution and Security groups and import with new values? (Exchange 2010, AD 2003)

    My Active Directory environment is 2003 functional level and we have Exchange 2010.
    I am trying to find out the best way to do a mass edit for the "Managed by" values of our security and distribution groups.
    I know we can export the "managed by" field by csvde but I am not sure this is the correct way to do it. Also in the case that there are multiple users assigned to be managing a distribution group it only shows one value. Also powershell from Exchange
    2010 can be used with "get-distribution" but as our AD environment is 2003 is this correct also?
    Finally once the data is exported to csv can it be edited to then reimport and udpate the existing group managed by fields with new values?
    Not really sure that the best way to go about this is.
    Summary - We have 2003 AD with Exchange 2010 and I am trying to export a list of all our Distribution/Security groups showing the group name and managedby values so we can edit and update the
    existing managedby values with new ones. In some cases we have multiple users as the owners.
    Appreciate any advice on how this can be best achieved. Thank you.

    Hi,
    We can use the following command in Exchange 2010 to export "Managed by" field of Distribution and Security groups:
    Get-DistributionGroup | Select-object Name,@{label="ManagedBy";expression={[string]::join(“;”,$_.managedby)}},Primarysmtpaddress | Export-Csv
    C:\export.csv
    After you changed the Managed by field in export.csv and saved it as a new file named import.csv, we can run the following command to set with new value:
    Import-Csv C:\import.csv | Foreach-Object{ Set-DistributionGroup –Identity $_.Name –ManagedBy $_.ManagedBy}
    Hope it works.
    Thanks,
    Winnie Liang
    TechNet Community Support

  • How to export "Managed by" field of Distribution and Security groups and import with new values?

    My Active Directory environment is 2003 functional level and we have Exchange 2010.
    I am trying to find out the best way to do a mass edit for the "Managed by" values of our security and distribution groups.
    I know we can export the "managed by" field by csvde but I am not sure this is the correct way to do it. Also in the case that there are multiple users assigned to be managing a distribution group it only shows one value. Also powershell from Exchange
    2010 can be used with "get-distribution" but as our AD envronment is 2003 is this correct also?
    Finally once the data is exported to csv can it be edited to then reimport and udpate the existing group managed by fields with new values?
    Not really sure that the best way to go about this is.
    Summary - We have 2003 AD with Exchange 2010 and I am trying to export a list of all our Distribution/Security groups showing the group name and managedby values so we can edit and update the
    existing managedby values with new ones.
    Appreciate any advice on how this can be best achieved. Thank you.

    Hi Barkley,
    You can also refer to Official Scripting Guys forum to get a script solution:
    http://social.technet.microsoft.com/Forums/scriptcenter/en-US/home?forum=ITCG&filter=alltypes&sort=lastpostdesc
    Best Regards,
    Amy Wang

  • Where to Configure Service Ticket "Reason" & "Subject" field with new value

    Hi Friends - I am working on IC Webclient Service Ticket. I want to Configure the "Reason" field as well as the "Subject" field in Service Ticket with new Values as per our requirement.
    I could not find any Configuration object for the above mentioned customizing in the CRM > SPRO.
    Can you pls guide me where I can configure the same?
    Thanks in advance and warm regards
    Purnendu

    Hi Gert - Thanks a lot for your reply.
    I am using CRM 5.0. I just forgot that Categorization profile can be used for the same.
    I have configured the categorization profile for the same and its working fine.
    One more thing -
    I want to create an Appointment with Customer for problem resolution at the Customer Site. I want to assign Resorces to the Appointment so that the responsible resource is notified and sent to the Customer Site for Visit.
    Can you pls guide me on the same?
    Cheers
    Purnendu
    P.S. - Full reward points awarded.

  • The Jtree is not refreshing with new values when mouse click on the node

    hi ,
    I am creating a tree from a vector .The values in the vector is coming from the JTable data after satisfing the some condition. But the data in the Jtable is changing time to time so the data in the vector is also changing .
    But the problem is that when first I create a tree with that data the tree is created but for the next time I click on the tree node the tree is not changing i.e. it is not created with the new values that is stored in the vector at that time .what to do .Please help
    I am using DefaultMutableTreeNode for creating the tree .In starting I have created one root and the one it's child .Now the next subtree of the root child have to be created by this vector data. this subtree should be updated according to the values in the vecter.
    public void valueChanged(TreeSelectionEvent e) {
    //code here
    subtreecreat();
    //some function that create tree after cheching the some condition here
    subtreecreat() {
    Enumeration en=vector.elements();
    while(en.hasMoreElements())
    DefaultMutableTreeNode servername = new DefaultMutableTreeNode(en.nextElement());
    node.add(servername);
    Please help it is very urgent
    Thanks in Advance,
    anum

    Well, you can either use a custom TreeModel that tracks your Vector, or you can use a DefaultTreeModel and call model.reload(node) to refresh the tree below the specified node.

  • Refreshing data in an IFRAME

    Hi all,
    I have a jsp which has 2 forms 'frame_form' and 'main_form'. The 'frame_form' has a dropdown which contains list of cheque types (with the current cheque type selected) while 'main_form' contains an IFRAME whose src is a jsp to whom i passed the value of the selected cheque type. This value is contained in a java variable 'cType'.
    <%
    String cType="";
    cType = "3";
    %>
    <body bgcolor="#C0C0C0" text="#000000">
    <form name="frame_form" method="POST" action="">
    <select size="1" name="type" onChange="typeChanged();">
    <option value="1">Regular</option>
    <option value="2">Manual</option>
    <option value="3" selected >Reversal</option>
    </select>
    </form>
    <form name="main_form" method="POST" action="">
    <IFRAME height="500" width="760" src="adjmain.jsp?ctype=<%=cType%>" name="main" scrolling="no" frameborder="0">
    </IFRAME>
    </form>
    </body>
    When user change the selection of cheque type, I want to retrieve data in 'main_form' again with the new value. I have defined a javascript funtion typeChanged() for this purpose but here I am lost on how to do it. As we are passing the value of a java varaible 'cType' to jsp, I believe I have to set its value to the one user selected and then refresh the IFRAME. But dont know how to do it. Can anybody please help me?
    Thanks

    One way to do it is to give your IFRAME itself an id such as:
    <IFRAME height="500" width="760" id="mainFrame"
    src="adjmain.jsp?ctype=<%=cType%>" name="main"
    scrolling="no" frameborder="0">
    </IFRAME>
    Then, the following code should do it:
    document.getElementById("mainFrame").location.href = "adjmain.jsp?ctype=" + type.value;
    Or something like that. I'm assuming that you want the value of ctype to be the value of the option selected.
    Let me know if that works, and if I understood your question correctly.
    Mike
    [email protected]

  • REUSE_ALV_GRID_DISPLAY - updating the database with new values

    Hi,
    I am using the function module 'REUSE_ALV_GRID_DISPLAY' to display records. I have managed to open a field for input/edit mode. Once this data has been changed , where will this data be? I have checked the internal table - no joy. I need to use this new/changed data to update the database with the new values.
    Thanks,
    Leanne

    Hi,
    The data is stored in table tab. After the changes the data does not reflect in table tab. Where can I get the data so that I can update my database?
    I have coded the process as follows:
        when '&SUSPEND'.
          loop at tab
            where box = 'X'.
              update zzzz
                set status       = 'SP'
          endloop.
    Regards,
    Leanne

  • In KP26 excel uploading not happening with +new values+

    Kp26 the users  is doing thorugh EXCEL upload
    wants to update NEW activity  values even if Costs already posted ?
    But manually we are able to delete the values and update, but for large employee turnovers
    we cannt do it manually, so they are looking for update option which will
    erase the current data and update the fresh ones?
    the following error message appears when we try with delete button?
    The following is the error message
    Costs already posted under cost element SEC_ACT_CO. No deletion possible
    Message no. K8098
    Diagnosis
    You want to delete business process or cost center/activity type 5000010114/LE6047.
    However, you have already posted actual costs in version 0 in fiscal year 2011 under cost element SEC_ACT_CO.
    System Response
    The deletion may therefore not be executed.
    Procedure
    First reverse the posted record under cost element SEC_ACT_CO.
    Alternatively you can set all fields to zero in the plan record you have just selected. This corresponds to a deletion of the activity types/business process quantity planning on object 5000010114/LE6047.
    If the message appears several times in the error log, it could be that the actual records were posted under different transaction currencies. In this case, you must delete them all.
    Edited by: melgibson on Feb 1, 2012 4:08 PM

    thankx for the reply
    But in our case the while we checked periodwise values are not the difference which are getting posting
    rather 100 is getting multiplied with the old values.
    the Acvtivity price  was 10 for 01 to 12 periods we changed to 100
    New value     old value      posted amounts
    100     7.37     73.7
    100     7.36     73.6
    100     7.31     73.1
    100     9.5     95
    100     9.9     99
    100     11.23     112.3
    100     11.22     112.2
    100     11.22     112.2
    100     11.22     112.2
    100     11.23     112.3
    100     11.22     112.2
    100     11.22     112.2
    the user changes period values some times thats the reason above table shows different figlures
    But as per the delta logic it should be as follows
    New value     old value      User rquires
    100     7.37     100     
    100     7.31     100
    100     9.5     100
    100     9.9     100
    100     11.23     100
    100     11.22     100
    100     11.22     100
    100     11.22     100
    100     11.23     100
    100     11.78             100
    100     11.22      100
    But here the requirement is little peculiar,
    The user wants to update plan data , irrespective whether it is existing or not, with fresh
    figures which should equally distribute periodwise (not according to delta logic)  as shown above
    all should become 100?
    How that can be achieved?
    Edited by: melgibson on Feb 3, 2012 11:59 AM
    Edited by: melgibson on Feb 6, 2012 1:09 PM
    Edited by: melgibson on Feb 15, 2012 8:43 AM
    Edited by: melgibson on Feb 15, 2012 8:47 AM

  • Cannot refresh data in Excel Services with SQL Azure databases

    I am using Excel Services on a SharePoint Online.
    I get my data from a SQL Azure. When i create my Excel repor with Excel 2013 pro I have no problem. So I upload my file on my Sharepoint and try to refresh data.
    Connexion : Power Query - RPT_Event_ByEventType 
    Erreur : Erreur sur site (OnPremise) : Sorry, the data source for this data connection isn't registered for Power BI. Ask your Power BI
    admin to register the data source in the Power BI admin center. 
    I do not understad why I get that error because my data source is on Azure why It told me "OnPremise" ?

    hi,
    >> this button of excel gets just address of web and have button for import it
         i test it by rest API project , but doesn't work, do you know how it is work?
    Do you mean that you don't know how to get the table? You may input the site address into the address box, and then click go button nearby, select the table you want to import into the Excel. Then click import button.That also works for  rest API,
    and your rest API should get the data that you want
    By the way, this is the forum for discussions about Excel develop(VBA ,customization), better to go to TechNet forum for Excel for Excel features question, so that you could get more professional help.
    Best Regards
    Lan
    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.

  • Variable update with new value

    Hallo,
    How can i a variable (XML Publisher Syntax <?variable:name?>) one new value assign/update.
    e.g.
    initialize: <?variable:name?>[value]<?end variable?>
    [loop]
    new allocate:
    <?variable:name?>[value]+1<?end variable?> -> doesn't work
    [end loop]
    I use the XML Publisher syntax because i use before function "instr".
    who can me help. please. I'm to despair.
    Thanks for help
    Holger

    As I understand you are looking for the Variable handling similar to X=X+1 , and you want to loop this from say 1 to 15.
    - I think you just did not include the counter within the loop
    - Also you are trying to loop on $YY, which first of all can not be accessed this way. You will have to use xdoxslt:get_variable($_XDOCTX, 'YY') . Secondly your loop should run against a group of data. It can be a variable like $YY but it should hold such a group of data.
    so, assuming that your data is flat and grouped under ROW tag...
    <?xdoxslt:set_variable($_XDOCTX, ’YY’, 1)?>
    <?for-each:ROW[position()<16]?>HELLO
    <?xdoxslt:set_variable($_XDOCTX, 'YY', xdoxslt:get_variable($_XDOCTX, 'YY') +1)?><?xdoxslt:get_variable($_XDOCTX, ’YY’)?>
    <?if: (xdoxslt:get_variable($_XDOCTX, ’YY’))=15?>Yes Yes<?end if?>
    <?end for-each?>

  • Compare Old Value (Session State) with New Value on Submit.

    Hi all,
    Is there an easy way to do comparison of Old Value (Session State Value) with the New Value?
    is there an API for that? like what we have in PLSQL Trigger :NEW & :OLD
    Thanks before
    -Joel

    There is only one version of session state available for examination at any point during page rendering or processing, the current version. Can you explain more about what you need?
    Scott

  • How to replace namespace tag with new value using -JAVA MAPPING

    Hi Guys,
    I need to replace namespace Tag in Target xml with a new value.
    For Eg: My namespace Tag is - <ns0:TestHeader xmlns:ns0="http://0020.TestHeader.SS.com">
    I want My target xml to have value- <ns0:TestHeader>
    How can i achieve it using JAVA mapping?
    Can you provide me the code to do so.

    Sarjana,
    Not well-formed XML is only possible by Java Mapping. Please use below replace logic in Java map.
    inputContent.replaceAll("<ns0:TestHeader xmlns:ns0=\"http://0020.TestHeader.SS.com\">", "<ns0:TestHeader>");
    Link1, Link2.

  • How to modify person or group field value with new value

    Hi
    I have person or group field having property Person Only.
    Thsi firls already have one value. Now I want to update it but this code to update value is not working.
    string myName = @"ABC\myname";
    web.EnsureUser(myName);
    SPUser myUser = web.SiteUsers[myName];
    SPFieldUserValue myNamevlaue = new SPFieldUserValue(web, myUser.ID, myUser.LoginName);
    oSplistItem["My_x0020_User"] = myNamevalue;
    oSplistItem.Update();
    I am getting myNamevalue correct in the veriable. But why its not updating in the list?
    is there any issue in the above code?
    Do I need to delete previous value and then update new value in this field? How?

    Hi,
    The format of the user value in people/Group field must be
    ID;#Name, you can use the following code snippets to update the people/group field.
    string loginName = "ABC\\myname";
    SPUser user = web.SiteUsers[loginName];
    SPList list = web.Lists.TryGetList("ListName");
    if (list == null)
    Console.WriteLine("list is not exist!");
    return;
    SPListItem item = list.GetItemById(3);
    item["My_x0020_User"] = user.ID.ToString() + ";#" + user.Name;
    item.Update();
    Thanks,
    Jason
    Please remember to mark the reply as answer if it help, and unmark the answer if it provide no help.

  • ADF Struts : Form not getting refreshed with new values

    I have a view object based ona entity object. It has an additional attribute(calculated attribute) selected from some other table. In my browse page, I click on edit button and change the calculated attribute in the edit page and comeback to the browse page. In the browse page, the changed calculated attribute is not getting reflected. however the database has the changed value. Now, if I query the same browse page in a different browser window, it shows the changed value. But, still the original browser window shows the unchanged value only(even after refreshing the browser). So, this is server caching. Why is the application module not refreshing the bindings? What should be done to achieve the bindings refresh?

    Did you look at:
    http://radio.weblogs.com/0118231/stories/2005/06/16/whyIsntRefreshingTheBrowserPageEnoughToRefreshTheDataDisplayed.html

Maybe you are looking for