Application global settings table
Posted: Tue Sep 28, 2021 10:46 pm
Hello everyone, hello developers,
I started to learn nuBuilder and find out that there is a lot of potential and was a lot of work going into this product. Respect to the developer!
My Question:
I just want to create a table and store all global settings in it (one record). What will the table contain?
Example:
I would like to replace a placeholder (field/label value) in the report:
Example:
Has anyone done something like that?
I would be very happy if someone could help me.
I wish you all the best and stay healthy!
Xhezmi
I started to learn nuBuilder and find out that there is a lot of potential and was a lot of work going into this product. Respect to the developer!
My Question:
I just want to create a table and store all global settings in it (one record). What will the table contain?
- -Company information (Address, VAT, Phone numbers, etc)
-Starting number for customers (after saving I will increase it)
-Starting number for organization (after saving I will increase it)
-Starting number for invoices (after saving I will increase it)
-and much other
Example:
Code: Select all
$pref = "SELECT * FROM Settings WHERE Settings_id = 1";
nuRunQuery($pref);
Example:
Code: Select all
##COMPANYNAME## = $pref['set_company_name']
##STREET## = $pref['set_street_1']
##CITY## = $pref['set_country']
I would be very happy if someone could help me.
I wish you all the best and stay healthy!
Xhezmi