6 MQL for Matrix Users

download 6 MQL for Matrix Users

of 33

Transcript of 6 MQL for Matrix Users

  • 7/23/2019 6 MQL for Matrix Users

    1/33

    MQL For Matrix Users

  • 7/23/2019 6 MQL for Matrix Users

    2/33

    Prerequisites

    Have knowledge about Matrix basics

    Have knowledge about the usage of MQL

    Have knowledge about business adminobjects of Matrix

    The trainee should:

  • 7/23/2019 6 MQL for Matrix Users

    3/33

    Recap

    Learnt about Matrix fundamentals

    What are business objects?

    What are admin objects?

    What are the resonsibilities of !usiness "dministrator?

    What are the resonsibilities of #$stem "dministrator?

    %arious roerties of a business object

    "bout vaults & stores

    'ntro to MQL How to do MQL window settings and references

    (hree t$es are MQL command execution

    Working with )ontext

    *eneral s$ntax of MQL commands

    Recap of Day 1

  • 7/23/2019 6 MQL for Matrix Users

    4/33

    Recap

    Learnt about Matrix "dmin +bjects

    "bout s$stem,wide assword settings

    "bout how to create business definitions likeattributes- t$es- relationshis- olicies- formats-rules using MQL commands

    )reated the scrits for creating the admin objects

    Learnt about !usiness Modeling

    "bout business modeling

    )ase stud$ , .roject Management #$stem

    /one business modeling during the case stud$ andcreated MQL scrits

    Recap of Day 2

  • 7/23/2019 6 MQL for Matrix Users

    5/33

    MQL For Matrix Users

    MQL can be used b$ normal users for doingdatabase oerations

    He0#he can use MQL in Matrix tocreate0udate0delete the data

    (he user should have the following rivileges1 He0#he should be atleast an 2"lication 3ser4 to use

    MQL

    He0#he should be a 2"ctive4 user

    He0#he should be have aroriate access rivilegesdefined in .erson0.olic$ definition to do the desiredoeration

    5ach and ever$ action of the user is recorded in thebusiness object histor$

    Matrix Users

  • 7/23/2019 6 MQL for Matrix Users

    6/33

    MQL For Matrix Users

    (he oerations of a Matrix users can be broadl$classified as follows1

    #earching0%iewing06eading business objects

    )reating03dating0/eleting business objects "bout #earching0%iewing06eading1

    #earching is done using a Quer$ 73ser shouldhave access to Matrix database using MQL8

    %iewing is finding out the object4s ($e- 9ame &6evision 73ser should have 2show4 access8

    6eading is oening the business object forreading its various roerties 73ser should have

    26ead4 access8

    Matrix Users

  • 7/23/2019 6 MQL for Matrix Users

    7/33

    MQL For Matrix Users

    "bout )reating03dating0/eleting business objects )reating can be one of the following1

    )reating a new business object 7)reate access8

    )reating a revision of a business object 76evise access8

    )reating a clone of a business object 7)lone access8 3dating can be one of the following1

    )hanging the object basics 7)hange.olic$-)hange%ault- )hange($e- )hange9ame-)hange+wner8

    )hanging the object attributes 7Modif$"ttribute-Modif$/escrition8

    )hanging the object state 7.romote- /emote- "rove-6eject8

    )hecking in0 deleting files 7)heckin- )heckout8

    )onnecting0/isconnecting objects with each other

    7)onnect- /isconnect8

    Matrix Users

  • 7/23/2019 6 MQL for Matrix Users

    8/33

    MQL For Matrix Users

    "bout )reating03dating0/eleting business objects 3dating can be one of the following1

    Locking0 3nlocking the business object 7Lock- 3nlockaccess8

    *ranting0 6evoking a business object to other users7*rant- 6evoke access8

    5xecuting a method of the business object 75xecuteaccess8

    /eleting can be one of the following1

    /eleting a business object comletel$ from thedatabase 7/elete access8

    Matrix Users

  • 7/23/2019 6 MQL for Matrix Users

    9/33

    MQL For Matrix Users

    #earching a business object

    3sing list statement

    3sing Queries

    #tored Queries

    (emorar$ Queries

    " business object can be found out b$ a ersononl$ if he has 2show4 access

    Matrix kees the histor$ of the reviousl$searched atterns

    6esult of a :uer$ is returned as a #tring

    (his result can be arsed using ()L

    Searching/ Viewing

  • 7/23/2019 6 MQL for Matrix Users

    10/33

    MQL For Matrix Users

    3sing List statement

    #$ntax1

    MQL ;vault %"3L(9"M5@A

    5xamle1

    MQL ;B= list bus vault CH)) %aultDA

    (he above command will give a list of all theobjects from the vault CH)) %aultD

    'f the vault name is not given- the s$stem showsall the objects from the users current vault

    Searching/ Viewing

  • 7/23/2019 6 MQL for Matrix Users

    11/33

    MQL For Matrix Users

    3sing Queries 7#tored8 #$ntax1

    MQL ;

  • 7/23/2019 6 MQL for Matrix Users

    12/33

    MQL For Matrix Users

    3sing Queries 7#tored8

    5xamle1

    MQL ;B= add :uer$ .ersonQuer$ bus .erson G

    G owner CcreaG vault CH)) %aultA (he above :uer$ can be executed an$time using

    the statement1

    I MQL ;J= evaluate :uer$ .ersonQuer$A

    (he above :uer$ will return all the .erson objectsfrom the 2H)) %ault4 which are owned b$ theerson 2creator4

    Searching/ Viewing

  • 7/23/2019 6 MQL for Matrix Users

    13/33

    MQL For Matrix Users

    3sing Queries 7(emorar$8 #$ntax1

    MQL ;WH565 5F.65##'+9@4 select >#5L5)("!L5#@A

    (E.5 +bject t$e name 7Wildcard suorted8

    9"M5 +bject name 7Wildcard suorted8

    65%'#'+9 +bject revision 7Wildcard suorted8

    %"3L(9"M5 9ame of the vault to search the object

    +W9569"M5 9ame of the object owner

    (he temorar$ :ueries temorar$ to the currentMQL session of the user

    (he :uer$ will not be available if the user re login

    (he tem :uer$ has a 2where4 clause and a 2select4

    clause

    Searching/ Viewing

  • 7/23/2019 6 MQL for Matrix Users

    14/33

    MQL For Matrix Users

    3sing Queries 7(emorar$8

    5xamle1

    MQL ;B= tem :uer$ bus .erson G G owner

    CcreaG vault CH)) %ault whereKoriginated;an B- JN2 select id dum OA

    (he above :uer$ will return all the .ersonbusiness objects from the 2H)) %ault4 which arecreated after 2an B- JN4 and owned b$ the

    user 2creator4 "lso the statement selects the id of the business

    object

    (he 2dum4 ke$word is used to dum the result inone line

    Searching/ Viewing

  • 7/23/2019 6 MQL for Matrix Users

    15/33

    MQL For Matrix Users

    )reating a new business object

    MQL ;B-J-PPP@ attribute>B-J-PP@valueA5xamle1

    MQL ;BJ= add bus .erson 9eo

    vault CH)) %aultD

    olic$ .erson

    descrition C(his is for the erson 9eoD

    CHandhone 9umberD CBJBBD

    CLocationD C#ingaoreDA

    !or"ing with #usiness $%&ects

  • 7/23/2019 6 MQL for Matrix Users

    16/33

    MQL For Matrix Users

    )reating a revision of business object

    MQL ;

  • 7/23/2019 6 MQL for Matrix Users

    17/33

    MQL For Matrix Users

    )reating a clone of business object

    MQL ;/5#)6'.('+9@D attribute>B-J-PP@attribute>B-J-PP@valueA

    5xamle1

    MQL ;J= co$ bus .erson 9eo " to 9eoB "

    descrition C9ew )loneD C)it$D C#ingaoreDA(he above command creates a new clone and

    sets u descrition as C9ew )loneD and )it$as #ingaoreP

    !or"ing with #usiness $%&ects

  • 7/23/2019 6 MQL for Matrix Users

    18/33

    MQL For Matrix Users

    3dating business object basics0attributes

    MQL ;

  • 7/23/2019 6 MQL for Matrix Users

    19/33

    MQL For Matrix Users

    .romoting0 /emoting !usiness +bjects

    .romoting without signatures MQL ;

  • 7/23/2019 6 MQL for Matrix Users

    20/33

    MQL For Matrix Users

    .romoting0 /emoting !usiness +bjects

    3nsigning a business object signature MQL ;

  • 7/23/2019 6 MQL for Matrix Users

    21/33

    MQL For Matrix Users

    )onnecting 0 /isconnecting !usiness+bjects

    )onnecting business objects MQL ;65L9"M5@ attribute>B-J-PPP@ attribute>B-J-PP@valueA

    (he user should have 2toconnect4 or 2fromconnect4 accessbased on the direction of the relationshi

    /isconnecting business objects MQL ;65L9"M5@A

    (he user should have 2todisconnect4 or 2fromdisconnect4

    access based on the direction of the relationshi

    !or"ing with #usiness $%&ects

  • 7/23/2019 6 MQL for Matrix Users

    22/33

    MQL For Matrix Users

    )hecking in0 )hecking out files

    )hecking in a file MQL ;

  • 7/23/2019 6 MQL for Matrix Users

    23/33

    MQL For Matrix Users

    Locking0 3nlocking business objects

    MQL ;

  • 7/23/2019 6 MQL for Matrix Users

    24/33

    MQL For Matrix Users

    *ranting0 6evoking business objects

    MQL ;

  • 7/23/2019 6 MQL for Matrix Users

    25/33

    MQL For Matrix Users

    *ranting0 6evoking business objects

    5xamle1

    MQL ;BJ= mod bus .roject aguar B grantCguest access read- modif$- show ke$ (estA

    (he above command gives read- show and modif$access to the user CcreatorD for the business object9eo and ke$s the grant under the name C(estD

    MQL ;J= mod bus .erson 9eo " revoke ke$(estA

    "bove command revokes the grant name C(estDfrom the user CguestD

    !or"ing with #usiness $%&ects

  • 7/23/2019 6 MQL for Matrix Users

    26/33

    MQL For Matrix Users

    5xecuting a business object method MQL ;

  • 7/23/2019 6 MQL for Matrix Users

    27/33

    MQL For Matrix Users

    /eleting a business object MQL ;

  • 7/23/2019 6 MQL for Matrix Users

    28/33

    MQL For Matrix Users

    .rinting a business object MQL ;generic@Pfilerelationshi>5mlo$ee@ attribute>)it$@ dum OA

    MQL ;= rint bus .erson 9eo select current dum Ooutut Cc109eoPtxtD1

    !or"ing with #usiness $%&ects

  • 7/23/2019 6 MQL for Matrix Users

    29/33

    MQL For Matrix Users

    5xanding a business object

    MQL ;6ole@ busattribute>/eartment@A

    !or"ing with #usiness $%&ects

  • 7/23/2019 6 MQL for Matrix Users

    30/33

    MQL For Matrix Users

    Matrix has two kinds of transactions1

    'mlicit transactions

    (his is the default transaction mode

    maintained b$ Matrix (ransaction is committed with each and ever$

    statement

    5xlicit transactions

    (his is set b$ the user exlicitl$

    (he user can commit this transaction aftermaking desired udations to the database

    !or"ing with Transactions

  • 7/23/2019 6 MQL for Matrix Users

    31/33

    MQL For Matrix Users

    #etting exlicit transactions1

    (o start a new transaction1

    MQL ;

  • 7/23/2019 6 MQL for Matrix Users

    32/33

    MQL For Matrix Users

    Matrix has a in,built emailing s$stem called2iconmail4

    5ver$ matrix user has a iconmail inbox if the$

    have 2icon mail4 otion enabled in their userdefinition

    " business object can be attached and sent to theuser using iconmail

    Rollowing is the s$ntax to send a email1

    MQL ;

  • 7/23/2019 6 MQL for Matrix Users

    33/33

    (hank $ouP