cancel
Showing results for 
Search instead for 
Did you mean: 

Adding data to system form

Former Member
0 Kudos

hi experts

I want to put DocDate and TaxDate into payments form how to do this.

i tried to add like this

no form load


Form frm = APL_Form.Polaczenie.pApp.Forms.GetFormByTypeAndCount(pVal.FormType,pVal.FormTypeCount);
(frm.Items.Item("10").SPecific as editText ).Value="15/04/08";

but it doesn`t work.

i also tried to add this data by DataSources.

this is in ORCT.DocDate

Regards

Edited by: Michal Wieczorek on Jul 16, 2008 10:46 AM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Dear Michal,

The payments form means the Payment Means form?

Best Regards

Jane Jing

SAP Business One Forums team

Former Member
0 Kudos

Hi

Incoming payments Form FormType 170

thx

Former Member
0 Kudos

Michal,

If pVal.FormType = "170" And pVal.EventType = SAPbouiCOM.BoEventTypes.et_FORM_LOAD And pVal.Before_Action = False Then

Try

oform = sbo_Application.Forms.GetFormByTypeAndCount(170, 1)

oform.Items.Item("10").Specific.value = "20080719"

oform.Items.Item("90").Specific.value = "20080719"

Catch ex As Exception

MsgBox(ex.Message)

End Try

End If

1) date has to be entered in yyyymmdd format.

2) exchange rate has to be updated for the date that you are passing. or else a window for the same will open.

HTH

Binita

Edited by: Binita Joshi on Jul 16, 2008 12:08 PM

Former Member
0 Kudos

Thanks it helps

Former Member
0 Kudos

Hi,

I have also same problem. How to add button,label,textbox on the system form.

I read this code but this where i want to write ?

I have created one screen painter form and this form i attach to SAP through .Net. By this in SAP i create our own one menu and in this i attach form.

No i want also in BusinessPartnerMasterData system form add new button.

Then for this what i do and where i write this code ?

Plz tell me step by step.

Thanks

Answers (0)