Custom license fields

I have a question on using Custom license fields. Beside using it for send optional feature and check date and time, is there anyway we can use it to retrieve customer usage duration (I can make the app generate the duration number)? What I want is to retrieve it back to server to as customer data collection.

Well, the way to store customer information into the fields is to collect the information, send it to a script on your server (along with something like the product key), then use the web API to update the custom field with that new data.

Does that make sense?

Can you explain "send it to a script on your server" path, or have a code examples? Does our library have send custom data function? And can I make the app send data to server more frequently? (For example: Send after app closed).

The web API pack has a number of different examples showing how to use the web API to (among other things) modify custom license fields on product keys.

So, the way you'd do it is like this (I'm assuming you're using PHP on your webserver, but you can use any language):

  1. Create a simple php script that includes the LimeLM.php file. Write the lines of code that will read from POST the product key and the data you want to save.
  2. The script will then call the limelm.pkey.setDetails function (or SetPKeyDetails() in LimeLM.php) to save the data to a license field.
  3. Your app will POST data to this script sitting on your server.
Does our library have send custom data function?

You have to write the code to collect whatever data you need, and use the web API functions to save it in the license field.

And can I make the app send data to server more frequently? (For example: Send after app closed).

You can send it as often as you'd like.

Thank you for your previous answer.So, I want to ask which function that can be trigger when customer trying to exit app to send the data back to LimeLM server?

So, I want to ask which function that can be trigger when customer trying to exit app to send the data back to LimeLM server?

Well, this depends on the programming language you use and the libraries you're using. In other words, you're responsible for POSTing this data to the script on your website. If you're making a .NET app then you might want to use something like the Form's closing event or the Application Exit event.