Skip to content
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

Save state don't work #66

Open
BONNAUDET opened this issue Mar 19, 2024 · 1 comment
Open

Save state don't work #66

BONNAUDET opened this issue Mar 19, 2024 · 1 comment

Comments

@BONNAUDET
Copy link

Hi scott
Thank you for your job
for update template i want to save state in the collection.
I did this function while watching your video, but apparently there is an error.
when I move a task it returns to its position
(it's the europeen syntax )

ForAll(
Filter(
pcf_NotStarted.CurrentItems;
HasMovedZone = true || HasMovedPosition = true
) As TaskAssignment;
Patch(
colTasksList;
LookUp(
colTasksList;
Text(NUM_BON) = TaskAssignment.ItemId
);
{
zone: TaskAssignment.DropZoneId;
displayorder: TaskAssignment.Position;
edited: "true"
}
)
);;
Set(
TasksSaved;
false
);;

Do you have any idea about this error? thank

@BONNAUDET
Copy link
Author

Hi
Sorry Scott, i haven't define the "SortPositionType" and "CustomPositionColumn"
after this change the order was not good, I had to make the following modification on the items variable, is this normal?

SortByColumns(colTasksList;"displayorder";SortOrder.Ascending)

Best regards
Eric

@BONNAUDET BONNAUDET reopened this Mar 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant