-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Actions OnDrop, OnChange, and OnAction Not Working as Expected #84
Comments
An ItemId is present for all the records, but I am unable to retrieve it using the function Self.Selected.ItemId as it results in an error. |
I have the same issue where I expect a way to reference it's own variables rather than having to loop through all items. Here's my temporary fix for everyone else. I'm using the OnAction event and a button:
|
@Un-Genius Many Thanks for your reply. |
The ActionItemId property name in the action receives the value set in HTML after: action- Example: <button class="action-{{RecordId}}"... The action receives the GUID of the record. Only in OnAction, in OnDrop not working. And affirm that only the action class works with HTML button control and not others as indicated in the Actions section of the documentation @scottdurow. Example of what doesn't work : <img class="action-{{RecordId}}" src="https://cdn-icons-png.flaticon.com/512/622/622669.png" style="z-index: 0;" width="24" height="24" |
I believe it should be redesign using modern controls |
@scottdurow,
Good Day!
An ItemId is present for all the records, but I am unable to retrieve it using the function Self.Selected.ItemId, as it results in an error. This appears to be a bug in the component, and I need your immediate attention to resolve this issue as it is critical to my project's delivery.
Description:
I am encountering issues with the
OnDrop
,OnChange
, andOnAction
actions in Power Apps. Specifically, theSelf.Selected.ItemId
orSelf.Selected.id
value returns as blank when using theOnDrop
action. This behavior occurs consistently across all actions. Please check the attached image ItemId is there but it is not populating with Self fx.Steps to Reproduce:
OnDrop
action on a control that supports drag-and-drop functionality.Self.Selected.ItemId
orSelf.Selected.id
within theOnDrop
action.ItemId
value is blank.OnChange
andOnAction
actions on relevant controls and observe unexpected behavior.Expected Behavior:
The
Self.Selected.ItemId
orSelf.Selected.id
should return the correctItemId
orid
of the selected item when triggered by theOnDrop
action. TheOnChange
andOnAction
actions should also work as expected, responding to their respective triggers without issues.Actual Behavior:
Self.Selected.ItemId
returns a blank value during theOnDrop
action.OnChange
andOnAction
actions are not functioning as expected.Note:
I am working on a live application and using your component. I am urgently seeking a solution as this issue is delaying my project delivery.
Additional Information:
I understand that the
OnDrop
action is supposed to trigger when an item is dragged and dropped. Please clarify the intended use of theOnChange
andOnAction
actions with a small sample.The text was updated successfully, but these errors were encountered: