Display only special value

Display only special value

SeppelchenSeppelchen Posts: 69Questions: 25Answers: 1

Hello,
we had create a table. One of the column will store a customer id.
We also had create a call to get customer number.
If we output like

echo $customernumer

It will display this number.
How we can set up a rule, that datatable will only display rows who customernumber ==$customernumer on column customer_id ?

Answers

  • SeppelchenSeppelchen Posts: 69Questions: 25Answers: 1

    Hello, could anybody help?

  • allanallan Posts: 63,695Questions: 1Answers: 10,500 Site admin

    The documentation for how to apply conditions in Editor is available here in the manual.

    Allan

  • SeppelchenSeppelchen Posts: 69Questions: 25Answers: 1

    Hello Allan,

    where we need insert this for example:

    $editor->where( 'user_id', 12 );
    

    Into server_proccessing file? Or how we need insert? :?

  • allanallan Posts: 63,695Questions: 1Answers: 10,500 Site admin

    You would insert it into wherever you are currently using the Editor PHP class. $where is the Editor instance created by Editor::inst. If you don't create such a variable then you could just insert the ->where() into the method chain.

    Allan

  • SeppelchenSeppelchen Posts: 69Questions: 25Answers: 1
    edited October 2015

    Hello Allan, I dont know where I can insert your example...:(
    Where I should place this code that it will be working?

    Could you please let me know how i can made it working please? :(

  • allanallan Posts: 63,695Questions: 1Answers: 10,500 Site admin

    I'm not sure how much clearer I can be to be honest. Can you show me the PHP that you are currently using where you construct the Editor instance?

    Allan

  • SeppelchenSeppelchen Posts: 69Questions: 25Answers: 1
    edited February 2016

    Hello, we need help again.
    We store into a table "archiv" a lot of entrys from different mandant. Where we could display only the data from the user who is logged in?
    If we call
    echo $user we get the id from mandant. How we can manage that only this lines from mandant will display?

  • allanallan Posts: 63,695Questions: 1Answers: 10,500 Site admin

    Where we could display only the data from the user who is logged in?

    DataTables and Editor don't provide any log in code. That would need to come from whatever software you are using for the login session.

    Allan

This discussion has been closed.