We're Moving to a New Support Platform – Starting June 1st!
We’re excited to let you know that starting June 1st, we’ll be transitioning to a new support system that will be available directly on our product websites – Amelia, wpDataTables, and Report Builder. In fact, the new support platform is already live for Amelia and wpDataTables, and we encourage you to reach out to us there.
You'll always be able to reach us through a widget in the bottom right corner of each website, where you can ask questions, report issues, or simply get assistance.
While we still do not offer live support, a new advanced, AI-powered assistant, trained on our documentation, use cases, and real conversations with our team, is there to help with basic to intermediate questions in no time.
We're doing our best to make this transition smooth and hassle-free. After June 1st, this current support website will redirect you to the new "Contact Us" pages on our product sites.
Thanks for your continued support and trust – we’re excited to bring you an even better support experience!
Hi,
For a new table I want to add a field with the creator (user) of a record.
I've added a field based on an other table with specific users (foreign key). The field-configuration in the edit-tab is single value selectbox.
What I would like, is to configure a pre-defined value; %CURRENT_USER_ID%. Alas, the only thing I can do is pick one of the users and put that as predefined value.
Is it somehow possible to use %CURRENT_USER_ID%?
Hi, Fietsmaatjes.
I am sorry to disappoint you, but with our current plugin capabilities, it is not possible to achieve that with a Foreign Key Column.
As you said, when we use a foreign key Column - it is only possible to choose Single value selectbox for Editing;
thus it is not possible to use the 'Current_user_ID' placeholder there.
We can only add the Current_User_ID placeholder if the Editor Type is something like a "One Line Edit", or "Multi-Line Edit".
-
For example, i just did some testing with my SQL Tables.
If i got these two tables from SQL Databse , "customers" and 'employees";
in the Customers, each customer has its unique ID, same goes for the Employees Table.
Then if i wish to make a new Table - for this example i just make a simple Manual table,
and if i make a Foreign Key Relation for Customers,
i set the "Store Value" as the Customer ID column,
and display value to Customer First Name;
Then if i manually input value of Customer ID - it will automatically pull the right Customer Name.
For example, this Customer First name Sven, is Customer ID 1 - so first i set the column as Integer, and save it - so it gets stored in the Database as Integer;
then switch it to String, set Foreign Key Relation,
and if i input 1 - it pulls the correct Customer Name.
-
If you wish to see the built-in option to set predefined Editor Type as "One Line Edit" or "Multi Line Edit",
for Foreign Key Column Editing, you can make a suggestion for our developers,
but i can't say an ETA if or when that might be possible.
Please feel free to search on our suggestions page,
to see if someone may be already suggested this feature. If you can't see it, feel free to add your suggestion there, and as more people vote, the feature will move higher on the priority list.
You can certainly follow our changeLog page if you'd like ( it is also available in the plugin dashboard), where we state any changes/new features/bug fixes during updates;
and our newsletter, so you're informed about new features, bug fixes, freebies, etc.
-
For the time being, the only built-in way that we have to auto-populate the user ID field,
can be either as shown with another Editor Type,
or you can also try our feature, where users can see and edit only their own data/ associated to their user ID;
but i see that this is not ideal for your use-case.
Kind Regards,
Miloš Jovanović
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables