Solved

Start Default at @usr_action_type_id = 'form_editrow'

  • 5 February 2021
  • 3 replies
  • 54 views

Badge +4

Bij @usr_action_type_id = 'form_addrow', krijg ik wel de default, kunnen we ook de default instellen bij

@usr_action_type_id = 'form_editrow' ?

 

Edit by moderator:

At @usr_action_type_id = 'form_addrow', I do get the default, can we also set the default at

@usr_action_type_id = 'form_editrow' ?

icon

Best answer by Mark Jongeling 5 February 2021, 14:15

View original

3 replies

Userlevel 7
Badge +23

Hi,

Can you elaborate more on what you are trying to achieve? Are you trying to have a different Default procedure for Editing then for Adding?

If so, yes it is possible with the variable @default_mode. When adding a row, this variable has the value 0, when editing a row it has the value 1. This way you can execute parts of the default only when adding and/or editing.

Badge +4

Can you say more about what you are trying to achieve? Are you trying to have a different default procedure for editing than for adding?

If so, this is possible with the variable @default_mode. When adding a row this variable has the value 0, when editing a row it has the value 1. In this way you can execute parts of the standard only when adding and/or editing.

 When editing one row, we want to retrieve default values from previous rows, but the default

While when we add something, the default is offered.

We have tried your comment, where then the default is not started when changing the row.

Userlevel 7
Badge +23

Hi,

That is due to the fact that the Default procedure only gets called upon Adding a row and Editing a value of a row. Upon selecting a row and pressing Edit, the Default is not executed yet but instead is waiting for the user to edit a value before executing. 

Hope this clears things up.

Reply