Questions?

They are answered by the XTRF community and our experts

0

Provider document organization and efficiency

Peter Clarck 2 years ago updated by Juan (Comunica Translations) 2 years ago 7

Hello,

My question is: how do others most efficiently get providers/translators to sign documents such as tems & conditions, work agreements, NDA's and also how to make sure that on onboarding they provide you with all of their necassery documentation such as CV, tax documents, educational documents etc. Is there a specific programm people use or some specific method simply to increase efficiency and organiztion?

0

XTRF Groovy Macro - How to compare numerical values with non-numeric value 'Hyphens'

burg 2 years ago updated by Bartosz Budzyński 2 years ago 2

How to check in XTRF Macros when value is a whole number or with decimal places and/or non-numeric values exists such as hyphens.

Example 1: Quote Value can be 0 
Example 2: Quote Value can be 0.00
Example 3: Quote Value can be -

0

A question for some group-think... Has anyone effectively used XTRF to track referrals?

mark 2 years ago updated by BURG Translations 2 years ago 1

We're trying to think about how to track referrals better and would love to use XTRF if that's possible. Has anyone done this effectively who is willing to share what they've done?

Thanks!

0

when i try to connect to a database using macro I get invalid address error

Ahmed Abd El Hameed 2 years ago 0

I try to connect to a database using xtrf macros and I get this error

invalid database address: jdbc:mysql://"HostIp:PortNumber"/"db name"

this is the code I am trying to connect to db with

try {
String url = "jdbc:mysql://host:port/"
String db = "database name"
String userName = "username"
String password = "password"

Connection conn = DriverManager.getConnection(url + db,userName,password)}
catch(Exception e){
return e.getMessage()
}

however the same code works fine on my machine when I try it on Intellij, is there something missing in my code ? 

0

How to send emails to users using the logged in admin email with macro

Ahmed Abd El Hameed 2 years ago 0

I want to create a macro that sends emails to users, the sender is the already logged in admin email and the recipients are the selected users i want. what class should I be using in order to achieve that ?

0

I have a macro that checks a condition and I want it to mail the output to a static mail

Ahmed Abd El Hameed 2 years ago 0

My macro works just fine but I don't know how to make it send an email if the condition is true, can't seem to find the class responsible for sending emails and SendingEmailService seem to crash my macro , any help is appreciated.

thanks in advance.

0

Changing Client's Name in Smart Projects after creation using Macros

Ahmed Abd El Hameed 2 years ago updated by Dennis Rosenbaum 2 years ago 3

Hello , I am trying to change the client name after creating the smart project but it only changes from the outside not from the inside of the project dashboard 

Image 2411

Image 2412

is there anyway I can change it in both places ? I tried to setNameInternal and it didnt work aswell

here is my code

import com.radzisz.xtrf.utils.velocity.VelocityTagUtils
import com.radzisz.xtrf.model.project.Project
import com.radzisz.xtrf.service.CustomerService
import com.radzisz.xtrf.model.partner.customer.Customer




class ChangeClient {
    def list;
    def params;

    VelocityTagUtils utils = new VelocityTagUtils();

    ChangeClient(list, params){
    this.list = list;
    this.params = params;
    }
CustomerService customers = utils.getService("com.radzisz.xtrf.service.CustomerService")
Customer newCustomer = customers.getByName("DTest2")
def nameOfNewCustomer = newCustomer.getName()

    def runMacro() {
        String customerName
        
        list.each{Project project ->
            project.setCustomerInternal(newCustomer)
            project.getCustomer().setNameInternal(nameOfNewCustomer)
        }
    }
}

new ChangeClient(list, params).runMacro();


0

Classic projects

Christiane Lueke 2 years ago updated by Thijs Senten 2 years ago 1

Can I still access classic projects and if so, how do I switch between smart projects and classic projects?

0

Has anyone created a macro to update the Project/Account/Sales Managers?

mark 2 years ago updated 2 years ago 3

I'm hoping to be able to change the Project Manger (and/or account manager, sales manager, project coordinator) through a macro and trigger it via api. Has anyone done this? Does this seem doable? Thanks!

0

Can you create an external list of vendors to invite to a job via API?

mark 2 years ago updated 2 years ago 2

We've been trying to figure out how we want to invite vendors to a job via the API and have been following this thread... https://xtrf.userecho.com/en/communities/8/topics/2164-can-you-select-vendors-through-api

Here's a similar question, but from a different angle.

Can I (or has anyone already done this??) create a dynamic external list of vendors with their XTRF IDs, and then use this list to invite them to new XTRF projects? So rather than create a vendor selection rule that is based off of XTRF filters, create a list that the rule pulls and executes upon? If this is possible, I assume it would have to be a macro, so, where/how would you execute this macro?

Any thoughts? Thanks!