on 11-28-2008 9:56 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
104 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.