Skip to Content
0
Former Member
Jul 09, 2010 at 11:23 AM

EditText.Value = xxx doesnt work

27 Views

Hi there,

we are trying to develop an addon for a customer. (SBO8.8 PL10)

For this addon, we have to add a memofield (Alphanumeric, Type: Text) to OCRD where we save a temporary Text.

The Text have to be binded to the DB Datasource, because an other AddOn, uses this field to Print the Text,

so the text has to be saved.

Now we want to delete the Text in this field evry time Form_Data_Load triggers.

DBDatasource.setvalue() doesnt work, because we are working on a system DBDS on a system form.

Now we tryed:

                        EditText et = (EditText)f.Items.Item("Text").Specific;
                        et.Value = " ";

It seems that this way only works, if the previous record triggers Form_Data_Update.

When we try to load another record afterwards, nothing happens, the data is still in the field and nothing is deleted.

Is there a problem using EditText.Value?

Has anybody an explanation/workaround for this problem?

I really hope somebody can help me.

Kind Regards