• Data,  Functionality

    Finding the newest versions of a criteria in a data set

    Have you ever wanted to find the newest/latest of all the different categories in a data set? For instance, the latest sale by each sales person, the last registration by a person – and generate a list of these. Firstly, a disclaimer here as the function used is not Delegable, however if all records you are looking for are in the newest 2,000 records, then read on. I am also assuming SharePoint as a data source in the example below. Firstly, the code required To explain what is going on here: –

  • Functionality

    Restricting users to specified file types in Attachment control

    This is a fairly straight-forward, but useful function to restrict users uploading attachments to file type specified. The example below restricts to JPG or PNG, but could be anything you choose. As soon as a non-allowed file is uploaded, it is immediately deleted and a message displayed regarding allowed file types. This code needs to go at OnAddFile in the Attachment control. You could also set a more prominent message label visibility off a variable triggered in the bottom If() statement if the Notification ribbon at the top is not sufficient.

  • Dynamic,  Functionality

    Combining two collections based on order alone

    There are times that you have two sets of data that you want to turn into one and they are actually “matching” in order, but have no common field. The number of fields in each does not matter, however you need to pick one (generally the one with the most fields), then add the fields from the other one. The example below only has one field in the first and two in the second, but show the principle of adding consecutive numbers to each and then joining them. This uses two collections – the collection process is only an example for testing and producing the resulting data sets to demonstrate…

  • Data,  Functionality

    Person Fields – reading and writing options

    There is often a challenge exploring the various options of searching and saving details into SharePoint Person fields, both single and multiple choice. This blog explores the various ways that Users can be chosen and saved. Standard choices There is often confusion around the “standard” provided Items which do not always provide a full list of employees. These Items only provide a choice of people already in the SharePoint List – if everyone is already in there, then this can be used, otherwise one of the other two options below is needed. Also, the syntax the Schema (Table structure) of a Person Field matches that of the Items Table, so no modification of the DefaultSelectedItems (Parent.Default or ThisItem.ThePersonFieldName) or Data Card Update (ComboBoxName.Selected or ComboBoxNameSelectedItems for multiple…

  • Design,  Functionality

    Roster Calendar App

    This is a simple one-screen Roster Calendar, which could be used for Annual or SIck/Personal Leave  (we have four/two weeks per year of those in Australia) or any other days you may want to track staff availability.  This is the link to download the zip package of the app – it is a (Legacy) Zip package and needs to to imported as such. There will also be an error initially as there is no data source attached. Create a SharePoint List called RosterList with three columns and connect it. The app has two filters at the top for year and month and the calendar is a week per line with Sunday to…

  • Functionality,  Helpful hints

    Group Membership Management App

    This App presents an easy way of managing groups and their memberships. It allows: – Adding members to groups (which also lists members of the chosen group) Deleting members from a Group Lising groups that a user is a member of Download the file here NOTE: The zip file is an exported (Legacy) package, not a Solution. I hope it is useful to you.

  • Data,  Functionality

    Displaying and saving time in 12 hour AM/PM format

    When Power Apps sets up a Date/Time field, the hours are in 24 hour format. Have you ever wanted to work with a 12 hour AM/PM choice and display for the user ? Here is how Add another drop-down at the right with Items and the Default of this drop-down Then you need to change the Items of the Hour drop-down to and the Default of the Hour drop-down Now the Update of the Data Card for the Hour dropdown This all should now allow you to perform this function

  • Data

    Allowing a user to add a non-listed value to a multi-value field

    I have used cbData for the Combo Box and MultiField for the field name in these examples. It is easy enough to allow a user to add a custom value to a single select Combo Box with a Data Card Update of so it simply uses the SeachText if entered and nothing is selected from it (or uses the selection as normal). But what about multi-select columns ? One fundamental issue here is that the SearchText is only accessible/visible when there are no other items selected, but we want to retain what is there presently and add the new item, so one compromise is the user needs to delete existing items that come up with the DefaultSelectedItems, but we can still retain…

  • Functionality,  Helpful hints

    Detecting mobile device app operation

    There is a generally simple method of detecting a mobile device where being true will detect a mobile device (as opposed to a PC), but we now have “cross-over” devices with these sensors being used as office PCs – so how do we detect them? What we really need to know is if the app is being run in a browser or on the Mobile App.One method I have tested which works is this – try to save a file with SaveData – at App OnStart, run this and then test gblDevice for the value.NOTE: This will only work properly on a PC / browser if this setting is switched off in the App.