Insert graphics in smartform from URL
Hi,
In a particular scenario i am trying to insert graphics in the smartform from the URL. Is it possible?
If Yes, pl. let me know the steps.
I know how to use graphics from the SE78 transaction, but not from URL
Hi Atul,
Go to transaction SE78. upload graphic which u want and then use that graphic from ur smartforms.
Reward points if helpful.
Regards,
Hemant
Similar Messages
-
How to open a MD form in insert mode when calling from URL ?
I have a MD form and I want to open it in 'insert' mode when I click on the URL.
How can I do that ?
thanks,
MainakI think somebody has asked the same questions earlier but I cannot find the link to that message. Please can anyone help me ?
How to open a form in Insert mode from url link ?
Mainak -
Strange behavior of inserted graphic in smartform
Hello,
I uploaded colored bmp picture to R/3 in se78. After that I put the picture to smartform as graphic, but through testing of this form some strange lines appears over the picture.
I tried several color depths. Picture is displaying fine in se78 preview. Has somebody an idea how to avoid described problem?
Best regards,
Josef MotlHi,
I tried many options and also tiff format. In this case thick line on bottom of picture appears.
I'm on 6.20 release..
Regards,
Josef -
Hi,
In a particular scenario i am trying to insert graphics in the smartform from the URL. Is it possible?
If Yes, pl. let me know the steps.
I know how to use graphics from the SE78 transaction, but not from URL
The smartform is used in an e-mail if it helps.hi,
Sorry it will not workk
reward if useful
regards,
nazeer
Message was edited by:
nazeer shaik
Message was edited by:
nazeer shaik -
SMARTFORMS printing graphics from URL
I do not find anything yet to print graphics on SMARTFORM using variable name from a url NOT via SE78 Graphics Administration Document Server.
There is solution to load SE78 Document Server via BDC but I am looking for solution where Document Server is not loaded with excessive images AND NOT solution writing over a single image there; I want it actually redirected to another url address.
I do understand that I will maintain a table having the url address AND that I can even display from SMARTFORM; I am asking for solution that actually prints the stored image.Dear Michael,
good to see you..
I am facing the same problem for using the image from URL in SMARTFORM...
If you got solved the problem please give me the suggestions how you had done this....
Please,....
Thanks in advance,
Kruthik -
Reading xml data from url and insert into table
CREATE TABLE url_tab2
URL_NAME VARCHAR2(100),
URL SYS.URIType
INSERT INTO url_tab2 VALUES
(’This is a test URL’,
sys.UriFactory.getUri(’http://www.domain.com/test.xml’)
it is giving error as invalid characterCheck if your single quotes are the correct single quotes.
The principle works as advertised in the XMLDB Developers Guide...
C:\>sqlplus / as sysdba
SQL*Plus: Release 11.1.0.7.0 - Production on Tue Nov 25 21:44:46 2008
Copyright (c) 1982, 2008, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> create user OTN identified by OTN account unlock;
User created.
SQL> grant dba, xdbadmin to OTN;
Grant succeeded.
SQL> conn OTN/OTN
Connected.
SQL> CREATE TABLE uri_tab (docUrl SYS.URIType, docName VARCHAR2(200));
Table created.
SQL> -- Method SYS.URIFACTORY.getURI() with absolute URIs
SQL> -- Insert an HTTPUri with absolute URL into SYS.URIType using URIFACTORY.
SQL> -- The target is Oracle home page.
SQL> INSERT INTO uri_tab VALUES
2 (SYS.URIFACTORY.getURI('http://www.oracle.com'), 'AbsURL');
1 row created.
SQL> -- Insert an HTTPUri with relative URL using constructor SYS.HTTPURIType.
SQL> -- Note the absence of prefix http://. The target is the same.
SQL> INSERT INTO uri_tab VALUES (SYS.HTTPURIType('www.oracle.com'), 'RelURL');
1 row created.
SQL> -- Insert a DBUri that targets employee data from database table hr.employees.
SQL>
SQL> INSERT INTO uri_tab VALUES
2 (SYS.URIFACTORY.getURI('/oradb/HR/EMPLOYEES/ROW[EMPLOYEE_ID=200]'), 'Emp200');
1 row created.
SQL> SELECT e.docUrl.getCLOB(), docName FROM uri_tab e;
E.DOCURL.GETCLOB()
DOCNAME
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN
">
<html>
<head>
AbsURL
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN
">
<html>
E.DOCURL.GETCLOB()
DOCNAME
<head>
RelURL
<?xml version="1.0"?>
<ROW>
<EMPLOYEE_ID>200</EMPLOYEE_ID>
<FIRST_NAME>Jenn
Emp200
SQL> set long 1000
SQL> select HTTPURITYPE('www.oracle.com').getCLob() from dual;
HTTPURITYPE('WWW.ORACLE.COM').GETCLOB()
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN
">
<html>
<head>
<title>Oracle 11g, Siebel, PeopleSoft |
Oracle, The World's Largest Enterprise S
oftware Company</title>
<meta name="title" content="Enterprise Applications | D
atabase | Fusion Middleware | Applicatio
ns Unlimited | Business | Oracle, The Wo
rld's Largest Enterprise Software CompanEdited by: Marco Gralike on Nov 25, 2008 10:13 PM -
How to display a dynamic image file from url?
Hey,I want to display a dynamic image file from url in applet.For example,a jpg file which from one video camera server,store one frame pictur for ever.My java file looks like here:
//PlayJpg.java:
import java.awt.*;
import java.applet.*;
import java.net.*;
public class PlayJpg extends Applet implements Runnable {
public static void main(String args[]) {
Frame F=new Frame("My Applet/Application Window");
F.setSize(480, 240);
PlayJpg A = new PlayJpg();
F.add(A);
A.start(); // Web browser calls start() automatically
// A.init(); - we skip calling it this time
// because it contains only Applet specific tasks.
F.setVisible(true);
Thread count = null;
String urlStr = null;
int sleepTime = 0;
Image image = null;
// called only for an applet - unless called explicitely by an appliaction
public void init() {
sleepTime = Integer.parseInt(getParameter("refreshTime"));
urlStr = getParameter("jpgFile");
// called only for an applet - unless called explicitely by an appliaction
public void start() {
count=(new Thread(this));
count.start();
// called only for applet when the browser leaves the web page
public void stop() {
count=null;
public void paint(Graphics g) {
try{
URL location=new URL(urlStr);
image = getToolkit().getImage(location);
}catch (MalformedURLException mue) {
showStatus (mue.toString());
}catch(Exception e){
System.out.println("Sorry. System Caught Exception in paint().");
System.out.println("e.getMessage():" + e.getMessage());
System.out.println("e.toString():" + e.toString());
System.out.println("e.printStackTrace():" );
e.printStackTrace();
if (image!=null) g.drawImage(image,1,1,320,240,this);
// called each time the display needs to be repainted
public void run() {
while (count==Thread.currentThread()) {
try {
Thread.currentThread().sleep(sleepTime*1000);
} catch(Exception e) {}
repaint(); // forces update of the screen
// end of PlayJpg.java
My Html file looks like here:
<html>
<applet code="PlayJpg.class" width=320 height=240>
<param name=jpgFile value="http://Localhost/playjpg/snapshot0.jpg">
<param name=refreshTime value="1">
</applet>
</html>
I only get the first frame picture for ever by my html.But the jpg file is dynamic.
Why?
Can you help me?
Thanks.
JoeHi,
Add this line inside your run() method, right before your call to repaint():
if (image != null) {image.flush();}Hope this helps,
Kurt. -
When I copy and paste any object in Indesign (Vectorgraphics, Rectangle, Textarea, everything) it isn't pasted as another object, it's paster as an inserted Graphic. I use Creative Cloud, updating automatically. Is this a new "feature" or a bug? Copying and pasting an Object -> i want an object again (editable and with the same color etc) and not an inserted graphic. Can I change any settings for that or something? never had this problem before!
I would really appreciate your help as it's really uncomfortable in the workflow even though i could understand it would increase performance and reduce data volume.I have problem like this with indesign cs6 and windows 7, when i copy and paste frames it paste as there is graphic inside with a content grabner, my work around is from windows start>all program >go to indesign and run as administrator. Hope this may help.
-
Hello All,
I am facing problem in uploading graphic in smartform. I have to upload signature and its related contact details in smartform.
I have maintained signature in z_sign_xxxx format in se78. In smartform i am taking userid of person in z_sign_xxxx variable.Now
for eg z_sign_test is stored in se78. and i have taken 'test' name in variable z_sign_xxx. so variable z_sign_xxx has value z_sign_test now. when i call graphic there i mentioned variable name under graphic name. and while executing it is taking variable name rather than actual vaue which is z_sign_test. and thats the reason i am able to fetch signature.
Please advice if anyone knows this.Hi,
try putting name in & & in the graphic window:
&z_sign_xxx&
in such case program will put the value of your variable at runtime and try to find the following graphic from SE78.
Regards,
MC -
Runtime Error when trying to trigger smartform from VL03N
Hi all,
i am having a runtime error while trying to triger my smartforms from transaction VL03N.
The error is 'The current ABAP program "SAPLV60U" had to be terminated because it has come across a statement that unfortunately cannot be executed.'
The it's in the include: "LV60UF0K"
| 21| LOOP AT XKOMV.
| 22| KONV = XKOMV.
| 23| BELEG = XKOMV-KNUMV.
| 24| IF BELEG-ID = '$'.
| 25| PERFORM VBRK_BELEGNUMMER_ERMITTELN.
| 26| XKOMV-KNUMV = XVBRK-KNUMV.
| 27| ENDIF.
| 28| MODIFY XKOMV.
| 29| ENDLOOP.
|>>>>>| INSERT KONV FROM TABLE XKOMV.
| 31| IF SY-SUBRC NE 0.
| 32| MESSAGE A100 WITH 'KONV' SY-SUBRC XKOMV-knumv.
| 33| ENDIF.
can anyone help me on this please..
Thanks in advance
Regards
NitinThis looks like standard SAP code, your best bet is to log this as a problem on service.sap.com
Regards,
Nick -
Best way to fill CLOB with external XML from URL
There seem to be a number of great tools available for pl/sql developers in the 8i DB environment and I am tryng to get a handle on them. So far I have worked with XSQL servlet (not PL/SQL), XML Parser and XSU.
The problem I have is to fill a clob from an external xml file via a url and then make that clob available for DBMS_XMLSave to insert into DB. What is the best way to do this? I am thinking maybe I have to use utl_http or utl_tcp to fill the CLOB since I can't seem to find a method in the pl/sql XDK?
XSU - can easily generate CLOB from a query but in this case it is not a query, it is XML from url
XMlparser - can read in from a url using parse() but the document returned is a DOMDocument rather than CLOB.
-quinnThere seem to be a number of great tools available for pl/sql developers in the 8i DB environment and I am tryng to get a handle on them. So far I have worked with XSQL servlet (not PL/SQL), XML Parser and XSU.
The problem I have is to fill a clob from an external xml file via a url and then make that clob available for DBMS_XMLSave to insert into DB. What is the best way to do this? I am thinking maybe I have to use utl_http or utl_tcp to fill the CLOB since I can't seem to find a method in the pl/sql XDK?
XSU - can easily generate CLOB from a query but in this case it is not a query, it is XML from url
XMlparser - can read in from a url using parse() but the document returned is a DOMDocument rather than CLOB.
-quinn -
Can not read data from URL!
Hello,
I want to read data from URL (http://84.100.130.82:8000/;stream.nsv). But can not do it. Because when try to call function openDataInputStream() shows this error: java.io.IOException: response does not start with HTTP it starts with: ICY. How I can fix this bug?
HttpConnection c = null;
InputStream is = null;
OutputStream os = null;
StringBuffer b = new StringBuffer();
String response,
responseLitle;
c = (HttpConnection)Connector.open(“http://84.100.130.82:8000/;stream.nsv”);
os = c.openOutputStream();
os.flush();
is = c.openDataInputStream(); // ERROR CODE HERE
int ch;
// receive output
while ((ch = is.read()) != -1)
b.append((char) ch);
response = b.toString();Regards, RamunasHi, I�m trying to do the same as above, get MP3 from a Shoutcast server.
I got the same fault ("response does not start with HTTP it starts with: ICY") when I tried to open an HttpConnection as bellow:
============================================
HttpConnection conn = (HttpConnection) Connector.open("http://64.236.34.196/stream/1074");
Then I tried to open a socket connection as bellow:
======================================
SocketConnection conn = (SocketConnection) Connector.open("socket://64.236.34.196:80");
String get = "GET /stream/1074 HTTP/1.1";
DataOutputStream os = conn.openDataOutputStream();
os.writeUTF(get);
InputStream is = conn.openInputStream();
But then I got the following error:
=========================
java.lang.SecurityException: Target port denied to untrusted applications
Could someone help me to find out what is going on?
Thanks a lot! -
Insert old missing data from one table to another(databaase trigger)
Hello,
i want to do two things
1)I want to insert old missing data from one table to another through a database trigger but it can't be executed that way i don't know what should i do in case of replacing old data in table_1 into table_2
2)what should i use :NEW. OR :OLD. instead.
3) what should i do if i have records exising between the two dates
i want to surpress the existing records.
the following code is what i have but no effect occured.
CREATE OR REPLACE TRIGGER ATTENDANCEE_FOLLOWS
AFTER INSERT ON ACCESSLOG
REFERENCING NEW AS NEW OLD AS OLD
FOR EACH ROW
DECLARE
V_COUNT NUMBER(2);
V_TIME_OUT DATE;
V_DATE_IN DATE;
V_DATE_OUT DATE;
V_TIME_IN DATE;
V_ATT_FLAG VARCHAR2(3);
V_EMP_ID NUMBER(11);
CURSOR EMP_FOLLOWS IS
SELECT EMPLOYEEID , LOGDATE , LOGTIME , INOUT
FROM ACCESSLOG
WHERE LOGDATE
BETWEEN TO_DATE('18/12/2008','dd/mm/rrrr')
AND TO_DATE('19/12/2008','dd/mm/rrrr');
BEGIN
FOR EMP IN EMP_FOLLOWS LOOP
SELECT COUNT(*)
INTO V_COUNT
FROM EMP_ATTENDANCEE
WHERE EMP_ID = EMP.EMPLOYEEID
AND DATE_IN = EMP.LOGDATE
AND ATT_FLAG = 'I';
IF V_COUNT = 0 THEN
INSERT INTO EMP_ATTENDANCEE (EMP_ID, DATE_IN ,DATE_OUT
,TIME_IN ,TIME_OUT,ATT_FLAG)
VALUES (TO_NUMBER(TO_CHAR(:NEW.employeeid,99999)),
TO_DATE(:NEW.LOGDATE,'dd/mm/rrrr'), -- DATE_IN
NULL,
TO_DATE(:NEW.LOGTIME,'HH24:MI:SS'), -- TIME_IN
NULL ,'I');
ELSIF V_COUNT > 0 THEN
UPDATE EMP_ATTENDANCEE
SET DATE_OUT = TO_DATE(:NEW.LOGDATE,'dd/mm/rrrr'), -- DATE_OUT,
TIME_OUT = TO_DATE(:NEW.LOGTIME,'HH24:MI:SS'), -- TIME_OUT
ATT_FLAG = 'O'
WHERE EMP_ID = TO_NUMBER(TO_CHAR(:NEW.employeeid,99999))
AND DATE_IN <= (SELECT MAX (DATE_IN )
FROM EMP_ATTENDANCEE
WHERE EMP_ID = TO_NUMBER(TO_CHAR(:NEW.employeeid,99999))
AND DATE_OUT IS NULL
AND TIME_OUT IS NULL )
AND DATE_OUT IS NULL
AND TIME_OUT IS NULL ;
END IF;
END LOOP;
EXCEPTION
WHEN OTHERS THEN RAISE;
END ATTENDANCEE_FOLLOWS ;
Regards,
Abdetu..INSERT INTO SALES_MASTER
( NO
, Name
, PINCODE )
SELECT SALESMANNO
, SALESMANNAME
, PINCODE
FROM SALESMAN_MASTER;Regards,
Christian Balz -
How do I use the Parameters from URL to filter on Content Query in ItemStyle.xsl?
Hi, I might need your help with code that Content Query under <xsl:Template...> that I need a filter for 3 parameter from url (from date, to date(for date range) and type.
eg: www.mywebsite.com/pages/Filter.aspx?DateFrom=01/01/2012&DateTo=01/01/2013&Type=sports
I've google for help and not sure they seem working so far.Hi,
If you want to filter a Content Query Web Part with the parameters from URL, we can achieve it with OOTB of Content Query Web Part by adding "Additional Filters" in "Web Part Properties"->"Query". We can add
three filters like:
date is greater than [PageQueryString:DateFrom]
And
date is less than [PageQueryString:DateTo]
And
type is equal to [PageQueryString:Type]
Then redirect to the URL: www.mywebsite.com/pages/Filter.aspx?DateFrom=01/01/2012&DateTo=01/01/2013&Type=sports, the query results will be filtered.
Please reply freely if I misunderstand your meaning or there any other questions.
best regards
Patrick Liang
TechNet Community Support -
Getting parameters from URL: use of Special Chars
I'm unable to retrieve the Special Chars from URL parameters. Does someone have an idea where to look for?
Examples where no Special Chars is retrieved :
...App?param=Aménagement
...App?param=Am<é>nagement
...App?param=Am%E9nagement
I'm using this code :
IWDProtocolAdapter protocolAdapter =
WDProtocolAdapter.getProtocolAdapter();
IWDRequest request = protocolAdapter.getRequestObject();
String param = request.getParameter("param");
Thanks!okay, So if I use :
...App?param=Am%E9+nagement
How would you then integrate URLDecoder.decode in the following code?
IWDProtocolAdapter protocolAdapter =
WDProtocolAdapter.getProtocolAdapter();
IWDRequest request = protocolAdapter.getRequestObject();
String param = request.getParameter("param");
Maybe you are looking for
-
How to get the last day of calweek
Hi Guys, Is there any function module to get the last day of the calendarweek. I want to show that last date of calweek in my column heading.
-
Hello All, We have migrated data from virsa 4.0 to grc 10.1, all virsa mitigation approvers and controllers got migrated but we are not able to map new mitigation approver and controller to the mitigation ids. The steps we have done below. 1. We have
-
I have a Nokia Lumia 635. Cannot get internet connection without being connected to WiFi. Done what it says on the Nokia website and put the APN number in what my network gave me and it still doesn't work !! :\
-
i wrote the following code in program lines of smartform. DATA:T_KONP TYPE TABLE OF KONP WITH HEADER LINE. SELECT KNUMH FROM A363 INTO CORRESPONDING FIELDS OF TABLE T_A363 WHERE MATNR = L_XEKPO-MATNR(mat.no in me23n) AND LIFNR = ZXEK
-
Authorization of different project profiles to different users
Dear Experts, i have different project profiles which are to be assigned to different users. can any body tell how to restrict one user from using the profile other than the profile assigned to him. Any pointers on this will be highly aprreciated. A