0

problems with view

Hello all. 

I got great help with a problem with vaccinations this week, and now i have an other problem

I have a table with traning activities for horses.. Date, activity, comment this is a child table to my horse table.. 

now i want to select a week and want it to look like this.. Horse name, monday, tuesday wen..... all i can get is this contration of activities..

any suggestions

 

regards Henrik

Skærmbillede 2021-04-18 kl. 19.08.35

5 replies

null
    • John_Halls
    • 3 yrs ago
    • Reported - view

    Hi Henrik

     

    I have mocked up something that gives what you describe. You will need to use a Kanban view and counter intuitively this is in the Activities table, not horses. Kanban views need a choice field to use as the columns, so set one up with 7 choices Monday to Sunday. If this field is called Day and the date of the activity is called Date get this populated with a Trigger after update 

     

    Day := weekday(Date) + 1

     

    You only want to select one week at a time so add a function field in Activity using this formula

     

    yearweek(Date)

     

    Now you can set your kanban up with Day as the column header, the name of your horse and its activity. Also include the yearweek field so thst you can search for this in the Kanban. It has the form 2021/15 and thankfully runs from Monday to Sunday. This kanban only makes sense once you have searched for a single week.

     

    I can provide screenshots if this doesn't make sense.

     

    Regards John

    • Henrik_B
    • 3 yrs ago
    • Reported - view

    Hi John 

    sounds great.. if you have a few sreenshots it would be great..

    thanks

    • John_Halls
    • 3 yrs ago
    • Reported - view

    Morning Henrik

     

    From my structure you can view the Activity as a Kanban or as a Pivot (not so successfully). In each of these you need to include the yearweek field so that you can search for it. You could, of course, use the Calendar instead of any of the above!

     

    Regards John

    • Henrik_B
    • 3 yrs ago
    • Reported - view

    okay i have got most of it to work now, my problem is, that the traning table is a hidden childtable to the horses table, and if i try to make a kanban it always uses the horses table.. What i would like was to include the kanban in my dashboard. (empty table) byt i can't figure it out.. And also how do i send a paramter to the kanban like the yearweek ?

    Skærmbillede 2021-04-19 kl. 09.26.15

    • John_Halls
    • 3 yrs ago
    • Reported - view

    Hi Henrik

     

    If its hidden with the Hiiden attribute of the table ticked then you can untick that to show thae table again, or if it's not showing because Compsition is set to Yes it can be accessed from the small down arrow you can see on your Heste table. The yearweek() is a Ninox function that turns a date into a year week like 2021/15 as I explained in my first reply. Create a formula field in Activity and use yearweek(Date). This is what you need to search for to just have a single week's worth of activities showing

     

    I don't think Kanban and Pivot Table views are available as dashboard elements - unless other forum members know differently.

     

    Regards John

Content aside

  • 3 yrs agoLast active
  • 5Replies
  • 377Views