How to programmatically manipulate web pages, page elements, and dialogs?
Hi, I am trying to write a simple program that will:
1. Access a downloadable resource on a web page
2. Respond to a dialog box by:
a. Filling in a filename to save the resource to
b. Selecting the "Next" (or "Save" or "Finish" or whatever it's called) button to save the file
3. Return to 1 to get another resource
As it turns out, I can form the URL that immediately accesses the resource, so I don't have to surf through web pages. I can just immediately enter the URL I want. So therefore, I have two questions:
1. Given a URL, how do I programmatically (from a Windows Vista environment and a regular DSL connection) access a web page?
2. Once I've accessed the URL and a dialog pops up, how do I programmatically enter a filename and hit "Save"?
Obviously, I'm no ace programmer. I have spent a couple of hours trying to figure out how to do this and looking for answers, but Googling "java http" doesn't give me a narrow set of responses :) so I thought I'd ask here. I welcome someone taking me by the hand and showing me exactly how to do this, but if you can just point me to some resources that don't require twelve hours of research to find what I want, that would be great, too.
When accessing a file online, there will not always be a dialog box. This box is created by your web browser in response to a URL that points directly to a file, that the browser can't display. So my point is you can skip this step, and decide what you want to do in your program's code rather than being asked in a dialog box.
For accessing files online, check out URLConnection .
Similar Messages
-
How to programmatically copy a OneNote page from one section to another
How to programmatically copy a OneNote page from one section to another.
I don't find any interface in OneNote
2010 Developer Reference which will let me do this.
any help?
Regards,
Umar
OneNote 2010Hi Umarinam,
Thank you for posting in the MSDN Forum.
In the page OneNote 2010 Developer Reference, you can see an Application Interface which includes methods
help retrieve, manipulate, and update OneNote information and content.
The below are some basic samples
Retrieving Section Metadata in OneNote 2010
Programmatically Opening and Closing a Notebook in OneNote 2010
Hope it helps.
Best regards,
Quist Zhang [MSFT]
MSDN Community Support | Feedback to us
Develop and promote your apps in Windows Store
Please remember to mark the replies as answers if they help and unmark them if they provide no help. -
How to Customize the Web item " Text Elements"in WAD
Hi All,
Can any one let me know how to customize the web item TEXT ELEMENTS. When we place the web item Text element in the web template, it displays the query details and the info provider details.
I question is I do not want to list all the list that is displayed in the text elements. I want to see only part of the list....can any one whether this is possible or not..if possible how...?
Thanks in Advance,
Hashyes you need to specify the variable name
<object>
<param name="OWNER" value="SAP_BW"/>
<param name="CMD" value="GET_ITEM"/>
<param name="NAME" value="TEXTELEMENTS_1"/>
<param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_TEXT_ELEMENTS"/>
<param name="DATA_PROVIDER" value="DATAPROVIDER_1"/>
<param name="GENERATE_CAPTION" value="BORDER"/>
<param name="GENERATE_LINKS" value=""/>
<param name="SHOW_COMMON_ELEMENTS" value=""/>
<b> <param name="ELEMENT_TYPE_1" value="VARIABLE"/>
<param name="ELEMENT_NAME_1" value="0H_CCTR"/></b> ITEM: TEXTELEMENTS_1
</object>
Regards
Raja -
How to get the values of all elements and sub elements from following xml
how to get the values of all elements and sub elements from following xml...
<?xml version="1.0" encoding="UTF-8" ?>
<List_AML_Finacle xmlns="http://3i-infotech.com/Cust_AML_Finacle.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://3i-infotech.com/Cust_AML_Finacle.xsd List_AML_Finacle.xsd">
<TransactionID>TransactionID</TransactionID>
<Match>
<Src_Matched_Field>Src_Matched_Field</Src_Matched_Field>
<List_Matched_Field>
<FSFM_Matches>
<NUMBER>NUMBER</NUMBER>
<TERROR>TERROR</TERROR>
<TU>TU</TU>
<NAMEU>NAMEU</NAMEU>
<DESCRIPT>DESCRIPT</DESCRIPT>
<KODCR>KODCR</KODCR>
<KODCN>KODCN</KODCN>
<AMR>AMR</AMR>
<ADDRESS>ADDRESS</ADDRESS>
<SD>SD</SD>
<RG>RG</RG>
<ND>ND</ND>
<VD>VD</VD>
<GR>GR</GR>
<YR>YR</YR>
<MR>MR</MR>
<CB_DATE>CB_DATE</CB_DATE>
<CE_DATE>CE_DATE</CE_DATE>
<DIRECTOR>DIRECTOR</DIRECTOR>
<FOUNDER>FOUNDER</FOUNDER>
<TERRTYPE>TERRTYPE</TERRTYPE>
</FSFM_Matches>
<OfacMatchDetails>
<UID>UID</UID>
<TITLE>TITLE</TITLE>
<SDNTYPE>SDNTYPE</SDNTYPE>
<REMARKS>REMARKS</REMARKS>
<ID_UID>ID_UID</ID_UID>
<IDTYPE>IDTYPE</IDTYPE>
<IDNUMBER>IDNUMBER</IDNUMBER>
<IDCOUNTRY>IDCOUNTRY</IDCOUNTRY>
<ISSUEDATE>ISSUEDATE</ISSUEDATE>
<EXPIRATIONDATE>EXPIRATIONDATE</EXPIRATIONDATE>
<ADDRESS1>ADDRESS1</ADDRESS1>
<ADDRESS2>ADDRESS2</ADDRESS2>
<ADDRESS3>ADDRESS3</ADDRESS3>
<CITY>CITY</CITY>
<STATEORPROVINCE>STATEORPROVINCE</STATEORPROVINCE>
<POSTALCODE>POSTALCODE</POSTALCODE>
<COUNTRY>COUNTRY</COUNTRY>
</OfacMatchDetails>
</List_Matched_Field>
</Match>
</List_AML_Finacle>avoid multi post
http://forum.java.sun.com/thread.jspa?threadID=5249519 -
How do i uninstall new software for Elements and be able to reinstall on external hard drive .Message on Wizard say I can not reinstall once I uninsall. I need to remove it from my PC. There is not enough disc space and it is crashing.
It's really not clear what you are trying to say. You need to explain better and provide more info.
Mylenium -
How large can a LabVIEW Queue in elements and bytes?
How large can a LabVIEW Queue in elements and bytes?
rocke72 wrote:
How large can a LabVIEW Queue in elements and bytes?
In
elements it is likely something like 2^31. In bytes it is most probably
around the same number or better, depending how exactly the different
queue elements are stored. I think they are stored as independent
pointers so it would be theoretically better than those 2^31. In
practice however starting to allocated so much memory in LabVIEW will
always cause problems on nowadays computers. Without 64 bit CPU and OS
going above 2 GB of memory per application is very hard and as far as I
know not supported by LabVIEW.
Also allocating many chunks of memory (like a few million queue
elements holding strings) will definitely slow down your system tremendously eventhough
it will work but the OS memory manager will be really stress tested
then.
Rolf Kalbermatter
Message Edited by rolfk on 06-09-2006 12:24 AM
Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions -
How to copy a web document on screen and paste it to pages application
how do I copy a web document on screen and paste it to pages application?
Generally all you should have to do is select what you want to copy (and copy it) and paste it into Pages.
-
How to delete help button in the wizard and dialogs.
Hello,
I am trying to delete the Help button in the wizard and dialogs provided by bibeans and having problems. Can someone give me an advise regarding the following three issues please? Thank you.
bibeans:bibeans903a
JDeveloper:JDeveloper903
1)Deleting the Help Button from the Print Dialog.
I'm using "oracle.dss.dataView.gui.PrintDialog" for the Print Dialog and this class has method to delete the Help button(setHelpEnabled(Boolean)).
But, the Help button is always displayed even when I set false for this method like below.
PrintDialog.setHelpEnabled(false);
2) Deleting the Help button from Open Dialog and BI Explorer.
I am using "PersistenceObjectChooser" class for Open Dialog and "Explorer" class for BI Explorer. But, these classes does not have a method to delete the Help button like the PringDialog class has. How can I delete the Help button for these dialogs?
3) Deleting the Help button from Calculation Builder.
I am using "CalcBuilderStepStorage" class to build a calculation and trying to delete the Help button like this.
((DefultBuilderDialog)calcBuilderStepStorage.getContainer()).getWizard().setHelpAvailable(false);
But, again the Help button will be displayedhi,
Use this code..
REPORT Z_TEST999 .
DATA itab TYPE TABLE OF sy-ucomm.
PARAMETERS test(10) TYPE c.
AT SELECTION-SCREEN OUTPUT.
APPEND: 'E' TO itab.
CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'
EXPORTING
p_status = sy-pfkey
TABLES
p_exclude = itab.
Regards,
Sailaja. -
How to import a web service into labview and make the assembly strong named signed?
I have used the web services tool to import my .net project files. I am then putting them into clearcase. In order for my dll's to work on a network im getting the error that they need to strong named signed. Is there anyway of strong name signing them with in the web services tool, or modifying the dll's after they've been created? Thanks for any help!
dbell0971,
I appreciate your willilngness to help on this issue. However, it doesn't seem like we are on the same page here.
When you import a webservice it creates an assembly. That assembly is .NET. In general you cannot run an assembly on a shared drive unless it is "trusted". You can make the assembly trusted by adding some classes and properties to it (i.e. strong signing it)- http://msdn.microsoft.com/en-us/library/xc31ft41.aspx
However, since WE are not creating the assembly, LabVIEW is, then we don't have the source code so we can't just strong sign it.
The question is simple- Can the Import Web Service Utility strong sign the assembly it creates?
Thanks,
jigg
CTA, CLA
teststandhelp.com
~Will work for kudos and/or BBQ~ -
How to display query variable in text element and format the text element
Hi All,
I want to display the value of the value of variable against fiscper3 and the value of the variable against 0fiscyear in the web application template from the query in the text element in the web template in BI 7 Web application designer.
Also, in the web application designer I need to format the text element in the web application designer to set the text element to center the display change the size and make it bold. I am bit lost I cannot find these properties in the web application designer against the text element.
Appreciate if you could kindly help.
Thanks
KarenHi
hope below tags would help you
Re: Search by text on a variable
Re: Need to display text part of TEXT variable in query designer
regards
nag -
How do I backup web browser prefs, bookmarks, and cookies?
I've got the hang of backing up files to an external hard drive. Not too complicated.
This weekend I'm installing a new hard drive so I've got to rebuild my desktop from scratch and re-import all my files from my external drive.
I use Firefox and I'm loaded up with bookmarks, preferences, and cookies for all kinds of sites I visit like Amazon.
Can all this be backed up just like files and folders? How do I backup bookmarks, preferences? And can cookies even BE backed up? Or do I have to re-enter passwords and such to all these sites I visit and start from scratch?Hi, John. I have no experience using SuperDuper to make anything but a bootable clone, so I can't advise you on the ins and outs of using sparseimages. The one thing I would caution you about is that a sparseimage combines everything that's included in it into a single file, and if that file somehow gets corrupted and won't open, the contents may all be lost.
The great advantage of a regular clone over any other backup method, even when you aren't going to clone it back to your internal drive, is that every file in the clone is exactly where it was on the original: you don't have to keep track of where to copy each file back to. Just drag-copy it from wherever it is on the clone to exactly the same place on the reconstructed-from-scratch internal drive. But in the four years I've been using OS X, I haven't tried the kind of manual, piece-by piece restoration of essential data from a backup that you're contemplating, and I don't know what obstacles you may run into. My guess is that incorrect permissions will figure largely in whatever trouble you encounter, but permissions are still a dark mystery to me: I'll be no help to anyone with a permissions problem. -
I want to have this function: copy image from somewhere, and paste in an area in Flex app, can I realize that?
which element to support? canvas?
which class can implement this?
thanks!With System.setClipboard("Text this in clipBoard"); this we can use for Text, but I am not sure for setting Images in ClipBoard or no.
You can refer this
http://www.flexets.com/show-image-from-clipboard -
Just wondering if someone know's how to center your web site
pages using CSS if thats possible, if not what other way?Please post this on the General discussion forum, where it
will get more
appropriate visibility.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"evanescence86" <[email protected]> wrote in
message
news:evdls9$6hu$[email protected]..
> Just wondering if someone know's how to center your web
site pages using
> CSS if thats possible, if not what other way? -
How to programmatically add af:setPropertyListener to CommandImageLink
Hi All,
My Requirement: programmatically add af:setPropertyListener to CommandButton
I referred this post how to programmatically add af:setPropertyListener to CommandButton and followed the following code.
Code:
// create a value expression
ValueExpression vx =
elFactory.createValueExpression(elContext, "#{pageFlowScope.clockNo}",
String.class);
// set a default value if desired
vx.setValue(elContext, clockNo);
SetPropertyListener spl =
new SetPropertyListener(ActionEvent.class.getName());
spl.setFrom(clockNo);
spl.setValueExpression("to", vx);
// add the listener to the button
newOpButton.addActionListener(spl);
My Code:
<af:commandImageLink id="editInsuraceDetLink"
icon="/resources/images/Edit.jpg"
iconPosition="trailing"
rendered="#{not row.deleted}"
action="addEndorsement"
useWindow="true"
inlineStyle="vertical-align:bottom;"
partialSubmit="true"
shortDesc="Edit"
*actionListener="#{pageFlowScope.GetEndorsementTypeListener.execute}"*
returnListener="#{GetEndorsementDetailsListener.execute}"
windowEmbedStyle="window"
windowModalityType="applicationModal"
windowHeight="650" windowWidth="740">
</af:commandImageLink>
Action Listener - .GetEndorsementTypeListener.execute code:
RichCommandImageLink a_button = (RichCommandImageLink) a_component.findComponent("editInsuraceDetLink");
FacesContext fctx = FacesContext.getCurrentInstance();
Application application = fctx.getApplication();
ELContext elContext = fctx.getELContext();
ExpressionFactory elFactory = application.getExpressionFactory();
ValueExpression vx = elFactory.createValueExpression(elContext, "#{pageFlowScope.controlFlowName}", String.class);
// set a default value if desired
//vx.setValue(elContext, clockNo);
SetPropertyListener spl = new SetPropertyListener(ActionEvent.class.getName());
spl.setFrom(a_target.getEndorsementFor().toString());
spl.setValueExpression("to", vx);
System.out.println("From= "+spl.getFrom());
System.out.println("To= "+spl.getValueExpression("to"));
// add the listener to the button
a_button.addActionListener(spl);
I got the following output.
From= Nominee / Appointee
To= ValueExpression[#{pageFlowScope.controlFlowName}]
Now my Problem is: the pageFlowScope variable ControlFlowName is not set.
And also I got a *link*: https://blogs.oracle.com/vijaymohan/entry/usage_of_setpropertylistener_and_setactionlistener
Whats wrong with my code. Is my problem related with above *link*.
Please suggest me how to add SetPropertyListener programmatically.
-Thanks
MohanrajFrank,
This works:
// create a value expression
ValueExpression vx =
elFactory.createValueExpression(elContext, "#{pageFlowScope.clockNo}",
String.class);
// set a default value if desired
vx.setValue(elContext, clockNo);
SetPropertyListener spl =
new SetPropertyListener(ActionEvent.class.getName());
spl.setFrom(clockNo);
spl.setValueExpression("to", vx);
// add the listener to the button
newOpButton.addActionListener(spl);But, I am thinking you would have known about it before I posted it. I don't really know how it works, but it does.
Can you help me reconcile between this, and what you said. Because what you said makes sense too. -
Integrate NW 7 BI UI elements and VC UI elements by service Script Error
Hi Experts,
I am refering to
How to integrate NW 7 BI UI elements and VC UI elements by service to apply filter in Heir
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50b65a5d-f397-2910-a78a-f5544f21c33b
(Pg:7,Point 8) i am copied the below script as mentioned but i am getting the below error when i try to save the webtemplete...
Could you please correct the script or advise me what wrong with the script
Error: Internal Error: Message format returned from java invalid (An error occurred when deserializing in the simple).
Script:
Page-85.....9.1 in the appendix
Please advise me how to proceed
Thanks in advancePlease provide me some inputs
Thanks
Maybe you are looking for
-
My phone won't let me use imessage in a group chat
I have an iPhone 5 and after updating to iOS 8 my group chat only is not letting me use imessage it is only letting me use text message. I've gone to settings> messages > send& receive and I see that my apple ID is in use and imessage is turned on bu
-
Error in Process u2013 PO cannot be reduced to the value already invoiced.
Hi, i need some idea abt this. the requirement is provide an error message when ordered qty and price is lower than invoiced qty and price and PO cannot be changed. A New RFC is required to fetch the values of Invoiced Quantity and Invoiced Amount ta
-
Help. My junk mail filter is not working in Yosemite.
AAny suggestions for getting junk mail filters to work?
-
Everytime I want to send a file to the trash, I have to either perform some kind of key combination/shortcut or use the trackpad/mouse, right click and select "move to trash", or drag the file(s) to the trash! This is absolutely ridiculous. Why can
-
How do you set up a hot spot?
Everytime I try to set it up on my iPhone 4s, it leads me to a webpage link to verizon but never leads me to where i can set it up!