Using ajax/servlets, different behaviour with different systems

I have written a small web application using servlets and ajax. I used the tomcat bundled with netbeans for deploying it. In the front end I create a timer which keeps running. I also have a form containing a paragraph that displays a question, followed by radio buttons and two buttons - a next and a submit. When I click the next button, I call a javascript function that creates an xmlHttp Object and sends the request for the next question and options from the servlet. when I request I also pass what the user has selected for the current question. when the timer reaches twelve or the user has finished attending all questions, the function would request for score through another xmlHttp Object. This program works fine in my computer. I also installed another tomcat server and ran it on another port and tested it. It works fine. But when I ran it college, the page was not displayed properly. When I click an option the contents of the form moves and only when I click the Next button twice, the corresponding javascript function is called.
I am pasting the html file and the servlet. What could be the reason?
This is qns.html
<html>
  <head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
//styles
    <script type ="text/javascript">
        <!--
        var no_of_qns = 2;
        var s = 1;
        var m = 0;
        var h = 0;
        var jsqno = 0;
        var flag = 0;
        var jsnds;
        var jmin;
        var sid;
        var cont;
        var oldhtml;
        function load(){
            cont = document.getElementById('container');
            oldhtml = cont.innerHTML;//backup the content to display it after the user accepts the rules
            var ins = "<ul><li>You have to complete 30 qns in 30 mins</li><li>Click finish to quit</li><li>All the best</li></ul>";
            cont.innerHTML = "<p style =\" text-align: center; font-size : 17px \">Instructions</p>"+ins+"<form action=\"javascript:funct()\"><input type=\"submit\" value = \"I have read the instructions\"></form>";
        function funct(){
                //alert('why?');
                cont.innerHTML = oldhtml;//replace back the question after user has accepted to the terms and conditions.
                sid = setInterval("updateClock()",1000);
                ajaxFunction(0);
        function ajaxFunction(chz)
            jsnds = document.getElementById('snds');
            jmin = document.getElementById('min');
           var back;
            var ans = 'arunkumar c';
            try
                var xmlHttp=new XMLHttpRequest();
            catch (io)
                alert("Your might be using IE or your browser does not support AJAX!.");
                return false;
            xmlHttp.onreadystatechange=function()
                if(xmlHttp.readyState==4)
                       // Get the data from the server's response
                       back = xmlHttp.responseText;
                       if(flag == 0){
                            var values = back.split("|");
                            document.getElementById("question").innerHTML=values[0];
                            document.getElementById("choicea").innerHTML=values[1];
                            document.getElementById("choiceb").innerHTML=values[2];
                            document.getElementById("choicec").innerHTML=values[3];
                            document.getElementById("choiced").innerHTML=values[4];
                            return true;
                            else{
                                //alert('what');
                                document.getElementById("container").innerHTML = "<p>You have completed the test and your score is "+back+".</p><p><a href=\"/OnlineApti/login.html\">Go Back</a> to login page! Thank you!";
            if(uform.choice[0].checked == true){
                ans = document.getElementById("choicea").innerHTML;
            else if(uform.choice[1].checked== true){
                ans = document.getElementById("choiceb").innerHTML;
            else if(uform.choice[2].checked == true){
                ans = document.getElementById("choicec").innerHTML;
            else if(uform.choice[3].checked == true){
                ans = document.getElementById("choiced").innerHTML;
            if(chz == 1){
                jsqno = no_of_qns;
            if(jsqno == no_of_qns)
                clearInterval(sid);
                 //alert(clearInterval(sid));
                 flag = 1;
            jsqno = jsqno + 1;
            var url = "http://localhost:8084/OnlineApti/test";
            url = url+"?qno="+jsqno+"&ans="+ans;
            //alert(url);
            xmlHttp.open("GET",url,true);
            xmlHttp.send(null);
        function updateClock(){
            //alert('why');
            s++;
            jsnds.innerHTML=" "+s;
            if(s == 60){
                m++;
                s = 0;
                jmin.innerHTML =" "+m;
            //alert("http://localhost:8084/OnlineApti/test?qno="+(no_of_qns+1)+"&ans=final");
            if(m == 30){
                alert ('The quiz is over!! You failed to complete it within the time limit');
                var xmlHttp;
                try
                    xmlHttp=new XMLHttpRequest();
                catch (io)
                    alert("Your might be using IE or your browser does not support AJAX!.");
                    return false;
                xmlHttp.onreadystatechange=function()
                    if(xmlHttp.readyState==4)
                        var back = xmlHttp.responseText;
                        document.getElementById("container").innerHTML = "<p>You have completed the test and your score is "+back+".</p><p><a href=\"/OnlineApti/login.html\">Go Back</a> to login page! Thank you!";
                xmlHttp.open("GET","http://localhost:8084/OnlineApti/test?qno="+(no_of_qns+1)+"&ans=final",true);
                xmlHttp.send(null);
                clearInterval(sid);
  //-->
  </script>
  </head>
  <body onload="load()">
    <div class="top">
     <h1>Welcome to Online Quiz</h1>
    </div>
    <div class="main" id="container">
        <form name ="uform" action="javascript:ajaxFunction(1)">
        <table cellpadding ="5" cellspacing ="20">
            <thead></thead>
            <tbody>
                <tr>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td align="right">
                        <p style="text-align:right" id="clock">Time: 0:<span id="min">0</span>:<span id ="snds">0</span></p>
                    </td>
                </tr>
                <tr>
                    <td colspan="4">
                        <p id="question"></p>                 
                    </td>
                </tr>
                <tr>
                    <td>
                        <input type="radio" name ="choice"><span id="choicea"></span>
                    </td>
                    <td>
                        <input type="radio" name ="choice"><span id="choiceb"></span>
                    </td>
                    <td>
                        <input type ="radio" name ="choice"><span id="choicec"></span>
                    </td>
                    <td>
                        <input type ="radio" name="choice"><span id="choiced"></span>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <input type ="button" value ="Next" name ="nxt" onclick="ajaxFunction(0)">
                    </td>
                    <td colspan="2">
                        <input type = "submit" value ="Finish">
                    </td>
                </tr>
            </tbody>
        </table>
    </form>
    </div>
  </body>
</html>
import java.io.*;
import java.net.*;
import java.sql.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.util.*;
import java.lang.*;
* @author arun
public class test extends HttpServlet {
    * Processes requests for both HTTP <code>GET</code> and <code>POST</code> methods.
    * @param request servlet request
    * @param response servlet response
        Connection con;
        int marks = 0;
        StringBuffer qn;
        int qno;
        String prevAns = "wow";
        String choice = new String();
        //To be updated based upon the number of questions!!
        int no_of_qns = 2;
    public void init(ServletConfig config) throws ServletException {
        try {
            Class.forName("org.gjt.mm.mysql.Driver");
            con = DriverManager.getConnection("jdbc:mysql://localhost:3306/mysql", "root", "");
            Statement qry;
            qry = con.createStatement();
            qry.executeQuery("use login;");
        } catch (Exception io) {
            System.out.println(io);
            System.exit(0);
    protected void processRequest(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
        response.setContentType("text/html;charset=UTF-8");
        PrintWriter out = response.getWriter();
        qn = new StringBuffer();
        try {
            Statement qry;
            qry = con.createStatement();
            qno = Integer.parseInt(request.getParameter("qno"));
            choice = request.getParameter("ans");
            if(prevAns.equalsIgnoreCase(choice)){
                  marks++;               
            if(qno == (no_of_qns +1)){
                out.println(marks);
                marks = 0;
            String qryString = "select * from questions where questionno="+qno+";";
            ResultSet rs = qry.executeQuery(qryString);
            while(rs.next()){
                qn.append(rs.getString(1));
                qn.append(") "+rs.getString(2));
                qn.append("|"+rs.getString(3));
                qn.append("|"+rs.getString(4));
                qn.append("|"+rs.getString(5));
                qn.append("|"+rs.getString(6));
                prevAns =rs.getString(7);
            out.println(qn.toString());
        catch(SQLException io){
            System.out.println(io);
        finally {
            out.close();
    // <editor-fold defaultstate="collapsed" desc="HttpServlet methods. Click on the + sign on the left to edit the code.">
    * Handles the HTTP <code>GET</code> method.
    * @param request servlet request
    * @param response servlet response
    protected void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
        processRequest(request, response);
    * Handles the HTTP <code>POST</code> method.
    * @param request servlet request
    * @param response servlet response
    protected void doPost(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
        processRequest(request, response);
    * Returns a short description of the servlet.
    public String getServletInfo() {
        return "Short description";
    // </editor-fold>
}What might be the problem?
Edited by: carunkumar on Oct 4, 2008 8:21 AM

carunkumar wrote:
function ajaxFunction(chz)
jsnds = document.getElementById('snds');
jmin = document.getElementById('min');
var back;
var ans = 'arunkumar c';
try
var xmlHttp=new XMLHttpRequest();
catch (io)
alert("Your might be using IE or your browser does not support AJAX!.");
return false;
}First thing is that the Ajax request you are building is not browser specific.
Go to this site it will give you the specific code www.tizag.com/ajaxTutorial/
And do try and test your program on diff browser from your pc only. Its a ajax world so be careful while dealing with browsers
and there settings. Just check your browser setting on your pc and check the same setting at your college also.
Buddy this ajax give a trick in big presentation also :) So no need to worry and test it and do it, its real fun when you just
cross this browser secific dependencies.
Cheers
Sachin Kokcha

Similar Messages

  • How to use BPM itegrate different system aysnchronously

    for example, 3 enterprise applications need to be integrated together with BPM, which are Bid system, ERP system, Finance system,
    and erery business document should be approved  by persons one by one in the 3 different application system with its workflow respectively, we can't change the workflow in the
    different system, and only when the document is finished approved in the BID system asynchronously, it can enter the ERP system, an so on .
    after the business document is approved in the Bid system, it should be returned in the BPM contexts,and the BPM user will dicide whether it will be enter the next system.
    so how to integrate the 3 application system?
    I draw a[ BPM process|http://www3.picturepush.com/photo/a/2586651/640/Picture-Box/aaa.jpg], but in this process,  the "ERP human activity" activity, this activity how to get data from the "BID system asyn workflow" which is an asynchronized
    wrokflow?

    Gavin,
    For asynchronous cases, you should adopt the "wait and trigger" principle.  In BPM, you can acheive it by using a timer and an automated activity. Set the timer repeat time to say 15 mins (you should change it as per your business scenario), and then execute / trigger an automated activity, which will call your Bid system to check the state (whether the data entry / specific workflow is over). If the state is completed, (you may check using exclusive choice), move to next step. Else, pass back the control to timer which will again make the process wait. This way the objective could be attained.
    Hope this helps.
    Br,
    Bala

  • Getting an error while trying to use AJAX servlet in EP

    Hi All,
      This is my first time trying to develop a PAR file using AJAX. I have a project called NonEmployee and in it there is a class called NonEmployeeHiring which extends AbstractPortalComponent. I am trying to use AJAX, so that when users select a position from a drop down on the JSP, it send the request to a servlet called PositionDetailServlet, which does the processing and sens response back. However, I am getting a very weird error back in the response from servlet. Seems like it does not make upto the servlet and a part of the error that i am getting says,
    No security zone - access is denied
    com.sap.portal.system/applications/NonEmployee/components/PositionDetailServlet
    This is only a part of the big page of error. My servlet is in src.core folder. Here is my portalapp.xml
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <application>
      <application-config>
        <property name="startup" value="true"/>
        <property name="ServicesReference" value="com.sap.portal.ivs.iviewservice,com.sap.portal.ivs.connectorservice,com.sap.portal.runtime.system.inqmy,com.sap.portal.pcd.glservice,com.sap.portal.ivs.systemlandscapeservice,com.sap.portal.pcmbuilderservice,usermanagement,com.sap.portal.ivs.logger,com.sap.portal.usermapping,landscape,jcoclient"/>
         <property name="SharingReference" value="urlgenerator"/>
      </application-config>
      <application-config>
         <property name="SharingReference" value="urlgenerator"/>
      </application-config>
      <components>
        <component name="NonEmployeeHiring">
          <component-config>
            <property name="ClassName" value="NonEmployeeHiring"/>
            <property name="SecurityZone" value="low_safety"/>
          </component-config>
          <component-profile>       
            <property name="SystemIdentifier" value="SAP_R3_HumanResources"/>
            <property name="groupSubGroupForSalTypeValidation" value="A,01,AS,A,02,AS,A,03,HR,A,04,AS,A,05,HR,A,06,HR,A,07,HR,B,03,HR,B,04,AS,B,05,HR,B,06,HR,B,07,HR"/>
          </component-profile>
        </component>
        <component name="PositionDetailServlet">
             <component-config>
                 <property name="ClassName" value="com.grainger.portal.servlets.PositionDetailServlet"/>
                 <property name="ComponentType" value="servlet"/>
               </component-config>
        </component>  </components>
      <services/>
    </application>
    Any help will be greatly appreciated.
    Thanks in advance,
    Preet

    Thanks a lot for replying and trying to help me guys. Here is what my new portalapp.xml looks like
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <application>
      <application-config>
        <property name="startup" value="true"/>
        <property name="ServicesReference" value="com.sap.portal.ivs.iviewservice,com.sap.portal.ivs.connectorservice,com.sap.portal.runtime.system.inqmy,com.sap.portal.pcd.glservice,com.sap.portal.ivs.systemlandscapeservice,com.sap.portal.pcmbuilderservice,usermanagement,com.sap.portal.ivs.logger,com.sap.portal.usermapping,landscape,jcoclient"/>
         <property name="SharingReference" value="urlgenerator"/>
      </application-config>
      <application-config>
         <property name="SharingReference" value="urlgenerator"/>
      </application-config>
      <components>
        <component name="NonEmployeeHiring">
          <component-config>
            <property name="ClassName" value="NonEmployeeHiring"/>
            <property name="SecurityZone" value="com.sap.portal.pdk/low_safety"/>
          </component-config>
          <component-profile>       
            <property name="SystemIdentifier" value="SAP_R3_HumanResources"/>
            <property name="groupSubGroupForSalTypeValidation" value="A,01,AS,A,02,AS,A,03,HR,A,04,AS,A,05,HR,A,06,HR,A,07,HR,B,03,HR,B,04,AS,B,05,HR,B,06,HR,B,07,HR"/>
          </component-profile>
        </component>
        <component name="PositionDetailServlet">
             <component-config>
                 <property name="ClassName" value="com.grainger.portal.servlets.PositionDetailServlet"/>
                 <property name="SecurityZone" value="com.sap.portal.pdk/low_safety"/>
                 <property name="ComponentType" value="servlet"/>
               </component-config>
        </component>
        <component name="PositionDetailServlet1">
             <component-config>
                 <property name="ClassName" value="com.grainger.portal.servlets.PositionDetailServlet1"/>
                 <property name="SecurityZone" value="com.sap.portal.pdk/low_safety"/>
                 <property name="ComponentType" value="servlet"/>
               </component-config>
        </component>
      </components>
      <services/>
    </application>
    I created a new servlet called PositionDetailServlet1 and put it in src.api folder, thinking that that might help. But no luck at all. I am wondering if tehre is a global setting on the server for it to allow servlets to run. Just my guess.
    Any help will be greatly appreciated. That is no issue.
    Thanks,
    Preet

  • Odd behaviour appending to System.out PrintStream

    I've run into some unexpected behaviour with the System.out PrintStream object. When I append characters to it I'm expecting the characters to be displayed on screen much like I'd expect the characters to be written to a file using a FileOutputStream. What seems to happen is that the characters are written to the PrintStream but the process continues on and on adding some unseen character (newline?). The following code generates the behaviour I"m talking about. The main method is a bit contrived but does the job. You'll likely have to increase your heap size to run this (-Xmx512m worked for me):
    {code}
    package output.stream.problem;
    import java.io.BufferedReader;
    import java.io.BufferedWriter;
    import java.io.File;
    import java.io.FileNotFoundException;
    import java.io.FileOutputStream;
    import java.io.FileReader;
    import java.io.IOException;
    import java.io.OutputStream;
    import java.io.OutputStreamWriter;
    import java.io.Reader;
    import java.io.StringReader;
    import java.util.HashMap;
    import java.util.Random;
    * A class used to introduce transition/transversion errors into DNA sequences. Error types are introduced
    * with equal probability and are mutually exclusive.
    * @author twb
    public class GenomicDNAMutator {
         private HashMap<Integer,Character> mutations=new HashMap<Integer,Character>();
         private Reader sequenceSource;
         private Random rand=new Random();
         private double errorRate=-1;
         public GenomicDNAMutator(String fileName, double errorProbability) {
              try {
                   sequenceSource=new FileReader(fileName);
                   errorRate=errorProbability;
              } catch (FileNotFoundException fnfe) {
                   System.err.println("Could not open file "+fileName);
                   fnfe.printStackTrace();
         public GenomicDNAMutator(File file, double errorProbability) {
              try {
                   sequenceSource=new FileReader(file);
                   errorRate=errorProbability;
              } catch (FileNotFoundException fnfe) {
                   System.err.println("Could not open file "+file);
                   fnfe.printStackTrace();
         public GenomicDNAMutator(Reader is, double errorProbability) {
              sequenceSource=is;
              errorRate=errorProbability;
         public void process() {
              this.process(System.out);
         public void process(OutputStream os) {
              BufferedWriter bw=new BufferedWriter(new OutputStreamWriter(os));
              BufferedReader br=new BufferedReader(this.sequenceSource);
              char nucleotide;
              char[] a=new char[]{'T','C','G'};
              char[] t=new char[]{'A','C','G'};
              char[] c=new char[]{'A','T','G'};
              char[] g=new char[]{'A','T','C'};
              char[][] errorMatrix=new char[][]{a,t,c,g};
              int matrixIndex=-1;
              try {
                   int count=0;
                   int i=0;
                   while((i=br.read())!=-1) {
                        nucleotide=(char)i;
                        count++;
                        double d=rand.nextDouble();
                        if(d<=this.errorRate) {
                             switch(nucleotide) {
                             case 'A':
                                  matrixIndex=0;
                                  break;
                             case 'T':
                                  matrixIndex=1;
                                  break;
                             case 'C':
                                  matrixIndex=2;
                                  break;
                             case 'G':
                                  matrixIndex=3;
                                  break;
                             int pos=rand.nextInt(3);
                             this.mutations.put(count,nucleotide);
                             nucleotide=errorMatrix[matrixIndex][pos];
                        bw.append(nucleotide);
                   bw.flush();
                   bw.close();
              } catch (IOException ioe) {
                   System.err.println("Could not read the input source");
         public Reader getIn() {
              return sequenceSource;
         public void setSequenceSource(Reader in) {
              this.sequenceSource = in;
         public static void main(String[] args) throws Exception {
              StringBuilder sb=new StringBuilder();
              for(int i=0;i<30000000;i++) {
                   sb.append('A');
              System.out.println("Mock sequence built");
              GenomicDNAMutator gdm=new GenomicDNAMutator(new StringReader(sb.toString()),1d/100d);
              * Run the program using one of the process statements
              gdm.process(new FileOutputStream(new File("c:/text.txt")));
    //This one uses the System.out PrintStream object
    //          gdm.process();
              System.out.println("done");
    {code}
    I see this behaviour with java 1.6.0_10-beta and java 1.5.0_11
    Thanks for any insight you can give to this.
    - Travis

    twb wrote:
    I've run into some unexpected behaviour with the System.out PrintStream object. When I append characters to it I'm expecting the characters to be displayed on screen much like I'd expect the characters to be written to a file using a FileOutputStream. What seems to happen is that the characters are written to the PrintStream but the process continues on and on adding some unseen character (newline?). The following code generates the behaviour I"m talking about. The main method is a bit contrived but does the job. You'll likely have to increase your heap size to run this (-Xmx512m worked for me):Yes, this is the case. If you look at the javadoc for PrintStream it talks about the "auto-flush on newline" feature. what is your question?

  • How to integrate with RMS system

    Hi experts,
      I want to integrate RMS(Retail Management System) with SAP PI system.
    Is it possible to integrate?
    If possible, Can you give me Idea How to integrate with this?
    Thanks & Regards,
    Poonam.

    > Want your more help. If I want to use SOAP adapter to integrate with RMS system.
    > So, what are the prerequisites are required in RMS system to be integrate with SAP PI through SOAP adapter?
    >
    Fist you have to make sure that RMS system showuld accept SOAP messages, that means u will send payload to RMS in the form of SOAP meesage using SOAP receriver Adapter.
    RMS system people have to provide URL , u will send data to address specified in URL.
    using Adapter is compmetely depend on Source or Taget system, betetr to talk with RMS system people like how they will take data from other systems,besed on that you can decided.
    Regards,
    Raj

  • How to communicate with different system on different network using WCF service

    Hi,
    I am using a WCF service that is accessed by different systems on same network. But systems on different networks are not able to access my WCF service. I have enabled tcp port also. But i can not resolve this issue. Please give the solution to the issue.
    Regards,
    Shanmugam M

    Hi Vilas,
    How you may communicate with you AIX server may very greatly depending on what is running on your server.  Here is a link to another thread where Java calls and AppletView were discussed.  It contains a link to the company that makes AppletView, so it may have some good information for you. 
    Also, if your customer suggested you use AppletView and they developed it, they would probably be your best bet for explaining it to you.
    Hope this helps!
    Spex
    National Instruments
    To the pessimist, the glass is half empty; to the optimist, the glass is half full; to the engineer, the glass is twice as big as it needs to be...

  • How to Configure a oracle R12 with RAC on two different  system .

    I have one laptop and one desktop
    Laptop----
    on laptop I have install vmware 8
    Host OS --win7
    Guest OS---linux 4
    Desktop ---
    On Desktop I have install Vmware 8
    Hosts OS --- Win XP
    Guest OS ---Linux 4
    Plz suggest How configure oracle R12 with RAC using both system .

    Hussein Sawwan wrote:
    on laptop I have install vmware 8
    Host OS --win7
    Guest OS---linux 4
    Desktop ---
    On Desktop I have install Vmware 8
    Hosts OS --- Win XP
    Guest OS ---Linux 4
    Plz suggest How configure oracle R12 with RAC using both system .If you want to configure RAC, then you must have the same OS installed on all RAC nodes -- See (RAC: Frequently Asked Questions [ID 220970.1], Does Oracle Clusterware or Oracle Real Application Clusters support heterogeneous platforms?) for details.
    Once you have the same OS, please refer to:
    Oracle E-Business Suite Release 12 High Availability Documentation Roadmap [ID 1072636.1]
    Using Oracle 10g Release 2 Real Application Clusters and Automatic Storage Management with Oracle E-Business Suite Release 12 [ID 388577.1]
    Using Oracle 11g Release 2 Real Application Clusters with Oracle E-Business Suite Release 12 [ID 823587.1]
    Thanks,
    HusseinHi Hussein,
    For Rac I am using both same OS (linux 4) for both nodes .
    Plz suggest its possible to install two nodes on different machine(diiferent virtual machine on different system ) .Can communicate both machine without any problem if its possible plz provide links.

  • How to use the same OC4j server with different port number

    How to use the same OC4j server with different port numbers..?
    I have to OC4J installed on my machine on different hard disk drives....
    I want to be able to run both the server simultaneously..?
    is it possible ..it yes then how..?
    for that i have changed the port number of one server...
    but when i am trying to start the other server with different port number..it says that JVM -Bind already...
    Is there any clues...?
    Nilesh G

    In the config directory:
    default-web-site.xml: Change the port the HTTP listener listens on
    jms.xml: Change the port the JMS service listens on
    rmi.xml: Change the port the ORMI listener listens on.
    Or, you can add another web-site.xml file, and deploy your applications to 1 server, and bind the web applications to the different web sites. This way you only have to deploy your applications to 1 place.
    Rob
    Oracle

  • How can you use iMessage between 3 iPads with 3 different users but only one Apple ID?

    how can you use iMessage between 3 iPads with 3 different users but only one Apple ID?

    No you do not need separate Apple ID's in order to use 3 devices with one Apple ID. I use 4 devices to Message and FaceTime and all use the same Apple ID. You do need to add additional email addresses for the other devices.
    Look at this very informative video for the instructions.
    http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l

  • How to replace a sub vi that is used in many main VIs with another sub vi under a different file name without repeating the replace vi operation?

    Hello,
    I am converting a LV5.1.1 llb to LV7.1 that contains serial sub VIs ("Serial Port Read.vi", "Serial Port Write.vi", and "Bytes at Serial Port.vi") that need to be replaced with the newer VISA serial sub VIs ("VISA Read.vi", "VISA Write.vi", and "VISA Bytes at Serial Port.vi").  The older serial sub VIs are used on many different main VIs under the same llb, and I want to be able to replace all the older serial sub VIs with the equivalent VISA sub VIs in LV7.1 without repeating the same replace VI task on each main VI.  Please advise if it can be done in LV7.1 and how?
    Thank you so much for your help,
    Valen

    If you have the old serial VIs in the llb, make a copy of it and delete them. Then, when you open the top level VI in 7.1, LabVIEW should replace them with compatibility VIs of the same name but using VISA.

  • Can we assign 2 IPs for a SCCM 2012 primary site server and use 1 IP for communicating with its 2 DPs and 2nd one for communicating with its upper hierarchy CAS which is in a different .Domain

    Hi,
    Can we assign 2 IPs for a SCCM 2012 primary site server and use 1 Ip for communicating with its 2 DPs and 2nd one for communicating with its upper hierarchy CAS . ?
    Scenario: We are building 1 SCCM 2012 primary site and 2 DPs in one domain . In future this will attach to a CAS server which is in different domain. Can we assign  2 IPs in Primary site server , one IP will use to communicate with its 2 DPs and second
    IP for communicating with the CAS server which is in a different domain.? 
    Details: 
    1)Server : Windows 2012 R2 Std , VM environment .2) SCCM : SCCM 2012 R2 .3)SQL: SQL 2012 Std
    Thanks
    Rajesh Vasudevan

    First, it's not possible. You cannot attach a primary site to an existing CAS.
    Primary sites in 2012 are *not* the same as primary sites in 2007 and a CAS is 2012 is completely different from a central primary site in 2007.
    CASes cannot manage clients. Also, primary sites are *not* used for delegation in 2012. As Torsten points out, multiple primary sites are used for scale-out (in terms of client count) only. Placing primary sites for different organizational units provides
    no functional differences but does add complexity, latency, and additional failure points.
    Thus, as the others have pointed out, your premise for doing this is completely incorrect. What are your actual business goals?
    As for the IP Addressing, that depends upon your networking infrastructure. There is no way to configure ConfigMgr to use different interfaces for different types of traffic. You could potentially manipulate the routing tables in Windows but that's asking
    for trouble IMO.
    Jason | http://blog.configmgrftw.com | @jasonsandys

  • Mail error "Verify that you have addressed this message correctly. Check your SMTP server settings in Mail preferences and verify any advanced settings with your system administrator.Select a different outgoing mail server from the list"

    The Mail application has suddenly started giving error:
    "Verify that you have addressed this message correctly. Check your SMTP server settings in Mail preferences and verify any advanced settings with your system administrator.Select a different outgoing mail server from the list"
    It was working fine till yesterday, suddenly it stopped. I have 3 email accounts configured here, 2 are on exchange servers and one yahoo. Connection verification works and shows all servers as green.
    Any inputs?

    I had 3 accounts, 2 ms exchange accounts and 1 yahoo. After removal of yahoo, everything is back to normal.
    Regards
    Rohit

  • Is Iphone 6 bought from apple online store (T-Mobile) locked or unlocked? and could I use it in other countries with different carriers?

    Is Iphone 6 bought from apple online store (T-Mobile) locked or unlocked? and could I use it in other countries with different carriers?

    Is Iphone 6 bought from apple online store (T-Mobile) locked or unlocked? and could I use it in other countries with different carriers?

  • [solved] scritpt to check the used space of different file systems

    how to write a scritpt to check the used space of different file systems and print if any file system above 50%
    I used this command to get the different filesystem and their used space
    df -h | grep -v Filesystem |tr -s " " | cut -d" " -f1,5
    Thanks in Advance

    Please try this command:
    df -Ph | tr -s " " | cut -d" " -f1,5 | sed -n "s/\([5-6][0-9]%\)\|\([0-9]\{3\}%\)/&/p"
    It works for me. Good luck
    Tiger Zhang
    .

  • Use ccBPM mainly for correlation between different systems

    In his presentation: "Design Patterns for SAP NetWeaver Exchange Infrastructure"
    William Li ,from SAP NetWeaverRIG Americas, stats that following:
    *Use ccBPM mainly for correlation processing between messages from different systems
    Although this practice is well known Ito me , would like to know what stands behind this recommendation (Except for
    eSOA BP). is it performance issue, other...
    your insights will be most wellcome.

    Nimrod Gisis wrote:Hi Nimrod,
    ccBPM offers achieving some difficult requirements easily , that means some cases using standard way of integration not possible .it is true that ccBPM scenarios uses one more layer(BPE engine) but it doesn't mean that it is going to give worst performance.
    i had done couple of implementations where we used extensively ccBPM to achive complex integration logics, i never felt ccBPM performance point of view any problems, all interfaces working perfectly in production.my view is it is really awesome.
    we have to design any interfaces by following best architectural standards in case of ccBPM also same,there is so much negative publicity about ccBPM, but is it not all true.
    the thing that intrigues me the most is the reference to different systems .
    > if lets say I have to construct a mesage from 20 other messages taken from the same applicative system....
    > will that be a "good practice" or an architectural design flop?
    >
    it is a good practise to use ccBPM in this case and it is offering correlation mechanism to maintain the reaction between messages so that you can easily differentiate and suppress the unwanted messages.
    Regards,
    Raj

Maybe you are looking for

  • Stop gif (and png I suppose) animations

    How do I stop image animations in Safari? I tried plugins like SafariStand and Pith Helmet, nothing seems to work. I'm using Safari 3.2.1 on Mac OS X 10.5.6.

  • Failing with error code 8007002

    Attached please find the SMSTS log, I highlighted the error, the OSD worked from another location but failing in my physical location. G[401 - Unsuccessful with anonymous access. Retrying with context credentials.]LOG]!><time="14:16:49.670+300" date=

  • Problem with music videos

    When I first got my 30 gig, 5G iPod a few days ago, my music videos I downloaded worked fine. However, yesterday when I went to play one, it just played like a regular song, and I haven't been able to play the video. Anyone know what's up?

  • Error received in call_form

    hi iam calling a form using a push button ,when i click on the button i get a error such as no such form exits, but there is a form in that name, even i tried out creating the same form with different name and calling it but i get the same error , do

  • Configure SQL Developer for use with SSL

    Having trouble getting this working, Can someone point me towards the necessary steps or things to check?