cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
CW
Level: Powered On

Collection and Datatable double standards

Hello.

 

  1. I put a datatable containing 2 fields; a title and a combo box on a screen,
  2. got title to sort but the combo box just showed some cryptic 'object' text ( ooookkkk),
  3. a nice gentleman, Reza recommended putting the data into a collection and spitting out the drop down text into regular text,
  4. Great, the two columns showed on the datatable sorted correctly. Excellent.

Not so fast, we're talking Microsoft and there's no way you get off that easy because now there's 2 more issues. Surprise!

 

  1. now you can't add an edit form connected to the collection. collName.Selected wants a field after whereas referencing a SP data source simply needs datasourceName.Selected (ohhh brother, there's always a catch, always. First double standard)
  2. if that's not enough of a pain, adding an html text box which shows the datatable data EXCEPT, now it's lost the sort. 🙄🙄

The only lesson in learning is use PowerApps carefully but if you try to take advantage of the potential functionalities, be prepared for a very unintuitive road trip.

 

Questions:

  • How do you use an editform with a datatable based on a collection??
  • How do you maintain a sort order going from datatable (Collection or other source) to an HTML text box??

Thanks (from Mr. Super Exasperated)

4 REPLIES 4
Community Support Team
Community Support Team

Re: Collection and Datatable double standards

Hi @CW ,

 

I just tested with an edit form and used a collection as the data source, I was able to make it work.

Did you make sure that you have set the DataSource property of the edit form to the collection name? Then set the Item property to DataTable1.Selected. 

 

Did you mean that after you add an HTML text box control in datatable control, the sort order becomes incorrect?

 

Regards,

Mona

 

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
CW
Level: Powered On

Re: Collection and Datatable double standards

Yup did all that. However, the edit form source cant use the collection. It's not available to choose and I even loaded it on app start.

 

Edit form, no collection to choose from even though it's created on app start and evidenced by the datatable which is based on thr collection (?????!!!!!!)

DataTable-Form-w-Coll1.png

 

Can't choose the datatable since the form isnt sourced by the collection. (there always has to be a fly in the ointment)

DataTable-Form-w-Coll.png

CW
Level: Powered On

Re: Collection and Datatable double standards

Works fine when using the SP list as the source:

DataTable-Form-w-list.png

 

Like I said, double standards. It is Monday and not a Tuesday with a fullmoon, perhaps that's why it's not working??????

CW
Level: Powered On

Re: Collection and Datatable double standards

Seems no one has the answer or everyone else is experiencing the same issue.

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

Top Kudoed Authors
Users Online
Currently online: 72 members 3,606 guests
Please welcome our newest community members: