[Arches] Re: Resource descriptors - display name composed from more then one card

2021-04-30 Thread anjo.we...@gmail.com
Many thanks, Andy!
This is great and will help me dive into the customs functions topic.

Best wishes,
Anjo
On Monday, April 26, 2021 at 6:21:40 PM UTC+2 
andrew...@historicengland.org.uk wrote:

> Anjo,
>
> No, you want to look at creating a custom function.
>
>
> https://arches.readthedocs.io/en/stable/creating-custom-components/#functions
>
> You write a function that will trigger when one or more associated tiles 
> (card data) is saved. In your function you can then lookup or create a tile 
> for another card and set it's data based on your logic.
>
> One of our public repos has some examples of functions that we wrote which 
> creates or updates one tile with information from the one being saved.
>
>
> https://github.com/HistoricEngland/arches-bngpoint/blob/release/5.1.0/package/extensions/functions
>
> Andy
>
> On Monday, April 26, 2021 at 4:31:42 PM UTC+1 anjo.we...@gmail.com wrote:
>
>> Hi Andy,
>>
>> Many thanks for your reply. I have not worked on this level of 
>> customization in Arches yet. Is the route to the workaround you indicate 
>> based on  from the Arches documentation?
>>
>> Many thanks for your help,
>> Anjo
>>
>> On Friday, April 23, 2021 at 11:56:47 AM UTC+2 
>> andrew...@historicengland.org.uk wrote:
>>
>>> Hi Anjo,
>>>
>>> You currently cannot do this. We have the same low priority requirement 
>>> but have progressed it. It would be quite a tough task to create a generic 
>>> descriptor function given the possibly complexity of a model and how 
>>> cardinality between child and parent cards could be.
>>>
>>> The work around we used was to create a "display card" and write a 
>>> function that updates that card based on the specific rules of our model. 
>>> The card itself is set to read-only so users cannot update it.
>>>
>>> Andy
>>>
>>> On Thursday, April 22, 2021 at 9:47:02 AM UTC+1 anjo.we...@gmail.com 
>>> wrote:
>>>
 Hi,

 I would like to generate a composed display name using nodes from 
 different cards of the same resource. Is this possible? Does it require a 
 custom descriptor function?

 Many thanks,
 Anjo

>>>

-- 
-- To post, send email to archesproject@googlegroups.com. To unsubscribe, send 
email to archesproject+unsubscr...@googlegroups.com. For more information, 
visit https://groups.google.com/d/forum/archesproject?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Arches Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to archesproject+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/archesproject/57f222e8-b132-4c69-adff-d51b8058500an%40googlegroups.com.


[Arches] Re: Provisional Edits not visible to editor?

2021-04-30 Thread Brett Ferguson
Hi Cyrus - Thanks for the reply and confirming the intended behaviour.

On Thursday, April 29, 2021 at 1:27:50 PM UTC-7 Cyrus Hiatt wrote:

> Hi Brett,
>
> Thanks for bringing this to our attention. It is a concern, and I've 
> written a ticket for it: 
> https://github.com/archesproject/arches/issues/7369.  In the meantime, it 
> should be possible for a provisional user to find their provisional 
> resources in the `Recent Edits` page. 
>
> Thanks again,
>
> Cyrus
>
>
> On Friday, April 23, 2021 at 11:21:05 AM UTC-7 Brett Ferguson wrote:
>
>> And to be clear - Provisional Edits on an existing authoritative Resource 
>> are visible to the editor, it's just that provisional Resource creations 
>> aren't.
>>
>> On Friday, April 23, 2021 at 10:10:30 AM UTC-7 Brett Ferguson wrote:
>>
>>> Hi -
>>>
>>> I'm currently trying to develop a strategy to allow user groups to 
>>> submit provisional data to the provincial authority. The use case requires 
>>> that a submitting user be able to view and edit new resources they have 
>>> created, and it was looking like the Provisional Edits functionality added 
>>> in Arches 5 might be a good fit. However it appears that Provisional Edits 
>>> are not visible to the user that created them.
>>>
>>> Just wondering if anyone knows if this is the intended behaviour, if it 
>>> is a bug, or if I'm missing something? I find it strange that the editor of 
>>> a Provisional Edit would not be able to see their own Provisional Edits and 
>>> be given a chance to either modify them or revert them before they become 
>>> authoritative.
>>>
>>> Thanks!
>>> Brett
>>>
>>

-- 
-- To post, send email to archesproject@googlegroups.com. To unsubscribe, send 
email to archesproject+unsubscr...@googlegroups.com. For more information, 
visit https://groups.google.com/d/forum/archesproject?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Arches Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to archesproject+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/archesproject/157dede3-c2ce-4267-9aa8-0bb8b56585fdn%40googlegroups.com.