Question

Photo of Kenneth Roach

0

How to edit ONLY the attributes of a Defined Type - e.g. a Building Key Register

I am trying to set up a building key register. 

(List of building keys.  Each key is assigned to a person. Person needs to acknowledge receipt of the key.  Track when they got the key and when it was returned. )

I have created a Defined Type 'Keys' with attributes: Person, Date Assigned, Date Returned, Receipt Acknowledged.

I can use the Defined Value List block that list the keys, and the Person the key is assigned to, and set the security on the page so that this does not allow edit to anyone other than Administrator.  This makes each row read only.  Okay so far.

Keys1.jpg


Now I need a block that users can used to edit each Defined Type (e.g. Key1, Key2, Key3) - but ONLY edit the assigned attributes for each value.

User clicks on a Defined Type, is then given a pop up block or new page where they can edit only the Attribute Values.  How do I do this?

(This could be achieved by another setting on the Defined Value List block settings - 'Allow editing of Defined Value? [ Y/N ]'.  Default is Y.  If No, then when clicking a row for editing, the Defined value is locked for editing and only the attributes can be edited.)

Is there a (better) way to do this?

Keys2.jpg

  • Photo of Daniel Hazelbaker

    0

    I don't think anything in Rock supports that. It seems like a pretty niche thing (though interesting idea based on my guess of what that does).  A better option might be to use a Workflow that allows people to update those attribute values. If you persist the workflows, you also then have a "log" of who changed what.

    • Kenneth Roach

      Thanks Daniel. This idea has lots of other typical church applications: we have a list of things (keys, parking bays, rooms, projects, ...) that get assigned to someone, and the link has different attributes. I haven't got my head around the best way to do this in Rock yet. Workflows is one - is it the best way?

    • Daniel Hazelbaker

      Sorry I can't say if it's the best way without knowing all the ins and outs of exactly what you would be using it for. On the surface it sounds like it should do what you need though.