Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » EPF » How to provide link to a file
How to provide link to a file [message #52803] Wed, 20 August 2008 18:34 Go to next message
Eclipse UserFriend
Originally posted by: ihandojo.njm.com

Hi. I have a rather "newbie" question, but since I couldn't find the
answer anywhere else, maybe this is the right forum.

I'm trying to add a link to a file on a shared folder, say,
file://servername/DFS_Root/SharedDocs/Database.mdb

In the editor, both methods of adding a hyperlink don't seem to work for
me. Once I select the text and click on the hyperlink button:

1) If I choose the "URL" type, it always trims the "file:" part, leaving
this to be a relative link that starts with "servername/DFS_....", which
consequently be translated incorrectly as a local link. Overriding it in
the HTML tab as an "http://servername/..." doesn't seem to work either
since it will self-correct. Changing into using \ instead of / didn't work
either since it will auto-correct and remove the \'s.

2) If I choose the "File" type, it actually picks up the file and puts it
under resources folder and refer to it (the link will be transformed into
something like <a href="./resources/Database.mdb" target="_blank"> which
is not I want since I don't want EPF to retain a local copy. Size of the
resulting published website also grows accordingly to the size of the file.

Any feedback on how I can do this?

Thanks in advance for anybody's help.

p.s. I'm still using the older v.1.0.2a EPF Composer, but I didn't see
this being a bug that was fixed in later version anyway (unless I missed
it).
Re: How to provide link to a file [message #52915 is a reply to message #52803] Fri, 22 August 2008 10:05 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dbzhou.huawei.com

I have an idea:
1,in the rich edit page, you select url type,and input:
//servername/DFS_Root/SharedDocs/Database.mdb
2,switch to html code page,you will see EPF cut //,
you must add // by yourself.

So, your link address is file://servername/DFS_Root/SharedDocs/Database.mdb
Re: How to provide link to a file [message #52991 is a reply to message #52915] Fri, 22 August 2008 17:50 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ihandojo.njm.com

Thanks, but I tried this and unfortunately it doesn't work.

When the link starts with //, the final link will be interpreted in
relative terms, so you'll end up with something like
http://www.yourwebsite.com/EPF/workproducts///servername/DFS _Root/SharedDocs/Database.mdb

As a workaround, I ended up moving the .mdb file into a subfolder under
the workproducts subfolder under the final EPF folder on the server where
the website is hosted, and take advantage of the relativeness of the link
to go there, so I enter the URL link in the EPF editor to be something
like ./MyDatabase/Database.mdb and so the final link ends up as
http://www.yourwebsite.com/EPF/workproducts/MyDatabase/Datab ase.mdb

This is not a real solution as far as difficulties with EPF's editing tool
is concerned, so if anybody including the EPF gurus have an answer, it
would be appreciated all the same.



daniel wrote:

> I have an idea:
> 1,in the rich edit page, you select url type,and input:
> //servername/DFS_Root/SharedDocs/Database.mdb
> 2,switch to html code page,you will see EPF cut //,
> you must add // by yourself.

> So, your link address is file://servername/DFS_Root/SharedDocs/Database.mdb


Alex wrote:

>> Hi. I have a rather "newbie" question, but since I couldn't find the
>> answer anywhere else, maybe this is the right forum.

>> I'm trying to add a link to a file on a shared folder, say,
>> file://servername/DFS_Root/SharedDocs/Database.mdb

>> In the editor, both methods of adding a hyperlink don't seem to work for
>> me. Once I select the text and click on the hyperlink button:

>> 1) If I choose the "URL" type, it always trims the "file:" part, leaving
>> this to be a relative link that starts with "servername/DFS_....", which
>> consequently be translated incorrectly as a local link. Overriding it in
>> the HTML tab as an "http://servername/..." doesn't seem to work either
>> since it will self-correct. Changing into using instead of / didn't work
>> either since it will auto-correct and remove the 's.

>> 2) If I choose the "File" type, it actually picks up the file and puts it
>> under resources folder and refer to it (the link will be transformed into
>> something like <a href="./resources/Database.mdb" target="_blank"> which
>> is not I want since I don't want EPF to retain a local copy. Size of the
>> resulting published website also grows accordingly to the size of the file.

>> Any feedback on how I can do this?

>> Thanks in advance for anybody's help.

>> p.s. I'm still using the older v.1.0.2a EPF Composer, but I didn't see
>> this being a bug that was fixed in later version anyway (unless I missed
>> it).
Re: How to provide link to a file [message #53042 is a reply to message #52803] Mon, 25 August 2008 09:44 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mbillaouadil.hotmail.fr

You can update directly XMI file.

1 - Right Clik on your Guidance (or other object) : Show in Resource
Navigator.
2 - Open the XMI file associated to your Object.
3 - Put the value of your URL (file://...).
4 - Save your file and Test.

I hope that can work for you.

Good Luck.
Re: How to provide link to a file [message #53065 is a reply to message #52991] Mon, 25 August 2008 20:51 Go to previous message
Eclipse UserFriend
Originally posted by: storaskar.xx.xxx.xxx

This is by design.
RTE only supports local file attachments that are in library.
This could be treated as enhancement request. You could file an bugzilla
on that.

Thanks
Shilpa
Re: How to provide link to a file [message #590204 is a reply to message #52803] Fri, 22 August 2008 10:05 Go to previous message
daniel is currently offline danielFriend
Messages: 17
Registered: July 2009
Junior Member
I have an idea:
1,in the rich edit page, you select url type,and input:
//servername/DFS_Root/SharedDocs/Database.mdb
2,switch to html code page,you will see EPF cut //,
you must add // by yourself.

So, your link address is file://servername/DFS_Root/SharedDocs/Database.mdb
Re: How to provide link to a file [message #590246 is a reply to message #52915] Fri, 22 August 2008 17:50 Go to previous message
Alex is currently offline AlexFriend
Messages: 65
Registered: July 2009
Member
Thanks, but I tried this and unfortunately it doesn't work.

When the link starts with //, the final link will be interpreted in
relative terms, so you'll end up with something like
http://www.yourwebsite.com/EPF/workproducts///servername/DFS _Root/SharedDocs/Database.mdb

As a workaround, I ended up moving the .mdb file into a subfolder under
the workproducts subfolder under the final EPF folder on the server where
the website is hosted, and take advantage of the relativeness of the link
to go there, so I enter the URL link in the EPF editor to be something
like ./MyDatabase/Database.mdb and so the final link ends up as
http://www.yourwebsite.com/EPF/workproducts/MyDatabase/Datab ase.mdb

This is not a real solution as far as difficulties with EPF's editing tool
is concerned, so if anybody including the EPF gurus have an answer, it
would be appreciated all the same.



daniel wrote:

> I have an idea:
> 1,in the rich edit page, you select url type,and input:
> //servername/DFS_Root/SharedDocs/Database.mdb
> 2,switch to html code page,you will see EPF cut //,
> you must add // by yourself.

> So, your link address is file://servername/DFS_Root/SharedDocs/Database.mdb


Alex wrote:

>> Hi. I have a rather "newbie" question, but since I couldn't find the
>> answer anywhere else, maybe this is the right forum.

>> I'm trying to add a link to a file on a shared folder, say,
>> file://servername/DFS_Root/SharedDocs/Database.mdb

>> In the editor, both methods of adding a hyperlink don't seem to work for
>> me. Once I select the text and click on the hyperlink button:

>> 1) If I choose the "URL" type, it always trims the "file:" part, leaving
>> this to be a relative link that starts with "servername/DFS_....", which
>> consequently be translated incorrectly as a local link. Overriding it in
>> the HTML tab as an "http://servername/.." doesn't seem to work either
>> since it will self-correct. Changing into using instead of / didn't work
>> either since it will auto-correct and remove the 's.

>> 2) If I choose the "File" type, it actually picks up the file and puts it
>> under resources folder and refer to it (the link will be transformed into
>> something like <a href="./resources/Database.mdb" target="_blank"> which
>> is not I want since I don't want EPF to retain a local copy. Size of the
>> resulting published website also grows accordingly to the size of the file.

>> Any feedback on how I can do this?

>> Thanks in advance for anybody's help.

>> p.s. I'm still using the older v.1.0.2a EPF Composer, but I didn't see
>> this being a bug that was fixed in later version anyway (unless I missed
>> it).
Re: How to provide link to a file [message #590272 is a reply to message #52803] Mon, 25 August 2008 09:44 Go to previous message
Eclipse UserFriend
Originally posted by: mbillaouadil.hotmail.fr

You can update directly XMI file.

1 - Right Clik on your Guidance (or other object) : Show in Resource
Navigator.
2 - Open the XMI file associated to your Object.
3 - Put the value of your URL (file://..).
4 - Save your file and Test.

I hope that can work for you.

Good Luck.
Re: How to provide link to a file [message #590289 is a reply to message #52991] Mon, 25 August 2008 20:51 Go to previous message
Shilpa Toraskar is currently offline Shilpa ToraskarFriend
Messages: 102
Registered: July 2009
Senior Member
This is by design.
RTE only supports local file attachments that are in library.
This could be treated as enhancement request. You could file an bugzilla
on that.

Thanks
Shilpa
Previous Topic:catch the "return" key
Next Topic:Can't View Diagrams
Goto Forum:
  


Current Time: Wed Apr 24 23:17:03 GMT 2024

Powered by FUDForum. Page generated in 0.03374 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top