Interview Questions

Thursday, August 26, 2021

System does not support setup 'continuous' of number sequence ####.

 Hi Friend,

Sometime we got the requirement that through code we need to create next number sequence value. But when we will write the code then during execution we got error message as = "System does not support setup 'continuous' of number sequence ####."


For solving this issue please add number sequence line between "TTS Begin" and "TTS Commit".

You need to put a ttsbegin/ttscommit statement around your number sequence generation code if you want to use a continuous number sequence. Continuous number sequences allow you to release unused numbers back to the pool of number sequences to use. Decide first if you want/need a continuous number sequence and then make it work. Unchecking the 'continuous' number sequence checkbox will work, but it may not be the final solution that you need.

 

Tuesday, August 24, 2021

How to make any button as by default selected on dialog created by X++

Hi Friends,

Sometime we got the requirement the we need to make "Cancel" button as by default selected on dialog created through X++;

So below function will help you to make "Cancel" button as default button on dialog.


Code: "dialog.defaultButton(DialogDefaultButton::Cancel);"