Best practice to parametrize external URLs

688 views
Skip to first unread message

sivak...@gmail.com

unread,
Aug 20, 2014, 11:23:01 AM8/20/14
to suppor...@runmyprocess.com
Hi,

We are using an external web servers to host our help files and some static files as we are not able to use the RMP file system to host these files. The main reason being, the file gets a new id and in turn a new URL every time we update a file. So we cannot update all the references whenever we update the file.

So in our solution, we have different instances for different environment - like TEST, QA and Production.

We want to parametrize the URL so that we don't to change the URL everytime we release the versions to acceptance and live.

The options we were thinking is to have some global variables in our global header widget (which will be included in all our screens) and based on the P_mode, we can assign different values using the javascript. This might work, but we want to understand the best practice to do this in RMP.

Thank you!

Regards,
Siva

Dimitri MELCHIOR Pro

unread,
Aug 20, 2014, 11:44:45 AM8/20/14
to RunMyProcess Support Forum
Hi Sivar,

First of all, you are not compelled to create a new file or change file ID to modify its content especially if you use these codes :

file_content : Read the content of a file uploaded on the platform, after applying the indicated encoding

save_file : Overwrite an existing file

There are many other FreeMarker APIs enabling you to do what you want :

create_file : Create a new file.

delete_file : Delete an existing file.

save_file_desc : Modify the metadata describing a file uploaded on the platform

---------

Other hand, you can use item onClick javascript execution in your Menu Bar (see below example).

[{
        "title" : "Home",
        "javascript" : "alert('toto');"
    }, {
        "title" : "New RFP",
        "javascript" : "window.open('https://www.google.com')"
    }, {
        "title" : "New RFP",
        "javascript" : "document.location.href='https://www.google.com';"
    }
]

Does it fulfill your expectations?


--

Dimitri MELCHIOR

PreSales Consultant

     

Fujitsu RunMyProcess user? Please add a review on GoogleApps Marketplace

Afin de contribuer au respect de l'environnement, merci de n'imprimer ce message qu'en cas de nécessité.
Be environmentally friendly: do not print this email unless it is entirely necessary.



--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "RunMyProcess Support Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum...@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at http://groups.google.com/a/runmyprocess.com/group/supportforum/.
To view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/d6ebc6da-f6ca-41a4-b49f-6008bbfec386%40runmyprocess.com.
For more options, visit https://groups.google.com/a/runmyprocess.com/d/optout.

Reply all
Reply to author
Forward
0 new messages