Array constant grey entry

Say I have a array constant with 3 elements
I want to delete the 3rd element and grey it out, so it look like this
Can't seem to find a good way to do this other than remake the entire array. It is fine when the array only has a few elements, but when it is an array of shared variable reference of 50, it takes some time.
Thanks
Solved!
Go to Solution.

Exactly like that.
/Y
LabVIEW 8.2 - 2014
"Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
G# - Free award winning reference based OOP for LV

Similar Messages

  • BD Array Constant cannot be "browsed"?

    I've been annoyed by this in the past and a quick search did not yield any answer, so here is it:
    Is there a good reason why an array constant on the BD cannot be looked at, in the sense that the array index is no clickable?
    For instance, I am parsing a header using an array of strings and while I am debugging the process, I'd like to rapidly check what the index of entry "this" or "that" is so that I can put some conditional probe that will get me there quickly. The problem is, the array is too large to be seen at once on the diagram. Moreover, what I want to do is bring the item I am interested in to the top of the list so that I can check its index:
    The problem is, once I step through the code, the array is "frozen" and I can't play with the index control.
    That should not change anything to the code, so I don't understand why I am prevented from doing that.
    I can browse through cases of a structure or a sequence. Why not an array constant?
    Tested in LV 2011, but has been here forever.

    You are specifically talking about run mode, right (in edit mode you can change the index).
    You can show the scroll bar of the array container. It seems that still works in run mode, but I agree that the index should maybe also keep working.
    LabVIEW Champion . Do more with less code and in less time .

  • String Array Constant Addition

    Is there an elegant way of marking the last element in a string array
    constant? i.e. I take an Array constant, and add a simple string to it,
    so that it becomes a String Array Constant. Now I add elements 1 and 2
    and 3. But now I want to take element 3 out. If I just delete Element 3
    contents from the string control, that is fine, but the # of Array
    elements is still 3. It is just that the 3rd elelment is null. How can I
    make the array length 2? Now I know that starting over is one option
    (just creat a new array constant, and add the two elements) but what if
    my array constant has 100 elements and I want to make it 99. I also
    know that programatically I can remove these elelents, but I am taking
    about in the programming of th
    is constant. I must be over looking
    something... Any ideas???
    Sent via Deja.com http://www.deja.com/
    Before you buy.

    [email protected] wrote:
    > Is there an elegant way of marking the last element in a string array
    > constant? i.e. I take an Array constant, and add a simple string to it,
    > so that it becomes a String Array Constant
    Arrays must be all the same type. If the last element is a constant, all
    elements are
    > Now I add elements 1 and 2
    > and 3. But now I want to take element 3 out. If I just delete Element 3
    > contents from the string control, that is fine, but the # of Array
    > elements is still 3. It is just that the 3rd elelment is null.
    In a string, yes, Empty strings are essentially nulls.
    > How can I
    > make the array length 2? Now I know that starting over is one option
    > (just creat a new array constant, and add the two elements) but what if
    > my array cons
    tant has 100 elements and I want to make it 99. I also
    > know that programatically I can remove these elelents, but I am taking
    > about in the programming of this constant. I must be over looking
    > something... Any ideas???
    This is one of my problems. It is easy to size an array up, but hard to size
    down.
    Of course you can resize at run time but the only way I know to do this
    when editing is to start over.
    Kevin Kent
    Attachments:
    Kevin.Kent.vcf ‏1 KB

  • Options for recovery when 'recognize array' is greyed out?

    I have an X Raid with all the slots are full with 180MB drives and it's been running as two RAID 5 arrays of 1TB. Yesterday one drive showed a red light, so I shut the system down and re-seated the drive. All seemed well and the software began rebuilding the LUN map. When I cam back to it this morning two lights were red. I shut the system down, checked all the connections and brought it back to life, one side is now not recognised as an array - all the drives are green, but listed as 'spare'. I've swapped the drives to see if the controller is at fault, but this has no effect, and 'recognize array' is greyed out as an option.
    As the drives are not being seen as an array there seems to be nothing you can do - are there any further steps that can be taken, or do I just have to accept the data loss?

    Hi
    The same sequence of events that you describe happened at a site I support recently, unfortunately in that case you are looking at recreating the array that is listed as hot spares and recovering from your backup (you do have a backup don’t you?).
    Unless someone knows differently?
    As Donald has already said you don’t shut down the RAID if a drive fails or shows a degraded state. If you don’t have a spare handy act quickly and order one asap. When it arrives swap the drives and watch it rebuilding in RAID Admin. If the drive has failed or is degraded the controller will rebuild the data on that drive from the striped parity data that is stored on the other drives - that is what RAID 5 does. RAID 5 is the default configuration for XServe RAID and as such offers you one point of failure. You can configure the RAID as RAID 5 with a hot spare, this configuration offers you two points of failure. The users guide for RAID Admin has more information regarding the different types of RAID configurations that are supported and that can be used.
    Tony

  • Creating string array constant

    Hey, this is probably a stupid question but I am still trying to figure out everything in LabVIEW. Is there a way to create an array constant that holds strings? I know you can define an numerical array constant but can you also do one for strings, or do I just have to pass multiple text fields into a "build array" function.
    Thanks,
    Paul

    Another tip:
    Many times, you already have a function on the diagram that expects an array of strings (or whatever you specifically need), so the easiest is to right-click the connector and select "create constant". You will get an diagram constant of the default type for that input or output terminal.
    LabVIEW Champion . Do more with less code and in less time .

  • Host & Java monitoring returns grey entries solman 7.1 SP10

    Hello SAP,
    We have configured system monitoring in Solution Manager 7.1 SP10 system.
    Monitoring data for database and ABAP technical instance is getting captured and available in system/database monitoring in technical monitoring work center.
    But host monitoring not working for both ABAP and Java systems and technical instance of Java data not capturing, shows grey entries.
    We have followed and implemented the SAP note:
    1853160 - Grey host metrics in Technical Monitoring
    1855064 - Error occurred when calling the DPC Push web service
    1638655 - Errors with requests coming from ICM
    But still the host monitoring and Java system details are not working in Technical Monitoring.
    We have noticed below error message on Diagnostic Agent log files:
    Jul 18, 2014 2:23:40 AM [Thread[ExRun:dpc:job_3,5,dpc:job:ExecTG]] Error      [DPCServicePushMetricJob.pushSimpleEvents] Error occurred when calling the DPC Push web service. (http://xxxxxxxx:8000/sap/bc/srt/scs/sap/e2e_dpc_push?sap-client=030).
    [EXCEPTION]
    java.rmi.RemoteException: Service call exception; nested exception is:
            com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (404) Not found. The request URL was:"http://xxxxxxxx:8000/sap/bc/srt/scs/sap/e2e_dpc_push?sap-client=xxx". Check, whether the URL is correct, and the Web Service that you are requesting is up and running.
            at com.sap.smd.agent.wsclients.dpc.BindingStub.e2eDpcPushMetrics(BindingStub.java:85)
            at com.sap.smd.agent.wsclients.dpc.BindingStub.e2eDpcPushMetrics(BindingStub.java:96)
            at sun.reflect.GeneratedMethodAccessor39576.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at com.sap.smd.api.util.SynchronizedProxy$SyncHandler.invoke(SynchronizedProxy.java:32)
            at $Proxy37.e2eDpcPushMetrics(Unknown Source)
            at com.sap.smd.dpc.job.DPCServicePushMetricJob.pushSimpleEvents(DPCServicePushMetricJob.java:122)
            at com.sap.smd.dpc.job.DPCServicePushMetricJob.run(DPCServicePushMetricJob.java:66)
            at com.sap.smd.server.exec.TaskRunner.run(TaskRunner.java:46)
            at com.sap.smd.server.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:785)
            at java.lang.Thread.run(Thread.java:722)
    Caused by: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (404) Not found. The request URL was:"http://xxxxxxxx.:8000/sap/bc/srt/scs/sap/e2e_dpc_push?sap-client=xxx". Check, whether the URL is correct, and the Web Service that you are requesting is up and running.
            at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.handleResponseMessage(MimeHttpBinding.java:998)
            at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.call(MimeHttpBinding.java:1452)
            at com.sap.smd.agent.wsclients.dpc.BindingStub.e2eDpcPushMetrics(BindingStub.java:78)
            ... 11 more
    Request you to look into this and advice us to correct the issue
    Thanks,
    Vamshi

    Thank you Divyanshu,
    Please find the Host agent logs and profile details .
    1. Host Agent logs:
    trc file: "dev_saphostexec", trc level: 3, release: "720"
    SAPHOSTAGENT information
    kernel release                720
    kernel make variant           720_REL
    compiled on                   AIX 2 5 00092901D600 for rs6000_64
    compiled for                  64 BIT
    compilation mode              Non-Unicode
    compile time                  Jan 25 2014 06:32:12
    patch number                  178
    latest change number          1470842
    supported environment
    operating system
    AIX 2 5
    AIX 3 5
    AIX 1 6
    AIX 1 7
    [Thr 01] Sat May 17 08:31:13 2014
    [Thr 01] update env : PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/sap/<SID>/DVEBMGSxx/exe/sapjvm_4/bin:/etc:/usr/ucb:/usr/bin/X11:/
    usr/java14/jre/bin:/usr/java14/bin:/usr/local/bin:/etc:/usr/ucb:/home/<SID>adm/bin:/usr/bin/X11:/usr/sap/<SID>/SYS/exe/uc/rs6000_
    64:/usr/sap/<SID>/SYS/exe/run:/home/<SID>adm:.:/db2/db2<SID>/sqllib/bin:/db2/db2<SID>/sqllib/adm:/db2/db2<SID>/sqllib/misc:
    [Thr 01] update env : LIBPATH=/usr/sap/hostctrl/exe
    [Thr 01] _=/usr/sap/hostctrl/exe/hostexecstart
    [Thr 01] MANPATH=/opt/tectia/man:
    [Thr 01] LANG=en_US
    [Thr 01] WSM_WS_CMD="startsrc -s http4websm"
    [Thr 01] LOGIN=<SID>adm
    [Thr 01] PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/sap/<SID>/DVEBMGSxx/exe/sapjvm_4/bin:/etc:/usr/ucb:/usr/bin/X11:/usr/java14/jr
    e/bin:/usr/java14/bin:/usr/local/bin:/etc:/usr/ucb:/home/<SID>adm/bin:/usr/bin/X11:/usr/sap/<SID>/SYS/exe/uc/rs6000_64:/usr/sap/S
    MP/SYS/exe/run:/home/<SID>adm:.:/db2/db2<SID>/sqllib/bin:/db2/db2<SID>/sqllib/adm:/db2/db2<SID>/sqllib/misc:
    [Thr 01] RES_RETRY=2
    [Thr 01] RSEC_SSFS_KEYPATH=/usr/sap/<SID>/SYS/global/security/rsecssfs/key
    [Thr 01] LC__FASTMSG=true
    [Thr 01] CLASSPATH=:/db2/db2<SID>/sqllib/java/db2java.zip:/db2/db2<SID>/sqllib/java/runtime.zip:.
    [Thr 01] LOGNAME=<SID>adm
    [Thr 01] RES_TIMEOUT=2
    [Thr 01] dbs_db6_user=sap<SID>
    [Thr 01] MAIL=/usr/spool/mail/<SID>adm
    [Thr 01] DSMI_CONFIG=/usr/tivoli/tsm/client/api/bin64/dsm.opt
    [Thr 01] LOCPATH=/usr/lib/nls/loc
    [Thr 01] PS1=uahris12:<SID>adm> 
    [Thr 01] DIR_LIBRARY=/usr/sap/<SID>/SYS/exe/run
    [Thr 01] WSM_DOC_DIR="/usr/websm/http/com.ibm.websm.http.server_1.0.0"
    [Thr 01] USER=<SID>adm
    [Thr 01] AUTHSTATE=compat
    [Thr 01] DSM_LOG=/db2/db2<SID>/errors
    [Thr 01] IBM_JAVA_OPTIONS=-Xmx256M -Xj9
    [Thr 01] SHELL=/usr/bin/ksh
    [Thr 01] ODMDIR=/etc/objrepos
    [Thr 01] CASHCOMP=/opt/CA/SharedComponents
    [Thr 01] JAVA_HOME=/usr/sap/<SID>/DVEBMGSxx/exe/sapjvm_4
    [Thr 01] TIMEOUT=900
    [Thr 01] TMOUT=900
    [Thr 01] DSMI_LOG=/db2/db2<SID>/errors
    [Thr 01] dbs_db6_schema=sap<SID>
    [Thr 01] RSEC_SSFS_DATAPATH=/usr/sap/<SID>/SYS/global/security/rsecssfs/data
    [Thr 01] HOME=/home/<SID>adm
    [Thr 01] DB2INSTANCE=db2<SID>
    [Thr 01] TERM=vt100
    [Thr 01] MAILMSG=[YOU HAVE NEW MAIL]
    [Thr 01] DSM_DIR=/usr/tivoli/tsm/client/ba/bin
    [Thr 01] rsdb_ssfs_connect=0
    [Thr 01] DB2DBDFT=<SID>
    [Thr 01] PWD=/home/<SID>adm
    [Thr 01] TZ=EST5EDT
    [Thr 01] dbms_type=db6
    [Thr 01] AIXTHREAD_SCOPE=S
    [Thr 01] WSM_CGI_DIR=
    [Thr 01] SAPSYSTEMNAME=<SID>
    [Thr 01] DSM_CONFIG=/usr/tivoli/tsm/client/ba/bin/dsm.opt
    [Thr 01] DSMI_DIR=/usr/tivoli/tsm/client/api/bin64
    [Thr 01] INSTHOME=/db2/db2<SID>
    [Thr 01] A__z=! LOGNAME="*TMOUT
    [Thr 01] NODNSSAPTRANSHOST=1
    [Thr 01] LIBPATH=/usr/sap/hostctrl/exe
    [Thr 01] **** Create a deamon **********
    trc file: "dev_saphostexec", trc level: 3, release: "720"
    [Thr 01] Sat May 17 08:31:13 2014
    [Thr 01] ##############################################################
    [Thr 01] saphostexec restarted as daemon with tracelevel 1
    [Thr 01] ##############################################################
    [Thr 01] SigISetDefaultAction : default handling for signal SIGCHLD
    [Thr 01] Setup autoupgrade with following path:
    [Thr 01] source='/usr/sap/hostctrl/exe'
    [Thr 01] upgrade='/usr/sap/hostctrl/exe/../new'
    [Thr 01] * Environment of /usr/sap/hostctrl/exe/sapstartsrv process *
    [Thr 01] _=/usr/sap/hostctrl/exe/hostexecstart
    [Thr 01] MANPATH=/opt/tectia/man:
    [Thr 01] LANG=en_US
    [Thr 01] WSM_WS_CMD="startsrc -s http4websm"
    [Thr 01] LOGIN=<SID>adm
    [Thr 01] PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/sap/<SID>/DVEBMGSxx/exe/sapjvm_4/bin:/etc:/usr/ucb:/usr/bin/X11:/usr/java14/jr
    e/bin:/usr/java14/bin:/usr/local/bin:/etc:/usr/ucb:/home/<SID>adm/bin:/usr/bin/X11:/usr/sap/<SID>/SYS/exe/uc/rs6000_64:/usr/sap/S
    MP/SYS/exe/run:/home/<SID>adm:.:/db2/db2<SID>/sqllib/bin:/db2/db2<SID>/sqllib/adm:/db2/db2<SID>/sqllib/misc:
    [Thr 01] RES_RETRY=2
    [Thr 01] RSEC_SSFS_KEYPATH=/usr/sap/<SID>/SYS/global/security/rsecssfs/key
    [Thr 01] LC__FASTMSG=true
    [Thr 01] CLASSPATH=:/db2/db2<SID>/sqllib/java/db2java.zip:/db2/db2<SID>/sqllib/java/runtime.zip:.
    [Thr 01] LOGNAME=sapadm
    [Thr 01] RES_TIMEOUT=2
    [Thr 01] dbs_db6_user=sap<SID>
    [Thr 01] MAIL=/usr/spool/mail/<SID>adm
    [Thr 01] DSMI_CONFIG=/usr/tivoli/tsm/client/api/bin64/dsm.opt
    [Thr 01] LOCPATH=/usr/lib/nls/loc
    [Thr 01] PS1=uahris12:<SID>adm> 
    [Thr 01] DIR_LIBRARY=/usr/sap/<SID>/SYS/exe/run
    [Thr 01] WSM_DOC_DIR="/usr/websm/http/com.ibm.websm.http.server_1.0.0"
    [Thr 01] USER=sapadm
    [Thr 01] AUTHSTATE=compat
    [Thr 01] DSM_LOG=/db2/db2<SID>/errors
    [Thr 01] IBM_JAVA_OPTIONS=-Xmx256M -Xj9
    [Thr 01] SHELL=/usr/bin/ksh
    [Thr 01] ODMDIR=/etc/objrepos
    [Thr 01] CASHCOMP=/opt/CA/SharedComponents
    [Thr 01] JAVA_HOME=/usr/sap/<SID>/DVEBMGSxx/exe/sapjvm_4
    [Thr 01] TIMEOUT=900
    [Thr 01] TMOUT=900
    [Thr 01] DSMI_LOG=/db2/db2<SID>/errors
    [Thr 01] dbs_db6_schema=sap<SID>
    [Thr 01] RSEC_SSFS_DATAPATH=/usr/sap/<SID>/SYS/global/security/rsecssfs/data
    [Thr 01] HOME=/home/sapadm
    [Thr 01] DB2INSTANCE=db2<SID>
    [Thr 01] TERM=vt100
    [Thr 01] MAILMSG=[YOU HAVE NEW MAIL]
    [Thr 01] DSM_DIR=/usr/tivoli/tsm/client/ba/bin
    [Thr 01] rsdb_ssfs_connect=0
    [Thr 01] DB2DBDFT=<SID>
    [Thr 01] PWD=/home/<SID>adm
    [Thr 01] TZ=EST5EDT
    [Thr 01] dbms_type=db6
    [Thr 01] AIXTHREAD_SCOPE=S
    [Thr 01] WSM_CGI_DIR=
    [Thr 01] SAPSYSTEMNAME=<SID>
    [Thr 01] DSM_CONFIG=/usr/tivoli/tsm/client/ba/bin/dsm.opt
    [Thr 01] DSMI_DIR=/usr/tivoli/tsm/client/api/bin64
    [Thr 01] INSTHOME=/db2/db2<SID>
    [Thr 01] A__z=! LOGNAME="*TMOUT
    [Thr 01] NODNSSAPTRANSHOST=1
    [Thr 01] LIBPATH=/usr/sap/hostctrl/exe
    [Thr 01] USERNAME=sapadm
    2. Host Agent profile:
    SAPSYSTEMNAME = SAP
    SAPSYSTEM = 99
    service/porttypes = SAPHostControl NwaManagement SAPCCMS SAPOscol
    #service/porttypes = SAPHostControl SAPOscol SAPCCMS
    service/admin_users = diaadm
    DIR_LIBRARY = /usr/sap/hostctrl/exe
    DIR_EXECUTABLE = /usr/sap/hostctrl/exe
    DIR_PROFILE = /usr/sap/hostctrl/exe
    DIR_GLOBAL = /usr/sap/hostctrl/exe
    DIR_INSTANCE = /usr/sap/hostctrl/exe
    DIR_HOME = /usr/sap/hostctrl/work
    service/logfile_000 = /tmp/s
    service/logfile_001 = /usr/sap/<SID>/DVEBMGSxx/j2ee/cluster/dispatcher/log/applications*.log
    service/logfile_002 = /usr/sap/<SID>/DVEBMGSxx/j2ee/cluster/dispatcher/log/applications.*.log
    service/logfile_003 = /usr/sap/<SID>/DVEBMGSxx/j2ee/cluster/dispatcher/log/defaultTrace*.trc
    service/logfile_004 = /usr/sap/<SID>/DVEBMGSxx/j2ee/cluster/dispatcher/log/defaultTrace.*.trc
    service/logfile_005 = /usr/sap/<SID>/DVEBMGSxx/j2ee/cluster/server0/log/applications*.log
    service/logfile_006 = /usr/sap/<SID>/DVEBMGSxx/j2ee/cluster/server0/log/applications.*.log
    service/logfile_007 = /usr/sap/<SID>/DVEBMGSxx/j2ee/cluster/server0/log/applications/com.sap.xi/xi*.log
    service/logfile_008 = /usr/sap/<SID>/DVEBMGSxx/j2ee/cluster/server0/log/applications/com.sap.xi/xi.*.log
    service/logfile_009 = /usr/sap/<SID>/DVEBMGSxx/j2ee/cluster/server0/log/defaultTrace*.trc
    service/logfile_010 = /usr/sap/<SID>/DVEBMGSxx/j2ee/cluster/server0/log/defaultTrace.*.trc
    Thanks  Vamshi.

  • Palm OS: Invalid constant pool entry - What's that?

    Hello,
    I'm a newbie in developing application 4 my palm. (midp4palm 1.0 installed)
    I started with a "hello world"... everything went fine on my tungsten t3 emulator. Label + TextField.
    Then I wrote a little calculator... and now I get the following message: "Invalid constant pool entry".
    I used switch(), some static final doubles and that's it.
    Do you know what the problem could be... I didn't find a solution.
    Thank you
    mastix mc

    A quick google search yielded this - hope it helps.
    http://archives.java.sun.com/cgi-bin/wa?A2=ind9911&L=kvm-interest&F=&S=&P=8868
    Summary:
    * "This is usually caused by a null reference not caught by the KVM, or sometimes an instanceof sometime before."
    * "I was having exactly this problem on a Palm V.
    I re-downloaded the KVM from Sun's site. I am using a Mac, and I noticed
    this time, after running ZipIt to unzip the files, that the types of the
    files have now been correctly set. I re-installed the files, and now
    everything is working fine.
    My guess is that something is corrupted in your KVMClassDB.pdb file. I've
    done a couple of upgrades to my Mac software and the OS upgrade, so I'd
    recommend doing every possible software upgrade, then download the KVM again
    and re-install it."

  • Alert: Invalid constant pool entry

    Hi, When I install midlet application in mobile phone I got this error "Alert: Invalid constant pool entry" and says "Application Error". When I create a object of a class at that time this error occurred. In that class I have used a constant which value is 1.5. After googling so many people are saying this because of floating point value. That May be the problem. Because when I change that 1.5 value to 1 then application get installed and run. But earlier also I used to create the object of that class. At that time mobile phone did not throw any error. But why this time throw error. I did not understand what could be the problem. Please any one help me.

    gnat wrote:
    hmm let's see if I understand you correctly.
    Before, you were using jar "as-is", ie without compiling it, right? - so you basically don't know if the class in it was using floating point or not?
    Now, you compile a piece of code that was supposedly used in that jar (but you don't know for sure if it was because you didn't build that jar) and you obtain the problem - correct?hmm let's see if I understand you correctly.
    Before, you were using jar "as-is", ie without compiling it, right? - so you basically don't know if the class in it was using floating point or not?
    Now, you compile a piece of code that was supposedly used in that jar (but you don't know for sure if it was because you didn't build that jar) and you obtain the problem - correct?
    No. No. Both Jars are compiled and built by myself. I find out the problem. problem is costructing the object of that class (which have float value) from startApp(). I got my old Jar which was working earlier. There I costruct the object of that class. So now old jar also giving the "Invalid constant Pool entry" Error. Any that float value I am going to change. Still unclear is What the difference construct object inside startApp() block and ouside startApp() block. Anyway Thank you Guys.

  • Error : Array constants can only be used in initializers

    Hello All,
    I am using tableview model and declared two-dimensional array.
    Getting error Array constants can only be used in initializers in the line retVal<i>[j] =  {  {  createBy,desc,dispName }  };
    String[][] retVal;
    retVal = new String[20][20]
    //Fetching IResorce propeties here
    int resourceCounter = 0;
    for (int i = 0; i < list.size(); i++) {
       for (int j = 0; j < i; j++) {
          IResource ir = list.get(i);
          createBy = ir.getCreatedBy();
          desc = ir.getDescription();
            dispName = ir.getDisplayName();
         retVal<i>[j] =  {  {  createBy,desc,dispName }  };
         resourceCounter++;
    return retVal;
    Please help me out.
    Thanks
    Risha                              }

    I created ArrayList 
    static public String[] colnames =
                   "News Title",
                   "Short Description",
                   "Published",
                   "Valid To",
                   "Read Count",
                   "Users Details",
                   "Reply" };
         public ArrayList createData() {
               ArrayList rowArrList = new ArrayList();
              ArrayList tableArrList = new ArrayList();
              String createBy = null;
              String desc = null;
              String dispName = null;
              String lastMod = null;
              String name = null;
              String resType = null;
              try {
                   com.sapportals.portal.security.usermanagement.IUser user = null;
                   user = WPUMFactory.getUserFactory().getEP5User(request.getUser());
                   IResourceContext resourceContext = new ResourceContext(user);
                   String path = "/documents/Australia/News";
                   RID rid = RID.getRID(path);
                   com.sapportals.wcm.repository.IResource res =
                        ResourceFactory.getInstance().getResource(rid, resourceContext);
                   IProperty prop = null;
                   String propValue = null;
                   PropertyName propName = null;
                   if (res != null) {
                        if (res.isCollection()) {
                             ICollection collection = (ICollection) res;
                             IResourceList list = collection.getChildren();
                             int resourceCounter = 0;
                             for (int i = 0; i < list.size(); i++) {                              
    //                              for (int j = 0; j < i; j++) {
                                       IResource ir = list.get(i);
                                       createBy = ir.getCreatedBy();
                                       desc = ir.getDescription();
                                       dispName = ir.getDisplayName();
                                       lastMod = ir.getLastModifiedBy();
                                       name = ir.getName();
                                       resType = ir.getResourceType();
                                       rowArrList.add(createBy);
                                       rowArrList.add(desc);
                                       rowArrList.add(dispName);
                                       rowArrList.add(lastMod);
                                       rowArrList.add(name);
                                       rowArrList.add(resType);
                                       tableArrList.add(i,rowArrList);
                                  //}//Inside for loop
                             }//First for loop
                        }//Inside If
              } catch (ResourceException e) {
                   // TODO Auto-generated catch block
                   response.write("Error " + e.getMessage());
              } catch (UserManagementException ex) {
                   ex.printStackTrace();
                   response.write("Error " + ex.getMessage());
              return tableArrList;
          * Constructor.
         public TableViewBean() {
              ArrayList tabArr = createData();
              String[][] data = (String[][])tabArr.toArray();          
              model = new DefaultTableViewModel(data, colnames);
    Edited by: Risha on May 26, 2011 8:52 AM

  • An Array of Text Entry Boxes

    I am trying to make a servlet that has an array of text entry boxes for entering numbers. By changing numboxes, I would be able to vary the number of boxes. The problem is that it is only finding the first occurrence of the text entry boxes.
    If the idea of an array of text entry boxes is totally stupid, feel free to say that as well, as well as any suggestions as to a better basic approach. Thanks!
    To run my servlet:
    http://www.mycgiserver.com/servlet/waynefrank.ManyAverageServlet1
    My servlet:
    package waynefrank;               
    //** Computes an average of many numbers input by the user
    //** ManyAverageServlet1.java
    import javax.servlet.http.HttpServlet;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import java.*;
    import java.util.*;
    import javax.swing.*;
    //imported for buttons, labels, and images
    import java.awt.*;
    //imported for layout manager
    public class ManyAverageServlet1 extends HttpServlet
    // numboxes is the number of number-entry boxes we have.
    double numboxes = 04;
    String ctrCharValue = null;
    public void service(HttpServletRequest req, HttpServletResponse res)          
    throws IOException {
    res.setContentType("text/html");
         PrintWriter out = res.getWriter();
              Enumeration flds = req.getParameterNames();
              if (!flds.hasMoreElements()) {
         //*** No form submitted -- create one:
    out.print("<form method=\"POST\"" + " action=\"http://www.mycgiserver.com/servlet/waynefrank.ManyAverageServlet1\">");
    out.print("<font face=arial>");
    out.print("** Please enter numbers that you want to average. **");
    out.print("<br><br>");
    // xxxxxxx put processing to form text boxes
    for( int ctr = 1; ctr <= numboxes; ctr++) {
    out.print("<td><input name=numbox[ctr] size=17></td>");
    out.print(" "+ctr);
    out.print("<br>");
    // put out buttons
    out.print("<input type=submit name=sobmit value=Compute><br><br>");
    out.print("<input type=reset name=sobmit value=Clear><br><br>");
    out.print("Press the Compute button to get the average");
    out.print("</font>");
    // end of putting out form      
    out.println("</form></html>");
    //          Process events from page
              } else {
    double average;
    String[] NumEntered = {null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,};
    double[] numin = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,};
    String ACTION;
    ACTION = req.getParameter( "sobmit" );
    if( ACTION.equals( "Compute" ) )
    // xxxxxxx text box processing
    try {
    average = 0;
    out.print("<font face=arial>");
    for( int ctr = 1; ctr <= numboxes; ctr++) {
    // ??????? it is getting just the first one
    NumEntered[ctr] = req.getParameter("numbox[ctr]");
    numin[ctr] = Double.parseDouble((String) NumEntered[ctr]);
    out.print("Number "+ctr+"= "+NumEntered[ctr]);
    out.print("<br>");
    average = average + numin[ctr];
    average = average / numboxes;
    out.print("<br>");
    out.print("Average= "+average);
    out.print("</font>");
    } catch(NumberFormatException e) {
    out.print("<img src=http://www.mycgiserver.com/~waynefrank/katie.jpg>");
    out.print("<font face=arial>");
    out.print("<br><br>Even Katie knows you have to enter numbers !! ");
    out.print("Use the browser back button and try again. :)");
    out.print("</font>");
    }      out.close();
         } } ///:~ end of servlet

    I did what you suggested (I think) and it still comes up using just the first occurrence.
    out.print("<td><input name= '+ numbox[ctr] +' size=17></td>");
    NumEntered[ctr] = req.getParameter("+ numbox[ctr] +");
    The whole servlet:
    package waynefrank;               
    //**  Computes an average of many numbers input by the user
    //**  ManyAverageServlet1.java
    import javax.servlet.http.HttpServlet;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import java.*;
    import java.util.*;    
    import javax.swing.*;
    //imported for buttons, labels, and images
    import java.awt.*;
    //imported for layout manager
    public class ManyAverageServlet1 extends HttpServlet
    //  numboxes is the number of number-entry boxes we have.
    double numboxes = 04;
    String ctrCharValue = null;
    public void service(HttpServletRequest req, HttpServletResponse res)          
    throws IOException {
    res.setContentType("text/html");
         PrintWriter out = res.getWriter();
              Enumeration flds = req.getParameterNames();
         if (!flds.hasMoreElements()) {
         //*** No form submitted -- create one:
    out.print("<form method=\"POST\"" + " action=\"http://www.mycgiserver.com/servlet/waynefrank.ManyAverageServlet1\">");
    out.print("<font face=arial>");
    out.print("** Please enter numbers that you want to average.  **");
    out.print("<br><br>");
    // xxxxxxx  put processing to form text boxes
    for( int ctr = 1; ctr <= numboxes; ctr++)  {
    out.print("<td><input name= '+ numbox[ctr] +'  size=17></td>");
    out.print("<br>");
    //   put out buttons
    out.print("<input type=submit name=sobmit value=Compute><br><br>");
    out.print("<input type=reset name=sobmit value=Clear><br><br>");
    out.print("Press the Compute button to get the average");
    out.print("</font>");
    // end of putting out form                           
    out.println("</form></html>");
    //            Process events from page
              } else {
      double average;
    String[] NumEntered = {null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,};
    double[] numin = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,};
             String ACTION;
             ACTION = req.getParameter( "sobmit" );
    if( ACTION.equals( "Compute" ) )
    // xxxxxxx  text box processing
    try {
    average = 0;
    out.print("<font face=arial>");
    for( int ctr = 1; ctr <= numboxes; ctr++)  {
      NumEntered[ctr] = req.getParameter("+ numbox[ctr] +");
       numin[ctr] = Double.parseDouble((String) NumEntered[ctr]);
    out.print("Number "+ctr+"= "+NumEntered[ctr]);
    out.print("<br>");
    average = average + numin[ctr];
    average = average / numboxes;
    out.print("<br>");
    out.print("Average= "+average);
    out.print("</font>");
    }  catch(NumberFormatException e) {
         out.print("<img src=http://www.mycgiserver.com/~waynefrank/katie.jpg>");
    out.print("<font face=arial>");
    out.print("<br><br>Even Katie knows you have to enter numbers !!  ");
    out.print("Use the browser back button and try again.  :)");
    out.print("</font>");
    }       out.close();
         } }   ///:~  end of servlet

  • LabVIEW 2014 array constant change

    Why did the "graying out" of array constants change between LabVIEW 2014 and LabVIEW 2013? In 2014 the effect is much more subtle and it's far harder to tell the # of elements in an array constant. Please change this back ASAP!

    My only thought was that they tried to make the disabled elements more readable.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines
    Attachments:
    Disabled Elements.PNG ‏24 KB

  • Want to import spreadsheet data into array constant in VI

    I want to create a VI with a static array of double precision values. The values represent an ECG waveform. I have the values in an Excel spreadsheet. How do I transfer these values into the static array (array of constants) in LabVIEW? I can not find a simple cut and paste method to accomplish this. Hopefully, there is a simple way that I'm just missing.

    You could load your data and feed this to an indicator of array of double precision type.
    select and copy your indicator and paste this on to the diagram of your VI. This will create a constant.
    If you what this to all happen at runtime, thenyou will have to use a Global or local variable and use this as your constant.
    Ray.
    Regards
    Ray Farmer

  • [BUG]: Dll modifies input array constant

    Hi,
    Not really an important one, but some of you (Ben might like it... Tested
    in LV6, 6.1, 7.0 and 7.1.
    When a dll function modifies more (1d or 2d) input arrays, one constant is
    used to initialize them and less then all indicators are wired, LV
    overwrites the constant values...
    To reproduce this, I created a two dlls (one in assembler and one in
    LabVIEW, assembler one is attached). The dll fills the array with the number
    2.
    Run the VI, update the diagram (close and open again, or scroll). The values
    in the constant array now have the same values as the output array!
    This behavior is reproducible with (at least) 1d and 2d arrays, and (at
    least) U32 and DBLs.
    I'm sure other array data types (SGL, U8, I8 etc.) s
    how the same behavior,
    but pointers to scalar values do not. Perhaps strings also do this?
    Try putting a flat sequence frame around it, and put a few seconds wait
    before and after it. You can see the constant changing while the vi is
    running.
    Regards,
    Wiebe.
    [Attachment Callbug.dll, see below]
    [Attachment Callbug.vi, see below]
    Attachments:
    Callbug.dll ‏3 KB
    Callbug.vi ‏13 KB

    Ben,
    The topic from the advanced course does seem to be describing this. So this
    behavior doesn't seem to be a bug. I couldn't find anything about this in
    the "Using External Code in LabVIEW" manual.
    When pointers to values are used, the constants are not updated, so that is
    inconsistent, but it does say "may receive", so that is covered...
    Perhaps the only bug is the fact that the block diagram is not refreshed
    properly, after the values are changed... Just kidding...
    Next question is how to make use of this?
    Regards,
    Wiebe.
    "Ben" wrote in message
    news:50650000000500000078D30100-1079395200000@exch​ange.ni.com...
    > Hi Wiebe
    >
    > Your question reminds me of a phrase from proverbs
    >
    > "A wise man goes into his store house and brings forth treasures both
    > old and new".
    >
    > I was not able to find documentaion on the the call library function
    > that talks about this issue but I did find the following in the
    > "LabVIEW Advanced 1 Course Manual, August 1998 Edition, part number
    > 321366C-01 page 242".
    >
    > "If you do not wire an indicator to the output terminal of a terminal
    > pair, LabVIEW assumes that the CIN will not modify the value you pass
    > to it. If another node uses the input data, LabVIEW does not make a
    > copy of the data.
    >
    > Note: If you don't wire the output terminal, the source code should
    > not modify the value passed into the terminal. Nodes connected to the
    > input terminal wire may receive the modified data.
    > "
    >
    > This topic brought our class to a stand still when we(those who were
    > still awake) realized that data could flow backwards through a wire!
    >
    > I believe the behaviour you have observed is correct and the quote I
    > cited above.
    >
    > I will venture a guess that the requirement from the CLA exam
    > "CLD-VPP-03-04 ...Review a LabVIEW application for run-time behavoiur
    > and memory management issue, ....Destructive and non-destructive
    > buffer reads on branched wires"
    >
    > had the behaviour in mind.
    >
    > I posted a Q re:this req years ago but never got a definative answer.
    >
    > All of the above is just my opinion.
    >
    > I would love to hear from others.
    >
    > What do you think?
    >
    > Ben
    >
    > BTW: I do not think they teach that anymore.

  • Incorrect constant pool entry count

    Hi ,
    I found with this simple class , the class file has incorrect constant pool count,
    public class Smpl
    public final long j = 0;          
    class file dumped is :
    0xCA 0xFE 0xBA 0xBE
    0x00 0x00 0x00 0x32
    0x00 {color:#ff0000}0x14 <- pool count is 0x14 -1 = 0x13 , but I can just read 0x12 !{color}
    0x0A 0x00 0x04 0x00 0x10
    0x09 0x00 0x03 0x00 0x11
    0x07 0x00 0x12
    0x07 0x00 0x13
    0x01 0x00 0x01 0x6A
    0x01 0x00 0x01 0x4A
    0x01 0x00 0x0D 0x43 0x6F 0x6E 0x73 0x74 0x61 0x6E 0x74 0x56 0x61 0x6C 0x75 0x65
    0x05 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
    0x01 0x00 0x06 0x3C 0x69 0x6E 0x69 0x74 0x3E
    0x01 0x00 0x03 0x28 0x29 0x56
    0x01 0x00 0x04 0x43 0x6F 0x64 0x65
    0x01 0x00 0x0F 0x4C 0x69 0x6E 0x65 0x4E 0x75 0x6D 0x62 0x65 0x72 0x54 0x61 0x62 0x6C 0x65
    0x01 0x00 0x0A 0x53 0x6F 0x75 0x72 0x63 0x65 0x46 0x69 0x6C 0x65
    0x01 0x00 0x09 0x73 0x6D 0x70 0x6C 0x2E 0x6A 0x61 0x76 0x61
    0x0C 0x00 0x0A 0x00 0x0B
    0x0C 0x00 0x05 0x00 0x06
    0x01 0x00 0x04 0x53 0x6D 0x70 0x6C
    0x01 0x00 0x10 0x6A 0x61 0x76 0x61 0x2F 0x6C 0x61 0x6E 0x67 0x2F 0x4F 0x62 0x6A 0x65 0x63 0x74
    0x00 0x21 acc flag
    0x00 0x03 this class
    0x00 0x04 super class
    0x00 0x00 interfaces count
    0x00 0x01 fields count
    0x00 0x11 acc flag
    0x00 0x05 name idx
    0x00 0x06 desc idx
    0x00 0x01 attrs count
    0x00 0x07 name idx
    0x00 0x00 0x00 0x02 attr len
    0x00 0x08 info
    0x00 0x01 methods count
    0x00 0x01 acc flag
    0x00 0x0A name idx
    0x00 0x0B desc idx
    0x00 0x01 attrs count
    0x00 0x0C name idx
    0x00 0x00 0x00 0x26 attr len
    0x00 0x03 max stack
    0x00 0x01 max loacls
    0x00 0x00 0x00 0x0A code len
    0x2A 0xB7 0x00 0x01 0x2A 0x09 0xB5 0x00 0x02 0xB1 code
    0x00 0x00 exception table len
    0x00 0x01 attr count
    0x00 0x0D name idx
    0x00 0x00 0x00 0x0A attr len
    0x00 0x02 0x00 0x00 0x00 0x01 0x00 0x04 0x00 0x03 info
    0x00 0x01 attrs count
    0x00 0x0E name idx
    0x00 0x00 0x00 0x02 attr len
    0x00 0x0F
    Could anyone help me? thank you
    I'm using jdk6

    sunnyyu wrote:
    Hi ,
    I found with this simple class , the class file has incorrect constant pool count,
    public class Smpl
    public final long j = 0;          
    0x0A 0x00 0x04 0x00 0x10
    0x09 0x00 0x03 0x00 0x11
    0x07 0x00 0x12
    0x07 0x00 0x13
    0x01 0x00 0x01 0x6A
    0x01 0x00 0x01 0x4A
    0x01 0x00 0x0D 0x43 0x6F 0x6E 0x73 0x74 0x61 0x6E 0x74 0x56 0x61 0x6C 0x75 0x65
    0x05 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
    0x01 0x00 0x06 0x3C 0x69 0x6E 0x69 0x74 0x3E
    0x01 0x00 0x03 0x28 0x29 0x56
    0x01 0x00 0x04 0x43 0x6F 0x64 0x65
    0x01 0x00 0x0F 0x4C 0x69 0x6E 0x65 0x4E 0x75 0x6D 0x62 0x65 0x72 0x54 0x61 0x62 0x6C 0x65
    0x01 0x00 0x0A 0x53 0x6F 0x75 0x72 0x63 0x65 0x46 0x69 0x6C 0x65
    0x01 0x00 0x09 0x73 0x6D 0x70 0x6C 0x2E 0x6A 0x61 0x76 0x61
    0x0C 0x00 0x0A 0x00 0x0B
    0x0C 0x00 0x05 0x00 0x06
    0x01 0x00 0x04 0x53 0x6D 0x70 0x6C
    0x01 0x00 0x10 0x6A 0x61 0x76 0x61 0x2F 0x6C 0x61 0x6E 0x67 0x2F 0x4F 0x62 0x6A 0x65 0x63 0x74 I make that 0x13 entries (minus the unusable entry at 0x9)
    0x000b 0x01: 0xa 0x4,0x10
    0x0010 0x02: 0x9 0x3,0x11
    0x0015 0x03: 0x7 0x12
    0x0018 0x04: 0x7 0x13
    0x001b 0x05: 0x1 "j"
    0x001f 0x06: 0x1 "J"
    0x0023 0x07: 0x1 "ConstantValue"
    0x0033 0x08: 0x5 0x0000000000000000
    0x003c 0x0a: 0x1 "<init>"
    0x0045 0x0b: 0x1 "()V"
    0x004b 0x0c: 0x1 "Code"
    0x0052 0x0d: 0x1 "LineNumberTable"
    0x0064 0x0e: 0x1 "SourceFile"
    0x0071 0x0f: 0x1 "Smpl.java"
    0x007d 0x10: 0xc 0xa,0xb
    0x0082 0x11: 0xc 0x5,0x6
    0x0087 0x12: 0x1 "Smpl"
    0x008e 0x13: 0x1 "java.lang.Object"Remember that longs and doubles take two slots.

  • Converting a single entry within an array into 16 entries within a new array. Building an array without knowing the exact amount of array entries.

    I'm developing a VI that reads a text file and does a manipulation on the data it reads. The VI does the following: First, it reads all the ASCII characters from a text file, converts them to 8-bit words, until EOF occurs. Then I do some simple conversion to each byte. The result is that each bit entry of the byte now gives 2 3-bit entries, making a total of 16 3-bit values returned for each byte within the original array. For example, when I read element #0 of the byte array, I get the byte value of 1011000. My VI then converts this to 16 seperate 3-bit values. I can do the conversion just fine. My pro
    blem is figuring out how to put these 16 elements into an array to be written out of my 6534 card. I know how to do the DIO write part, but the problem is how do I combine the 16 elements into an array for thousands of bytes read from the text file? Also, the size of the file that I read is unknown until it is read, so I may have to output many sucessive outputs as described above. The first element read would give 16 3-bit elements for the new array, the second byte read would give another 16 3-bit elements and so on upto N values in the original array. Any ideas ?

    Place a for loop, wire N with your readed string lenght, pass the string inside and wire it to string subset, with the lenght entry wired to 1 and the offset entry to the loop counter (i). Then, you can play with every character inside the loop, and have an output array composed with the result of every character.
    Hope this helps

Maybe you are looking for

  • Regarding SAP HR to SAP BW extrction (generic)

    Hi Masters,       I have been assigned a work regarding extracting the data from  sap hr to sap bw thru generic extraction, i odesnt have much knowledge on generic extractors...can anyone help me out...If possible plz send me in the form of some docu

  • How does repeated snapshot import impact tablespace free space?

    Hello, Our client is doing DEC-2014 reconciliation in FCM. Every time he changes profile mappings he has to do snapshot import again. So far he did at least ten times snapshot import for DEC-2014 period. In our FCM database Tablespace FCM_TX_TS_DATA

  • Accordion content: can it be an external file?

    Is there a way for an external file - e.g., Word or text file - to feed the content? It would also be nice if the panel tab can come from a file as well, instead of hardcoded. Thanks in advance!

  • Playlist editing/creating on the go

    I have a brand new iPod Touch.  How do I add a full album to a playlist without touching all the individual songs?  I could easily do this on my Nano 7th gen before I would go out for a run.  I don't want to do this in iTunes on my computer and then

  • Seem to have froze up while doing a disk erase and new install...

    In preparing to wipe clean my old powerbook to sell it off, I am running through a complete disk erase (booting from install disks). It has been running for several days now, and the progress bar is probably 70% of the way over, but I think it has st