Delete item from colintreelistview error, with notification

In a colintreelistview, when clicking on an item to delete, I would like to include a notification beforehand, to ensure that the item is not deleted by mistake. But it happens that in the blocks above, the notification appears, but when I click YES, it does not delete anything, and no error message appears.

Please help me adjust the block above to work correctly. :grin:

move your if block into the Notifier.AfterChoosing event
Taifun

1 Like

A “leituralivre” variable receives values ​​when?

Yes, I have done this test also before, but nothing happens, and no error appears.


LeituraLivre or Escolha ?

This variable receives values ​​on a previous screen.

The data is stored in the “Leitura_Livre” variable.

But the variable must be associated with the Notifier. The Notifier gave you feedback on the variable “choice”. LeituraLivre is deciding whether or not the user wants to delete ???

Could you help me adjust these blocks? I’m kind of confused on how to do this.

Friend, if the variable already comes with the value “Yes” from another screen, then what is the notification for? So even if the user clicks NO, the deletion process will continue.

in the Depois Escolher block, try to know what is the “get value” value of the “escolha” variable. See what values ​​it receives when you click Yes and No.

In this way the blocks work perfectly. I click the delete icon and the item is deleted from the list.

But I want to include this notification before deleting the item.

blocks(2)

Buddy, you need to study some Algorithm. Notifier gives you feedback. Notifier has an “Depois Escolher” event. Depois Escolher what? What would be Depois Escolher? And why in this block “Depois Escolher,” do you have a variable escolha ? Try to know what this “variable” receives in value. Call the Notifier, click Yes. See the value of “escolha”. Then Click No in the Notifier. This will be your study … your research


Taifun

1 Like

Or do what is in the image above … it is much much much much easier …

@Taifun


blocks(1)

But … I will continue doing other tests here and researching more about it.
But in the meantime, I accept help or didactic suggestions.

1 Like


does choice make sense as list index? Not really…
Taifun

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.