Can java achieve the same function as the following VB code?

'open a windows programme(simply an entry form), and focus the 1st textfield
Dim RetVal = Shell("C:\Program Files\Operations Center Client\OCC.EXE", vbNormalFocus)
'reading data from database
Data1.RecordSource = "tradingPartner"
Data1.Refresh
'dump data to the form
For i = 0 To 8
SendKeys (Data1.Recordset.Fields(i))
SendKeys ("{TAB}")
Next
SendKeys ("{ENTER}")
I can use the Runtime.getRuntime().exec("") to open the form, but how can i send values to the form? thx.

you need to go through a C bridge that forwardsthe
params from java to VB (JNI).I interpreted "form" to mean the GUI application.Is
that not what it means?
Yeah...
But one can create dummy VB functions to populatethe
form fields.
All those function do is take an argument and setthe
field value to that of the argument.
Those methods will be called from a DLL, which
receives the java values, convert them to, say,
strings, and than pass them to the field populator
methods>And that would be better than using java.awt.Robot
which insert system events into another application?
I understood that roiss wants to populate a VB form using values obtained from or through a java program.
Otherwise, how why use java if the form is a VB form and the values are obtained from or through VB?!

Similar Messages

  • How can I download the full source code for the Java 3D package

    how can I download the full source code for javax.media.j3d
    especially I need the Transform3D.java class.
    thanks a lot
    Meir

    thank you guys I'll try to do so, I suggest you to
    join me.From the one of the (ex-!)Java3D team:
    "I'm glad to see that Sun has decided to officially support an
    open source Java/OpenGL binding, JOGL. Perhaps they will
    eventually decide to make Java 3D open source. However, be
    careful what you wish for. The Java 3D source is huge and
    complex. There are native sections for Solaris, Windows/OpenGL,
    and Windows/Direct3D, plus common code. I don't know how you'd
    open source a build process that requires different pieces of
    the code be built on different machines running different
    operating systems."
    Sounds scary - I hope we're ready for it :)

  • Can I rewrite the following query without using Row_number() function ??!!

    Hello every one, can I rewrite the following query without using the 'ROW_NUMBER() OVER ' part.
    The query is supposed to pull out the records whose CODE is not NULL and has most
    recent date for UPDATE_DATE . The reason I wanted to do this is, When I embed this query
    in between many other queries along with JOINs, My oracle server is unable to execute. So, I thought
    its better to supplant 'ROW_NUMBER() OVER ' logic with something else and try it. .
    SELECT a.* FROM
    (SELECT b.*, ROW_NUMBER() OVER (PARTITION BY b.PIDM
    ORDER BY b.UPDATE_DATE DESC) AS Rno
    FROM
    SELECT *
    FROM SHYNCRO WHERE CODE IS NOT NULL
    )b
    )a
    WHERE a.Rno = 1

    Hi,
    You didn't write over 150 lines of code and then start testing it, did you?
    Don't.
    Take baby steps. Write as little as pssiblem test that. Debug and test again until you have something that does exactly what you want it to do.
    When you have somehting that works perfectly, take one baby step. Add a tiny amount of code, maybe 1 or 2 lines more, and test again.
    When you do get an error, or wrong results, you'll have a much better idea of where the problem is. also, you won't be building code on a flimsy foundation.
    If you need help, post the last working version and the new version with the error. Explain what you're trying to do in the new version.
    The error message indicates line 133. It looks like line 133 of your code is blank. Does your front end allow completely blank lines in the middle of a query? SQL*Plus doesn't by default; you have to say
    SET  SQLBLANKLINES  ONto have a completely blank line in SQL*Plus. (However, lines containing nothing but at commnet are always allowed.)
    You may have noticed that this site normally doesn't display multiple spaces in a row.
    Whenever you post formatted text (such as indented code) on this site, type these 6 characters:
    \(small letters only, inside curly brackets) before and after each section of formatted text, to preserve spacing.
    The 4 people who posted small code fragments for you to read all did this.  It would be so much easier for people to read your humongeous query if it were formatted.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • To achieve the following custom template

    Hi all,
    I am trying to achieve the following layout for my word report with substantial amount of accompanying images. Pardon me that my enquiry looks like a book. ;-]
    1.
    - I need a LANDSCAPE orientation with two vertical columns. The columns are of different width, LEFT column takes 3 quarter of page; RIGHT column 1 quarter of page. I wish for this setting to run through out the whole document. [I know how to do this.]
    - However, i only intend the LEFT/ 3 quarter column to carry the BODY TEXT, leaving the RIGHT/1 quarter column to carry accompanying IMAGES (they relate to body text next to them, and should MOVE with the body text). Read on and you will know why INLINE in INSPECTOR does not work.
    - This means, all my RIGHT column through out the doc is only to be filled with images ONLY IF required by the body text next to them. If there is NO accompanying IMAGE on a page, the RIGHT column is intended to be EMPTY.
    - To achieve the above, i tried [BREAK COLUMN]. If i understand correctly, it means after my body text fill up the LEFT column on each page, this setting help me to SKIP the NEXT column, which is always the right column. Correct me if i am wrong because in fact i dont quite get the DIFFERENCES of LAYOUT BREAK, SECTION BREAK, COLUMN BREAK etc.
    - But the complicacy came in when my right column is intended for images. The [column break] will push my image to the next column. Or sometimes, to my confusion, it jumble up the whole thing into a mess.
    2.
    - I then tried an ALTERNATIVE setting. Instead of the above setting, could the following alternative be easier: that i set the right MARGIN to be taking up 1 quarter of the page width, hence leaving the body text to occupy 3 quarter of page.
    - I then, drag drop image along the 1 quarter MARGIN? But aren't margin created to be EMPTY ZONE? I have tried dropping images in the margin area and it works, but i am afraid in the end teh whole doc will jumbled up? The images jumps to a random chaos because nothing is supposed to occupy MARGIN?
    - In all, i need the body text to flow continuously ONLY on the LEFT column of all pages. And inserted images on right column should move with body text. The above two solutions does not seem correct. And i skim thru the ready-made templates Mac offers, none of them seem to fit either.
    What is the best way to do this?
    _Y

    I think the second solution, with the graphics displayed in the margin, will work better. This way you don't have to keep track of column breaks. The graphics are not actually IN the margin, they are just displaying there. Every graphic is 'anchored' to some point in the text. If it is an 'in-line' graphic the graphic will move along with the anchor point just like a character of text. If it is a 'floating' graphic, it is supposed to keep its relative position on the page regardless of whether the text moves or not.
    If your graphics move or jump when you insert a graphic with the the column format, it is probably because you are inserting the column break BEFORE its anchor position. If you turn on "Show Invisibles" you can more easily track where your paragraphs and anchors are.
    BTW, the differences among the 'BREAKS' are these:
    Layout Break - starts a new SECTION on the same page. It is known in other applications as a Continuous Section Break
    Section Break - starts a new SECTION on a new page.
    Column Break - ends the current column and starts a new column.
    The difference between a new SECTION and a PAGE or COLUMN is that a Section can contain different headers, footers, columns and other layout options than the previous or subsequent sections. A new Page or Column uses the same layout settings as the current Page or Column.
    As for why your graphics jump around - I notice many complaints here about graphics moving about whether they are place in-line or as floating objects. I don't use them often enough to offer a solution, but someone else may.
    Good luck,
    Terry

  • Can u write the following query without using group by clause

    select sp.sid, p.pid, p.name from product p, supp_prod sp
    where sp.pid= p.pid and
    sp.sid = ( select sid from supp_prod group by sid
    having count(*) =(select count(*) from product));
    thru this, we retrieving all the products delivered by the supplier.
    Can you write the following query without using the group by clause

      select sp.sid, p.pid, p.name
        from product p, supp_prod sp
       where sp.pid= p.pid the above query will still retrieve all the products supplied by the supplier. sub-query is not necessary.
    maybe if you can post some sample data and output will help us understand what you want to achieve.

  • How can we create the following DOC?

    how can we create the following Documents?
    Two Enquiry one quotation.
    Two Quotation one Sales Order.
    Two Sales Order one Delivery.
    Two Delivery one Billing.

    Hi,
    You need to execute the below transaction:
    1) T.Code - VL11 : To create 2 different enquiry. To make a single Quotation for 2 enqury, use T.Code - VL21. Here once you enter the main screen, select drop down on Sales Document Type, the first option on topmest line & you will get an option --> Create with reference. Select the first enquiry & enter & repreat the sceond enquiry & enter. Now Both Enquiry will be a part of same Quotation.
    2) T.Code - VL21: To create 2 different Quotation. To make a single Quotation for 2 enqury, use T.Code - VL01. Here once you enter the main screen, select drop down on Sales Document Type, the first option on topmest line & you will get an option --> Create with reference. Select the first enquiry & enter & repreat the sceond enquiry & enter. Now Both Quotation will be a part of same Order.
    3) T.Code - VA01: To create 2 different Order. To make a single delivery, go to T.Code VL10A & select the 2 Order & create collective processing of Delivery to create a single Delivery.
    4) T.Code - VL01N: To create 2 different Delivery (other T.codes can also be used to create delivery such as VL04, VL10A, VL10C, etc).  To create single Billing for 2 Delivery, go to T.Code: VF01 & enter 2 Delivery numbers & press ENTER. This will merge 2 Delivery together.
    Note: It is assumed that the parameter are common & meet the requirement for combining various documents.
    Regards,
    Rajesh Banka
    Reward suitable points.

  • Can i set the policy in code not in a policy file

    normally starting rmi client with a policy file. and start the client with such JVM parameters: java.security.policy and java.rmi.codebase.
    But in jsp how can i specify these JVM parameters.Or can i make the policy in code not in
    a file.

    You can specifiy inline with code otherwise malicious code would use it the grant all permissions before it wrecks havoc on the system.
    When your Servlet engine starts (Tomcat, JBoss, depends on which you are using) there will either be an option to pass in additional policy file, or a policy file will exist inthe servlet engine directory path for you to edit and add your entries to.

  • Hi can someone explain what the following error code mean and how i can recifty to download a copy of ebook purchase Error getting License. License Server Communication Problem: E_ACT_NOT_READY

    Hi can any one help
    I keep getting the following error code when I try and down a ebook which I have purchase
    Error getting License. License Server Communication Problem:
    E_ACT_NOT_READY
    can someone advise me what this means and how I recifty the problem to enable me to read the ebook purchase?
    Thanks

    I am having this exact issue. I just downloaded a book and went to open it and got this exact problem.
    I purchased he book through indigo/kobo edition and paid for it and immediately went to open it and am getting the same error
    Error getting License. License Server Communication Problem only mine says  Bad Device key after.
    Not sure why someone has not answered this question yet...i am using windows 7 and this is how i always do it. Never had this problem before when purchasing a book.
    i hope someone answers this soon.

  • How can I get the XSLT source code?

    How can I get the XSLT source code?

    Actually, I want to parse customer reviews for academic purpose.
    I'm trying to follow the links in the customer reviews zone.
    For example:
    In the following page
    http://www.amazon.com/gp/product/customer-reviews/B000LU8A7E/sr=1-1/qid=1180473311/ref=cm_cr_dp_all_helpful/102-2890495-8864146?ie=UTF8&n=1065836&qid=1180473311&sr=1-1#customerReviews
    in the "customer reviews" section, there is a link "next" that gets the next 10 reviews.
    The thing is that I don't know how to imitate its action using java and actually, I'm not sure if it is possible to do that using software.
    I tried to look at the source code that I got using the previous java code I posted and I see that the next link always has the following href attributes "http://www.amazon.com/gp/product/customer-reviews/B000LU8A7E"
    I tried to see if there is any javascript that tells the page which 10 reviews to get but with no success.
    So if anyone knows how to imitate the next link action using software that will sure help me a lot.
    Thanks in advance

  • How can we remove the following zeros from quantity field ?

    Hi All.
    how can we remove the following zeros from quantity field while populating ALV by using FM REUSE_ALV_GRID_DISPLAY ?
    eg:getting output zqty = 2.000
    but i need           zqty = 2.
    help me to reslove this issue.
    Regards.
    jay

    Hi,
      While populating the field catlog do the following thing to   avoid zeros.
      wa_fieldcat-tabname = 'I_OUTPUT'.    " Curr
      wa_fieldcat-fieldname = 'FWAER'.
      wa_fieldcat-seltext_l = text-023.
      wa_fieldcat-no_zero = 'X'.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR  wa_fieldcat.
    Thanks,
    Khushbu.

  • How many times can you enter the wrong pin code on an iphone before it resets?

    How many times can you enter the wrong pin code on an iphone before it resets itself?

    Hey Robin.T,
    Thanks for the question. The following article provides the answer to your question:
    iOS: Forgotten passcode or device disabled after entering wrong passcode
    http://support.apple.com/kb/HT1212
    If you enter the wrong passcode six or more times, you'll see a message that says one of the following:
    iPhone is disabled
    iPad is disabled
    iPod touch is disabled
    You can also set your passcode lock to wipe the device after 10 unsuccessful attempts (Settings > General > Passcode Lock > Erase Data)
    Thanks,
    Matt M.

  • How can i find the value category code in CJVC

    Hi Gurus
    how can i find the value category code in CJVC and which tables its stored.can any one tell me.please please

    Read TPIK3 in an internal table, then search COEP-KSTAR in this table, with KSTAR between TPIK3-KSTRF and TPIK3-KSTRT, and other keys like Controlling Area and application/component (eg "PS" in project-system as in CJVC or "PM" in Maintenance as in IW33, multiple application use this table). You can also use a FM like PS_FIND_ACPOS_FOR_KSTAR.
    Regards,
    Raymond

  • How can I check to see if there is money left on an iTunes card if I can't read the scratch off code?

    How can I check to see if there is money left on an iTunes gift card if I can't read the scratch off code?

    Sorry, but other than trying to redeem the card there's no way to check whether it is still valid or was previously redeemed.
    Regards.

  • Can anyone tell me what the following error code means? 4MOT/2/40000004: BOOSTA-1235

    Can anyone tell me what the following error code means? 4MOT/2/40000004: BOOSTA-1235
    Fans are running permanantly and this is the error I get when running apple hardware test.

    SNS is a sensor error. The sensors read actual temperatures at several points inside the Mac chassis to decide when things are heating up, and which fan or fans speed up to improve cooling.
    Some of those sensrs are just a thermal-sensitive transistor mounted to a surface that conducts heat, and replacement does not run into big money. Disconnected wires are sometimes a possibility, especially if things were changed nearby, e.g., new heatsink.

  • How can i request the actual time code of digital video recorder, i am using RS232 interface for asking actual time code of digital video recording

    how can i request the actual time code of digital video recorder, i am using RS232 interface for asking actual time code of digital video recording

    If you have an RS-232 interface to the digital video recorder, it may be that you can send a command to the video recorder in order to get the time code sent back to your application - you would then read this as a string and then incorporate this data into your program.
    The best source of help will be any documentation you have relating to the serial (RS-232) interface with the digital video recorder. This documentation should have commands that you can send to the recorder and expected response strings that you should get back from the device. This task should be straightforward but can often be frustrating without documentation about the video recorder. This will not be something that you can "guess" - past experience in writing serial communication ap
    plications has shown that a good manual is your best friend.
    Failing this if you have any source code for example programs that have already been written to communicate with the recorder, you might be able to extract the relevant ASCII strings and use them within your application. This is true whether you are using LabVIEW or a text-based language.
    Jeremy

Maybe you are looking for

  • How to create a report based on the selection of a node of a tree

    Hello, I am new to Oracle Apex and I was trying to build a tree and also an interactive report based on the empno column of the emp table. I have created a tree based on emp table. Now I want to display records of the employee selected in the tree. H

  • Put query iresults n tables and columns

    hello , i have this query and should display but i need it to be in a cells like rows and columns . just like a ecxel spread sheet but only in html. here is the code. what do i have to add to make this happen? thanks in adv <cfquery name="GetCompanie

  • Reverse goods issue

    Hi all, I am not able to reverse good issue, through vl09 even after reversal of Invoice. the message is coming as no document found. regards, vandana arora

  • ACCOUNT FOR PAYPAL EXTRAS MASTERCARD

    I have had an extras mastercard for about four years but didn't use it since 2014 I just received a replacement card and can't find out where to access it online.  I have a personal and business paypal account and can't figure out why my card isn't l

  • Error Code 2STH/1/3: Track Pad during Hardware test

    I've been having problems with my Powerbook.....working along and then suddenly screen goes black and Powerbook goes completely dead. Have to do a hard restart to get it back up. So I ran the Apple Hardware test. I get this error...2STH/1/3: Track Pa