Skip to Content
0

System Form Item Refreshing

Jan 16, 2017 at 08:59 AM

142

avatar image

Hi Experts,

I have created a form to save Folio Number on Customer Invoices form.

I want to refresh Folio Number edit texts with my new value when i click "Save" button.

I am updating "OINV" table "FolioPref" and "FolioNum" columns when i click the save button.

How can i do this?

custinv.png (21.4 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

DIEGO LOTHER Jan 16, 2017 at 04:41 PM
0

Hi Ahmet,

You can try to use the Update() method from your invoice form or simulate a click on the refresh button when your Invoice form is active "oApplication.ActivateMenuItem("1304")".

P.S: Don't forget to always update data with the SAP Business One SDK objects.

Hope it helps.

Kind Regards,

Diego Lother

Show 3 Share
10 |10000 characters needed characters left characters exceeded

Hi Diego,

When i try this(oApplication.ActivateMenuItem("1304")) other datas which is unsaved are problem for me.

Have you any idea about refreshing just Folio Fields?

Thanks,

Regards.

0

Hi Ahmet,

Unfortunately not.

Maybe you can try to enable the field in the form and put via UI-API the new values, but I don't know if SAP Business One client will allow you to set this field as enabled.

Kind Regards,

Diego Lother

1

Hi Diego,

SAP doesnt allow me to do enable fields.

I guess , there isnt any solution to solve the problem.

Thanks for your helps.

Regards.

Ahmet

0