Need help writing a Java rule in PDF Forms

I have created an invoice for my contractors via "forms", and in turn made each cell either a drop down list or "read only" field so they cannot change the rate of pay, etc.  Here is my issue...My first drop down cell is titled "Job Description".  When the contractor selects one of the 8 dropdown options within the Job Description field, I would like it to automatically fill in the hourly rate that is associated with that particular job description (or skill).  I currently have my "rate" cell as a drop down, and I want to make that a read only, and when you select the A1 position from Job Description, it will populate the "rate" field with the appropriate amount for that A1 rate.  I believe this can be done with writing some Java script, but I have never played with Java and I don't really have the time to teach myself.  If anyone can help with me a quick tutorial, or even the formula I should use, so that I can just plug and play, that would be super helpful.  If this is a time consuming issue, I would be interested in paying someone to do it for me. Thank you!

Hi George,
I was able to copy my data over to a fresh document, and now it works just fine....thank you so much for your insight and help!
I have another question if you have a moment. 
I am trying to do a simple calculation of start time and end time for my employees.  Do I need to do this via a javascript, and if so, what area in properties of the result field should I copy it to?  for the purpose of the script, the fields are as follows:
DataField1 = start time
DataField2 = end time
DataField3 = total time
I would like to use the h:MM tt format for my time fields if possible.
I've attached a link to the file through my dropbox account, and you'll notice that I created three new fields at the top of the invoice just to test the time calculations before i mock up the whole document.
Dropbox - Contractor Invoice Template (1).pdf
Any help you can give me would awesome! 
Thank you!!

