
Hi, I need to show a link to some CGI requiring the customer ID, but I can't make it work. Anybody know the right syntax? I'm using: Map => [ # note: Login, Email and CustomerID needed! # var, frontend, storage, shown, required, storage-type, http-link ... [ 'UserCustomerID', 'CustomerID', 'id', 1, 1, 'var', 'http://URL/script?id=$Data{"CustomerID"}' ], ], but the expansion is not working. Thanks in advance! Lic. Fernando Schapachnik Proyecto de Informática Ministerio de Economía

Am Mon, 2003-09-15 um 17.39 schrieb Fernando Schapachnik:
Map => [ # note: Login, Email and CustomerID needed! # var, frontend, storage, shown, required, storage-type, http-link
...
[ 'UserCustomerID', 'CustomerID', 'id', 1, 1, 'var', 'http://URL/script?id=$Data{"CustomerID"}' ], ],
but the expansion is not working. Thanks in advance!
Which script do you refer to? It seems to me this were a basic Perl question, and not directly deriving from OTRS, does it? Regards, Robert Kehl

En un mensaje anterior, Robert Kehl escribió:
Am Mon, 2003-09-15 um 17.39 schrieb Fernando Schapachnik:
Map => [ # note: Login, Email and CustomerID needed! # var, frontend, storage, shown, required, storage-type, http-link
...
[ 'UserCustomerID', 'CustomerID', 'id', 1, 1, 'var', 'http://URL/script?id=$Data{"CustomerID"}' ], ],
but the expansion is not working. Thanks in advance!
Which script do you refer to? It seems to me this were a basic Perl question, and not directly deriving from OTRS, does it?
I don't think so. I'm refering to a custom script that shows extended customer information. It takes a parameter 'id' being the CustomerID. Of course 'URL' and 'script' are just placeholders to simplify the example. Thanks and regards.

Hi Fernando, On Mon, Sep 15, 2003 at 04:08:31PM -0300, Fernando Schapachnik wrote:
Map => [ # note: Login, Email and CustomerID needed! # var, frontend, storage, shown, required, storage-type, http-link
...
[ 'UserCustomerID', 'CustomerID', 'id', 1, 1, 'var', 'http://URL/script?id=$Data{"CustomerID"}' ], ],
but the expansion is not working. Thanks in advance!
Which script do you refer to? It seems to me this were a basic Perl question, and not directly deriving from OTRS, does it?
I don't think so. I'm refering to a custom script that shows extended customer information. It takes a parameter 'id' being the CustomerID. Of course 'URL' and 'script' are just placeholders to simplify the example.
I think you need to set the CustomerID link in the customer detail box, because if I understood it correctly, you don't use the otrs customer backend modules. Try the following in you Kernel/Config.pm: $Self->{CustomerDBLink} = 'http://yourhost/customer.php?CID=$Data{"CustomerID"}'; :)
Thanks and regards.
Martin -- Martin Edenhofer - <martin at edenhofer.de> - http://martin.edenhofer.de/ -- Old programmers never die. They just branch to a new address.

En un mensaje anterior, Martin Edenhofer escribió:
Try the following in you Kernel/Config.pm:
$Self->{CustomerDBLink} = 'http://yourhost/customer.php?CID=$Data{"CustomerID"}';
Thanks! That's nice, I've missed it. On a related note, I'm adding some custom funcionality to OTRS. Some of it might of general interest (eg, search tickets by date). I'd like to know if there's interest in getting them in the source tree and if there is, what criteria should patches met to be accepted. Which mailing list/individual is appropiate to discuss that? Thanks! Fernando.

On Mon, Sep 15, 2003 at 05:42:38PM -0300, Fernando Schapachnik wrote:
Try the following in you Kernel/Config.pm:
$Self->{CustomerDBLink} = 'http://yourhost/customer.php?CID=$Data{"CustomerID"}';
Thanks! That's nice, I've missed it.
On a related note, I'm adding some custom funcionality to OTRS. Some of it might of general interest (eg, search tickets by date). I'd like to know if there's interest in getting them in the source tree and if there is, what criteria should patches met to be accepted. Which mailing list/individual is appropiate to discuss that?
Fernando, that would be very cool! Post the patch on the dev mailing list! :) -=> http://otrs.org/lists/
Fernando.
Martin -- Martin Edenhofer - <martin at edenhofer.de> - http://martin.edenhofer.de/ -- "Security is a process, not a product." - Bruce Schneier

Am Mon, 2003-09-15 um 22.42 schrieb Fernando Schapachnik:
On a related note, I'm adding some custom funcionality to OTRS. Some of it might of general interest (eg, search tickets by date). I'd like to know if there's interest in getting them in the source tree and if there is, what criteria should patches met to be accepted. Which mailing list/individual is appropiate to discuss that?
That would be the 'dev' mailing list. Subscriptions can be done here: http://lists.otrs.org/cgi-bin/listinfo/dev A developer wants to now what's cooking: http://lists.otrs.org/cgi-bin/listinfo/cvs-log If you plan to work on internationalization, 'i18n' is for you: http://lists.otrs.org/cgi-bin/listinfo/i18n Regards, Robert Kehl
participants (3)
-
Fernando Schapachnik
-
Martin Edenhofer
-
Robert Kehl