Post Data to HTML View
Is is possible to define form inputs to be posted to the website specified by the 'url' input port? I am trying to integrate with a web-based application that required information to be posted. Thanks!
Hi,
It all the depends on the application.
Normally a submitted form would send a HTTP POST requeste which means that the results are not sent as part of the query string. But, alot of applications do not separate between HTTP POST and HTTP GET, therefore you could first try to include each field in the form on the querystring
(http://<host>/page?username=%username%&password=%password%)
Note that this will be sent in clear text unless you use https.
If it doesn't support you have to first do a http get request with username password to a page locally on your portal which sets up the form for the target site based on the http get parameters, and then automatically submits it using javascript.
Cheers
Dagfinn
Similar Messages
-
How do I post data in HTML fields
Hi.
I need to log onto a web server from LabVIEW 7.1. I have this working in VB, but I don't know how to use the Microsoft Web Browser ActiveX object (specifically how to find the types of some variants).
In VB, I'd do the following to post data into two fields and click a button:
WebBrowser1.Document.frames(1).loginform.UserName.Value = "username"
WebBrowser1.Document.frames(1).loginform.Password.Value = "password"
WebBrowser1.Document.frames(1).loginform.Item(2).Click
From the web browser object in LV I can navigate to the URL, and decode the Document variant which seems to be of type MSHTML.DispHTMLDocument. How do I proceed from here? How do I access the different frames, forms, data fields and buttons on the web page?
Since variants in LabVIEW carry type descriptors internally, it'd be nice to have some way to access this so I wouldn't have to guess what object prototype to convert the variant with.
Regards
Steen Schmidt
CLA and CTA. Worked with LabVIEW from 4.0 to 2010 and counting...Hi Steen,
I was workin in an application of accessing frames, forms and then buttons in web pages in background...
In labview there was a problem in the MSHTMLDocument.frames functions and so will not be able to get the frames ..
but it is possible to access forms in a page directly...i have an eg for searchin in google..(i have attached the vi)
I need to know whether it is possible in VB to go to a particular frame in a page and then if the frame has a form i need to login in form in that frame...
Could you please share me the code in VB (for the same)..so that it would be helpful for me...and also is it possible to make dll in vb and use in other enviorment like VC++..
REGARDS
vevek
Attachments:
autologin.vi 67 KB -
No Oracle SSO support for POSTing data to protected resource [yet]
Hi,
I am using OHS infront of JBOSS and redirecting all requests from OHS to JBOSS after SSO Authentication.
Everything works fine except that I get 500 error when I try to post data from HTML form.
When i click on a button on a JSP page that submits page with the Form Post, the request goes to the OHS and is not getting forwarded.
OHS log shows the following
127.0.0.1 - - [11/Sep/2007:08:57:23 -0400] "POST /Sample/protected/standard.do HTTP/1.1" 500 788
Proxy_error.log shows the followin error
[Tue Sep 11 08:57:23 2007] [error] [client 127.0.0.1] [ecid: 1189515443:10.6.2.137:268:5568:74,0] \n[OSSO] E09: No Oracle SSO support for POSTing data to protected resource [yet].\n
Any idea?
Thanks
Srikar.This error does no occur in our dev or test environments, only production. A workaround for us was to disable SSO by commenting the line to load it in the file $ORACLE_HOME/Apache/Apache/conf/httpd.conf. The line to comment out looks like: include "/u01/app/oracle/product/mid/Apache/Apache/conf/mod_osso.conf" where the /u01/app... above is the expansion of $ORACLE_HOME/Apache/Apache/conf/mod_osso.conf.
We do not use SSO for our application, so this is not a problem. I next plan to try to figure out why this behaves like this, so I can keep all the server configurations consistent.
HTH,
Mark -
Viewing POST data in Safari web inspector
Is this the place to ask questions about the web inspector? Ive had a look around but can't find a developer forum..
Anyhow, the Firebug extension for Firefox usefully shows the POST data (and other parameters) when I'm debugging my scripts.. (see image) - Its shows me all the info I need - headers, post, response and html
Where can I see this information in webkit's web inspector?
ThanksI can't believe this passed QA. It can't be intentional. The absense of the ability to view POST traffic renders the whole network utility next to useless. I've had to resolve to using Chrome for my POST peaking needs. This needs to be voiced, people. Please let Apple know what you think about this amputation stunt: http://www.apple.com/feedback/safari.html
-
Unable to view stock on a posting date
I'm implementing inventory scenario in BI.
Initialized the stock in R/3 and uploaded into cube 0IC_C03 through 2LIS_03_BX.
Also initialized 2LIS_03_BF and uploaded into the same cube.
When i run a query, I see opening stock.
But if i change posting date to view stock for that date, I dont see any change in quantities.
Seems like the material movements are not being captured into BI.
Please help...
Thanks in advanceElangovan,
yes, with 2LIS_03_BF, 888 records were added.
I compressed both requests, 2LIS_03_BX WITH marker update and 2LIS_03_BF with NO marker update.
You asked about maintaining markers, not sure if there was anything else to be done?
Also, please help me with the transaction keys...not sure what that is. I'm new to inventory management in BI.
Thanks -
View GR report based on posting date
Hi,
Is there any report to view GR on PO by enter posting date?
Because i check ME2M,only can enter delivery date.
Thank you.Hi,
Check MB51 with 101 movement type and posting date.
Regards,
Bharat -
What is meant by data-sap-ui-aggregation in SAPUI5 Html view?
Hi,
Up to this I developed the SAPUI5 application using Javascript view.
Now I want to develop the same application using HTML view.
When I observe the sample code in Html view I got one problem. In that code for every control they mentioned data-sap-ui-aggregation = "xxxxx".
What's the use of data-sap-ui-aggregation?
For each control, they mentioned different aggregation items.
How to know this aggregation for every control?
I have a requirement to work with HTML view. So, Please help me to solve this.
Thanks&Regards
SrideviHi,
Thanks for your reply.
But I didn't find any aggregation for the check box, label and for other controls also. But they mentioned aggregation for those items also.
I checked the aggregation like below.
Go to control which we want the aggregation and go to api documentation of the Particular Control. But I didn't find anything for some controls.
Can you please explain me little bit more.
Regards
Sridevi -
Capturing the changed data in the interactive forms through HTML Viewer
Dear all,
I'm showing the Interactive Adobe form in the HTML Viewer and I want to capture it back after the user enters data in the form and save it to application server.
Can I get some help on this. Please attach supporting documents if any.
Regards
Aravindsorry i've got no document describing this. under service.sap.com/adobe you'll find a lot of Adobe content.
But basically use the Adobe Designer from program files\adobe\design 7.0\formdesigner.exe
create new form based on the CAF tutorials in the Interactive Forms section, add a new data connection to a wsdl, bind input/output parameters to form fields and get a button executing the wsdl operation.
create your interactive form callable object based on that template, configure the form to start process and as impersonalized form. create the form from the GP administration screen, download it and test it.
...And Good Luck!!! -
How to view purchase orders by posting date.
Hi,
I am trying to review what purchase orders were received in 2007 but were created in 2006, it appears that it has to have the delivery line in the purchase order set to 2007, rather than using the posting date.
Can anyone suggest any other reports than ME2LHi,
There is one way that might work but it all depends on whether you use internal numbering for your POs? (most people do).
Just find out the largest PO number raised in 2006 (from EKKO in SE16N or similar.
Then use MB51 to look at all 101 postings for 2007. When you get the list, click on the "detail list" icon (the one that looks like a spreadsheet with the first column in blue.
Then when the detail list is displayed clcik on Settings > display variant > current and add in the PO number to the display. Then you can filter out all of the POs with a number less than the first PO number used this year.
Viola, you have your list !
Steve B -
Parameter Error using HTML Viewer
Post Author: jaclsoft
CA Forum: General
CR11.
Report is executed from within my app. 1 customer is having an issue (other customers have no problem). The report has a parameter (string type). When the report is executed and the Parameter (using the HTML Viewer) tries to popup, it renders partway then pops up an error:
Internet Explorer Script Error.
An error has occurred in the script on this page
Line 31
Char 2
Error Object expected
Code 0
URL file://temp folder\prompting1.html
Do you want to continue running scripts on this page
Yes/No
Any ideas? This hapens on 2 different machines for the customer. 1 machine just has the CR Runtime, the other has CR Professional installed.Post Author: cbrown
CA Forum: General
Had the same issue with a machine that had Business Objects Enterprise XI R2 installed AND Crystal Report XI R2 installed (version 11.5.0.313). When creating a new report (or opening an existing report) in Crystal Reports that contained a parameter with a date field I get prompted with the parameter prompt screen, however there is "Business Objects" written below the prompt with a red circle with an X through it (within Crystal Reports Developer); when I try to click on the calendar icon to select the date I get a IE script error saying
"Unable to file object"
. The same issue occurs when viewing reports with date prompts in BusinessObjects Enterprise.
Resolution:
Traced the error to two different files that were corrupted / old versions:
C:\Program Files\Business Objects\common\3.5\crystalreportviewers115\prompting\css\promptengine_default.css (3Kb modified on 11/3/2004) with one from a working machine (5Kb modified on 01/23/2007)
C:\Program Files\Business Objects\common\3.5\crystalreportviewers115\prompting\js\promptengine_calendar.js(23Kb modified on 7/8/2005) with one from a working machine (27Kb modified on 01/29/2007)
Replacing those files allowed the html prompt page (prompting1.html) that is generated both by Enterprise and Crystal Reports to reference the correct js and css files above that contained the appropriate functions / formatting info to correctly display the prompt page.
Hope this helps.
Chad
www.crystallinetech.com -
Hi all
I am trying to understand how this object works. I believe that this is a way to write my own html page and see it in a dynpro.
This is the code I wrote:
" declaration of object
DATA html_viewer TYPE REF TO cl_gui_html_viewer.
" container
DATA g_custom_container TYPE REF TO cl_gui_custom_container.
" url of doc created
DATA l_doc_url(255) TYPE c.
" dynamic HTML creation structs
DATA data_table TYPE STANDARD TABLE OF char255.
DATA wa_table LIKE LINE OF data_table.
" test
wa_table = '<h1>This is a test</h1>'.
INSERT wa_table INTO TABLE data_table.
" create container
CREATE OBJECT g_custom_container
EXPORTING
container_name = 'CONTAINER'.
" create html viewer
CREATE OBJECT html_viewer
EXPORTING
parent = g_custom_container.
" load data on server
CALL METHOD html_viewer->load_data
EXPORTING
type = 'text'
subtype = 'html'
IMPORTING
assigned_url = l_doc_url
CHANGING
data_table = data_table
EXCEPTIONS
dp_invalid_parameter = 1
dp_error_general = 2.
" show loaded data in html control
CALL METHOD html_viewer->show_data
EXPORTING
url = l_doc_url.
" call main screen
CALL SCREEN 10.
All works, but html is not interpreted: the result is that I see in the html control '<h.1>Test</h.1>' (Added dot to not see written as header here in the post) and not 'Test' written as header (that would be <h1>Test</h1>). Am i missing something or do I misunderstood the use of this object?
regards
Gabriele
Edited by: Gabriele Montori on Aug 30, 2010 12:38 PMHello,
your problem is witjh the HTML. You need to insert the <html> tag. try this:
" test
wa_table = '<html>'.
Append wa_table TO data_table.
wa_table = '<h1>This is a test</h1>'.
append wa_table TO data_table.
wa_table = '</html>'.
Append wa_table TO data_table.
Regards,
pedro -
AR Reserve Invoice - Posting date
Hi,
I have a customer who really would like to address the issue with the posting date on AR Reserve Invoices, because they think this field should be open for editing until the invoice has been paid.
Is there a good reason for why the posting date field is closed after adding the document?
And is there a possibility that this field can be opened for editing in a future version?
Best regards,
Lena-Marie D. TørresvoldHi Lena.......
The reason might be based on Posting Date the Payment is linked because Payment will be done as per the payment terms and payment terms ultimately linked with Document Date.
And its preferable too as accounting is puerly done on the basis of date which is one of the most important factor from Financial Reports point of view.
So if you think to edit the dates of docs when it si added then it is unncessary as it wont make any sense for finance reports........
Hope you got the logic....
Regards,
Rahul -
Display stock on posting date for a consignment stock
Dear guru.
I want to display the stock on posting date for a consignment stock (special stock indicator = "W" ) to display this stock and the linked movements for a specific customer.
MB5B donu2019t have the field customer in the selection view.
What transaction can I use ?
Thanks in advance.Hi,
In MB5B in special stocks indicator you select W
and select special stock
You will get it
BR
Diwakar
Edited by: diwakarnd deshpande on May 20, 2008 7:02 PM -
Any Standard FM for material stocks on posting date using Tcode MB5B
Hi,
I need Standard FM to get material stocks on posting date using Tcode : MB5B
Stock type i am using is : Storage Location/Batch Stock
the Input i am providing is Material, Plant , Storage Location, selection date From , selecDate To.
Then i need to get data that it provides header and document item level.
Can u please tel me how do i get that material stock data on posting date and in which tables
it will be populated in the database.
ITs required can u take view and post info
Thanks & Regards
sivakumar kasa
Edited by: siva kumar kasa on Dec 21, 2010 2:30 PM
Edited by: siva kumar kasa on Dec 22, 2010 7:15 AMhi Rehan,
I have checked all settings also enhancement but there is no as such control to restrict backposting within current period
I think its self disipline action not to post backdated GI when GR is done on later date
Vishal... -
How can I send post data through nsurlrequest?
Hi.
I'm working on an application which needs to make requests to a php gateway. I tried many examples I found on google, but none of them worked for me.
First I was working with GET, and it worked just fine, but now, as I need to send more complex data, GET isn't a solution anymore. I have three params to send: module which is a string containing a php class name, method: the function in the class, and params for the function which is usually an indexed array.
The following method makes the request to the server, but for some reason, doesn't send the POST data. If I var_dump($_REQUEST) or var_dump($_POST), it turns out, the array is empty. Can somebody tell me, what am I doing wrong? Is there some kind of a sandbox, which prevents data from being sent to the? I also tried to send some random strings, which aren't json encoded, no luck. The sdk version is 5.1, and I'm using the iPhone simulator from xcode.
If it is possible I would like to solve this problem without any additional libraries (like asihttp).
And here is the code:
+(NSObject *)createRequest:(NSString *)module: (NSString *)method: (NSArray *)params
NSString *url = @"http://url/gateway.php";
NSData *requestData = nil;
NSDictionary *data = [NSDictionary dictionaryWithObjectsAndKeys:
module, @"module",
method, @"method",
params, @"params",
nil];
NSString *jsonMessage = [data JSONRepresentation];
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] initWithURL:[NSURL URLWithString:url]];
NSString *msgLength = [NSString stringWithFormat:@"%d", [jsonMessage length]];
[request addValue: @"text/xml; charset=utf-8" forHTTPHeaderField:@"Content-Type"];
[request addValue: msgLength forHTTPHeaderField:@"Content-Length"];
[request setHTTPMethod:@"POST"];
[request setHTTPBody: [jsonMessage dataUsingEncoding:NSUTF8StringEncoding]];
requestData = [NSURLConnection sendSynchronousRequest:request returningResponse:nil error:nil];
NSString *get = [[NSString alloc] initWithData:requestData encoding:NSUTF8StringEncoding];
NSLog(@">>>>>>%@<<<<<<",get);
Thank you.raczzoli wrote:
I'm working on an application which needs to make requests to a php gateway. I tried many examples I found on google, but none of them worked for me.
Why not?
Unfortunately, you are dealing with a number of different technologies that have been cobbled together over the years. You could write a PHP server that would respond correctly to this request, but not using basic methods like the $_POST variable. PHP was designed for HTML and true forms. What you are trying to do is make it work as a general purpose web service over the HTTP protocol. You can do that, but not with the form-centric convenience variables.
The following is a basic program that will populate the $_POST variable.
#import <Foundation/Foundation.h>
int main(int argc, const char * argv[])
@autoreleasepool
// insert code here...
NSLog(@"Hello, World!");
NSString * module = @"coolmodule";
NSString * method = @"slickmethod";
//NSArray * params = @[@"The", @"Quick", @"Brown", @"Fox"];
NSString * params = @"TheQuickBrownFox";
NSString * url = @"http://localhost/~jdaniel/test.php";
NSDictionary * data =
[NSDictionary
dictionaryWithObjectsAndKeys:
module, @"module",
method, @"method",
params, @"params",
nil];
//NSString *jsonMessage = [data JSONRepresentation];
//NSData * jsonMessage =
// [NSJSONSerialization
// dataWithJSONObject: data options: 0 error: nil];
NSMutableArray * content = [NSMutableArray array];
for(NSString * key in data)
[content
addObject: [NSString stringWithFormat: @"%@=%@", key, data[key]]];
NSString * body = [content componentsJoinedByString: @"&"];
NSData * bodyData = [body dataUsingEncoding: NSUTF8StringEncoding];
NSMutableURLRequest * request =
[[NSMutableURLRequest alloc] initWithURL: [NSURL URLWithString:url]];
//NSString * msgLength =
// [NSString stringWithFormat: @"%ld", [jsonMessage length]];
NSString * msgLength =
[NSString stringWithFormat: @"%ld", [bodyData length]];
[request
addValue: @"application/x-www-form-urlencoded; charset=utf-8"
forHTTPHeaderField: @"Content-Type"];
[request addValue: msgLength forHTTPHeaderField: @"Content-Length"];
[request setHTTPMethod: @"POST"];
//[request setHTTPBody: jsonMessage];
[request setHTTPBody: bodyData];
NSData * requestData =
[NSURLConnection
sendSynchronousRequest: request returningResponse: nil error: nil];
NSString * get =
[[NSString alloc]
initWithData: requestData encoding: NSUTF8StringEncoding];
NSLog(@">%@<",get);
return 0;
I have written this type of low-level server in PHP using the Zend framework. I don't know how to do it in basic PHP and wouldn't bother to learn.
Also, you should review how you are sending data. I changed your example to send the appropriate data and content-type for the $_POST variable. If you had a server that could support something else, you could use either JSON or XML, but your data and content-type would have to match.
Maybe you are looking for
-
What optical drive would i get to replace in 2008 24" iMac?
I received a 2008 24" iMac as a gift. The optical drive is bad and I need to replace the 1TB hard drive. My question is this: I have found many different optical drives out there for the iMac. Which one do I get for my iMac? The info off the tag on t
-
How to calculate a rolling 12 months to date calculation?
Hi there We have a business requirement to calculate a rolling 12 month to date value. That is, for any month, sum up the last 12 months of data. E.g. for June 2011, its May 2010 -> June 2011. We have the standard Year and Period dimension, and the m
-
Issue with lost outgoing texts
I have a Razr Maxx and randomly, my texts don't go through to people. They don't bounce back, so I have no idea that they have not been received. It's really frustrating! Help?
-
When i open MIR7 to record, the other invoice document gets disabled. I am not able to record this. Is there any solution to this?
-
How to get ANTS out of Macbook Pro
Im traveling through Hawaii, often camping out. Today sitting at this internet cafe, I realize that my computer has been infected with ANTS! Whats the best way to get rid of them?!?!?!