Similar Messages

  • Need help writing a workflow rule

    Hi all!
    I want to write a workflow that will populate the "Region" field when a new account is saved.
    We use territories, but cannot effectively pulll contact reports due to OnDemand not having the Territory field in the Contact reporting area. (In the contact reporting area you can only pull by "Region")
    When we originally set up OnDemand during the data conversion from UpShot, we set up our regions to be the same as the territories. However at this time "Region" is not a field we use, due to the need of creating accounts to be a simple as possible. So what I want to do is link the "region" field to the "Territory" field, so that when a new account is saved that field will automatically populate.
    Also is using a workflow the only way to do this?
    Thanks in advance!!!

    The JoinFieldValue expression I put in my last post is exactly what you need. Just copy it exactly as you see it and past it in the Default Value box. You will not need to write 20 expressions. The Territory Name field in my expression is available in Territory, but you wouldn't see it in the field dropdown in Account when creating the post default.
    Ok, so to test this, please copy the expression in the default value exactly as I have it above. Then check the Post Default flag. Then save your changes. You must ensure that the Territory and Region picklists are consistent. They must match exactly. Finally, you will need to log out and log back in and create a new account and pick the Territory.
    Let me know how it goes.
    Thom

  • Help writing a workflow rule

    Hello Experts!!!
    I need help writing a workflow rule condition to trigger the workflow. What I am aiming for is an email to be sent out when an opportunity is marked Closed/Won. But it can only be of a certain opportunity type (we use three options) and opportunity sub-type (we use two options) (these are custom fields we use)
    Below are the fields that need to be used:
    [<SalesStage>] = Closed/Won
    [<OpportunityType>] = Acute
    [<plOpportunity_SubType_ITAG>] = Tech
    Thanks Again!!

    Hi
    Try:
    [<SalesStage>] = Closed/Won AND [<OpportunityType>] = Acute AND [<plOpportunity_SubType_ITAG>] ='Tech'
    Note that in case of picklists it is recomended to use the lookup value and not static text like 'Tech', but both will work.
    Good luck
    Guy

  • Need help writing small program!

    Hi. I'm learning Java programming, and I need help writing a small program. Please someone help me.
    Directions:
    Create a program called CerealCompare using an if-then-else structure that obtains the price and number of ounces in a box for two boxes of cereal. The program should then output which box costs less per ounce.

    class CerealCompare {
        public static void main(String[] args) {
            // your code goes here
    }Hope that helps.
    P.S. Java does not have an if-then-else statement.

  • Need help writing host program using LabView.

    Need help writing host program using LabView.
    Hello,
    I'm designing a HID device, and I want to write a host program using National Instrument's LabView. NI doesn't have any software support for USB, so I'm trying to write a few C dll files and link them to Call Library Functions. NI has some documentation on how to do this, but it's not exactly easy reading.
    I've written a few C console programs (running Win 2K) using the PC host software example for a HID device from John Hyde's book "USB by design", and they run ok. From Hyde's example program, I've written a few functions that use a few API functions each. This makes the main program more streamlined. The functions are; GetHIDPath, OpenHID, GetHIDInfo, Writ
    eHID, ReadHIC, and CloseHID. As I mentioned, my main program runs well with these functions.
    My strategy is to make dll files from these functions and load them into LabView Call Library Functions. However, I'm having a number of subtle problems in trying to do this. The big problem I'm having now are build errors when I try to build to a dll.
    I'm writing this post for a few reasons. First, I'm wondering if there are any LabView programmers who have already written USB HID host programs, and if they could give me some advice. Or, I would be grateful if a LabView or Visual C programmer could help me work out the programming problems that I'm having with my current program. If I get this LabView program working I would be happy to share it. I'm also wondering if there might already be any USB IHD LabView that I could download.
    Any help would be appreciated.
    Regards, George
    George Dorian
    Sutter Instruments
    51 Digital DR.
    Novato, CA 94949
    USA
    [email protected]
    m
    (415) 883-0128
    FAX (415) 883-0572

    George may not answer you.  He hasn't been online here for almost eight years.
    Jim
    You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice

  • I need help writing a script that finds the first instance of a paragraph style and then changes it

    I need help writing a script that finds the first instance of a paragraph style and then changes it to another paragraph style.  I don't necessarily need someone to write the whole thing, by biggest problem is figuring how to find just the first instance of the paragraph style.  Any help would be greatly appreciated, thanks!

    Hi,
    Do you mean first instance of the paragraph style
    - in a chosen story;
    - on some chosen page in every text frames, looking from its top to the bottom;
    - in a entire document, looking from its beginning to the end, including hidden layers, master pages, footnotes etc...?
    If story...
    You could set app.findTextPreferences.appliedParagraphStyle to your "Style".
    Story.findText() gives an array of matches. 1st array's element is a 1st occurence.
    so:
    Story.findText()[0].appliedParagraphStyle = Style_1;
    //==> this will change a paraStyle of 1st occurence of story to "Style_1".
    If other cases...
    You would need to be more accurate.
    rgds

  • Need Help Writing Server side to submit form via API

    Hey
    I need help writing a serverside application to submit
    information via API to a separate server.
    I have a client that uses constant contact for email
    campaigns. We want to add to her website a form taht submits the
    information needed to subscribe to her email list, to constant
    contact via API.
    FORM.asp :: (i got this one under control)
    name
    email
    and submits to serverside.asp
    SERVERSIDE.ASP
    In serverside.asp i need to have
    the API URL
    (https://api.constantcontact.com/0.1/API_AddSiteVisitor.jsp)
    username (of the constant contact account)
    password (of the constant contact account)
    name (submited from form.asp)
    email (submitted from form.asp)
    redirect URL (confirm.asp)
    Can anyone help get me going in the right direction?
    i have tried several things i found on the net and just cant
    get anyone to work correctly.
    One main issue i keep having is that if i get it to submit to
    the API url correctly - i get a success code, it doesnt redirect to
    the page i am trying to redirect to.
    ASP or ASP.NET code would be find.
    THANKS
    sam

    > This does require server side programming.
    > if you dont know what that is, then you dont know the
    answer to my question. I
    > know what i need to do - i just dont know HOW to do it.
    If you are submitting a form to a script on a remote server,
    and letting
    that script load content to the browser, YOU have no control
    over what it
    loads UNLESS there is some command you can send it that it
    will understand.
    No amount of ASP on your server is going to change what the
    remote script
    does.
    http://www.constantcontact.com/services/api/index.jsp
    they only allow their customers to see the instructions for
    the API so i
    can't search to see IF there is a redirect you can send with
    the form info.
    But posts on their support board say that there is.
    Alan
    Adobe Community Expert, dreamweaver
    http://www.adobe.com/communities/experts/

  • I want to know what I need and then how to take a pdf form I created in word and add the blue boxes so that anyone can type into my form

    I want to know what I need and then how to take a pdf form I created in word and add the blue boxes so that anyone can type into my form

    Hey john@adobe,
    Could you please specify how exactly have you created your form.
    You might need to have Acrobat installed on your computer to convert a word document to PDF.
    Do you have Acrobat installed? If yes, what version? If no, then please try using the trial version of Acrobat DC (latest version) and access its features:
    Download Adobe Acrobat free trial | Acrobat Pro DC
    Also, let me know what kind of blue boxes are you talking about.
    If you want others to edit your PDF form, then you need to make it a fillable form by choosing 'Form Editing' option from Tools pane.
    Let me know more on this so that I can help you out.
    Regards,
    Anubha

  • I need to add an attachment to a pdf form from the SBA it is OIC_TABS_NGPC_nl.pdf

    I need to add an attachment to a pdf form from the SBA it is OIC_TABS_NGPC_nl.pdf

    Do the people who made the form SAY you can add an attachment? If not, do not consider it. The form will probably be read by a computer, so it will only look in the form fields provided.

  • Needs help to know the different versions of forms with their compatibility

    Needs help to know the different versions of forms with their compatibility with different databases and operating systems.
    Kindly give the details or any suitable link for the same.
    please consider it as on urgent basis.
    regards,
    rajesh

    Rajesh,
    the certification matrix is available on metalink.oracle.com. You need a support contract to access this information.
    Frank

  • Need help in solving java.io.NotSerializableException

    Hi,
    Weblogic 9.2
    I need help in solving the java.io.NotSerializableException: weblogic.jndi.internal.ApplicationNamingNode
    I dont know why ApplicationNamingNode has to be serialized.
    Full stack trace will be provided if needed.
    thank you

    Here is the stack trace
    Remote service [com.gfs.corp.component.price.customerbid.PCBMaint] threw exception
    weblogic.rjvm.PeerGoneException: ; nested exception is:
         java.rmi.UnmarshalException: Incoming message header or abbreviation processing failed ; nested exception is:
         java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: weblogic.jndi.internal.ApplicationNamingNode
         at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:211)
         at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:338)
         at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:252)
         at com.gfs.corp.component.price.maint.customerbid.ejb.PCBMaint_q9igfc_EOImpl_922_WLStub.createBid(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.springframework.remoting.rmi.RmiClientInterceptorUtils.doInvoke(RmiClientInterceptorUtils.java:107)
         at org.springframework.ejb.access.SimpleRemoteSlsbInvokerInterceptor.doInvoke(SimpleRemoteSlsbInvokerInterceptor.java:75)
         at org.springframework.ejb.access.AbstractRemoteSlsbInvokerInterceptor.invoke(AbstractRemoteSlsbInvokerInterceptor.java:119)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
         at $Proxy47.createBid(Unknown Source)
         at com.gfs.corp.bid.price.controller.DefaultBidPriceUpdater.awardBid(DefaultBidPriceUpdater.java:83)
         at com.gfs.corp.bid.price.ejb.AwardQueueMessageHandler.onMessage(AwardQueueMessageHandler.java:98)
         at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:429)
         at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:335)
         at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:291)
         at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4072)
         at weblogic.jms.client.JMSSession.execute(JMSSession.java:3962)
         at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:4490)
         at weblogic.work.ServerWorkManagerImpl$WorkAdapterImpl.run(ServerWorkManagerImpl.java:518)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
    Caused by: java.rmi.UnmarshalException: Incoming message header or abbreviation processing failed ; nested exception is:
         java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: weblogic.jndi.internal.ApplicationNamingNode
         at weblogic.rjvm.MsgAbbrevJVMConnection.dispatch(MsgAbbrevJVMConnection.java:441)
         at weblogic.rjvm.t3.MuxableSocketT3.dispatch(MuxableSocketT3.java:368)
         at weblogic.socket.AbstractMuxableSocket.dispatch(AbstractMuxableSocket.java:378)
         at weblogic.socket.NTSocketMuxer.processSockets(NTSocketMuxer.java:105)
         at weblogic.socket.SocketReaderRequest.run(SocketReaderRequest.java:29)
         at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:42)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:145)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:117)
    Caused by: java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: weblogic.jndi.internal.ApplicationNamingNode
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1309)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
         at weblogic.transaction.internal.PropagationContext.readRollbackReason(PropagationContext.java:804)
         at weblogic.transaction.internal.PropagationContext.readExternal(PropagationContext.java:376)
         at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1755)
         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1717)
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
         at weblogic.rmi.provider.BasicServiceContext.readExternal(BasicServiceContext.java:56)
         at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1755)
         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1717)
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
         at weblogic.utils.io.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:195)
         at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.java:565)
         at weblogic.rjvm.MsgAbbrevInputStream.readExtendedContexts(MsgAbbrevInputStream.java:224)
         at weblogic.rjvm.MsgAbbrevInputStream.init(MsgAbbrevInputStream.java:188)
         at weblogic.rjvm.MsgAbbrevJVMConnection.dispatch(MsgAbbrevJVMConnection.java:435)
         ... 7 more
    Caused by: java.io.NotSerializableException: weblogic.jndi.internal.ApplicationNamingNode
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1081)
         at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
         at weblogic.jndi.internal.WLContextImpl.writeExternal(WLContextImpl.java:453)
         at weblogic.jndi.internal.WLEventContextImpl.writeExternal(WLEventContextImpl.java:422)
         at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1310)
         at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1288)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
         at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
         at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
         at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
         at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
         at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
         at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
         at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
         at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
         at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
         at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
         at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
         at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
         at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
         at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
         at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
         at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
         at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
         at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
         at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
         at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
         at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
         at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
         at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
         at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
         at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
         at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
         at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
         at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
         at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
         at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
         at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
         at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
         at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
         at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
         at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
         at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
         at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
         at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
         at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
         at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
         at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
         at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
         at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
         at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
         at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
         at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
         at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
         at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
         at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
         at weblogic.transaction.internal.PropagationContext.convertRollbackReasonToBytes(PropagationContext.java:735)
         at weblogic.transaction.internal.PropagationContext.writeRollbackReason(PropagationContext.java:819)
         at weblogic.transaction.internal.PropagationContext.writeExternal(PropagationContext.java:183)
         at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1310)
         at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1288)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
         at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
         at weblogic.rmi.provider.BasicServiceContext.writeExternal(BasicServiceContext.java:48)
         at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1310)
         at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1288)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
         at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
         at weblogic.rjvm.MsgAbbrevOutputStream.writeObject(MsgAbbrevOutputStream.java:614)
         at weblogic.rjvm.MsgAbbrevOutputStream.marshalCustomCallData(MsgAbbrevOutputStream.java:319)
         at weblogic.rjvm.MsgAbbrevOutputStream.transferThreadLocalContext(MsgAbbrevOutputStream.java:149)
         at weblogic.rmi.internal.BasicServerRef.postInvoke(BasicServerRef.java:606)
         at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:455)
         at weblogic.rmi.internal.BasicServerRef.access$300(BasicServerRef.java:58)
         at weblogic.rmi.internal.BasicServerRef$BasicExecuteRequest.run(BasicServerRef.java:975)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
    2007-10-18 08:38:04,931 [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] WARN org.springframework.ejb.access.SimpleRemoteStatelessSessionProxyFactoryBean - Could not invoke 'remove' on remote EJB proxy
    weblogic.rjvm.PeerGoneException: ; nested exception is:
         java.rmi.UnmarshalException: Incoming message header or abbreviation processing failed ; nested exception is:
         java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: weblogic.jndi.internal.ApplicationNamingNode
         at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:211)
         at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:338)
         at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:252)
         at com.gfs.corp.component.price.maint.customerbid.ejb.PCBMaint_q9igfc_EOImpl_922_WLStub.remove(Unknown Source)
         at org.springframework.ejb.access.AbstractRemoteSlsbInvokerInterceptor.removeSessionBeanInstance(AbstractRemoteSlsbInvokerInterceptor.java:227)
         at org.springframework.ejb.access.SimpleRemoteSlsbInvokerInterceptor.releaseSessionBeanInstance(SimpleRemoteSlsbInvokerInterceptor.java:118)
         at org.springframework.ejb.access.SimpleRemoteSlsbInvokerInterceptor.doInvoke(SimpleRemoteSlsbInvokerInterceptor.java:95)
         at org.springframework.ejb.access.AbstractRemoteSlsbInvokerInterceptor.invoke(AbstractRemoteSlsbInvokerInterceptor.java:119)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
         at $Proxy47.createBid(Unknown Source)
         at com.gfs.corp.bid.price.controller.DefaultBidPriceUpdater.awardBid(DefaultBidPriceUpdater.java:83)
         at com.gfs.corp.bid.price.ejb.AwardQueueMessageHandler.onMessage(AwardQueueMessageHandler.java:98)
         at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:429)
         at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:335)
         at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:291)
         at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4072)
         at weblogic.jms.client.JMSSession.execute(JMSSession.java:3962)
         at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:4490)
         at weblogic.work.ServerWorkManagerImpl$WorkAdapterImpl.run(ServerWorkManagerImpl.java:518)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
    Caused by: java.rmi.UnmarshalException: Incoming message header or abbreviation processing failed ; nested exception is:
         java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: weblogic.jndi.internal.ApplicationNamingNode
         at weblogic.rjvm.MsgAbbrevJVMConnection.dispatch(MsgAbbrevJVMConnection.java:441)
         at weblogic.rjvm.t3.MuxableSocketT3.dispatch(MuxableSocketT3.java:368)
         at weblogic.socket.AbstractMuxableSocket.dispatch(AbstractMuxableSocket.java:378)
         at weblogic.socket.NTSocketMuxer.processSockets(NTSocketMuxer.java:105)
         at weblogic.socket.SocketReaderRequest.run(SocketReaderRequest.java:29)
         at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:42)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:145)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:117)
    Caused by: java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: weblogic.jndi.internal.ApplicationNamingNode
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1309)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
         at weblogic.transaction.internal.PropagationContext.readRollbackReason(PropagationContext.java:804)
         at weblogic.transaction.internal.PropagationContext.readExternal(PropagationContext.java:376)
         at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1755)
         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1717)
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
         at weblogic.rmi.provider.BasicServiceContext.readExternal(BasicServiceContext.java:56)
         at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1755)
         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1717)
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
         at weblogic.utils.io.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:195)
         at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.java:565)
         at weblogic.rjvm.MsgAbbrevInputStream.readExtendedContexts(MsgAbbrevInputStream.java:224)
         at weblogic.rjvm.MsgAbbrevInputStream.init(MsgAbbrevInputStream.java:188)
         at weblogic.rjvm.MsgAbbrevJVMConnection.dispatch(MsgAbbrevJVMConnection.java:435)
         ... 7 more
    Caused by: java.io.NotSerializableException: weblogic.jndi.internal.ApplicationNamingNode
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1081)
         at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
         at weblogic.jndi.internal.WLContextImpl.writeExternal(WLContextImpl.java:453)
         at weblogic.jndi.internal.WLEventContextImpl.writeExternal(WLEventContextImpl.java:422)
         at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1310)
         at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1288)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
         at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
         at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
         at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
         at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
         at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
         at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
         at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
         at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
         at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
         at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
         at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
         at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
         at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
         at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
         at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
         at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
         at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
         at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
         at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
         at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
         at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
         at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
         at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
         at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
         at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
         at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
         at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
         at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
         at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
         at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
         at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
         at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
         at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
         at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
         at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
         at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
         at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
         at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
         at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
         at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
         at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
         at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
         at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
         at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
         at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
         at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
         at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
         at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
         at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
         at weblogic.transaction.internal.PropagationContext.convertRollbackReasonToBytes(PropagationContext.java:735)
         at weblogic.transaction.internal.PropagationContext.writeRollbackReason(PropagationContext.java:819)
         at weblogic.transaction.internal.PropagationContext.writeExternal(PropagationContext.java:183)
         at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1310)
         at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1288)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
         at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
         at weblogic.rmi.provider.BasicServiceContext.writeExternal(BasicServiceContext.java:48)
         at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1310)
         at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1288)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
         at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
         at weblogic.rjvm.MsgAbbrevOutputStream.writeObject(MsgAbbrevOutputStream.java:614)
         at weblogic.rjvm.MsgAbbrevOutputStream.marshalCustomCallData(MsgAbbrevOutputStream.java:319)
         at weblogic.rjvm.MsgAbbrevOutputStream.transferThreadLocalContext(MsgAbbrevOutputStream.java:149)
         at weblogic.rmi.internal.ReplyOnError.run(ReplyOnError.java:54)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
    2007-10-18 08:38:05,244 [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] DEBUG org.springframework.ejb.access.SimpleRemoteStatelessSessionProxyFactoryBean - Could not connect to remote EJB [com.gfs.corp.component.price.customerbid.PCBMaint] - retrying
    org.springframework.remoting.RemoteConnectFailureException: Could not connect to remote service [com.gfs.corp.component.price.customerbid.PCBMaint]; nested exception is weblogic.rjvm.PeerGoneException: ; nested exception is:
         java.rmi.UnmarshalException: Incoming message header or abbreviation processing failed ; nested exception is:
         java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: weblogic.jndi.internal.ApplicationNamingNode
    thank you

  • Need help writing a query for following scenario

    Hi all, I need some help writing a query for the following case:
    One Table : My_Table
    Row Count: App 5000
    Columns of Interest: AA and BB
    Scenario: AA contains some names of which BB contains the corresponding ID. Some
    names are appearing more than once with different IDs. For example,
    AA BB
    Dummy 10
    Me 20
    Me 30
    Me 40
    You 70
    Me 50
    Output needed: I need to write a query that will display only all the repeating names with their corresponding IDs excluding all other records.
    I would appreciate any input. Thanks

    Is it possible to have a records with the same values for AA and BB? Are you interested in these rows or do you only care about rows with the same value of AA and different BB?
    With a slight modification of a previous posting you can only select those rows that have distinct values of BB for the same value of AA
    WITH t AS (
    SELECT 'me' aa, 10 bb FROM dual
    UNION ALL
    SELECT 'me' aa, 20 bb FROM dual
    UNION ALL
    SELECT 'you' aa, 30 bb FROM dual
    UNION ALL
    SELECT 'you' aa, 30 bb FROM dual
    SELECT DISTINCT aa, bb
      FROM (SELECT aa, bb, COUNT(DISTINCT bb) OVER(PARTITION BY aa) cnt FROM t)
    WHERE cnt > 1;

  • Need help to handle java FX stuffs...........??

    i am very much new to Java FX i want to do a login acceptance and rejection operation.like ::
    client will click on the button it will open up the window of created by java FX which will give the login screen*(in this case i would like to mention one thing i all ready have a page like usercheck.jsp which is checking if the user is already loged in or not so need to call this JAVA FX window from that page.)*.This java FX window should have a text field and a password field to match with database.it will show a progressber while it is matching the user name password with database.If the login is correct it will give the user the session stuff and allow him to access**(ie.it will be forworded to the page say,cart.jsp)** otherwise it will give a alert message "login faild".any idea about it..............what should i do now???my database is in access and it connected to my program by DA.java.please guide me what should i do,step by step?and consulting with [http://jfx.wikia.com/wiki/SwingComponents]
    now guide me.............
    i have just created a swing button say "click me to login" on a UNDECORATED window............so what next.........
    Edited by: coolsayan.2009 on May 7, 2009 3:35 PM

    my DA.java is like::
    package shop;
    import java.sql.*;
    public class DAClass {
         private static Connection conn;
         private static ResultSet rs;
         private static PreparedStatement ps;
         public static void connect(String dsn, String un, String pwd) {
              try {
                   //access
                   Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                   conn=DriverManager.getConnection("jdbc:odbc:"+dsn,un,pwd);
              catch(Exception e) {
         public static boolean chkPwd(String un, String pwd) {
              try {
                   boolean b=false;
                   ps=conn.prepareStatement("select * from cust_info where cust_name=? and cust_pwd=?");               
                   ps.setString(1,un);
                   ps.setString(2,pwd);
                   rs=ps.executeQuery();
                   while(rs.next()) {
                        b=true;
                   return b;
              catch(Exception e) {
                   return false;
         public static ResultSet getCat(){
              try {
                   ps=conn.prepareStatement("select * from item_category where cat_parent=0 order by cat_name");               
                   rs=ps.executeQuery();
                   return rs;
              catch(Exception e) {
                   return null;
         public static ResultSet getSubCat(int cat_id){
              try {
                   ps=conn.prepareStatement("select * from item_category where cat_parent=? order by cat_name");               
                   ps.setInt(1,cat_id);
                   rs=ps.executeQuery();
                   return rs;
              catch(Exception e) {
                   return null;
         public static ResultSet getItems(int cat_id){
              try {
                   ps=conn.prepareStatement("select * from item_info where cat_id=? order by title");               
                   ps.setInt(1,cat_id);
                   rs=ps.executeQuery();
                   return rs;
              catch(Exception e) {
                   return null;
         public static boolean insertOd(int order_id,String cust_id, String dt, String st, double amt,String pro)
              try{
                   ps=conn.prepareStatement("insert into cust_order values (?,?,?,?,?,?)");
                   ps.setInt(1,order_id);
                   ps.setString(2,cust_id);
                   ps.setString(3,dt);
                   ps.setString(4,st);
                   ps.setDouble(5,amt);
                   ps.setString(6,pro);
                   ps.executeUpdate();
                   return true;
                   catch(Exception e)
                        return false;
         public static boolean draft_det(int order_id,String bank_name,String draft_no,String draft_date,String branch,double amount)
              try{
                   ps=conn.prepareStatement("insert into draft_det values (?,?,?,?,?,?)");
                   ps.setInt(1,order_id);
                   ps.setString(2,bank_name);
                   ps.setString(3,draft_no);
                   ps.setString(4,draft_date);
                   ps.setString(5,branch);
                  ps.setDouble(6,amount);
                   ps.executeUpdate();
                   return true;
                   catch(Exception e)
                        return false;
         public static int getOrderId()
              try{
                   int id=0;
                   ps=conn.prepareStatement("select Max(order_id) from cust_order");
                   rs=ps.executeQuery();
                   while(rs.next()){
                        id= rs.getInt(1);
                   return id;
              catch(Exception e)
                   return 0;
    public static boolean credit_det(int order_id,String credit_no,String credit_type,String pin_no)
              try{
                   ps=conn.prepareStatement("insert into credit_det values (?,?,?,?)");
                   ps.setInt(1,order_id);
                   ps.setString(2,credit_no);
                   ps.setString(3,credit_type);
                   ps.setString(4,pin_no);
                   ps.executeUpdate();
                   return true;
                   catch(Exception e)
                        return false;
         public static boolean detailOrder(int order_id,int item_id,int item_number,double item_price)
              try{
                   ps=conn.prepareStatement("insert into order_det values (?,?,?,?)");
                   ps.setInt(1,order_id);
                   ps.setInt(2,item_id);
                   ps.setInt(3,item_number);
                   ps.setDouble(4,item_price);
                   ps.executeUpdate();
                   return true;
                   catch(Exception e)
                        return false;
         public static UserInfo getUserDet(String un) {
              try {
                   ps=conn.prepareStatement("select * from cust_info where cust_name=?");
                   ps.setString(1,un);
                   rs=ps.executeQuery();
                   UserInfo user=null;
                   while(rs.next()) {
                        String uname=rs.getString(1);
                        String pass=rs.getString(2);
                        String fname=rs.getString(3);
                        String lname=rs.getString(4);
                        String addr=rs.getString(5);
                        String city=rs.getString(6);
                        String state=rs.getString(7);
                        String country=rs.getString(8);
                        String contact=rs.getString(9);
                        String question=rs.getString(10);
                        String answer=rs.getString(11);
                        String email=rs.getString(12);
                        String mobile=rs.getString(13);
                        user=new UserInfo(0,fname,lname,addr,city,state,country,contact,question,answer,email,mobile,uname,pass);
                        return user;
              catch(Exception e) {
                   return null;
         public static boolean userInsert(String fname,String lname,String addr,String city,String state,String country,String contact,String question,String answer,String email,String mobile,String uname,String pass ){
              try{
                   ps=conn.prepareStatement("insert into cust_info  values (?,?,?,?,?,?,?,?,?,?,?,?,?)");
                   ps.setString(1,uname);
                   ps.setString(2,pass);
                   ps.setString(3,fname);
                   ps.setString(4,lname);
                   ps.setString(5,addr);
                   ps.setString(6,city);
                   ps.setString(7,state);
                   ps.setString(8,country);
                   ps.setString(9,contact);
                   ps.setString(10,question);
                   ps.setString(11,answer);
                   ps.setString(12,email);     
                   ps.setString(13,mobile);
                   ps.executeUpdate();     
                   return true;               
              catch(Exception e)
                   return false;
         public static boolean chackuname(String un) {
              try {
                   boolean b=false;
                   ps=conn.prepareStatement("select * from cust_info where cust_name=?");
                   ps.setString(1,un);
                   rs=ps.executeQuery();
                   while(rs.next()) {
                        b=true;
                   return b;               
              catch(Exception e) {
                   return false;
         public static boolean adminChk(String un,String pass){
         try{
              boolean b=false;
              ps=conn.prepareStatement("select * from admin where username=? and password=?");
                   ps.setString(1,un);
                   ps.setString(2,pass);
                   rs=ps.executeQuery();
                   while(rs.next())
                        b=true;
                   return b;
         catch(Exception e){
              return false;
         public static String getStatus(int cust_id)
              try{
                   String status=null;
                   ps=conn.prepareStatement("select order_status from cust_order where cust_id=?");
                   ps.setInt(1,cust_id);
                   rs=ps.executeQuery();
                   while(rs.next()){
                        status= rs.getString(1);
                   return status;
              catch(Exception e)
                   return null;
         public static boolean chkCatagory(String cat)
              boolean b=false;
              try{
                   ps=conn.prepareStatement("select * from item_category where cat_name=? ");
                   ps.setString(1,cat);
                   rs=ps.executeQuery();
                   while(rs.next())
                        b=true;
                   return b;     
              catch(Exception e)
                   return false;
         public static int getMaxCatId(){
              try{
                   int id=0;
                   ps=conn.prepareStatement("select MAX(cat_id) from item_category");
                   rs=ps.executeQuery();
                   while(rs.next())
                        id=rs.getInt(1);
                   return id;     
              catch(Exception e)
                   return -1;
         public static boolean catInsert(int catId, String cat, int par)
              boolean flag=false;
              try{
                        ps=conn.prepareStatement("insert into item_category values(?,?,?)");
                        ps.setInt(1,catId);
                        ps.setString(2,cat);
                        ps.setInt(3,par);
                        ps.executeUpdate();
                        flag=true;
                        return flag;
              catch(Exception e)
                   return false;

  • Need help writing Labview Program!!!!!

    I have a labview project that needs to be finished. I was not the original creator of the program and the guy who created no longer is involved with the project and I am left to finish it. Could you make the final adjustment so I can turn this into my professor and get the final grade. Thanks! Willing to pay! Negeotiable price!!!!!!!!

    Need help completing assignment! Could anyone assist me in this project!
    Attachments:
    dial tone detection.zip ‏1253 KB

  • Need help writing a script

    I am trying to convert my prcess from DTS to SSIS. I am running this report out of SAP and then using Monarch to put into the correct form, then I am using the DTS to put it into the database on the SQL server.  I am able to get all the other info to
    move out having so much trouble here to get the plant number. The issuse is that it is on top on the page and it will change when a new plant is needed.
    Thanks for any help
    I need help wrting a script that will put that 7010 into a cloumn nnamed plant number.

    To convert from DTS packages to SSIS you can just open the DTS package in a new SSIS project (depends on target SSIS version by using SSDT or BIDS).
    The rest is mechanics how the iteration with SAP is done and may be beyond the scope of this forum.
    Arthur
    MyBlog
    Twitter

Maybe you are looking for

  • Script Alert: can't find .js files even though they're in the folder that the program looked in to?

    I'm new to the whole After Effects community and I am currently using it for a project. I followed a tutorial by Mt. Mograph on youtube and I downloaded the script "Ease and Wizz". I have it as a panel and all, but every time I attempt to apply my de

  • ALV Tree Problem with Checkboxes

    Hello, i've got a problem. I have an ALV-Tree and die ALV-Detaillist of the tree are type checkbox. That's working correct. But i want to fill initial data in the checkboxes but the checkbox isnt set. i've done as followed:   CALL METHOD go_alv_tree-

  • How do i get my contacts from ipad to iphone?

    how do i get my contacts from ipad to iphone? the general directions don't work

  • Quite possibly the stupidest iTunes question ever!

    I almost never listened to iTunes until recently; I used it to manage content that I only listened to on my iPod. Now I find myself listening to iTunes a lot, seated in front of my computer. Here's my question: Why do some playlists play straight thr

  • Company code region

    Hi Friends, I need solution for the below problem. Company code region is an attribute of Company code. When executing a report company code region for a particular geographic place is displayed.for remaining places it is empty. For example company c