cancel
Showing results for 
Search instead for 
Did you mean: 

Assistance Class on a standard Webdynpro - is it possible ?

Former Member
0 Kudos

Dear All,

I have often use Assistance Classes on my WD.

But this time I would like to use a custom Assistance Class on a standard Webdynpro.

Is that possible ?

I've tried to use the enhancement framework, but it was not possible neither.

Maybe it is not possible at all.

I 've thought about some alternatives nevertheless.

For example: creating a custom attribute on my standard component controller, where this custom attribute would be TYPE REF to my custom class.

It would work similar to an assistance class.... well, kind of.

;o)

What do you think ?

Kind Regards

/Ricardo Quintas

Accepted Solutions (0)

Answers (5)

Answers (5)

0 Kudos

Yes, it's  late reply, but would be helpful in the future for others.

Solution what I have found is,

1. Select assitance class and click Enhance button in the tool bar

2. Create Enhancement implementation

3. Add custom methods to the standard assitance class

4. Implement the custom logic in the above created method.

5. call the same from using wd_assist reference whereever needed.

Regards,

Chandru.

Former Member
0 Kudos

Thank you all for your answers, but I have found the answer myself.

I have confirmed that you can't use a custom Assistance Class on a standard WD.

So the alternative, as I indicated on my question, is to use a normal Z class.

Former Member
0 Kudos

If you can enhance the component controller attirbutes, create an attribute of that type class (SE24class) asTYPREFTO and instantiate the class in the component or where ever required as per the requirement and use the methods of that class.

What are you maintaining in this class?

Former Member
0 Kudos

Hi Lehka,

thank you for your reply.

If you can enhance the component controller attirbutes, create an attribute of that type class (SE24class) asTYPREFTO and instantiate the class in the component or where ever required as per the requirement and use the methods of that class.

But that was exactly what I had suggested on my question.

See my reply to Srinivas.

Thanks anyway.

/Ricardo Quintas

former_member199125
Active Contributor
0 Kudos

hi..

For example: creating a custom attribute on my standard component controller, where this custom attribute would be TYPE REF to my custom class.

It would work similar to an assistance class.... well, kind of.

So you mean you are maintaining an object in attribute? if yes, I dont think its possible.

Why dont u create normal class in se24 and access those methods in webdynpro in enhanced methods.

Regards

Srinivas

Former Member
0 Kudos

Hi Srinivas,

thank you for your reply.

So you mean you are maintaining an object in attribute? if yes, I dont think its possible.

Yes it is.

Try for yourself.

You just need to create an instance of that attribute inside your component controller and you are set to go.

Why dont u create normal class in se24 and access those methods in webdynpro in enhanced methods.

But that is exactly what I have suggested.

I was just wondering if you could do the same with an assistance class, but guess not.

Thanks anyway.

/Ricardo Quintas

Former Member
0 Kudos

I haven't tried it but seems your Custom singleton class approach would work.