I wants to make 'Both schedule and contract' default in job jornal .that means when user opens the job journal line type should be defaulted to 'both schedule and contract'
Changing the default value in the table can be dangerous as there may be a ton of underlying code that assumes the value is the one out of the box.
Often on journal lines there are other fields that cannot be changed unless some sort of "type" field has a certain value. I suspect this is probably the case here as well. Try adding your code to the OnNewRecord trigger of the form.
Changing the default value in the table can be dangerous as there may be a ton of underlying code that assumes the value is the one out of the box.
Often on journal lines there are other fields that cannot be changed unless some sort of "type" field has a certain value. I suspect this is probably the case here as well. Try adding your code to the OnNewRecord trigger of the form.
Hi Hawa,
Please do the following ;
Go to the Design mode of the Job Journal Line table (Table ID - 210)
Go tot the OnInsert Trigger of the table
Paste the following code;
"Entry Type" := "Entry Type"::"Both Contract and Schedule";
This is enable you to populate the value as expected.
Comments
Often on journal lines there are other fields that cannot be changed unless some sort of "type" field has a certain value. I suspect this is probably the case here as well. Try adding your code to the OnNewRecord trigger of the form.
My Blog - nav.education
Hi Hawa,
Please do the following ;
Go to the Design mode of the Job Journal Line table (Table ID - 210)
Go tot the OnInsert Trigger of the table
Paste the following code;
"Entry Type" := "Entry Type"::"Both Contract and Schedule";
This is enable you to populate the value as expected.
PREMNAV