Hello,
I'm a beginner. Last Friday I started creating my first powerApp.
It is easy inventory, that contain two Sharepoint list (Item inventory and activity logs). I started with default template from tutorial (BrowseScreen,EditScreen and DetailScreen).
On DetailScreen I display item detail from item inventory (Default settings) and below this detail I display gallery, that contains this item's activity logs. On Header this gallery I have icon for adding new activity log, that redirect to LogEditScreen. LogEditScreen contain Header and Edit form.
Here is begin of my problem. I would like to automaticly set item name instead of default generated dropdown menu, that allows selection of all saved item names. I searched everywhere and tried everything, but I can't resolve it.
My Idea is, that I transmit item name from DetailScreen to LogEditScreen (Ideally as hidden label) and user fills rest of form. So I make sure the item is selected correctly and user can't add activity log for other item.
Sharepoint Lists definition
item inventory: item name (string),Handed over from (date),Borrower(String),...
activity logs: activity name (string), note (string), item name (lookup item name from item inventory)
I will be extremely grateful for any advice or reference to a tutorial that would help me.
1. Set the OnSelect property of gallery in BrowseScreen:
Set(VarItemName, ThisItem.'item name')
2. The Item name field in activity logs is a combo box in default, set the DefaultSelectedItems property:
LookUp(Choices('activity logs'.'item name'), Value=VarItemName)
3. Then the combo box will automatically select that item name, if you don't want user change it, just set the combo box mode to View, it will show as a label.
Sik
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
User | Count |
---|---|
193 | |
70 | |
49 | |
48 | |
20 |
User | Count |
---|---|
250 | |
127 | |
84 | |
76 | |
74 |