# Sample Codes

**URL:** https://forum.radsystems.io/c/sample-codes/31.md

[Latest](https://forum.radsystems.io/latest.md) · [Categories](https://forum.radsystems.io/categories.md)

---

## [About the Sample Codes category](https://forum.radsystems.io/t/about-the-sample-codes-category/821)

<div class="topic-metadata">

**Author:** [@admin](https://forum.radsystems.io/u/admin)\
**Replies:** 0

</div>

Use this category to create and get sample codes that can be used with Radsystems application. Make sure to detail the steps for using the code block and the project type it can be used with. This category is for crea…

---

## [How to calculate age based on date of birth in phprad classic 2.7.3++](https://forum.radsystems.io/t/how-to-calculate-age-based-on-date-of-birth-in-phprad-classic-2-7-3/842)

<div class="topic-metadata">

**Author:** [@Wahome-mutahi100](https://forum.radsystems.io/u/Wahome-mutahi100)\
**Replies:** 8\
**Last updated:** [February 1, 2025, 3:33am UTC](https://forum.radsystems.io/t/how-to-calculate-age-based-on-date-of-birth-in-phprad-classic-2-7-3/842 "2025-02-01T03:33:40Z")

</div>

well hello there ! let us calculate the age based on date of birth!! let us start by creating our table! i created one table with the following fields! dob and age that is it for the database! next thing is to n…

---

## [Capture browser GPS coordinates in AddPage](https://forum.radsystems.io/t/capture-browser-gps-coordinates-in-addpage/840)

<div class="topic-metadata">

**Author:** [@ribaraki](https://forum.radsystems.io/u/ribaraki)\
**Replies:** 2\
**Last updated:** [October 14, 2023, 6:05pm UTC](https://forum.radsystems.io/t/capture-browser-gps-coordinates-in-addpage/840 "2023-10-14T18:05:06Z")

</div>

Capture GPS Coordinates while adding a new record in ADDPage 1. Add coordinate fields for gps latitude and longitude to your table, make sure your field type/size to be at least: lat=decimal(10,8) , long=decimal(11,8) …

---

## [Creating an autopopulate api in phprad classic 2.7.3++](https://forum.radsystems.io/t/creating-an-autopopulate-api-in-phprad-classic-2-7-3/841)

<div class="topic-metadata">

**Author:** [@Wahome-mutahi100](https://forum.radsystems.io/u/Wahome-mutahi100)\
**Replies:** 0\
**Last updated:** [April 30, 2022, 12:54pm UTC](https://forum.radsystems.io/t/creating-an-autopopulate-api-in-phprad-classic-2-7-3/841 "2022-04-30T12:54:06Z")

</div>

hello there! this is a tutorial specifically for the older version of phprad which as of the making of this tutorial it at 2.7.3! currently available at https://phprad.com ! this example will work on all of its relea…

---

## [Calling and api endpoint in radsystems](https://forum.radsystems.io/t/calling-and-api-endpoint-in-radsystems/835)

<div class="topic-metadata">

**Author:** [@Wahome-mutahi100](https://forum.radsystems.io/u/Wahome-mutahi100)\
**Replies:** 0\
**Last updated:** [April 28, 2022, 12:51pm UTC](https://forum.radsystems.io/t/calling-and-api-endpoint-in-radsystems/835 "2022-04-28T12:51:23Z")

</div>

this will apply to all radsystems that use vue as a frontend that include ! Noderad,ASp.net,VueRad,PrimeVue this will be how you access your endpoints in all of them! assuming you have a created an endpoint that shows a…

---

## [Accessing active user details in noderad](https://forum.radsystems.io/t/accessing-active-user-details-in-noderad/834)

<div class="topic-metadata">

**Author:** [@Wahome-mutahi100](https://forum.radsystems.io/u/Wahome-mutahi100)\
**Replies:** 0\
**Last updated:** [April 28, 2022, 12:27pm UTC](https://forum.radsystems.io/t/accessing-active-user-details-in-noderad/834 "2022-04-28T12:27:52Z")

</div>

for anyone who used phprad classic 2.7.3 old version you came to a point where you needed to access data of the currently logged in user and you normally did this \<?php get\_active\_user('fieldname\_from\_the users\_table');?\>…
