Add a method to generate URL for action zoom

Description

Following https://groups.google.com/forum/?fromgroups#!topic/idempiere/-gIJtTVX_AI.

It would be great to have a method (in PO ?) that will return the URL that can be used with ticket 2334.

Regards,

Nicolas

Environment

None

Attachments

3

Activity

Show:

Carlos Ruiz December 12, 2015 at 6:47 PM

Reopening as the links generated by default (no sysconfig set) are not working because is not including the http/https and the corresponding port.
A useful default link it must include this information

Nicolas Micoud October 23, 2015 at 9:15 AM

Hi ,

Please find a patch with your last comments.
I also add other useful methods (getHostName, getLoginPage)

How does it works ?

By default, it will use the 'hardcoded' value.
But you can overwrite it using SysConfig key (APPLICATION_URL) on client level.
Note that if a key is set on System level and you want to use the hardcoded way on a specific client, you have to create the sysconfig key with this value 'USE_HARDCODED'.

Ugly but i can't find another way to achieve it.

Thanks,

Regards,

Nicolas

Nicolas Micoud October 22, 2015 at 3:58 PM

I agree with the 2 statements
I will upload a patch ASAP.

Regards,

Nicolas

Carlos Ruiz October 22, 2015 at 3:55 PM

, based on a patch I get from you yesterday () maybe we can use WebUtil.getServerName() as the default in case the sysconfig APPLICATION_URL is not configured?

Would that work?

I'm also in doubt if Env.java is the best place for that - maybe WebUtil could be a better placement?

Regards,

Carlos Ruiz

Nicolas Micoud October 22, 2015 at 3:16 PM

Hi ,

Woud it be possible to integrate the current patch ?
And maybe create other tasks for :

  • add the ClientID in URL

  • retrieving the url in sql

  • add a kind of merge field which can be interpretated in the parse methods of MailText (eg, in the mail template, you write #APP_URL# and it will be replaced by "http://.../webui"

?

Fixed

Details

Assignee

Reporter

Labels

Priority

Created December 12, 2014 at 7:36 PM
Updated October 12, 2018 at 9:39 AM
Resolved December 12, 2015 at 7:03 PM