# How to insert data from another component to collection items action

**URL:** <https://community.glideapps.com/t/how-to-insert-data-from-another-component-to-collection-items-action/72766>\
**Category:** Ask for Help\
**Created:** [April 21, 2024, 6:58am UTC](https://community.glideapps.com/t/how-to-insert-data-from-another-component-to-collection-items-action/72766 "2024-04-21T06:58:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![K\_Han](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/k_han/32/73921_2.png) [@K\_Han](https://community.glideapps.com/u/K_Han)\
**Post date:** [April 21, 2024, 6:58am UTC](https://community.glideapps.com/t/how-to-insert-data-from-another-component-to-collection-items-action/72766/1 "2024-04-21T06:58:45Z")

</div>

Is there a way from Glide where we can grab a certain data at a current screen to input into values into an action?

I have a database table that is called Class Schedule where it has a unique identifier of Class ID.

Linking to it will be Attendance table where upon clicking “Present” or “Absent” it will then create a row with respective Student ID but I am having difficulties looking up for the Class ID value. Any help is much appreciated.

 ![Capture.PNG](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/0/d/0df8744098c2b6a6d9a6247ef0b45e8e20eb8d7b.jpeg)

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [April 21, 2024, 8:45am UTC](https://community.glideapps.com/t/how-to-insert-data-from-another-component-to-collection-items-action/72766/2 "2024-04-21T08:45:08Z")

</div>

On entry to the class schedule details view, you can use a set column action to write the Class ID to your User Profiles row.

Then you can reference that in the “Present” or “Absent” actions.

---

<div class="post-metadata">

**Author:** ![K\_Han](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/k_han/32/73921_2.png) [@K\_Han](https://community.glideapps.com/u/K_Han)\
**Post date:** [April 21, 2024, 11:04am UTC](https://community.glideapps.com/t/how-to-insert-data-from-another-component-to-collection-items-action/72766/3 "2024-04-21T11:04:07Z")

</div>

Thank you so much for the quick response, I have given it a go and it does what I needed it to!

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)\
**Post date:** [April 28, 2024, 11:04am UTC](https://community.glideapps.com/t/how-to-insert-data-from-another-component-to-collection-items-action/72766/4 "2024-04-28T11:04:20Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
