Writing items into listbox using win32com.client api in Python

Hi
I'm trying to add/remove an item into the listbox control of labview using the VI methods provided by pywin32 api for python..
I have tried the setControlValue method to add an item, but to no avail (vi.setControlValue('Listbox',<name of item>)). 
I'm new to LabView, so perhaps I'm not getting the syntax or method right..It would really help if someone can help me solve this problem..
Regards
Arun

pywin32 won't help you here in any way. LabVIEW controls are not standard Windows windows (yes every Windows control is a window in itself) but entirely implemented in LabVIEW. The only Windows resources used by LabVIEW are the outermost window of each front panel and diagram window. Anything else is fully handled internally by LabVIEW.
Controlling a LabVIEW front panel from Python is definitely not the most simple thing to do. LabVIEW does have a so called VI server interface that can be access through ActiveX. It allows to do some things, but isn't generally the ideal way of allowing to remotely control a LabVIEW application.
Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions

Similar Messages

  • Pull large amounts of data using odata, client API and so takes a long time in project server 2013

    We are trying to pull large amounts of data in project server 2013 using both client API and odata calls, but it seem to take a long time. How is this done
    In project server 2010 we did this creating SQL views in both the reporting database and for list creating a view in the content database. Our IT dept is saying we can't do this anymore. How does a view in Project database or content database create issues?
    As long as we don't add a field in the table. So how's one to do this with creating a view?

    Hello,
    If you are using Project Server 2013 on premise I would recommend using T-SQL against the dbo. schema in the Project Web Database for your reports, this will be far quicker that the APIs. You can create custom objects in the dbo. schema, see the link below:
    https://msdn.microsoft.com/en-us/library/office/ee767687.aspx#pj15_Architecture_DAL
    It is not supported to query the SharePoint content database directly with T-SQL or add any custom objects to the content database.
    Paul
    Paul Mather | Twitter |
    http://pwmather.wordpress.com | CPS |
    MVP | Downloads

  • Using HFM Client API from FDM

    Hi all,
    is it possible to use HFM CLient API libraries from FDM Scripts or just HFM Web API?
    Thanks

    "Unreadable" squares are probably an indication that you are seeing non-printable characters due to the fact that the data is in one format (i.e. Unicode) and you are attempting to treat it as a another data format (ASCII). You may need to instruct the function to return data in a particular type or cast the result so that you are processing it properly.
    In regards to the wrapper, I think he's referring to the fact that vbscript doesn't support UDT's. (User Defined Types more commonly referred to as structs) You don't really need to wrap the API itself, rather create a COM object (or other) that would expose a property for each struct field. In the vbscript you would then create an instance to the object and use that with the API call.
    In regards to webservices, HFM doesn't have much out of the box. The comment was to create your own, etc. About the only thing you have going for you OOTB is Smartview. Smartview doesn't technically have a web service; however, if you monitor the data that goes in and out of Smartview it is dirt simple. For more than one project, I've taken advantage of Smartview as a means to get quick and dirty data out of HFM.

  • Setting 'ReplytoAddress' in NormalizedMessage using BPEL client API-failing

    Hi all,
    I tried specifying 'Reply to Address' property in Normalized Message using BPEL Client API to receive response from Asynchronous BPEL process but it's not working.
    I am facing the following situations:-
    1.Just setting 'Reply To address'-raises
    exception on JaxRpc invoke: HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message transmission failure, response code: 500
    2.Specifying both 'Reply to address' and 'Reply To PortType' is sending the entire process to an infinite wait state in receiving response from the worklist task service.
    My BPEL process has a human worklist and this workflow on completion can't callback my BPEL process for carrying out Step -2 mentioned above.
    Reply to Address = webservice SOAP endpoint URI
    Reply to Porttype= the porttype name in the WSDL file.
    Please any help will be appreciated.I have a project delivery.
    Thanks

    Hi all,
    I tried specifying 'Reply to Address' property in Normalized Message using BPEL Client API to receive response from Asynchronous BPEL process but it's not working.
    I am facing the following situations:-
    1.Just setting 'Reply To address'-raises
    exception on JaxRpc invoke: HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message transmission failure, response code: 500
    2.Specifying both 'Reply to address' and 'Reply To PortType' is sending the entire process to an infinite wait state in receiving response from the worklist task service.
    My BPEL process has a human worklist and this workflow on completion can't callback my BPEL process for carrying out Step -2 mentioned above.
    Reply to Address = webservice SOAP endpoint URI
    Reply to Porttype= the porttype name in the WSDL file.
    Please any help will be appreciated.I have a project delivery.
    Thanks

  • Security Exception while using OIM client API with Webcenter

    Hi,
    We are using OIM 11g Client api for creating user from our WebCenter portal application. But we are getting security as well as no such service exception while calling login from the OIM client.
    Exception::
    oracle.iam.platform.utils.NoSuchServiceException: java.lang.reflect.InvocationTargetException
         at oracle.iam.platform.OIMClient.getServiceDelegate(OIMClient.java:197)
         at oracle.iam.platform.OIMClient.getService(OIMClient.java:174)
         at oracle.iam.platform.OIMClient.loginSessionCreated(OIMClient.java:209)
         at oracle.iam.platform.OIMClient.login(OIMClient.java:136)
         at oracle.iam.platform.OIMClient.login(OIMClient.java:114)
    Caused by: java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
         at oracle.iam.platform.OIMClient.getServiceDelegate(OIMClient.java:193)
    Caused by: java.lang.SecurityException: [Security:090398]Invalid Subject: principals=[weblogic, Administrators]
         at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:234)
    oracle.iam.platform.utils.NoSuchServiceException: java.lang.reflect.InvocationTargetException
    Client Code::
    System.setProperty("java.security.auth.login.config", "Path to authwl.conf");
    System.setProperty("OIM.AppServerType", "weblogic");
    env = new Hashtable();
    env.put(OIMClient.JAVA_NAMING_FACTORY_INITIAL,"weblogic.jndi.WLInitialContextFactory");
    env.put(OIMClient.JAVA_NAMING_PROVIDER_URL, "t3://host:14000/oim");
    client = new OIMClient(env);
    try {
    client.login(OIMUserName, OIMPassword);
    } catch (LoginException e) {
    e.printStackTrace();
    The exception is coming after executing the login code (not login exception).We logged into our application using weblogic user(even for any other user in OID,shared by OIM, is having same behaviour). The code is being executed from integrated webogic server and oim_server is running on a different server under a separate domain.
    Please suggest.
    Thanks

    There are files needed in your project.
    from the <OIMHOME>/config folder_
    xl.policy
    authwl.conf
    log.properties
    from the <OIMHOME>/ext folder_
    commons-logging.jar
    jakarta-oro-2.0.8.jar
    javagroups-all.jar
    jhall.jar
    log4j-1.2.8.jar
    mail.jar
    oscache.jar
    spring.jar
    wlfullclient.jar
    from the <OIMHOME>/lib folder_
    iam-platform-auth-client.jar
    iam-platform-context.jar
    iam-platform-pluginframework.jar
    iam-platform-utils.jar
    oimclient.jar
    XellerateClient.jar
    xlAPI.jar
    xlDataObjectBeans.jar
    xlUtils.jar
    xlVO.jar

  • Web services using OIM Client API.

    Hi All,
    decided to try out some webservices talking to OIM via the client api. have a few questions.
    is it better if the webservice app server and the OIM ejb app server are the same? i.e. weblogic.
    I noticed in some of the code that configurationclient is using "web-client" rather than "Discovery.Coreserver" as the first param. what's the difference?
    Im currently using tomcat5 and java5 with xfire. and I think tomcat is not liking the weblogic jar. I could swap out the app server but would like to keep using java5 and xfire if that's possible.
    curious to hear abut other setups.
    Thanx.
    Fred

    I have a couple of clients using web services to expose OIM APIs. The most common approaches is to either use Apache Axis or the web service module in Websphere.
    Perhaps you should try migrating to Apache Axis if your application server doesn't like the Weblogic jars?
    I personally like Axis but that is mostly because I have used Axis a couple of times.
    Best regards
    /M

  • Can't move "completed" items into folders using Outlook 2013 on a Microsoft Office 365 Home Premium Account using a work Exchange 2010 address

    I've been in touch with several Microsoft support teams about this issue, and the latest move was to shove me off onto Pro support, but since I'm using a personal Office account, I'm hoping that through the community I can find a way to resolve this issue without
    escalating through our IT department. I do not think this is an Exchange issues because I have previously used this product and method without resulting in this error on a Windows 7 32-bit AMD computer and a Windows 8 and 8.1 Professional 64-bit Intel computer.
    Here's my current specs:
    Windows 7 Professional 64-bit, service pack 1
    AMD A6-5400 3.6 GHz
    8GB RAM
    Microsoft Office 365 Home Premium
    Office updates automatically, version 15.0.4551.1512
    About Outlook shows "Microsoft Outlook 2013 (15.0.4551.1511) MSA (15.0.4551.1508) 32-bit/Part of Microsoft Office 365 Home Premium"
    Here's how to reproduce the issue:
    1) Open View Settings
    2) Select "Other Settings..."
    3) Disable "Use compact layout in widths smaller than XX characters" and enable "Always use single-line layout"
    4) Select "Columns..."
    5) Under "All Mail fields" add "In folder"
    6) Select any email
    7) Context-menu -> Find Related -> Emails in this Conversation
    8) Select "more"
    9) Sort by folder
    10) Select all messages from Inbox.
    11) Use Outlook's preset "Done" function and select a destination folder
    12) Watch Outlook fail to run "Done" and reset your UI without producing an error.
    The first attempt to resolve this issue was to set up a new Outlook profile. This seemed to exacerbate the problem and resulted in Outlook providing an "Unknown error" before resetting the UI.
    The second attempt to resolve this issue was to run "outlook.exe /resetnavpane". However, the nav pane does not appear immediately relevant to this issue.  
    The following similar steps also result in a crash, this time with an error:
    11) Flag all select message as Complete.
    12) Move all messages from Inbox to a destination folder.
    This change in procedure results in the error "Cannot move the items. Some items cannot be moved. They were either already moved or deleted, or access was denied."
    Help me, Microsoft Community. You're my only hope.

    Import the calendar and contacts in Outlook.com. For contacts, export from Outlook as csv and import into Outlook by choosing the Other option (https://people.live.com/import/other?biciid=ImportCatalog) 
    You'll need to save the calendar as an ics file to import it. Select the calendar folder, the File, Save as an save as an ics. 
    Diane Poremsky [MVP - Outlook]
    Outlook & Exchange Solutions Center
    Outlook Tips
    Subscribe to Exchange Messaging Outlook weekly newsletter

  • Retrieving suitcase jar back from BPEL PM using 'java client api' ?

    Hi All,
    I have ANT based TeamFoundationServer auto builds working for BPEL workflow. I also have custom ANT tasks that call oracle bpel java API to be able to clearWSDL cache in various non-production environments.
    I would now like to attempt retrieving suitcase jar that was deployed previously. Before describing any further, I guess, my first question would be whether this is a possible thing to do.
    While browsing the JAVA API , I came across a method in class --> IBPELDomainHandle ( getSuitcase ) that seem to be returning back byte[] if the suitcaseId was provided to it.
    If below approach is in right direction, what else could I be missing ? Once , below class begins to retrieve the suitcase jar, the goal is to package it in an already existing jar and make it part of regular auto builds ( using ANT 1.6.5's custom task) hosted on windows 2003 server.
    The line in bold below, when uncommented, gives error that is posted after the java code.
    ********START : LocallyConnect2BPELPM.java ************************************************
    package com.collaxa.cube.ant.taskdefs.deploy;
    import com.oracle.bpel.client.BPELProcessMetaData;
    import com.oracle.bpel.client.IBPELDomainHandle;
    import com.oracle.bpel.client.IBPELProcessHandle;
    import com.oracle.bpel.client.Locator;
    import java.util.Properties;
    import java.io.*;
    import org.apache.tools.ant.BuildException;
    public class LocallyConnect2BPELPM {
    public LocallyConnect2BPELPM() {
    public static void main(String[] args) {
    LocallyConnect2BPELPM locallyConnect2BPELPM = new LocallyConnect2BPELPM();
    args[0]="SOME_BPEL_DOMAIN";
    String BPELdomain;
    BPELdomain = args[0];
    try {
    Properties props = new Properties();
    String hostName = "hostAtMyWork";
    String port = "10000";
    String user = "SomeServiceAccount";
    String pwd = "SomePassword";
    String domain = BPELdomain ; //getProject().getProperty("domain");
    System.err.println("host name - " + hostName + " port - " + port + " passwd - " + pwd);
    props.put("java.naming.factory.initial", "weblogic.jndi.WLInitialContextFactory");
    props.put("java.naming.provider.url", "t3://" + hostName + ":" +port);
    props.put("java.naming.security.principal", user);
    props.put("java.naming.security.credentials", pwd);
    System.out.println("test connection to host = " + hostName + " port " + port);
    Locator locator = new Locator(domain,"bpel",props);
    IBPELDomainHandle d = locator.lookupDomain();
    //get Handle to list of processes deployed in the domain
    IBPELProcessHandle[] processes = locator.listProcesses();
    for(int j = 0 ; j < processes.length ; j++) {
    IBPELProcessHandle process = processes[j];
    String processName = process.getProcessId().getProcessId() ;
    if ( process.isDefaultRevision())
    System.out.println(" processName = " + processName + "_" + process.getProcessId().getRevisionTag() + " in domain " + domain);
    /* I am intending to use class BPELProcessMetaData's java.lang.String getSuitcaseId() method to retrieve suitcaseId
    http://www.oracle.com/technology/products/ias/bpel/htdocs/apidocs/101340MLR4/com/oracle/bpel/client/BPELProcessMetaData.html
    attempting to use Interface IBPELDomainHandle's method --> byte[] getSuitcase(java.lang.String suitcaseId)
    since it needs suitcaseId, I am trying to get it from class BPELProcessMetaData's method --> java.lang.String getSuitcaseId() to retrieve suitcaseId .
    however, i always get suitcaseId as null for all processes resulting in error posted.
    // to get suitcaseId, BPELProcessMetaData has getSuitcaseId. pass this to d.getSuitcase
    String strFilePath = "D://bpel_"+processName +"_" + process.getProcessId().getRevisionTag() + ".jar";
    FileOutputStream fos = new FileOutputStream(strFilePath);
              // upon uncommenting the line below , I get error that is posted after the java code.
    // byte[] jarfile = d.getSuitcase(process.getMetaData().getSuitcaseId() );
    BPELProcessMetaData bpelMeta = process.getMetaData();
    String suitcaseId = bpelMeta.getSuitcaseId() ;
    System.out.println( processName + " suitcaseId = " + suitcaseId );
    // fos.write(d.getSuitcase(process.getMetaData().getSuitcaseId() ));
    System.out.println(strFilePath);
    fos.close();
    // uncomment below
    // d.getSuitcase(process.getMetaData().getSuitcaseId());
    }catch(Exception ex) {
    ex.printStackTrace();
    throw new BuildException(ex);
    String BPELdomain;
    public void setBPELdomain(String BPELdom) {
    BPELdomain = BPELdom;
    *************END : LocallyConnect2BPELPM.java **********************************************
    java.lang.IllegalStateException: [EJB:010158]Illegal attempt to call EJBContext.setRollbackOnly() from an EJB that was not participating in a transaction.
         at weblogic.ejb.container.internal.BaseEJBContext.setRollbackOnly(BaseEJBContext.java:361)
         at com.collaxa.cube.ejb.impl.BaseCubeSessionBean.setTransactionRollback(BaseCubeSessionBean.java:180)
         at com.collaxa.cube.ejb.impl.BPELDomainManagerBean.getSuitcase(BPELDomainManagerBean.java:1544)
         at com.collaxa.cube.ejb.impl.DomainManagerBean_tho2et_EOImpl.getSuitcase(DomainManagerBean_tho2et_EOImpl.java:615)
         at com.collaxa.cube.ejb.impl.DomainManagerBean_tho2et_EOImpl_WLSkel.invoke(Unknown Source)
         at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:553)
         at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:224)
         at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:443)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
         at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:439)
         at weblogic.rmi.internal.BasicServerRef.access$300(BasicServerRef.java:61)
         at weblogic.rmi.internal.BasicServerRef$BasicExecuteRequest.run(BasicServerRef.java:983)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
    Exception in thread "main" java.lang.IllegalStateException: [EJB:010158]Illegal attempt to call EJBContext.setRollbackOnly() from an EJB that was not participating in a transaction.
         at com.collaxa.cube.ant.taskdefs.deploy.LocallyConnect2BPELPM.main(LocallyConnect2BPELPM.java:76)
    Caused by: java.lang.IllegalStateException: [EJB:010158]Illegal attempt to call EJBContext.setRollbackOnly() from an EJB that was not participating in a transaction.
         at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:215)
         at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:338)
         at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:252)
         at com.collaxa.cube.ejb.impl.DomainManagerBean_tho2et_EOImpl_923_WLStub.getSuitcase(Unknown Source)
         at com.oracle.bpel.client.BPELDomainHandle.getSuitcase(BPELDomainHandle.java:234)
         at com.collaxa.cube.ant.taskdefs.deploy.LocallyConnect2BPELPM.main(LocallyConnect2BPELPM.java:60)
    Caused by: java.lang.IllegalStateException: [EJB:010158]Illegal attempt to call EJBContext.setRollbackOnly() from an EJB that was not participating in a transaction.
         at com.collaxa.cube.ejb.impl.BaseCubeSessionBean.setTransactionRollback(BaseCubeSessionBean.java:184)
         at com.collaxa.cube.ejb.impl.BPELDomainManagerBean.getSuitcase(BPELDomainManagerBean.java:1544)
         at com.collaxa.cube.ejb.impl.DomainManagerBean_tho2et_EOImpl.getSuitcase(DomainManagerBean_tho2et_EOImpl.java:615)
         at com.collaxa.cube.ejb.impl.DomainManagerBean_tho2et_EOImpl_WLSkel.invoke(Unknown Source)
         at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:553)
         at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:224)
         at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:443)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
         at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:439)
         at weblogic.rmi.internal.BasicServerRef.access$300(BasicServerRef.java:61)
         at weblogic.rmi.internal.BasicServerRef$BasicExecuteRequest.run(BasicServerRef.java:983)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
    Caused by: java.lang.IllegalStateException: [EJB:010158]Illegal attempt to call EJBContext.setRollbackOnly() from an EJB that was not participating in a transaction.
         at weblogic.ejb.container.internal.BaseEJBContext.setRollbackOnly(BaseEJBContext.java:361)
         at com.collaxa.cube.ejb.impl.BaseCubeSessionBean.setTransactionRollback(BaseCubeSessionBean.java:180)
         ... 13 more
    --- Nested Exception ---
    java.lang.IllegalStateException: [EJB:010158]Illegal attempt to call EJBContext.setRollbackOnly() from an EJB that was not participating in a transaction.
         at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:215)
         at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:338)
         at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:252)
         at com.collaxa.cube.ejb.impl.DomainManagerBean_tho2et_EOImpl_923_WLStub.getSuitcase(Unknown Source)
         at com.oracle.bpel.client.BPELDomainHandle.getSuitcase(BPELDomainHandle.java:234)
         at com.collaxa.cube.ant.taskdefs.deploy.LocallyConnect2BPELPM.main(LocallyConnect2BPELPM.java:60)
    Caused by: java.lang.IllegalStateException: [EJB:010158]Illegal attempt to call EJBContext.setRollbackOnly() from an EJB that was not participating in a transaction.
         at com.collaxa.cube.ejb.impl.BaseCubeSessionBean.setTransactionRollback(BaseCubeSessionBean.java:184)
         at com.collaxa.cube.ejb.impl.BPELDomainManagerBean.getSuitcase(BPELDomainManagerBean.java:1544)
         at com.collaxa.cube.ejb.impl.DomainManagerBean_tho2et_EOImpl.getSuitcase(DomainManagerBean_tho2et_EOImpl.java:615)
         at com.collaxa.cube.ejb.impl.DomainManagerBean_tho2et_EOImpl_WLSkel.invoke(Unknown Source)
         at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:553)
         at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:224)
         at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:443)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
         at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:439)
         at weblogic.rmi.internal.BasicServerRef.access$300(BasicServerRef.java:61)
         at weblogic.rmi.internal.BasicServerRef$BasicExecuteRequest.run(BasicServerRef.java:983)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
    Caused by: java.lang.IllegalStateException: [EJB:010158]Illegal attempt to call EJBContext.setRollbackOnly() from an EJB that was not participating in a transaction.
         at weblogic.ejb.container.internal.BaseEJBContext.setRollbackOnly(BaseEJBContext.java:361)
         at com.collaxa.cube.ejb.impl.BaseCubeSessionBean.setTransactionRollback(BaseCubeSessionBean.java:180)
         ... 13 more
    Process exited with exit code 1.
    Thanks in advance for your time !!
    Sameer
    Server side:
    Oracle BPEL v10.1.3.4.0
    MLR 8 patched.
    Windows 2003
    underlying server : weblogic 9.2
    client side: (while running the above java code)
    windows vista
    ANT: version 1.6.5
    Java: Jrockit 1.5.2

    Hi
    I have been trying what you want to achieve. I was getting some other error.
    Then I tried to print the suitcase Id as returned by process.getMetaData().getSuitcaseId() and this is returning null.
    Is that the case with you too?

  • Problem in displaying items into listbox

    Hi,
    I've a listbox in my page.It will display data from database.
    But problem starts from here.I have a DAO class in which i am getting list of filters from database and storing it into a DTO.Now how can i display values from that DTO into my listbox.
    Kindlly tell me soon, because it is very urgent requirement for my project.
    Waiting for early positive response.
    Thanks to All!!!

    Hi Praddy,
    My advice is to take a look at the default.trc file in the logs folder of the server. Hopefully there will be move information in there that will tell you more about the problem. The error message that is displayed on the screen to the user is not very useful - there should be more info in the trace file.
    Hope this helps,
    Simon

  • Writing data into files using VHDL Textio

    Hi 
    I was trying to write nos. from 1 to 8 into a text file using the below program.
    process
    type IntegerFileType is file of integer;
    file data_out: IntegerFileType ;
    variable fstatus: FILE_OPEN_STATUS;
    variable coun: natural:= 1;
    begin
    file_open(fstatus,data_out,"myfile.txt",write_mode);
    for i in 1 to 8 loop
    write(data_out, coun);
    coun := coun + 1;
    end loop;
    file_close(data_out);
    wait; -- an artificial way to stop the process
    end process;
    But getting the below attached result..
    Can you please help me out what could be wrong with the program.
    Thanks & regards
    Madhur

    Do you want the numbers in the file to be human readable ASCII?
    Then you'll need to convert your coun to a string. 
    declare another variable of type line (type access to string).
    do a write() to the line, then a writeline() to the file.
    natural'image(coun) will convert coun to a string.
    Google should help you find example code that will help.

  • ESB Reprocessing Issue with client API

    All,
    We are currently working on reprocessing the failed ESB instances using the client API. The instances are getting reprocessed but on a random basis are are getting the below exception. The reprocessing code is also provided.
    oracle.tip.esb.client.ClientException: 404 : Not Found
    08/07/10 08:26:51 at oracle.tip.esb.client.HttpClient.invoke(HttpClient.java:118)
    08/07/10 08:26:51 at oracle.tip.esb.client.impl.ConsoleClientImpl.perform(ConsoleClientImpl.java:148)
    08/07/10 08:26:51 at oracle.tip.esb.client.impl.ConsoleClientImpl.<init>(ConsoleClientImpl.java:71)
    08/07/10 08:26:51 at oracle.tip.esb.client.ConsoleClientFactory.getConsoleClient(ConsoleClientFactory.java:32)
    08/07/10 08:26:51 at com.cccis.cfcs.reprocess.RecoveryHelper.resubmitFailedInstance(RecoveryHelper.java:129)
    08/07/10 08:26:51 at com.cccis.cfcs.reprocess.RecoveryHelper.reprocessESBFailedInstances(RecoveryHelper.java:195)
    08/07/10 08:26:51 at com.cccis.cfcs.reprocess.ReprocessServlet.doGet(ReprocessServlet.java:107)
    08/07/10 08:26:51 at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
    08/07/10 08:26:51 at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    08/07/10 08:26:51 at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
    08/07/10 08:26:51 at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
    08/07/10 08:26:51 at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
    08/07/10 08:26:51 at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
    08/07/10 08:26:51 at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:302)
    08/07/10 08:26:51 at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:190)
    08/07/10 08:26:51 at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    08/07/10 08:26:51 at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
    08/07/10 08:26:51 at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
    08/07/10 08:26:51 at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
    08/07/10 08:26:51 at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    08/07/10 08:26:51 at java.lang.Thread.run(Thread.java:595)
    08/07/10 08:26:51 Caused by: java.io.IOException: 404 : Not Found
    08/07/10 08:26:51 at oracle.tip.esb.client.HttpClient.throwException(HttpClient.java:223)
    08/07/10 08:26:51 at oracle.tip.esb.client.HttpClient.postAndReceive(HttpClient.java:150)
    08/07/10 08:26:51 at oracle.tip.esb.client.HttpClient.invoke(HttpClient.java:114)
    public void resubmitFailedInstance(String flowID,SystemDetails sysdetail) {
    System.out.println("Within the resubmitFailedInstance method ************ ");
    String HOST = sysdetail.getHostName();
    System.out.println("Host at the beginning....................................."+HOST);
    int PORT = Integer.parseInt(sysdetail.getPort());
    System.out.println("Port at the beginning.............."+PORT);
    String USER_NAME = sysdetail.getUserName();
    System.out.println("User name at the beginning....................."+USER_NAME);
    String securityCredentials = sysdetail.getSecurityCredentials();
    System.out.println("Password at the beginning......................."+securityCredentials);
    String filter = FILTER;
    ConsoleClient client = null;
    String data = null;
    HashMap<String, String> requestProps = new HashMap<String, String>();
    try {
    requestProps.put("filter", URLEncoder.encode(filter, "UTF-8"));
    client =
    ConsoleClientFactory.getConsoleClient(HOST, PORT, USER_NAME,
    securityCredentials);
    data = client.perform("GetFailedInstances", requestProps);
    DOMParser parsedXML = new DOMParser();
    ByteArrayInputStream inArray = new ByteArrayInputStream(data.getBytes());
    parsedXML.parse(inArray);
    XMLDocument xmldoc = parsedXML.getDocument();
    NodeList nl = xmldoc.getElementsByTagName("failedInstance");
    for (int i = 0; i < nl.getLength(); i++) {
    Element el = (Element)nl.item(i);
    String flowId = el.getAttribute("flowId");
    String systemId = el.getAttribute("systemId");
    String retryable = el.getAttribute("retryable");
    String payload = el.getAttribute("inPayload");
    System.out.println("System ID :**********" + systemId);
    System.out.println("retryable :*********" + retryable);
    System.out.println("Payload :***************" + payload);
    if (flowId != null && flowId.equals(flowID)) {
    if (retryable.equals("true") && systemId != null) {
    System.out.println("Before calling the testResubmitInstanceById method ************");
    HashMap<String, String> requestProp = new HashMap<String, String>();
    requestProp.put("flowId", flowId);
    requestProp.put("systemId", systemId);
    System.out.println("Before reprocessing*************");
    String output = client.perform("ResubmitInstanceById", requestProp);
    System.out.println("Result>>>>>>>>>>>>>>>>>>>>"+output);
    System.out.println("After reprocessing**********");
    break;
    } catch (UnsupportedEncodingException e) {
    e.printStackTrace();
    } catch (ClientException e) {
    e.printStackTrace();
    } catch(Exception e) {
    e.printStackTrace();
    public void reprocessESBFailedInstances(String msgID,
    SystemDetails sysdetail) {
    System.out.println("Within the reprocess failed instances*****************");
    Connection con = null;
    Statement stmt = null;
    String flowID = null;
    String flowIDSql =
    "select flow_id from esb_activity a,esb_tracking_field_value t where a.id=t.activity_id and t.value='" +
    msgID + "'";
    try {
    String URL = RB_READER.getString("URL");
    String userName = RB_READER.getString("userName");
    String password = RB_READER.getString("password");
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    con = DriverManager.getConnection(URL, userName, password);
    stmt = con.createStatement();
    ResultSet res = stmt.executeQuery(flowIDSql);
    while (res.next()) {
    flowID = res.getString("FLOW_ID");
    System.out.println("Flow ID :***********" + flowID);
    resubmitFailedInstance(flowID,sysdetail);
    System.out.println(":::::::::::::::::::::::::::::::::::");
    System.out.println("End of the method*************");
    } catch (SQLException e) {
    e.printStackTrace();
    } catch (Exception e) {
    e.printStackTrace();
    Regards,
    M.Rajesh

    Hi Rajesh,
    I am trying to get the failed instances using the client API in your code what is the FILTER string that you have used since i have used below code to get the payload but not able to get the payload.If you are able to get the payload please do reply me back.
    String payload = el.getAttribute("inPayload"); // Not getting the payload
    Hoping for early reply from you.
    with regards
    NK

  • Importing pictures into SAP using DTW

    Hello all
    I am trying to import pictures of Items into SAP using DTW.
    I am using the Items template and putting the file path (e.g. C:\Projects\P29280\Admin\Item pics\Picture29.jpg) of the picture in the Picture field. At the moment the pictures are on the C drive of the server but even when I put them in the shared SAP folder they still dont import. The DTW import runs the import and there are no errors (i.e. it says that the update is successful) but when I go into SAP - the pics are not there....
    Hmmmn... one wonders...as one does.
    Can anyone who has done this before help me out?
    Thanks!
    Greeshma
    p.s.   I have also tried putting the file path in the ValidRemarks field but that doesnt work either .

    Hi Greeshma,
    the import of picture it self into the database is not possible. SAP only stores the path and the file name. You need to set up the standard path under general settings (Make sure it is not a local path!). Then you could import the pictures by using the file name (no path is needed) and afaik it is case sensitive. Put the pictures into the set path.
    Regards

  • How to automatically convert to-do items into events

    Hi, I have a calendar which contains many to-do items with dates. I would like to have these to do items become events. Is there anyway to have ical automatically convert these to-do items into events using a script or plug-in?
    thank you for your help and consideration.
    deborah

    Deborah
    Try this. I suggest you save it in ~/Library/Scripts, so that it will be accessible from the drop-down scripts menu. I also suggest that you try it before using it seriously - in iCal, use File/Backup database, then if you don't like what happens, use File/Revert. Feel free to ask questions!
    AK
    click here to open this script in your editor<pre style="font-family: 'Monaco', 'Courier New', Courier, monospace; overflow:auto; color: #222; background: #DDD; padding: 0.2em; font-size: 10px; width:400px">tell application "iCal"
    set CalList to name of every calendar
    repeat with ThisCal in CalList
    set SomeTasks to todos of calendar ThisCal
    set SomeTasks to reverse of SomeTasks --otherwise delete causes problems
    repeat with ThisTask in SomeTasks
    try
    set DoItOn to (due date of ThisTask) + 3 * days --fails if no date
    tell calendar ThisCal
    set ThisEvent to make new event at end of events
    set summary of ThisEvent to summary of ThisTask
    set start date of ThisEvent to due date of ThisTask
    if (count of (description of ThisTask)) is not 0 then set description of ThisEvent to description of ThisTask
    if (count of (url of ThisTask)) is not 0 then set url of ThisEvent to (url of ThisTask) as text
    delete ThisTask
    end tell
    end try
    end repeat --ThisTask in SomeTasks
    end repeat --ThisCal in CalList
    end tell</pre>

  • How to access a sharepoint site via the REST API in Python?

    I have the following site:
    http://win-5a8pp4v402g/sharepoint_test/site_1/
    When I access this from the browser, it prompts me for the username and password and then works fine. However I am trying to do the same using the REST API in Python. I am using the requests library, and this is what I have done:
    import requests
    from requests.auth import HTTPBasicAuth
    USERNAME = "Administrator"
    PASSWORD = "password"
    response = requests.get("http://win-5a8pp4v402g/", auth=HTTPBasicAuth(USERNAME, PASSWORD))
    print response.status_code
    However I get a 401. I dont understand. What am I missing?

    Try adding the auhenticatig domain to the username.  That may help.
    Steven Andrews
    SharePoint Business Analyst: LiveNation Entertainment
    Blog: baron72.wordpress.com
    Twitter: Follow @backpackerd00d
    My Wiki Articles:
    CodePlex Corner Series
    Please remember to mark your question as "answered" if this solves (or helps) your problem.

  • Writing Html Content into PDF using JSP

    Dear All,
    I am using JSP to generate Employee payslip dynamically. Presently i am diplaying payslip as on-screen display.
    Here i want to give option "Save as PDF". I am able to create PDF file using IText Libraries. i want to integrate HTML code into the PDF file.
    Writing HTML Content (using HTML Tags) into PDF.

    Well it is a difficult ask and i believe we are trying to re-invent the wheel
    Just to make my life simple i could have choosen either sample API given below to serve my cause
    1).[http://xmlgraphics.apache.org/fop/] (Apache FOP one can simply write an XSL template of their and then substitute the values from respective DTO's by using XSL - XML transformations and can generate content in different formats which includes PDF aswell)
    2).[http://jasperforge.org/plugins/project/project_home.php?group_id=102] (Just design a simple report template using iReport and create a jrxml files and write a small code snipett such that you can pass few details at the runtime and can export the report in different formats which includes PDF aswell)
    3).[http://www.object-refinery.com/jfreereport/] (Is much similar to what jasper offers in order to compile these you can either use pentaho product IDE or BEA/Oracle Actuate report tools)
    You can simply try searching for different examples for getting more help on using the respective API's
    Hope that helps :)
    REGARDS,
    RaHuL

Maybe you are looking for

  • What is use of Hyperlinks and Pdfs in srm-mdm catalog??

    Hello friends, I have added one Pdf file in data manager, in this, it is showing no thumbnail. But in EBP it is not showing any Pdf file. can suggest how to show this Pdf loaded file in EBP(Enterprise Buyer Professional). i dont know whats the purpos

  • Using same opened popup window

    Hi, I have a scenario where I have 4 button in a view and I have to open same external URL window for all 4 buttons. Now user wants to use same popped up window (if already opened). He doesn't want to open same window again and again. Currently I am

  • Caller Display Decor 2200

    My elderly Mum has bought herself a new phone with caller display so she knows who's ringing her but it doesn't seem to be working, we registered for Privacy at Home early on Thursday morning and it should have been active within 24 hours, I've check

  • Complete my Album:  John Mayer

    Hi. I have been trying to use the "Complete My Album" feature to complete the following John Mayer albums: Room for Squares, Heavier Things, Inside Wants Out and As/Is. Unfortunately for the past week I have been receiving a message stating that that

  • Any way to Convert CHAR(8)  field to QUAN(8)?

    Any way to Convert CHAR(8)  field to QUAN(8)? Thank-You.