cancel
Showing results for 
Search instead for 
Did you mean: 

SVGObjects - xMii 12 on Unix

Former Member
0 Kudos

Hello all!

I tray to build a simple page with dynamics graphic on it.

Error which is appearing is

http://localhost/Dummy.svg:-1(A file or directory in the path name does not exist)

Problem is in default path, where should be directory SVGObject!

Does anybody could tell me where to change default path in xMii 12 or in which directory should i put this files.

THX

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Roman kelhar ,

You need to place both Animated Object folder as well as SVG object folder under your project folder.

Regards,

Padma

Former Member
0 Kudos

Hi

Thanks for your last comment. Now there is no more error, but i have problem to load picture which was create with Image Saver on page.

I thing the problem is because server is Unix.

So save picture in "//usr//sap//SII//XMII//SL//stevec.png"

and load with:

IMG src="/usr/sap/SII/XMII/SL/stevec.png" name="refresh"

Where is error?

pictures are there:

-rwxr-xr-x- 1 siiadm sapsys 25464 Apr 10 07:52 Fan.jpg

-rw-r------ 1 siiadm sapsys 25101 Apr 10 07:54 Test.jpg

-rwxr-xr-x- 1 siiadm sapsys 32 Apr 17 09:36 stevec.png

Former Member
0 Kudos

My additional question is :

is there any settings - basic- on xMII 12 to allow to load picture from some folder?

is there different way to load picture from UNIX machine?

Former Member
0 Kudos

Hi Roman kelhar,

In MII 12 you can save image under WEB giving path as web://<folder>/<file.png> using Image Saver.

Once if you have saved image like this,you will get image by using Image loader taking same path.

Try this.

Can I know whats the requirement?

Regards,

Padma.

Edited by: Rao on Apr 20, 2009 7:55 AM

Former Member
0 Kudos

I was hoping so:)))

I save picture on UNIX server with ImageSaver like

"//usr//sap//SII//XMII//SL//stevec.png"

and picture are saved!

Then I load with:

IMG src="/usr/sap/SII/XMII/SL/stevec.png" name="refresh"

......no image was shown on page!

Is this some problem because of using UNIX server? If I load picture from project dir then is OK is working, but could not be save there!

Former Member
0 Kudos

well, your src as given to img tag wont work in MII 12, as it always tries to get anything from netweaver db. Since its a diff place where its stored it cant fetch.

You can use FTP actions creating FTP server if u need so.

Former Member
0 Kudos

Iu2019m not sure if I understand correctly.

FTP for loading picture or to move to directory where I could get it?

Or? Could you tell me some more information?

Former Member
0 Kudos

Roman its like you will create FTP server and all images what you want you can save there and also can load from there.you can place any files over there.

Only thing is you need to write transaction which uses FTP action block, you can provide server path and mask as *.png or a/c your requirement.

I hope u understood

Regards,

Padma

Former Member
0 Kudos

I understood how ftp is working, but If I would like to have animated object for line monitoring u2013 this I do not know how to connect with ftp.

Each 15 second I will run tag query to get new data, and create new image on default location.

And then? With ftp load picture on html page? Is this what you suggesting?

Former Member
0 Kudos

Hi Roman,

If your requirement is like below.

"Each 15 second I will run tag query to get new data, and create new image on default location"

Then , I would rather suggest you easy solution.

I hope u are executing some transaction to save images and u have sheduled that transaction right?

Now,

1.Create one folder as Images WEB,

2.Save all your pictures there using image saver. Give WEB in Path.

3.In html page you can just use Img tag with this path src="../Folder/Images/Pic.png".

Now everytime the transaction executed it creates same image with diff values.This u can check in workbench once u refresh that folder you will get image with new value.

Samething you need in html page that if u refresh the it gives new images but that has to be done automatically when page loads ,for that just do small script code as below which refreshes the page once.


var vcount1=1;
function initialize()
{
	if(vcount1==1)
	{
	vcount1=0;
	location.reload(true);
	}
}

Regards,

Padma.

Answers (1)

Answers (1)

Former Member
0 Kudos

Roman kelhar,

In MII 12.0 I guess you can't give path as http://localhost/Dummy.svg

instead, if you give the path like WEB://Dummy.svg the file will be created in the WEB folder of your project.

BR,

SB

Former Member
0 Kudos

The problem is not the path where to save .jpeg file. This is working with simple path enter. Problem is that Animation Renderer need SVGObject in installation path of xMII.

Iu2019m not Unix expert and this is done by IBM.

I only would like to know where to put SVGObject directory on UNIX, or where in MII 12 change or add default path, that Animation Renderer will found SVGObjects

Former Member
0 Kudos

Roman kelharm,

"Default" project "AnimatedObject" folder. You may import your objects here.

BR,

SB.

Former Member
0 Kudos

Good suggestion but is not correct:(

I still got error http://localhost/Dummy.svg:-1

Former Member
0 Kudos

Interesting... Need some details of your BLS..

BR,

SB.

Former Member
0 Kudos

For example?

What you need?

Former Member
0 Kudos

Sequences, Actions & link configs in your BLS..

BR,

SB

Former Member
0 Kudos

Hi again

This is all what i create.

Is for 11.5 but is the same in 12-

Link: [http://searchsap.techtarget.com/tip/0,289483,sid21_gci1246928,00.html]