Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82714

Editor separator and MJoin question

$
0
0

hi all
First of all, thanks for your help for all questions I asked <3 .

As you know I was born last century and start dev with CPM or DOS, but ...

Is there a way (not using template forms) to draw a separator (simple line, better with thickness, dotted or not, with text or not but...) in the editor ? B)
I hope this will be possible....

Other point is :'(
I need to set access rights to n employes to n rows in table 2 but only for particular row type:
each row has an unique ID and a Type (can be 1, 2 , 3) ...

using MJoin, I can set users rights to object ID

                    Mjoin::inst( 'operations' )
                        ->link( 'prescripteurs.ID', 'prescripteurs_operations.Prescripteur' )
                        ->link( 'operations.ID', 'prescripteurs_operations.Operation' )
                        ->order( 'operations.Libelle asc' )
                        ->fields(
                            Field::inst( 'ID' )
                                ->validator( Validate::required() )
                                ->options( Options::inst()
                                    ->table( 'operations' )
                                    ->value( 'ID' )
                                    ->label( 'Libelle' )
                                ),
                            Field::inst( 'operations.Libelle' )
                                ->name('LibOp')
                                -> set(false)
                        )

**but I want to set rights to users for specific type of object (where they do have access by type) **

                    Mjoin::inst( 'operations_TYPE1 AS SELECT * FROM operations where Type=1' )
                        ->link( 'prescripteurs.ID', 'prescripteurs_operations.Prescripteur' )
                        ->link( 'operations_TYPE1.ID', 'prescripteurs_operations.Operation' )
                        ->order( 'operations_TYPE1.Libelle asc' )
// or where clause here
                        ->fields(
                            Field::inst( 'ID' )
                                ->validator( Validate::required() )
                                ->options( Options::inst()
                                    ->table( 'operations' )
                                    ->value( 'ID' )
                                    ->label( 'Libelle' )
                                ),
                            Field::inst( 'operations_TYPE1.Libelle' )
                                ->name('LibOpType1')    // displayed value
                                -> set(false)
                        ),
                    Mjoin::inst( 'operations_TYPE2 AS SELECT * FROM operations where Type=2' )
                        ->link( 'prescripteurs.ID', 'prescripteurs_operations.Prescripteur' )
                        ->link( 'operations_TYPE2 .ID', 'prescripteurs_operations.Operation' )
                        ->order( 'operations_TYPE2 .Libelle asc' )
// or where clause here
                        ->fields(
                            Field::inst( 'ID' )
                                ->validator( Validate::required() )
                                ->options( Options::inst()
                                    ->table( 'operations' )
                                    ->value( 'ID' )
                                    ->label( 'Libelle' )
                                ),
                            Field::inst( 'operations_TYPE2 .Libelle' )
                                ->name('LibOpType2')    // displayed value
                                -> set(false)
                        ),

Is there a pretty way to do that ?


Viewing all articles
Browse latest Browse all 82714

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>