cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
yougan
Helper V
Helper V

error while any assigning collection

While assigning a collection giving below error. 

in case if collection is not created yet, do we need to create a collection and execute this formulae?

If yes with how we need to creation collection. Please help.

 

11 REPLIES 11
eka24
Super User III
Super User III

The issue has to do with workinghours, is it a name of a textbox or name of a collection?

Collect(workinghours,{Name:NameTextInput.Text,Hour: workinghours.Text})

So try:
Collect(workinghoursTable,{Name:NameTextInput.Text,Hour: workinghours.Text})

if workinghours is not a textbox, replace it with the name of the textbox on your form

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

eka24
Super User III
Super User III

Hello is the issue Resolved

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Hello,

I tired as you have suggested.

Please refer attached screenshots.

workinghourstable -->collector name

in case if  I still I get the error, does it mean I should have created collector before? if yes how? Please help.

 

eka24
Super User III
Super User III

Use

Collect(workinghoursTable,{Name:NameTextInput.Text,Hour: WorkingHoursText.Text})

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Hello,

Thank you for your time.

But no luck. I have attached screenshots showing errors. 

 

eka24
Super User III
Super User III

Change the collection name. Also can you use a button instead of the triangle.

 

Collect(workinghoursTable2,{Name:NameTextInput.Text,Hour: WorkingHoursText.Text})

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

still same.

Where I have used triangle? are you referring rectangle?

 

I have attached screenshots

If possible can we have a screen sharing  now? Thank you. 

 

eka24
Super User III
Super User III

I have seen the problem:

Follow this;

Insert 2 new Textboxes  and let call it TextboxA and TextboxB.

 

Then use the formula as follows;

Collect(workinghoursTable2,{Name:TextboxA.Text,Hour:TextboxB.Text})

 

The issue is that what you have named as TexInputText is a rectangle not a Textbox. You cannot type or enter anything Ina rectangle. You have to use a Textbox.

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Hi Eka,

 

still  it is not working for me. Not sure where I was doing wrong.

Please find attached screenshots.

 

Thank you. 

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (17,380)