How to use "url.openStream()" . What this function does?
how to use "url.openStream()" . What this function does?
Edited by: sahil1287 on Apr 16, 2009 10:02 PM
http://java.sun.com/javase/6/docs/api/java/net/URL.html#openStream()
http://java.sun.com/docs/books/tutorial/networking/urls/readingWriting.html
Similar Messages
-
Hi all,
Following are few code lines from MAM code :
// this is in common.inc"
<jsp:useBean id="helper"
class="com.sap.mbs.core.web.ViewHelper" scope="request"/>
String allOrderURL = helper.eventURL("onOrderList", "orderListType", "ALL_ORDERS");
helper.getApplicationURL()
Could anyone please tell what this eventURL ,getApplicationURL methods are for ?
I couldnt find any documentation that explains it.
Regards,
VipinHello Vipin.
Jo is rite.
The class is abstract but the class which is used to create the bean is the implementation class:
<b>DefaultViewHelper</b>
This is the implementation of the abstract class ViewHelper.
The ViewHelper is used to create URLs which are used to load a new page with our without submitting a form.
You can use eventURL to build an URL for a link you want to create (JO's example).
You can use submitEventURL in order to submit your form.
This method builds a call to a JavaScript method.
You can find this method in the file:
app-root/include/common.inc
function submitURL(url).
This function uses url as action for the submit.
So if you use something like this:
onClick="<%=helper.submitEventURL("onOK")%>"
all the form content is written to the context and the onOK method of the corresponding controller class is called. You can get the form content using the context in this controller method then.
When I started working with MAM I was also confused about the mbs.core Framework.
Read this maybe it helps:
SAP MAU MVC
Best regards,
Sascha
Message was edited by: Sascha Dingeldey -
Where/how can i find out what this is doing
I know this old but not concerned with that, just what is it doing, this is java script in an .asp that loads
a flash application, I'm most concerned/interested
why it references a clsid?
what is the code base all about? (is this embedding code in the browser? it does the embed everytime the app is loaded?)
what is the PLUGINSPAGE?
how does all this affect the opertion of the flash apps that run after this initializtion?
this is kinda/somewhat/ normal for anytime /anyone running a flash app?
It seems there's a lot going here, if too much to answer please just point me somewhere where i can RTFM, but
please make it a good RTFM not a FWOT!!!
flName = "default-app.swf"
document.write('<OBJECT'
+ ' CLASSID=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
+ ' CODEBASE=":http//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0 ,79,0"'
+ ' ID="flash"'
+ ' WIDTH=' + flWidth
+ ' HEIGHT=' + flHeight + '>'
+ '<PARAM NAME=movie VALUE="' + flName + cookString + '">'
+ '<PARAM NAME=menu VALUE="false">'
+ '<PARAM NAME=quality VALUE=high>'
etc more params
finally
+ ' TYPE="application/x-shockwave-flash"'
+ ' PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">'
+ '</EMBED></OBJECT>'that's standard flash embedding code with variable swf name, width and height.
-
What this function does: AIB3_EVALUATE_ODS_ASSIGN in PS/IM?
Dear all,
I'm investigating for the possible cause of data lost in transit in PS/IM area. The suspect currently is an update rule involving a function AIB3_EVALUATE_ODS_ASSIGN, as based on its E_SUBRC output value a record is skipped or not. Though I'm working with Z-objects now, this turns to be a part of Business Content as well.
Does anyone has an idea what is the logic of that function? SAP doesn't provide any documentation on that, so the only option I have at the moment is to play with that blackbox...
Cheers!
/RBI'm not worried about race conditions, as evaluation of the expression takes place as the last thing before the new execution is started. It must either be done just before the SequenceCall, or as the first thing in the Setup group of the subsequence.
It's fragile to modify the expression at runtime to mimic a different context (by replacing stuff like "Locals." with "RunState.Caller.Locals." for instance, if they were in the same callstack), since such string replacement could never be exhaustive. What about "Step."? What about constructs like ("L" & "ocals.")? I could never identify them all.
I could split the expression up in two, like this (evaluated in the subsequence):
Evaluate("Locals." + Locals.TargetName) = Evaluate("RunState.Caller.Locals.SourceName")
The above works if Locals.SourceName was in the caller context, but my problem is a bit more complex than that; I need the right hand side to evaluate any expression string, and I need to supply a context to do it within. It's too fragile to string-replace "Locals." with "RunState.Caller.Locals." etc., as the expression might contain "Parameters.", "FileGlobals.", or much more complex access patterns from the caller context.
One way would be to make a new expression object and use Expression.Evaluate(context,evaloptions) on that in the subsequence, with context passed from the caller, but how do I make and pass an expression object to the sequence in which to set the TargetName local variable? It has something to do with Engine.NewExpression, but where do I store this expression object in the caller? And how do I set its Text property to "Locals.SourceName" (in this particular example, but remember it could be any expression)? And finally how do I pass this expression object to the subsequence via a parameter (what type should the parameter be)?
Cheers,
Steen
CLA, CTA, CLED & LabVIEW Champion -
Any idea what this function is meant for?
DB version:10gR2
Have you guys any idea what this function does?
create or replace function separate_1
in_list varchar2,
in_del varchar2 := ','
) return split_tbl pipelined
is
l_idx pls_integer;
l_list varchar2(32767) := in_list;
l_value varchar2(32767);
begin
loop
l_idx := instr(l_list,in_del);
if l_idx > 0 then
pipe row(substr(l_list,1,l_idx-1));
l_list := substr(l_list,l_idx+length(in_del));
else
pipe row(l_list);
exit;
end if;
end loop;
return;
end separate_1;The comment for this functions says that this is used to split a string delimited by a comma separator. But i didn't understand this function. Can this functionality be achieved without a table function?user10450365 wrote:
DB version:10gR2
Have you guys any idea what this function does?Odd that. Apart from a couple of parameter name changes it looks almost identical to a function I posted a couple of years back...
SQL> CREATE OR REPLACE TYPE split_tbl IS TABLE OF VARCHAR2(32767);
2 /
Type created.
SQL> CREATE OR REPLACE FUNCTION split (p_list VARCHAR2, p_delim VARCHAR2:=' ') RETURN SPLIT_TBL PIPELINED IS
2 l_idx PLS_INTEGER;
3 l_list VARCHAR2(32767) := p_list;
4 l_value VARCHAR2(32767);
5 BEGIN
6 LOOP
7 l_idx := INSTR(l_list, p_delim);
8 IF l_idx > 0 THEN
9 PIPE ROW(SUBSTR(l_list, 1, l_idx-1));
10 l_list := SUBSTR(l_list, l_idx+LENGTH(p_delim));
11 ELSE
12 PIPE ROW(l_list);
13 EXIT;
14 END IF;
15 END LOOP;
16 RETURN;
17 END SPLIT;
18 /
Function created.
SQL> SELECT column_value
2 FROM TABLE(split('FRED,JIM,BOB,TED,MARK',','));
COLUMN_VALUE
FRED
JIM
BOB
TED
MARK -
How to use url iview???
how to use url iview???
HI all
I need to use url iview as back button in the same page with saptransaction iview.
url iview to used as back button to the home page.
pl suggeest how to use url ivew....what sort of properties need to be used.HI chander
thank u for ur response
I have done an aplication in which i have called sap transsaction ivew usind quick link property in .html(page) language.
where we will be fetching saplogon server using this sap trans saction ivew into the portal frame work .
when i loging into the server and log off with in the portal frame work i am not able to go to my aplication home page. since back/ forward link are disabled.
atleast i want know how to enable those links.
or else
i thought to use url ivew along with sap transaction ivew with a same page with diffrent layouts.but that is also fine.
and one more option was
i thought it to be used as pop up as so that when user login and log off into the server they will close that seperate window.
for that i have set the ivew property
"launch in a new window property As : display in a seperate head less portal window"
but even that is also not working.
i dont know y that property is not working
finally i have coded with java script , now i am able to open the portal in a seperate window but with headed portal.
for that i have coded some thing like below mentioned.
problem here is still i am getting the headed portal
but i want head less portal.
here headless in the sence i want it like the preview of the ivew.
please help me in this regard how to get the head less portal when i click on the link.
Regards
Gayathri -
When I go to About This Mac and click on Storage it shows 421.93GB as Other. This only leaves 46.85GB of 499.25GB free. How do I find out what this "Other" is so I can remove the stuff I don't need?
What kind of use do you make of your MBP? A lot of photo or video? If so, you may be storing a lot of large files. Look at Finder and see what the file system looks like. Do you have large libraries of data files associated with applications?
You may want to think about an external hard drive to use for backups and data storage, you can point applications to the external drive as the default storage location.
A good source of external drives at a reasonable price is the Mac specialist, OWC, http://www.macsales.com
I bought their Mercury Elite Pro 2 TB dirve last September and set it up to use part for Time Machine backup and part for other work space. Setup with Disk utility into two partitions is very quick and easy. Just remember to format as Extended Journaled with GUID partition table. Setting the partition sizes is by using a braphical image on screen in DU so it is like falling off a log, so easy. -
How to use database look up table function in xsl mapping
Can anybody tell me how to use database look up table function while mapping xsl between 2 nodes.
I have an XML file coming in and depending on one of XML elements we need to decide which further path to take. But, using this XML element, we need to query database table, get metadata and accordingly take appropriate path. I have written lookup function which returns metadata value.
Now, the issue is how do I pass the XML element valu as input to look up function? When I tried to drag it to the input node of lookup function, it throws an error like "Maximum number of parameters exceeded"
Thanks,If the lookup table is always going to remain the same (e.g. a character generator or something similar) you can place the values in a 2D array constant on your diagram, with the input value as one column, the equivalent as the other. When you need to perform the lookup you use an index array to return all the values in the "input column", search it using "search 1D array" and use the resulting index number to index the other column's data. If the values may change, then it would probably be best to load an array control with your equivalent values from a file.
P.M.
Putnam
Certified LabVIEW Developer
Senior Test Engineer
Currently using LV 6.1-LabVIEW 2012, RT8.5
LabVIEW Champion -
How to use shift register in this structure?
Dear All,
In order to use less variety of graph, I want to use shift register to manage and send data to graph.
But there is not only event structure in my vi, for some reason(because I want to use only one button to control running and stop, and this must do through variety of button, I can't put this loop into the event structure) I must use other while loops, I don't know how to use shift register in this structure.
Please tell me anything helpful.
Thank you!
Attachments:
shift register.vi 26 KBhi there
there are a lot of solutions. my favorite one is the usage of a so called "FGV" (functional global variable). this allows you to strore, manipulate and transport data through your app with a minimum of wires. see attachment.. (other users may have other favorite solutions...)
Best regards
chris
CL(A)Dly bending G-Force with LabVIEW
famous last words: "oh my god, it is full of stars!"
Attachments:
Shift Register 7.1.zip 20 KB -
Need an example how to use SCAN_Start with a callback function
I would appreciate if someone helps me with a working example of how to use SCAN_Start with a callback function. I need just a basic functionality: to specify a channel list (with gains probably), to start a data acquisition task and to receive data buffers utilizing a callback function. t this time whatever I was trying to do caused computer hangups, though it is supposed to be one of the most regular tasks to perform.
Thank you in advance,
MikeHello Mike,
Thank you for contacting National Instruments.
Attached is an example project which uses a callback function to begin analog acquisition (AI) by calling SCAN_Start. This project acquires from the first 2 channels on your DAQ device. Make sure to modify the device number in the code to match the number of your card.
Let me know if you have any further questions...
Sincerely,
Sean C.
Applcications Engineer
National Instruments
Attachments:
Acquire_multichannel_61xx.zip 11 KB -
How to use bind variables in this procedure
Hi Experts,
How to use bind variables in this procedure for static queries.
PROCEDURE DELETE_MER_PROC (M_id IN NUMBER)
IS
BEGIN
V_date DATE;
SELECT PD_DATE INTO v_date FROM PD_MAINTAIN;
DELETE FROM MER_CLEAR
WHERE MER_DT < v_date
AND ID = M_ID;
COMMIT;
END;
How to use v_date and m_id as bind variables in this procedure to avoid hard parsing.
Please help me.
Thanks.976208 wrote:
How to use v_date and m_id as bind variables in this procedure to avoid hard parsing.
You cannot avoid hard parsing - as the 1st time a SQL statement (like the SELECT or DELETE statements in your code) is encountered, it does not reside in the server's Shared Pool, and needs to be added into the pool via a hard parse.
Bind variables does not prevent hard parsing. Hard parsing happens when the SQL statement (with or without bind variables) is a brand new statement encountered by the server.
Bind variables enables the same SQL cursor to be reused, by simply changing the bind variable value.
Not using bind variables means that each SQL statement is unique and not shareable - as the value is hardcoded into the statement and cannot be changed via a bind value. This typically means LOTS of different SQL statements (where the only difference is the changed value in the statement) are created - with each statement being a new statement not seen before in the Shared Pool and needing to be hard parsed.
One does not design one's code not to be hard parsed. There ALWAYS will be a hard parse in order to get a SQL statement into the Shared Pool. One designs one's code to REUSE cursors in the Shared Pool. -
I've noticed a charge on my credit card for $8.49 each month. I looked at my Apple iTunes purchases and don't see it in my purchase history. How do I find out what this charge is for?
If it's happening every month then it's likely to be an auto-renewing subscription - there are instructions on this page for managing and stopping them : http://support.apple.com/kb/HT4098
-
How to use parrallel cursor in this code
hi can anyone expalin me how to use parallel cursor for this code ...
loop at itabkpf.
read table ibsegpar_fu with key
belnr = itabkpf-belnr
gjahr = itabkpf-gjahr
bschl = '25' .
Start insert by Pradeep 20082008
sort: itabkpf by belnr,
itabsegpar by belnr.
End insert by Pradeep 20082008
if sy-subrc = 0. "Deleted by pradeep 20082008
select bukrs belnr gjahr bschl koart lifnr wrbtr
wskto pswbt zfbdt augbl augdt sgtxt rebzg rebzj
into corresponding
fields of table ibsegpar_fu_1 from bseg
where bukrs = itabkpf-bukrs and
belnr = itabkpf-belnr and
gjahr = itabkpf-gjahr and
augbl <> itabkpf-belnr and
rebzg <> space and
bschl = '25'.
loop at ibsegpar_fu_1.
Start insert by Pradeep 20082008
sort ibsegpar_fu_1 by belnr.
End insert by Pradeep 20082008
move-corresponding ibsegpar_fu_1 to itabseg.
move ibsegpar_fu_1-belnr to itabseg-augbl.
move ibsegpar_fu_1-rebzg to itabseg-belnr.
move ibsegpar_fu_1-rebzj to itabseg-gjahr.
*********to include code to pick the description for partical payment
select single * from bseg where
bukrs = ibsegpar_fu_1-bukrs and
belnr = ibsegpar_fu_1-belnr and
gjahr = ibsegpar_fu_1-gjahr and
augbl <> ibsegpar_fu_1-belnr and
rebzg = space and
bschl <> '25'.
move bseg-sgtxt to itabseg-sgtxt.
clear bseg.
*********end of code
itabseg-wrbtr = itabseg-wrbtr * -1.
itabseg-pswbt = itabseg-pswbt * -1.
select single budat into lsdat from
bkpf where bukrs = ibsegpar_fu_1-bukrs and
belnr = ibsegpar_fu_1-rebzg and
gjahr = ibsegpar_fu_1-rebzj.
if sy-subrc = 0.
move lsdat to itabseg-zfbdt.
endif.
append itabseg.
endloop.
endif. "Deleted by Pradeep 20082008
endloop.
loop at ibsegpar_fu.
sort ibsegpar_fu by belnr. " insert by pradeep
move-corresponding ibsegpar_fu to itabseg.
select bukrs belnr gjahr bschl koart lifnr wrbtr
rebzg rebzj sgtxt into corresponding
fields of table ibsegpar_fu_1 from bseg
where bukrs = ibsegpar_fu-bukrs and
gjahr = ibsegpar_fu-gjahr and
augbl = ibsegpar_fu-belnr and " Pradeep 20082008 Delete
augbl <> ibsegpar_fu-belnr and " Pradeep 20082008 Insert
rebzg = space and
bschl = '25'.
if sy-subrc = 0.
loop at ibsegpar_fu_1.
move ibsegpar_fu_1-rebzg to itabseg-rebzg.
move ibsegpar_fu_1-rebzj to itabseg-rebzj.
endloop.
move ibsegpar_fu-belnr to itabseg-augbl.
move itabseg-rebzg to itabseg-belnr.
move itabseg-rebzj to itabseg-gjahr.
itabseg-wrbtr = itabseg-wrbtr * -1.
itabseg-pswbt = itabseg-pswbt * -1.
select single budat into lsdat from
bkpf where bukrs = ibsegpar_fu-bukrs and
belnr = itabseg-rebzj and
gjahr = itabseg-rebzj.
if sy-subrc = 0.
move lsdat to itabseg-zfbdt.
endif.
append itabseg.
read table itabseg with key
belnr = itabseg-rebzg
gjahr = itabseg-rebzj
bschl = '31' .
if sy-subrc = 0.
delete itabseg index sy-tabix. "Deleted by Pradeep 20082108
endif.
endif.
endloop.
Start insert by Pradeep 20082008
loop at itabseg.
if itabseg-belnr = itabseg-augbl.
delete itabseg.
elseif itabseg-belnr = ' '.
delete itabseg.
endif.
endloop.
End insert by Pradeep 20082008hi can anyone expalin me how to use parallel cursor for this code ...
loop at itabkpf.
read table ibsegpar_fu with key
belnr = itabkpf-belnr
gjahr = itabkpf-gjahr
bschl = '25' .
Start insert by Pradeep 20082008
sort: itabkpf by belnr,
itabsegpar by belnr.
End insert by Pradeep 20082008
if sy-subrc = 0. "Deleted by pradeep 20082008
select bukrs belnr gjahr bschl koart lifnr wrbtr
wskto pswbt zfbdt augbl augdt sgtxt rebzg rebzj
into corresponding
fields of table ibsegpar_fu_1 from bseg
where bukrs = itabkpf-bukrs and
belnr = itabkpf-belnr and
gjahr = itabkpf-gjahr and
augbl <> itabkpf-belnr and
rebzg <> space and
bschl = '25'.
loop at ibsegpar_fu_1.
Start insert by Pradeep 20082008
sort ibsegpar_fu_1 by belnr.
End insert by Pradeep 20082008
move-corresponding ibsegpar_fu_1 to itabseg.
move ibsegpar_fu_1-belnr to itabseg-augbl.
move ibsegpar_fu_1-rebzg to itabseg-belnr.
move ibsegpar_fu_1-rebzj to itabseg-gjahr.
*********to include code to pick the description for partical payment
select single * from bseg where
bukrs = ibsegpar_fu_1-bukrs and
belnr = ibsegpar_fu_1-belnr and
gjahr = ibsegpar_fu_1-gjahr and
augbl <> ibsegpar_fu_1-belnr and
rebzg = space and
bschl <> '25'.
move bseg-sgtxt to itabseg-sgtxt.
clear bseg.
*********end of code
itabseg-wrbtr = itabseg-wrbtr * -1.
itabseg-pswbt = itabseg-pswbt * -1.
select single budat into lsdat from
bkpf where bukrs = ibsegpar_fu_1-bukrs and
belnr = ibsegpar_fu_1-rebzg and
gjahr = ibsegpar_fu_1-rebzj.
if sy-subrc = 0.
move lsdat to itabseg-zfbdt.
endif.
append itabseg.
endloop.
endif. "Deleted by Pradeep 20082008
endloop.
loop at ibsegpar_fu.
sort ibsegpar_fu by belnr. " insert by pradeep
move-corresponding ibsegpar_fu to itabseg.
select bukrs belnr gjahr bschl koart lifnr wrbtr
rebzg rebzj sgtxt into corresponding
fields of table ibsegpar_fu_1 from bseg
where bukrs = ibsegpar_fu-bukrs and
gjahr = ibsegpar_fu-gjahr and
augbl = ibsegpar_fu-belnr and " Pradeep 20082008 Delete
augbl <> ibsegpar_fu-belnr and " Pradeep 20082008 Insert
rebzg = space and
bschl = '25'.
if sy-subrc = 0.
loop at ibsegpar_fu_1.
move ibsegpar_fu_1-rebzg to itabseg-rebzg.
move ibsegpar_fu_1-rebzj to itabseg-rebzj.
endloop.
move ibsegpar_fu-belnr to itabseg-augbl.
move itabseg-rebzg to itabseg-belnr.
move itabseg-rebzj to itabseg-gjahr.
itabseg-wrbtr = itabseg-wrbtr * -1.
itabseg-pswbt = itabseg-pswbt * -1.
select single budat into lsdat from
bkpf where bukrs = ibsegpar_fu-bukrs and
belnr = itabseg-rebzj and
gjahr = itabseg-rebzj.
if sy-subrc = 0.
move lsdat to itabseg-zfbdt.
endif.
append itabseg.
read table itabseg with key
belnr = itabseg-rebzg
gjahr = itabseg-rebzj
bschl = '31' .
if sy-subrc = 0.
delete itabseg index sy-tabix. "Deleted by Pradeep 20082108
endif.
endif.
endloop.
Start insert by Pradeep 20082008
loop at itabseg.
if itabseg-belnr = itabseg-augbl.
delete itabseg.
elseif itabseg-belnr = ' '.
delete itabseg.
endif.
endloop.
End insert by Pradeep 20082008 -
I see "imac-54f9d5" under the "Shared" heading in my finder. I am not connected to any printers or other Mac devices. Is it possible that someone is remotely accessing my system? How can I figure out what this is?
is it your imac?
is it your your router's name?
are you by any chance connected to another wifi router then your own because the other one was open and not password protected? -
I tried http://kuba.zilp.pl/?id=1, and don't understand the statement " ADFUtils.executeOperation("downloadingPageDef", "Execute");". What this one does?
Thanks in advance!, I am using jdeveloper 10g.
Rgds!xsyang wrote:
I tried http://kuba.zilp.pl/?id=1, and don't understand the statement " ADFUtils.executeOperation("downloadingPageDef", "Execute");". What this one does?
Thanks in advance!, I am using jdeveloper 10g.
ADFUtils is a utility helper class for usage in the ViewController. I am not familiar with the specific 10g version of executeOperation() method but it seems to be used to execute a method binding. In this case the method binding is called Execute and is bound in the downloadingPageDef page definition file.
Searching the forum will yield these results:
http://forums.oracle.com/forums/search.jspa?objID=f83&q=ADFUtils
Maybe you are looking for
-
Pseudo code for DOM parsing a local XMl file
HI all, 1) Can any body please provide me the JAVA pseudo code for parsing xml document from local mcahine and create another xml document in another location in loca machine with small transofrmations ? (JAVA mapping using DOM parsing tehnique u
-
No picture in picture using facetime
I have a MacBook Pro and Facetime works fine. When I try to Facetime with my girlfriend, who has a MacBook Air, all she sees is herself on her computer, whereas I see her in the big window and myself with the picture in picture on my computer. Why ca
-
Outer join (with (+)) does not work
I started with a working SQL statement: SELECT DISTINCT username, r.granted_role FROM dba_users u, dba_sys_privs s, dba_tab_privs t, dba_role_privs r WHERE u.username = s.grantee AND u.username = t.grantee AND u.username = r.grantee ORDER BY username
-
Counter in column GUI ALV GRID
Hello every one, I have a alv grid, and i have a column where i need to put a counter in the cell, so every time a new row is added, the cell of that column will be incrementing in a number and show it in the cell automatic. Im new in abap, so i hope
-
I can't use the statement in user exits. I need to use it to set the pf-status of ALV grid. i.e itis a dynamic call. I tried writing this form in another program and calling it from the user exit.But the pf-status in another program dosn't recognises