Unable to modify data in WMSJournalReception Overview Grid

Hi;

The said form is actually working if I choose to open from WMSJournalTable form, however, if I choose to open from WMSArrivalOverview → Journal → Show arrivals from receipt, and view the lines from WMSJournalTable, the data in the grid seems to be fixed. I also added code in the initValue method of WMSJournalTrans but still, the data did not change. Can anyone help me on this. Thanks in advance.

What does that mean?

What changes you have made and what you are expecting?

When I open the lines (WMSJournalReception) it already had an initial value. So, I added a code in its datasource (WMSJournalTrans) under initValue method.

void initValue()
{
    ;
    journalFormTrans.datasourceInitValuePre();

    super();

    journalFormTrans.datasourceInitValuePost();
    //added code below
    WMSJournalTrans.qty = 0.00;
}

and view the lines from WMSJournalTable, the data in the grid seems to be fixed.

From WMSArrivalOverview, there is a button Journals where one of the menu is Show arrivals from receipt. Upon clicking on the Show arrivals from receipt, this will open the WMSJournalTable. Within the WMSJournalTable it will automatically display the Journal based on the selected voucher in the WMSArrivalOverview, there is a Lines button in WMSJournaTable, when I click on that it will display records based on the selected journal. When the WMSJournalReception opens, there is a record in the grid, that even if I override the initValue method of WMSJournalTrans, the record in the grid does not change.

Is it working if you open the same form from WMSJournalTable ? If so, check if the value is overwritten after your assignment. Try debugging.

When I assigned a value, it did write on the datasource. But I am not sure, why it did not changes the value in the grid.

Ok, when you click on Show arrivals from receipt, it is showing the data that is already created.
Initvalue works when you are creating a new record, but that is not the case here.

Ok, so how am I able to change the value that is being displayed in the grid?

That’s what i said. The records are already created, you cannot change them by having your code in initvalue method.
either you should update them or modify while they are inserted. See which option is feasible in your case.

Thanks. This gives me an insight.

I am marking it as answered based on your feedback.