making default line type as 'both schedule and contract'

hewajithhewajith Member Posts: 96
Hi Anyone,

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'

Can anyone help me on thsi???

Thank you
hewajith

Comments

  • matttraxmatttrax Member Posts: 2,309
    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.
  • premnavpremnav Member Posts: 43
    matttrax wrote:
    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.

    PREMNAV
  • hewajithhewajith Member Posts: 96
    Thanks prem It woks
Sign In or Register to comment.