Clarity

  • 1.  Instance Access Rigths for a resource using XOG/GEL

    Posted Feb 28, 2014 02:04 AM

    HI

    We have a resource lookup attribute in project object.

    When we change the value of the lookup from Resource A to Resource B.

    A's Instance rights have to be removed from that particular project and access has to be reassigned to B.

    These things should be achieved through a process.

    Any Suggestions???

    Thanks

    Nipun



  • 2.  RE: Instance Access Rigths for a resource using XOG/GEL

    Posted Feb 28, 2014 03:54 AM

    Yes you can do this through a process.

    Process triggered on change of the resource in the lookup; all instance right assignments (and removals) can be done in XOG called from a GEL script in the process.
     



  • 3.  RE: Instance Access Rigths for a resource using XOG/GEL

    Posted Feb 28, 2014 08:14 AM

    Hi Dave

    Absolutely can you please elaborate on how it can be done in gel script.

    Removing the instance  rights from the XML through GEL scripting.

     

    Thanks



  • 4.  RE: Instance Access Rigths for a resource using XOG/GEL
    Best Answer

    Posted Feb 28, 2014 08:27 AM

    complete="true"

    in the section of the XML where the instance rights are defined.

    --

    To prove this to yourself;

    1.create a user with some instance rights
    2.use the stock "users_read.xml" to read out that user
    3.edit that XML file;

    Find the "Instance rights" section, change the line
          <InstanceRights>
    to
         <InstanceRights complete="true">
     

    and remove some of the instance rights in that section.

    4. XOG that file back into Clarity.
    5. Notice that the instance rights that you removed from the XML file are now removed from the application.



  • 5.  RE: Instance Access Rigths for a resource using XOG/GEL

    Posted Feb 28, 2014 11:27 AM

    Yes Dave

    I have done this manually it works perfect.

    Since iam new to clarity i am not confident in GEL.

    So my my question is can we edit the XML using Gel Script?

     



  • 6.  RE: Instance Access Rigths for a resource using XOG/GEL

    Posted Feb 28, 2014 01:27 PM

    Yes, GEL can manipulate XML and call XOG with it.  I'm afraid that If you are planning to do this sort of thing then you will need to get confident in GEL (or get some detailed help!)

    Attached to the FAQ THREAD there is a gel.zip file, it contains a few example documents on GEL, including calling XOG from GEL.
     



  • 7.  RE: Instance Access Rigths for a resource using XOG/GEL

    Posted Feb 28, 2014 02:56 PM

    Thanks Dave I il try out.