Skip to main content
Solved

Start Default at @usr_action_type_id = 'form_editrow'


Forum|alt.badge.img+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' ?

Best answer by Mark Jongeling

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.

View original
Did this topic help you find an answer to your question?
This topic has been closed for replies.

3 replies

Mark Jongeling
Administrator
Forum|alt.badge.img+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.


Forum|alt.badge.img+4
  • Author
  • Sidekick
  • 18 replies
  • February 5, 2021

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.


Mark Jongeling
Administrator
Forum|alt.badge.img+23
  • Administrator
  • 3959 replies
  • Answer
  • February 5, 2021

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.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings