Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Class->method->parameter not as optional

Former Member
0 Likes
2,507

Hello All,

I have a small problem.

I created a class and a method.

For this method I have 4 parameters.

Now one of the parameter I made it as optional. ( the parameter is the filename type string, importing, optional )

But this parameter value should be different in different applications.

So I want that parameter to be mandatory.

Now I tried to remove the optional symbol.

But,it is in display mode .I'm not able to change it.

Can anyone help me ?

Regards,

Deepu.K

10 REPLIES 10
Read only

Former Member
0 Likes
1,650

Try like this delete that parameter using the ( - Button ), then again add the same parameter using ( + Button ).

If you inherit another super class those parameters will be in display mode.

Regards,

Prakash.

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
1,650

Are you working in SE24? I am able to check on/off with no problems.

Regards,

Rich Heilman

Read only

Former Member
0 Likes
1,650

Hi

Are you trying this in SE24.

I have tried the same and when i go to the method and click on the change button it makes the checkbox ready for change.

Could you check it once more

Read only

0 Likes
1,650

Hello Guys,

I'm building this in se24 only.

But i'm not able to change.

I have a super class for my class.

I think that's the reason i'm not able to change.

What do you guys say about this ?

Regards,

Deepu.K

Read only

0 Likes
1,650

Deepu goto Superclass and change from there.

Prakash.

Read only

Former Member
0 Likes
1,650

Yes that is the reason why you are not able to change the parameters option.

You will not be able to change it for methods of classes which have been inherited

Read only

0 Likes
1,650

But you can change for a method created in your class which is not part of the superclass. I just added a superclasse to my test class, and I am still able to change the parameter for the method define in my test class.

Regards,

Rich Heilman

Read only

0 Likes
1,650

Hello Guys,

My superclass doesnot contain this method .

But still I'm not able to change the attribute.

I don't know what's happening !!!!!

Please check out this guys.....

Regards,

Deepu.K

Read only

0 Likes
1,650

But here I can able to change the same.

Have u tried using insert and delete buttons.

Regards,

Prakash.

Read only

Former Member
0 Likes
1,650

Hi,

Is the method comming from a interface...i believe you cannot change an interface method's parameter..

Thanks,

Naren