Welcome, Guest
Please Login or Register.    Lost Password?

Additional expression..
(1 viewing) (1) Guest
This is the optional Forum header for the Suggestion Box.
Go to bottomPage: 1
TOPIC: Additional expression..
#658
Additional expression.. 1 Month, 2 Weeks ago Karma: 0
Hello,

Is it possible to define some others expression than :
'@article_id'
'@category_id'
'@section_id'
'@user_id'
'@group_id'

To create custom condition ?

Actually I need to create a condition based on a field manually added to the Joomla's users table.

This ID is different for every users as the user_id is, in my case it is an internal customer ID.



In example :
Aditional Condition:
WHERE ERP_INTERNAL_ID = '@erp_id'


Congratulations for this excellent extension and thank in advance !!!
alex113528
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#664
Re:Additional expression.. 1 Month, 2 Weeks ago Karma: 1
Hi,

where are you going to get @erp_id?

If you have added the field in jos_users table, then you have one sort of mapping between id of joomla users and your erp system.

All you need to create is sql view:

e.g.:
Code:

CREATE VIEW Something AS
SELECT id, ERP_INTERNAL_ID, name
FROM jos_users



and create in WHERE section:
WHERE
Code:

id = @user_id


When someone enters registered area, you can display only his/her erp_internal_id and name to him/her.

Or you need something else?

Best regards,
Viljem
viljem
Admin
Posts: 152
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1
Tools JX, Powered by Joomla!; Joomla templates by SG web hosting