cancel
Showing results for 
Search instead for 
Did you mean: 

form type of a code generated form

Former Member
0 Kudos

hello everybody

I created a form programmatically and i want to handle the click event of one of the buttons of this form.

But i am using SAP DE, so as you know for handling this event i should have a class MyButton which extends B1Item which has a constructor like

public MyButton ()
{
    FormType = "xxx";
    ItemUID = "yyy";
}

I didnt specify the formtype of the form i created, how can i know which formtype was created (i mean of course i can see, but will it always be the same in every installation), in order to replace xxx ???

If i specify the formtype what happens if it is already used by another form???

Is it a solution if i assign statistically to the class MyButton the formtype just after i create my form???

any kind of suggestion will be appreciated

thanks

Accepted Solutions (1)

Accepted Solutions (1)

former_member191896
Active Participant
0 Kudos

Hi Genc,

You should always provide a value for FormType when you create user forms. This FormType will be the same in all installations. The form's UniqueID will be different for each instance of the form that is open within the same application e.g. xxx_1, xxx_2 etc. when the FormType is set as xxx.

To make sure the FormType is not already in use, you need to prefix it with your namespace. Refer to "Namespace Conventions" and "Reserving a Partner Namespace" in SDK Help.

Regards

Aravind

Answers (0)