How to click a button using activex webbrowser??
Hello
i am trying to click on the"generate Ephemeris" button using the activex webbrowser container.
see the webpage
http://ssd.jpl.nasa.gov/horizons.cgi
Using this code, it just click on the seach button. I tried to change the index number but still clicking the "search button".
What i am doing wrong???
Attachments:
Web Page Login.vi 16 KB
Thanks smercurio_fc
I tried before using the "name" field rather than the "index" field extracted from the html web page code with negative results. I used the name "go" and also "Generate Ephemeris" or "submit".
<form method="post" action="http://ssd.jpl.nasa.gov/horizons.cgi#results" enctype="multipart/form-data"><input type="submit" name="go" value="Generate Ephemeris" /></form>
I AM STUCK!!!!!
In the first frame of the sequence, i load the page, the second has a time delay of 5s
Similar Messages
-
How to add control buttons using Java thorugh serial port?
Hi everyone,
I'm new to this forum.
I have some questions on Java and serial port.
I want to write a Java program to control my robot, through serial port. For example, when I click "Forward", the robot will go forward, and so on.
Now I already have the buttons, so next I would like to ask how to interface the buttons with the serial port.
I already have all the javax.comm things installed.
below is the code for my buttons:
import java.awt.*;
public class ControlButtons extends java.applet.Applet
GridLayout myLayout = new GridLayout(3, 3);
Button button1 = new Button(" ");
Button buttonForward = new Button("Forward");
Button button2 = new Button(" ");
Button buttonLeft = new Button("Left");
Button buttonStop = new Button("Stop");
Button buttonRight = new Button("Right");
Button button3 = new Button(" ");
Button buttonReverse = new Button("Reverse");
Button button4 = new Button(" ");
public void init()
setLayout(myLayout);
add(button1);
button1.setVisible(false);
add(buttonForward);
add(button2);
button2.setVisible(false);
add(buttonLeft);
add(buttonStop);
add(buttonRight);
add(button3);
button3.setVisible(false);
add(buttonReverse);
add(button4);
button4.setVisible(false);
}Now I would like to ask for direction on how to add in the code to make it work with serial port.
ThanksThe plan is, I have a robot device connected to the serial port.We don't know anything about that device. We don't know how to control it. We don't know what you have to write to the device to make it do anything. Only you know what.
For example, when I click "Forward", the robot will go forward, and so on.So what do you have to send to make it do that? and same for the other buttons.
Next, you need to work out from the javax.comm API how to open the serial port and send data to it. This is a standard exercise in learning a new API. You must be able to do this. Again and again.
But the program is useless. The button can be clicked, but didn't do anything.Because (a) they have no ActionListeners and (b) there is no code to send anything to the serial port.
You have to write all that. So you also have to look up ActionListener in the Java API and how to attach it to a button. You can do that. We all do that kind of thing every day.
So next I would like to ask how to interface the buttons with the serial port.You've been asking nothing else since you started, but you've also only done enough investigation of your own to create the buttons. That's only the start.
The problem is what method and command should I use to make those buttons actually functioning.See above. You've been told part of it several times. The rest only you can answer, because it's your robot. -
How to add ALV button using OO in module pool program using ALV grid
Hello Gurus!!!
Want some tips related how to add button using ALV Grid(OO).
I want to display the button for search, sort ....
Please suggest the step -by-step procedure for implementation of these button.
I am designing the code for transaction FB03. Header data has been displayed but want to display the line items.
Kindly suggest your answers.
Thanks,
SachinHi,
CLASS SELSCR_APPLICATION DEFINITION DEFERRED.
CLASS SELSCR_APPLICATION DEFINITION.
PUBLIC SECTION.
METHODS:
HANDLE_TOOLBAR
FOR EVENT TOOLBAR OF CL_GUI_ALV_GRID
IMPORTING E_OBJECT E_INTERACTIVE,
HANDLE_USER_COMMAND
FOR EVENT USER_COMMAND OF CL_GUI_ALV_GRID
IMPORTING E_UCOMM.
ENDCLASS. "SELSCR_APPLICATION DEFINITION
CLASS SELSCR_APPLICATION IMPLEMENTATION.
METHOD HANDLE_TOOLBAR.
DATA: LS_TOOLBAR TYPE STB_BUTTON.
append SAVE icon
CLEAR LS_TOOLBAR.
MOVE 'SAVE' TO LS_TOOLBAR-FUNCTION.
MOVE ICON_SYSTEM_SAVE TO LS_TOOLBAR-ICON.
MOVE 'Save' TO LS_TOOLBAR-QUICKINFO.
MOVE ' ' TO LS_TOOLBAR-DISABLED.
APPEND LS_TOOLBAR TO E_OBJECT->MT_TOOLBAR.
CLEAR LS_TOOLBAR.
ENDMETHOD. "handle_toolbar
METHOD HANDLE_USER_COMMAND.
CASE E_UCOMM.
WHEN 'SAVE'.
PERFORM UPDATE_FIELDS.
ENDCASE.
ENDMETHOD.
ENDCLASS. "SELSCR_APPLICATION IMPLEMENTATION
these lines should be after calling method SET_TABLE_FOR_FIRST_DISPLAY
SET HANDLER G_APPLICATION1->HANDLE_TOOLBAR FOR GRID1.
CALL METHOD grid1->set_toolbar_interactive.
rgds,
bharat. -
How to Disable a Button Using JavaScript
Hi,
I want to disable a button based on a condition. I am using a template based button (button Alternate 3). I am using Theme 3. I have created buttons of type item but when I view the source there is no button name populated in the html. My javascript is not disabling the button.
Please advice.
Thanks
sukarnaHi,
You can't disable an A tag (FireFox, for example, will still let you click the "link").
What you could do would be to create a second button that doesn't work and only show one of these at a time.
I have done that here: [http://apex.oracle.com/pls/otn/f?p=35917:30]
The Button has been based on a custom Button Template. The definition for this is:
<table class="t10Button" cellspacing="0" cellpadding="0" border="0" summary="" id="#BUTTON_ATTRIBUTES#">
<tr>
<td class="t10L"><a href="#LINK#"><img src="#IMAGE_PREFIX#themes/theme_10/button_left.gif" alt="" width="4" height="24" /></a></td>
<td class="t10C"><a href="#LINK#">#LABEL#</a></td>
<td class="t10R"><a href="#LINK#"><img src="#IMAGE_PREFIX#themes/theme_10/button_right.gif" width="4" height="24" alt="" /></a></td>
</tr>
</table>
<table class="t10Button" cellspacing="0" cellpadding="0" border="0" summary="" id="#BUTTON_ATTRIBUTES#_DISABLED" style="display:none">
<tr>
<td class="t10L"><img src="#IMAGE_PREFIX#themes/theme_10/button_left.gif" alt="" width="4" height="24" /></td>
<td class="t10C" style="padding:1px 4px;">#LABEL#</td>
<td class="t10R"><img src="#IMAGE_PREFIX#themes/theme_10/button_right.gif" width="4" height="24" alt="" /></td>
</tr>
</table>This actually creates two buttons - the first one, which actually has the link, is visible to start with. The second one, which has no link at all, starts off as invisible.
Both buttons use the #BUTTON_ATTRIBUTES# setting to get the button name into the ID - though the second button adds "_DISABLED" to this so that it has a unique, but known, ID
Then it is just a case of calling a function to show one button and hide the other or vice versa:
<script type="text/javascript">
function disableButton()
document.getElementById('P30_TEST_BUTTON').style.display = "none";
document.getElementById('P30_TEST_BUTTON_DISABLED').style.display = "block";
function enableButton()
document.getElementById('P30_TEST_BUTTON').style.display = "block";
document.getElementById('P30_TEST_BUTTON_DISABLED').style.display = "none";
</script>Another possibility is to add the #BUTTON_ATTRIBUTES# to the TABLE tag instead of the A tag in a new button template (based on a copy of the normal Button template). Then, the ID value would be applied to entire "button". You can then make this invisible using:
$x('BUTTON_ID').style.visibility = 'hidden';The button will be removed from the page as far as the user is concerned, so they can not click the link.
Andy -
Calling URL when click on buttons using web dynpro - ABAP
Hi All,
I am new to web dynpro application development and i am facing issue when i try to test my application.
simple require when i click on button i should direct the to one of url say 'http://www.google.co.in/' my application is activate with no error but when i test the application i am getting below error , can someone please provide me the solution or way out.
The URL http://ides47:8062/sap/bc/webdynpro/sap/zwa_calling_url/ was not called due to an error.
Note
The following error text was processed in the system N6Q : Access via 'NULL' object reference not possible.
The error occurred on the application server IDES47_N6Q_62 and in the work process 0 .
The termination type was: RABAX_STATE
The ABAP call stack was:
Method: IF_WDR_CONTEXT_MENU_HANDLER~CONTEXT_MENU_CALLED of program CL_WDR_INTERNAL_WINDOW_ADAPTERCP
Method: IF_WDR_CONTEXT_MENU_HANDLER~CONTEXT_MENU_CALLED of program CL_WDR_INTERNAL_WINDOW_ADAPTERCP
Method: IF_WDR_ADAPTER_EVENT_HANDLER~HANDLE_EVENT of program CL_WDR_CONTEXT_MENU_HANDLER===CP
Method: IF_WDR_CLIENT~GET_CLIENT_UPDATES of program CL_WDR_CLIENT_SSR=============CP
Method: EXECUTE of program CL_WDR_MAIN_TASK==============CP
Method: IF_HTTP_EXTENSION~HANDLE_REQUEST of program CL_WDR_MAIN_TASK==============CP
Method: EXECUTE_REQUEST_FROM_MEMORY of program CL_HTTP_SERVER================CP
Function: HTTP_DISPATCH_REQUEST of program SAPLHTTP_RUNTIME
Module: %_HTTP_START of program SAPMHTTP
HTTP 500 - Internal Server Error
Thanks,
ParabHi ,
It seesms something you are missing. It would be easy for us if you could paste your code which you have written in the Action of Button.
Sample code for your reference :
METHOD onactionget_url .
data lo_window_manager type ref to if_wd_window_manager.
data lo_api_component type ref to if_wd_component.
data lo_window type ref to if_wd_window.
lo_api_component = wd_comp_controller->wd_get_api( ).
lo_window_manager = lo_api_component->get_window_manager( ).
CALL METHOD lo_window_manager->CREATE_EXTERNAL_WINDOW
EXPORTING
URL = 'http://www.google.co.in/'
MODAL = ABAP_FALSE
HAS_MENUBAR = ABAP_TRUE
IS_RESIZABLE = ABAP_TRUE
HAS_SCROLLBARS = ABAP_TRUE
HAS_STATUSBAR = ABAP_TRUE
HAS_TOOLBAR = ABAP_TRUE
HAS_LOCATION = ABAP_TRUE
RECEIVING
WINDOW = lo_window.lo_window->open( ).
ENDMETHOD. -
How to click several buttons at once on Popup Message
hello
I have been creating 5boutons on Popup Message [ "Can1", "Can2" .....] and that we can click once to execute the programm eg Can1Sequence or Can2Sequence.
I 'like to know if it is possible to click on two buttons at a time that is to say can click the same button twice or clicking two different buttons and can execute both programs in parallel.Dennis_Knutson a écrit :
Why aren't you using either the batch or parallel model? The gui for either allows you start one or more threads. There are some examples that come with TestStand. There is even one called OverrideSerialNumForBatchModel where the PreBatch callback is used. This can be modified to pop up your own dialog.
how was that during the execution of the test we have the opportunity to press two buttons below there is a picture. For 5 buttons I have used Popup Message at this time and can not be as pressing a button (so when I press a button the image disappears below and choose Test to execute).
at this time I ask myself if this is possible with Message Popup.
if possible I'd like as after the second stage with two "Sequence Call" to call the respective functions (that is to say if it was based on CH1 and CanX, then Can1Sequence functions and Can2Sequence be delivered). I will like to use Parallel execution.
"OverrideSerialNumForBatchModel" is difficult for me, because I do not know if it will be possible with what I have just described, and I do not understand how its function
Attachments:
Select Can.PNG 11 KB -
LAUNCHING URL BY CLICKING ON BUTTON(USING TRANSACTION LAUNCHER) IN CRM 2007
Hi,
I am working on the object which requires configuring transaction launcher so that when button is clicked,URL is open. This development need to be implemented in CRM 2007.
Kindly suggest.We are working in a sandbox environment on CRM 2007 and trying to launch a transaction in an ECC 6.0 system. We get a login box into the ECC server which executes fine but after a few seconds we are returned back to the CRM server without displaying the transaction. All authorizations are correct but it seems that the container is not being populated with the requested transaction. Has anyone else seen the same behavior? We are about to put in a note to see if we can get assistance. We have implemented latest Support Packs and Enhancement Pack 3 was recently installed in the ECC environment. We have implemented all the appropriate notes (1029777) to make sure that we are using the recommend functionality.
-
How to display addtocart button using Liquid
I'm trying to output a custom layout of a product using Liquid, but can't figure out how to display the add to cart button as it's not included in the JSON. Liquid markup is all new to me so forgive me if I'm missing something obvious. Here is what I have for the layout but need an addtocart button.
{module_product template="" collection="Classes" render="collection" catalogId="277528" productId="9231800"}
<h1>{{Classes.title}}</h1>
{{Classes.description}}
<h3>Cost</h3>
<p>{{Classes.saleprice}} + {{Classes.taxCode}} {{Classes.custom1}}</p>Ahh, Your rendering a product on just a page as a collection. May I ask why your trying to do that? Why are you not using the product eCommerce layouts.
Doing what your doing you will only ever display information. You will never be able to do grouping, attributes or anything like that because they are more then just data output, they have functionality, BC script features and more to run off.
Unless you 100% know how and you had all the info available (which you dont yet) to completely replicate every BC script feature etc - You will not be able to do what your doing.
Liquid runs in layouts, just use product layouts and do things in there. I not seen on that page any reason why you would not be. -
How to click a button that is within another vi
Hi All
I am stuck with a problem
I have two vi's. A MainVI and a SubVI. The SubVi is located within the MainVI. The Sub VI is like a continuous loop and can be stopped only by pressing a STOP button on the SUBVI front panel.
I need to control this STOP button from the front panel of the MainVI. But the problem is that, until the SubVI executes completely, no changes made on the MainVi will be read.
The following methods have failed
Tried to pull the STOP button from the SubVI as a terminal.
Using global variables.
Is there anything like reference variables that can achieve this task.
Any help will be much appreciated.
Spoiler (Highlight to read)
Solved!
Go to Solution.agree'd with ben...
Attachments:
main.vi 6 KB
low level(SubVI).vi 6 KB -
Well, the new firefox is kindda coll... but the prob is, i cant press enter at the web browser... but the older version of firefox can..
That indicates that you are using an add-on that is not compatible with Firefox 4. For details of how to troubleshoot this to find out what one is causing the problem see https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes
-
How to disable a button using Java Script in Apex
Hi All,
I was trying to disable a button when the value of a select list item in the same page is equal to zero. Following are the steps which I did.
1) Created a new button template as <table class="t9StandardButton" id="#BUTTON_ID#" cellspacing="0" cellpadding="0" border="0" summary="">
2) Changed the existing button template to the newly created button template.
3) Added onchange="javascript:fdisplay(this);" to form element value of select list
4) Added the following java script in the page header
<script type="text/javascript">
function fdisplay(some) {
if (some.value==0){
html_GetElement ('#BUTTON_ID#').disabled = true;
else
html_GetElement ('#BUTTON_ID#').disabled = false;
</script>
But the script doesn't work. Is there anything I am missing here. Please advice.
Thanks,
VikasVikas:
In the 'Button Attributes' field of the button enter 'id='thisButton'.
Modify the button template to include the substitution string #BUTTON_ATTRIBUTES# . This should be put in the anchor tag in the template defintion.
Modify your Javascript to reference the above id as
html_GetElement ('thisButton').disabled = true;
....Varad -
How to click a button through codings...
I want to know whether there is a method to click jButton through a command, so that the code within the actionPerformed method gets executed...
like in VB "Button_1.click()"
Thank you very much!!!
Edited by: Madushan.UoM on Mar 29, 2009 10:14 AMIn future (not this time), Swing related questions should be posted in the [Swing forum|http://forums.sun.com/forum.jspa?forumID=57]
db -
How to build a button on click of which opens a list below it
Hi,
I have a requirement wherein onclick of button I want to open/close list/popup (which is displayed below button, just like in select list) and can select any item from list to do some action.
It is required urgent. Can anyone guide me please?
Thanks!This is the wrong place for urgent requests.
Just like select list? Why not select list?
What version are you? If >= 4.x, you can hide a region on entry, then show/refresh region on click of button using dynamic action. -
How to click a HTML page button from Java code?
Know the HTML page name and the button id in this page, how to click the button automaticly in java code(Like in awt or swing)?
ukkus wrote:
Hi,
Thank for the quick reply,
It will be very helpful if you can tell me how can we do this, I am not able to get how to do the same, with the link that you have provided.You haven't even had time to read it yet.
>
Actually main scenario is:
I have to RUN a JSP report which will call this script. That JSP report and script is in UNIX server. Can you please explain how to perform this task.Running this from a JSP is an even worse programming practice than running it from a standalone application. -
I am trying to use activex with labview to copy a specific worksheet from a multi-sheet excel file to another spreadsheet file. How can I do this? Any example vi? All my example files are about making a copy within the same file.
YinYin,
You can use the VI from the following web site
Writing Rows to Excel 97 and Excel 2000 Using ActiveX
The VI allows you to write to a specific worksheet. You can use some of the SubVIs provided to first get a reference to the worksheet in the first workbook, for example SelectSheet and OpenSheet VIs.
Or you can look into LabVIEW shipping examples on Excel, Write Table to XL VI, which also allows you to open specific Worksheet.
Some good examples on how to read from Excel using Activex are located on these web sites:
Reading Values from Microsoft Excel 97, Excel 2000, or Excel XP Worksheets
Write and Read to an Excel 2000 Spreadsheet via ActiveX
Zvezdana S.
National Instruments
Maybe you are looking for
-
"212 - Rejeicao: Data de emissao NF-e posterior a data de recebimento"
Bom dia, Estou com o seguinte cenário. Usuário está tentando emitir nota e está ocorrendo o erro "212 - Rejeição: Data de emissão NF-e posterior a data de recebimento". Usuário está em Porto Velho - Rondônia que é uma hora a menos em relação a Brasíl
-
Our company recently moved to Office 365 which mean our on premise exchange server went away as well with the move. I am trying to configure my new sql server (OS-Windows Server 2012 R2, DBMS- SQL 2014 Std Edtion). After some searching I found this
-
How to connect my stack to my wireless access router(with hard connection ports)
Ok, here is the story. I have my cisco stack of routers and switches in my living room and my fiancee is getting on my case to move it. I can not go downstairs since she keeps the temp in the house at 58 degrees upstairs so I want a way to connect my
-
My project file won't open in After Effects CC. Tries to, but just freezes.
Everytime I try to open my Project File in After Effects CC, it tries to open it, but then freezes. Really frustrating and this project is for a job that I am doing. Put in a lot of work to start over again. Please Help!
-
File to Mail with content as excel attachment
Hi there, Can somebody please guide me in achieving this goal. I have a requirement in which I have to send the email content as an excel attachment which is very new to me. Requirement File.............XI............Mail Sender File: xyz.xml Mapped