# JavaScript - Utilities to make life easier 👌

**URL:** <https://community.ragic.com/t/javascript-utilities-to-make-life-easier/6791>\
**Category:** Gallery\
**Created:** [December 20, 2020, 2:19pm UTC](https://community.ragic.com/t/javascript-utilities-to-make-life-easier/6791 "2020-12-20T14:19:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![RagicSolutions](https://community.ragic.com/user_avatar/community.ragic.com/ragicsolutions/32/1207_2.png) [@RagicSolutions](https://community.ragic.com/u/RagicSolutions)\
**Post date:** [December 20, 2020, 2:19pm UTC](https://community.ragic.com/t/javascript-utilities-to-make-life-easier/6791/1 "2020-12-20T14:19:38Z")

</div>

Hi

As developers, we spend a lot of time doing two things over and over again​😡:

1. Get the Field ID for a given field either in the Designer or in the Ragic API Data Dictionary so that we can reference a field.

2. Once we have the field then we need to repeatedly write a bunch of code to get the value of that field using the “Path”, “Key field Id” and a few lines of code.

**We developed two solutions reducing many lines of code down to one line of code 😁**

**Examples:**  
If you want the value of the field called ‘_Event Start Date_’ simple call:

> RS\_GetFieldValue(‘/ragicnew-tab/10002’, ‘Event Start Date’);  
> which returns ‘2020/05/26 03:30:00’

This make code so easy to read instead of only seeing the field ID in the code like this:  
… entry.getFieldValue(2000073); // What is this?  
… entry.getFieldValue(1000006); // What is this?  
… entry.getFieldValue(1000106); // What is this?  
and reduces the code to one simple line 👌

If you want the value of field ID ‘_1000006_’ (Description field):

> RS\_GetFieldValue(‘/ragicnew-tab/10002’, ‘1000006’);  
> which rerturns ‘Get it done:-) with Ragic apps’

If you want to know the filed ID for ‘_Complete Date_’

> RS\_GetInfo(‘Complete Date’);  
> which returns ‘2000074’

Or you have the field ID and want the field name

> RS\_GetInfo(‘2000071’);  
> which returns ‘Assigned To’

And if you want a sheets “Key field Id” then:

> RS\_GetInfo(‘/ragicnew-tab/10002’);  
> retuns ‘2000465’

If you want to make your life easier and want this code library + the live data dictionary then contact us at [ragicsolutions@gmail.com](mailto:ragicsolutions@gmail.com)

To implement the dictionary we need to manually convert\digitize your dictionary to code which takes a little time. We will digitize 10 of your sheets + provide a self-help training video for you to digitize the rest of your sheets or makes changes.

Once off cost is only $ 25 😃👏

Regards  
[RagicSolutions.com](http://RagicSolutions.com)
