Clear text box after OnClick

Hello everyone

I have added a new field to Mass Issues to Manufacturing; the field information is saved in the database when we click the Ok button. However, the dilemma I face is that I don’t know how to clear it after clicking Ok.

How to access the OnClick event of the button? Or what alternatives do I have?

image

Is the field associated with a dataview?

I am taking the ShortChar1 through CallContextBpmData.ShortChar01

Which field are you using to save to the database? Using that one might be what you are looking for.

CallContextBpmData is not usually used when you are saving it to the db.

I created a new field in PartTran_UD (TranDelReference_c) which I populate via ShortChar1

Ok.

the quick way is to clear the field CallContextBpmData after you update the parttrans UD field in the BPM/Data Method.

The CallContextBpmData doesn’t clear out by itself until the client is closed. It is best to make sure the CallContextBpmData field is also cleared when the form opens, so that there isn’t any data artifacts laying around.

That wouldn’t help me clean up the textbox.text

If it’s bound to the textbox it should.

Hi Mario,
When you are saving you should be able to set CallContextBpmData.ShortChar01 = “” (you mentioned this data was getting saved to the DB, I’m supposing something in the business logic saves this del reference).
The OK button, you won’t be able to add click event as it is not a user custom defined button.
Hope this helps

Mark

gunny72

You’re right! if it is possible to clear the CallContextBpmData.ShortChar01 = “” from the BPM.

Thanks for the ideas to understand the problem.