How to create more than 1000 entitie in FDQM

Hi Gurus
1.How to load locations to FDQM without manual Entry?
Can we load locations by using flat files?
Requirement: I have to create more than 1000 entities in FDM Application for mapping Target in HFM Application.
How to achieve this?
regards
Dev

Two things :
#1 - The tables you need to add data to are : tPOVPartition, tStructPartitionHierarchy, tStructPartitionLinks. The first table is the basic location information. The last two tables define the relationship hierarchy of where the locations belong. I would expect that if the Strcut information is missing, FDM will not be able to place it anywhere on the locations screen.
Additionally, for the tPOVPartition, there is required information and you need to make sure you are including all of that info when you create your record.
#2 - If you are handy at coding, I'm positive there is an API call to create a location. It would make more sense perhaps to write a script that uses the APIs to create the locations so that you can be sure that it is being done right.

Similar Messages

  • How to create more than 21 lists in interactive reports

    hello everyone,
    I am new to ABAP as well as this site. Kindly help, I want to know how to create more than 21 lists in interactive reports.
    Also, how can i create them without using WHEN 1, wHEN 2 and so on...
    Kindly help.
    thank you

    Hello,
    Using Intracive Reports its not possible to cretate more than 21 lists.
    But its possible to create more than 21 using ALV concept.
    for sample ALV u can serch in SDN.
    Regards,
    Anil.

  • How to pass more than 1000 entries in 'IN' clause, Oracle 11g

    Hi All,
    I know this is a very common question in Oracle discussion forum. But, Im in different zone.
    I use C#, .NET and Oracle 11g. I have a situation where I will create a query statement using 'IN' clause in C# code based on my requirement and execute that statement from code itself with oracle connection object. I do not have any procedures. I must phrase my query statement and pass it on to OracleConnection object to execute it.
    My code looks like this....
    List<decimal> x_Ids = new List<decimal>();
    I will load my IDs into x_Ids here;
    string whereInClause = ........I will prepare a 'IN' clause (All IDs separated by ',')
    My query would looks like this....
    string query = select * from MYTABLE where X_ID in [ whereInClause with more than 1000 entries]
    oraConn.ExecuteQuery(query);
    I have a workaround with OR operator with 'IN' clause like below.
    X_ID in [ Ids till 1000 entries] OR X_ID in [Next 1000 entries] OR X_ID in [Next 1000 entries] ....so on.....
    It is working, but, I heard that this may slowdown the performance of the application. Is this really a performance hit to my application?
    Can you please suggest any other workaround to overcome this situation?

    >
    I have a workaround with OR operator with 'IN' clause like below.
    X_ID in [ Ids till 1000 entries] OR X_ID in [Next 1000 entries] OR X_ID in [Next 1000 entries] ....so on.....
    It is working, but, I heard that this may slowdown the performance of the application. Is this really a performance hit to my application?There should be no performance difference between a statement like
    select * from myTab
    where ID in (1,2,3,4,5)
    OR ID in (6,7,8,10,12) and
    select * from myTab
    where ID in (1,2,3,4,5,6,7,8,10,12) The execution plan should be identical.
    However those values might better be send as a single object (collection or table of numbers type).
    I think the ODP or OO4O connectivity allows to create and such oracle object types.
    Another way could be to think about how all the values are created? Did any user enter them manually? Certainly not. Then maybe you can apply the same logic to the SQL statement that created those values in your .Net application.
    something like
    select * from myTab
    where ID in (select t2.FK_ID from otherTab t2 where t2.Col1 = 100) This approach would probably beat all others performancewise. Since you avoid the overhead of constructing the in-lists.

  • Need Help, how to create more than one rectangle from one button in one stage of canvas

    Dear Guys,
    I has problem to create more than one rectangle canvas from one button. here my role to create :
    1. I create input size with textfield
    2. I click button called "submit query"
    3. My web will create a rectangle with specific size.
    My problem come when I click again the button, my old rectangle has been remove than my new rectangle has created.
    My question is : how I can create more than one without delete/remove the old I was created?
    Here my Code :
    <head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><link rel="stylesheet" type="text/css" media="all" href="css/style.css"><script src="kinetic-v4.7.2.min.js"></script></head> <body><label>Length</label><input name="panjang" id="panjang" type="text" size="5" maxlength="5"><br> <label>Width</label><input name="lebar" id="lebar" type="text" size="5" maxlength="5"><br>  <label>Height</label><input name="tinggi" id="tinggi" type="text" size="5" maxlength="5"><br> <label>Packing Name</label><input name="nam_pac" id="nam_pac" type="text" size="5" maxlength="5"><br> <input name="submit" type="submit"> <script defer>              var stage = new Kinetic.Stage({                container: 'container',                width: 943.5,                height: 254.10              });              var layer = new Kinetic.Layer();              var rectX = stage.getWidth() / 2 - 50;              var rectY = stage.getHeight() / 2 - 50;                            var group = new Kinetic.Group({                draggable: true              });                                         var box = new Kinetic.Rect({                x: rectX,                y: rectY,                width: <?php echo ($_POST['panjang']/10)/1.3; ?>,                height: <?php echo $_POST['lebar']/10; ?>,                //fill: '#00D2FF',                stroke: 'blue',                strokeWidth: 2                //draggable: true              });               var simpleText = new Kinetic.Text({                x: Math.round(box.getWidth() / 2),                y: Math.round(box.getHeight() / 2),                text: '<?php echo $_POST['tinggi'].'/'.$_POST['nam_pac']; ?>',                fontSize: 30,                fontFamily: 'Calibri',                fill: 'blue',              });                                          // add cursor styling              box.on('mouseover', function() {                document.body.style.cursor = 'pointer';              });              box.on('mouseout', function() {                document.body.style.cursor = 'default';              });                            group.add(box);              group.add(simpleText);              layer.add(group);              stage.add(layer);            </script></body> 
    this is my printscreen may help you to help me :
    thanks before to help me
    Regards,
    Prabowo.

    It's work Ken, but if I modify your code into my code.
    error again. they say like before (...is undefined)
    May You want to check my code
    <?php
    include('pinambung.php');
    ?>
    <!DOCTYPE HTML>
    <html>
    <head>
    <meta charset="utf-8">
    <title>GI Loading Plan Maker</title>
    <meta name="viewport" content="width=device-width" />
    <link rel="stylesheet" type="text/css" media="all" href="css/style_2.css">
    <script src="js/kinetic-v4.7.2.min.js"></script>
    <script src="js/CalendarPopup.js"></script>
    <script src="js/jquery-1.10.2.js"></script>
    </head>
    <body>
      <header class="w" id="header"> <!--Header Area -->
          <img src="images/headers.jpg" width="100%" height="100%" />
      </header><!--End of Header Area -->
      <nav class="w" id="nav"><!--nav Area -->
          <?php include('top.php'); ?>
      </nav><!--End of nav Area -->
      <section class="w" id="main"><!--section Area -->
          <section id="content">
          <article>
            <h2>Customer Info</h2>
            <form id="myForm" action="insert.php" method="post">
            <label>Customer Name :</label><input name="cs_name" id="cs_name" type="text" size="25" maxlength="50">
            <br>
            <label>Date of Shipment :</label><input name="shipment_date" id="shipment_date" type="text" size="10" maxlength="12" > use format : YYYY-MM-DD
            <br />
            <label>Container Name :</label><input name="con_num" id="con_num" type="text" size="10" maxlength="12">
            <label>Revision :</label><input name="revision" id="revision" type="text" size="5" maxlength="5"><br />
            <label>Prepared by :</label><input name="prepared_by" id="prepared_by" type="text" size="25" maxlength="50">
            <button id="saveinfo">Save As DB</button>
            <button id="saveall">Save As Image</button>
            <button id="print" onclick="window.print();return false">Print</button>
            </form>
            <span id="result"></span>
            <script type="text/javascript" src="js/insert.js"></script>
          </article>
              <br /><br />
          <article>
              <h2>Packing Info</h2>
            <label>Container Type :</label>
            40' HC<input name="con_type" type="radio" id="con_type" value="40hc">
            40'<input name="con_type" type="radio" id="con_type" value="40">
            20<input name="con_type" type="radio" id="con_type" value="20"><br />
            <input name="loadstan" type="button" value="Create Container" id="isSelect">
            <button id="removecon">Remove Container</button>
            <br />
            <label>Length</label><input name="panjang" id="panjang" type="text" size="5" maxlength="5">
            <label>Width</label><input name="lebar" id="lebar" type="text" size="5" maxlength="5">
            <label>Height</label><input name="tinggi" id="tinggi" type="text" size="5" maxlength="5">
            <label>Packing Name</label><input name="nam_pac" id="nam_pac" type="text" size="20" maxlength="55">
            <input name="loadstan" id="loadstan" type="button" value="Load Standard Packing" onclick="window.open('spk.php', 'winpopup', 'toolbar=no,statusbar=no,menubar=no,resizable=yes,scrollbars=yes,width=300,height=400');">
            <input name="submit" type="submit" value="Create Box">
            <button id="remove">Remove Box</button><br />
          </article>
        </section>
        <aside id="sidebar">
          <label for="layer-to-delate">Select a layer to delete or rotate</label><br />
          <select id="layer-to-delete" size="14"></select><br />
          <input id="delete-layer-button" type="button" value="Delete layer">
          <input id="rotate-layer-button" type="button" value="Rotate box">
        </aside>
        <section id="content2">
          <div id="container">
          </div>
          <script defer>
          function radians (degrees) {return degrees * (Math.PI/180)}
          function degrees (radians) {return radians * (180/Math.PI)}
          function angle (cx, cy, px, py) {var x = cx - px; var y = cy - py; return Math.atan2 (-y, -x)}
          function distance (p1x, p1y, p2x, p2y) {return Math.sqrt (Math.pow ((p2x - p1x), 2) + Math.pow ((p2y - p1y), 2))}
            var stage = new Kinetic.Stage({
                container: 'container',
                width: 943.5,
                height: 254.10
            var layers = new Array();
           function addCont(){
               layer2 = new Kinetic.Layer();
                switch ($('input:radio[name=con_type]:checked').val()){
                  case '40hc':
                     var box_con = new Kinetic.Rect({
                          x: 10,
                          y: 10,
                          width: 1190/1.3,
                          height: 2300/10,
                          stroke: 'black',
                          strokeWidth: 2
                      var TextCon = new Kinetic.Text({
                          x: 10,
                          y: 240,
                          text: 'Container Size 40 HC (11900mm X 2300mm X 2550mm)',
                          fontSize: 12,
                          fontFamily: 'Calibri',
                          fill: 'green',
                      layer2.add(box_con);
                      layer2.add(TextCon);
                      stage.add(layer2);
                      break;
                     case '40':
                     var box_con = new Kinetic.Rect({
                          x: 10,
                          y: 10,
                          width: 1190/1.3,
                          height: 2300/10,
                          stroke: 'black',
                          strokeWidth: 2
                      var TextCon = new Kinetic.Text({
                          x: 10,
                          y: 240,
                          text: 'Container Size 40 (11900mm X 2300mm X 2250mm)',
                          fontSize: 12,
                          fontFamily: 'Calibri',
                          fill: 'green',
                      layer2.add(box_con);
                      layer2.add(TextCon);
                      stage.add(layer2);
                      break;
                     case '20':
                     var box_con = new Kinetic.Rect({
                          x: 10,
                          y: 10,
                          width: 580/1.3,
                          height: 2300/10,
                          stroke: 'black',
                          strokeWidth: 2
                      var TextCon = new Kinetic.Text({
                          x: 10,
                          y: 240,
                          text: 'Container Size 20 (5800mm X 2300mm X 2250 mm)',
                          fontSize: 12,
                          fontFamily: 'Calibri',
                          fill: 'green',
                      layer2.add(box_con);
                      layer2.add(TextCon);
                      stage.add(layer2);
                      break;
            function addRect() {
                layer = new Kinetic.Layer();
                var box = new Kinetic.Rect({
                    x: 10,
                    y: 10,
                    width: +(($("#panjang").val()/10)/1.3),
                    height: +($("#lebar").val()/10),
                    stroke: 'blue',
                    strokeWidth: 2
                var group = new Kinetic.Group({
                            draggable: true,
                            snap : true
                var boxLabel = $("#nam_pac").val() + "/H : " + $("#tinggi").val();            
                if (($("#panjang").val() && $("#lebar").val()) != 0) {         
                var simpleText = new Kinetic.Text({
                    x: 10,
                    y: 10,
                    text: boxLabel,
                    fontSize: 12,
                    fontFamily: 'Calibri',
                    fill: 'red',
                } else {
                    var simpleText = new Kinetic.Text({
                    x: 10,
                    y: 10,
                    text: '',
                    fontSize: 12,
                    fontFamily: 'Calibri',
                    fill: 'red',
                group.add(box);
                group.add(simpleText);
                layer.add(group);
                stage.add(layer);
                layers.push(layer);
                $("#layer-to-delete").append("<option>Layer " + boxLabel + "</option>");
            function deleteRect() {
                if($("#layer-to-delete > option").length < 1) return;
                var i = $("#layer-to-delete").prop("selectedIndex");
                layers.splice(i,1)[0].destroy();
                $("#layer-to-delete > option").eq(i).remove();
            function rotateRect() {
                if($("#layer-to-delete > option").length < 1) return;
                var i = $("#layer-to-delete").prop("selectedIndex");
                layers[i].rotateDeg(30);
                layers[i].draw();
            $("#delete-layer-button").click(function(e) {
                  deleteRect();
            $("#rotate-layer-button").click(function(e) {
                rotateRect();
            $("input[type=submit]").click(function(e) {
                addRect();
            $("#isSelect").click(function () {
                  addCont();
            $("#removecon").click(function () {
                  layer2.destroy();
            $(window).keypress(function(e) {
                if(!$(document.activeElement).is("label")) {
                    if((e.keyCode || e.which) == 46) {
                        layer.destroy();
                if((e.keyCode || e.which) == 35) {
                        layer2.destroy();
            document.getElementById('saveall').addEventListener('click', function() {
              stage.toDataURL({
                callback: function(dataUrl) {
                      window.open(dataUrl);
            }, false);
          </script>
        </section>
      </section><!--End of section Area -->
      <footer class="w" id="footer"><!--footer Area -->
        Copyright <a href="login.php" target="_new">©</a> 2013, <a href="http://omhanggar.com" target="_new">created</a><a href="http://intranet.guentner-asia.com" target="_new"> by PT. Güntner Indonesia </a>
      </footer><!--End of footer Area -->
    </body>
    </html>
    thanks again before,
    Prabowo

  • How to create more than 2000 users/groups in a good way.

    Hi, guys.I want to create more than 2000 users/groups with Java API. Now I use a regular method to implement this function, login; create a domain; open a maxlsession ; and then call a maxl statement to create a user or a group . I find that the performance of this way is very bad. Can I write a funcation or a marco, which can create these users/groups? If it works, How do I need to write these codes?I have looked over all Java API document, it seems that ESSBASE API don't provide some related api which enables developer to generate a function or a marco. If you know the answer to this question, please tell me. thanks in advance.

    Dear Frank,
    Thank you so much for your answer. Beside the save point functionality to save the state and values on the screen, do you know other ways to do the same function? Once again, thank you so much.
    Linh Nguyen.

  • How to create more than mailbox in E61i?

    How can I create more than mailbox in E61i? I ceated one, and it's only the available one now. The manual says go to Menu > Messag. > Mailboxes and press Options > New Mailbox. But I did not find these options.
    Can any one help me??Message Edited by mst_dev on 22-Jul-200711:46 AM

    you need to goto:
    menu,
    messaging,
    options,
    settings,
    e-mail,
    options,
    new mailbox...
    regards - paul

  • How to create more than one SID in .bash_profile

    I Want to create more than one SID in bash_profile without disturbing oracle's default SID i.e orcl and create database with new SID?

    you can create SID.env file or try to use . oraenv
    eg:-
    $ cat uat1.env
    export ORACLE_BASE=/u01/db/db10g
    export ORACLE_HOME=$ORACLE_BASE/10.2.0
    export PATH=$ORACLE_HOME/bin:$PATH
    export ORACLE_SID=UAT1
    export TNS_ADMIN=$ORACLE_HOME/network/admin
    $ . uat1.env
    $ echo $ORACLE_HOME
    /u01/db/db10g/10.2.0
    $ echo $ORACLE_SID
    UAT1else
    $ . oraenv
    ORACLE_SID = [UAT1] ? UAT1

  • How to get more than 1000 rec from Oracle?

    Hi
    i got this issue from 1 of my fnd.
    can any one tell me how to over come this issue?
    I need help in solving the issue
    This is the oracle error coming when we try to export
    the records to the excel sheet.
    Macromedia][Oracle JDBC Driver][Oracle]ORA-01795:
    maximum number of expressions in a list is 1000
    This error is due to the limitation in oracle db list
    query.
    example:
    select * from FEEDBACK_IN Where feedback_in.case_id
    IN ( (param 1) , (param 2) , (param 3) , (param 4) ,
    (param 5) , (param 6) , (param 7) , (param 8) , (param
    9) , (param 10) , (param 11) , (param 12) , (param
    13)……………………….(param
    5000))
    If the list exceeds 1000, we will get the following
    error from the database. And there is a limitation in
    oracle db to 1000.
    We need to rewrite the query to avoid the list error
    if the list exceeds more then 1000 records.

    You must work with the guy who asked the same question
    yesterday.
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=6&threadid=1149324&ente rthread=y

  • How to Create more than one Sales order

    Hi All
    Is it possible that at Va01 initial screen i have a field with name Group and when i select the group in that field sales order for alll the customer in that group may be created automatically
    Regards,
    Ammad

    Hi,
    Not clear about your requirement. Can you explain a bit? How are you going to determine which materials are doing to sell?
    Best regards,
    Anupa

  • How to put more than 1000 values into an Oracle IN clause

    Is there any way to get around the Oracle 10g limitation of 1000 items in a static IN clause? I have a comma delimited list of many of IDs that I want to use in an IN clause, Most of the times values may exceed 5000. And I don't have privileges to create a temporary table, so that I can put all those in that and run at a time.
    Thanks
    Sreenivas

    Although the trick of using OR would likely work, why don't you use a dynamic collection on the right-hand-side of the where in clause?
    This thread has details Re: Binding collection to right-hand-side of WHERE num_col in (:1) clause?
    Binding a VArray is not super easy, but at least with a bind value (the collection), you can have a single prepared statement, and vary just the collection you pass in. --DD                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to create more than one VIP use the same IP address and different port(e.g. 80 and 443)

    Hi,
    I use SCVMM LB Provider deploy network. I want to create 2 VIP use the same virtual IP but use the different port.
    for example:   VIP address 1.1.1.123   use port 80 for HTTP   and port 443 for HTTPS
    However,
    the following problems encountered, when I create the second VIP.
    PS C:\Windows\system32> New-SCLoadBalancerVIP -Name "vip11" -LoadBalancer $LB -IPAddress "1.1.1.123" -LoadBalancerVIPTemplate $VIPTemplate1 -LoadBalancerProtocol $Protocol1 -LoadBalancerHealthMonitor $HM1
    New-SCLoadBalancerVIP : A virtual IP (VIP) address with the specified name (vip11) or
    address (1.1.1.123) already exists on the load balancer (xxx). (Error ID: 13691)
    Specify a different name or IP address and try again.
    To restart the job, run the following command:
    PS> Restart-Job -Job (Get-VMMServer localhost | Get-Job | where { $_.ID -eq
    "{b41a77eb-ae0b-490a-8948-662a529b1d8c}"})
    At line:1 char:1
    + New-SCLoadBalancerVIP -Name "vip11" -LoadBalancer $LB -IPAddress "1.1.1.123" -Lo ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : ReadError: (:) [New-SCLoadBalancerVIP], CarmineException
        + FullyQualifiedErrorId : 13691,Microsoft.SystemCenter.VirtualMachineManager.Cmdlets.Ne
       wSCLoadBalancerVIPCmdlet
    PS C:\Windows\system32>
    any suggestions ?
    Thank you in advance !

    I really don't know DDE very well. It is usually recommended that you switch to using ActiveX. You may not be correctly configuring the netDDE server. There is an example in the reource library that shows how to do this. You may also want to look at the DDE advise examples that came with LabVIEW 5.1 and earlier.

  • How to create more than one save point in session

    Hi,
    I'm using Jdev 12c.
    I'm trying to use the SavePoint in ADF. When I try to use createSavepoint() function of SavePointManager to create savepoint I met a problem is only one row of savepoint is created in DB (table ADF uses to kept the savepoint in DB) and it overrides the old row whether how many times I uses createSavePoint() function. I want to when I call createSavePoint(), a new row of savepoint is created instead of overriding . Below is my code:
            ControllerContext controllerContext = ControllerContext.getInstance();
            String savePointId = null;
            if (controllerContext != null) {
                SavePointManager savePointManager =
                    controllerContext.getSavePointManager();
                if (savePointManager != null) {
                    //creating the save point
                    savePointId = savePointManager.createSavePoint();
                    //putting the save point id into session scope
                    ADFContext.getCurrent().getSessionScope().put("savePointId",
                                                                  savePointId);
    Could anybody help me this problem?
    Thank you very much.

    Dear Frank,
    Thank you so much for your answer. Beside the save point functionality to save the state and values on the screen, do you know other ways to do the same function? Once again, thank you so much.
    Linh Nguyen.

  • SSM 7 - How to create more than 100 standard KPIs on admin interface?

    Good day all,
    Has anybody successfully increased the the number of standard kpis that can be created in the Admin inteface to greater than 100 standard kpis?
    I have followed the instructions on page 39 of  the 'Server configuration guide for SAP Strategy Management for sp 2 or higher' pdf to modify the
    kpi limits but I still get a popup on the Admin interface telling me that only 100 standard kpis can be created when I try to add the 101th kpi.
    btw the procedure in the pdf mentioned above refers to changing the scorecard.pro file but in this file the wording for a kpi i.e.
    '&$KP99PARAM0STD' is not the found but the wording "P" is use instead of "PARAM". In the file jscorecard.pro the wording "PARAM" is used.
    I have adding 100 extra parameters to these files. But I still get the restrictions of only creating 100 kpis as mentioned above.
    Please assist in this matter.
    Thanks in advance,
    T

    Hi Taariq,
    In the same server config guide, please check the section about Modifying the Objective Limits. The parameter you have to change here will influence both the Objective and KPI limits. Unfortunately this is not stated in that document yet...
    So in addition to the steps you have already implemented, try changing this property!
    Best regards,
    Ricardo Vieira

  • How to create more than one connections between my host and server

    Hi,
    I want to create multiple connections(at least, two connections) between my host and the server.
    And use them to transfer data at the same time.
    Could you help me, and could you give me a sample code example?
    ^-^
    Thank you very much

    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    import java.net.*;
    import java.io.*;
    import java.nio.channels.*;
    import javax.swing.*;
       This program shows how to interrupt a socket channel.
    public class InterruptibleSocketTest
       public static void main(String[] args)
          JFrame frame = new InterruptibleSocketFrame();
          frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          frame.setVisible(true);
    class InterruptibleSocketFrame extends JFrame
       public InterruptibleSocketFrame()
          setSize(WIDTH, HEIGHT);
          setTitle("InterruptibleSocketTest");
          JPanel northPanel = new JPanel();
          add(northPanel, BorderLayout.NORTH);
          messages = new JTextArea();
          add(new JScrollPane(messages));
          busyBox = new JCheckBox("Busy");
          northPanel.add(busyBox);
          startButton = new JButton("Start");
          northPanel.add(startButton);
          startButton.addActionListener(new
             ActionListener()
                public void actionPerformed(ActionEvent event)
    //               startButton.setEnabled(false);
                   cancelButton.setEnabled(true);
                   connectThread = new Thread(new
                      Runnable()
                         public void run()
                            connect();
                   connectThread.start();
          cancelButton = new JButton("Cancel");    
          cancelButton.setEnabled(false);
          northPanel.add(cancelButton);
          cancelButton.addActionListener(new
             ActionListener()
                public void actionPerformed(ActionEvent event)
                   connectThread.interrupt();
                   startButton.setEnabled(true);
                   cancelButton.setEnabled(false);
              new Thread(new TestServer(Port)).start();
          Connects to the test server.
       public void connect()
           new Thread(new Client(Port)).start();
    //       Port++;
       class Client implements Runnable{
               Client(int port){
                   this.port = port;
               private Scanner in;
           private int port;
            public void run() {
                    try
                       SocketChannel channel = SocketChannel.open(new InetSocketAddress("localhost", port));
                       try
                          in = new Scanner(channel);
                          while (true)
                               try{
                                  if (in.hasNextLine())
                                     String line = in.nextLine();
                                     System.out.println(line + "  " + channel);
         //                            messages.append(line);
         //                            messages.append("\n");                       
                                  else Thread.sleep(100);
                               }catch(Exception e){
                                    e.printStackTrace();
                       }finally
                            messages.append("Socket closed\n" + channel);
                          channel.close();
                    catch (IOException e)
                       messages.append("\nInterruptibleSocketTest.connect: " + e);
          A multithreaded server that listens to port 8189 and sends random numbers to the client.
       class TestServer implements Runnable
              ServerSocket s;
              private int port;
              TestServer(int port){
                  this.port = port;
                  try {
                   s = new ServerSocket(port);
              } catch (IOException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
          public void run()
             try
                int i = 1;
                while (true)
                   Socket incoming = s.accept();
                   Runnable r = new RandomNumberHandler(incoming);
                   Thread t = new Thread(r);
                   t.start();
             catch (IOException e)
                messages.append("\nTestServer.run: " + e);
          This class handles the client input for one server socket connection.
       class RandomNumberHandler implements Runnable
             Constructs a handler.
             @param i the incoming socket
          public RandomNumberHandler(Socket i)
             incoming = i;
          public void run()
             try          
                  int i = 0;
                OutputStream outStream = incoming.getOutputStream();
                PrintWriter out = new PrintWriter(outStream, true /* autoFlush */);
                while (true)
                   out.println(i);  
                   i++;
                   Thread.sleep(100);
             catch (IOException e)
                messages.append("\nRandomNumberHandler.run: " + e);
             catch (InterruptedException e)
                messages.append("\nRandomNumberHandler.run: " + e);
          private Socket incoming;
       private JButton startButton;
       private JButton cancelButton;
       private JCheckBox busyBox;
       private JTextArea messages;
       private TestServer server;
       private Thread connectThread;
       public static final int WIDTH = 300;
       public static final int HEIGHT = 300;
       public static int Port = 8848;

  • How to create more than one window for a vi that can be acces anytime...just like using the creating new window in internet explorer

    hello guys,
    I want to create a vi such dat when I press a button on the frontpanel of the vi it opens the same vi in another window..and I should be able to work on this new window also able to work on the previous window without closing it...Just like opening a new window when using the internet explorer....
    I try to make my vi a reetrant vi but when I click the new window button on my vi..a new clone windows open up that I can control but the previous windows is not accessible not I close the current window...I want a way that I can acces both vi window and d operation of one will not affect the other like when the indicators are updating in one window the other window will not update...
    Thank you...
    Solved!
    Go to Solution.

    The picture attached shows what i want to achieve as a vi or executable...The new window button opens a clone of the vi, but the previous window can not be operated on until i close the clone window...i want to be able to work on both window at any time without closing one of them....The vi was design in labview 2010
    Attachments:
    ni.jpg ‏66 KB
    window vi.vi ‏8 KB

Maybe you are looking for

  • How to round numbers in RTF templates?

    Hello! I'm using BI Publisher for Word (Oracle BI Publisher Builder for Word 10.1.3.4.1) to build a template to my BI Publisher report and I want to calculate this: avg(X)/(avg(Y)-avg(Z)/0.9) The result should be rounded to 3 places. I tried: <?(sum(

  • Configuration needed for SOA call to create PO in classic scenario

    Dear Experts, We are working in the SAP SRM 7.01 with backend system on ecc 6.0 Enhancement pack 5. The scenario configured is classic scenario. I want to know what are the configurations needed to use SOA calls to create a purchase order in the back

  • Can you overlay type on a photo in pages

    Can you overlay type on a photo in pages? thanks!

  • Correct location of man pages?

    Hi, I'm still pretty new at the command line. I installed growlnotify to play around with it, but the install script puts the man page in the wrong place (/usr/local/man/man1). I found a post that said it should be moved to /usr/local/share/man/man1,

  • My Firefox is slow to open upon connecting & when connected

    the appearance does not appear to be complete. I had the previous Firefox of 3.6 and loved it and had no problems. Also I have a indication just below where my status bar "should be" that says "Firefox is not able to show the Toolbar. Please re-insta