cancel
Showing results for 
Search instead for 
Did you mean: 

Value Input Help Popups - missing attributes? - 2

Former Member
0 Kudos

Hello,

I tried to implement the search help solution described in the weblog "BSP Value Input Help Popups Version 2.0" in our WAS 6.20. But I get a syntax error in method RUNTIME_IS_VALID of class ZCL_ES_BSP_ELMNT_INPUT_HELP. The attribute mc_content is not available in my generated class. Do I have to define this attribute manually?

Best regards,

Marc

Accepted Solutions (0)

Answers (1)

Answers (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

MC_CONTENT should be inherited from <CL_HTMLB_ELEMENT>. You receive the inheritence of <CL_HTMLB_ELEMENT> from your Generated Basis Class (in my example this class name is ZCLG_ZKEG_INPUTHELP). You can see the Generate Basis Class name from the Properties Tab of your BSP Element. So ZCL_ES_BSP_ELMNT_INPUT_HELP has a superclass of ZCLG_ZKEG_INPUTHELP and ZCLG_ZKEG_INPUTHELP has a superclass of CL_HTMLB_ELEMENT. Your Generated Basis Class should be just that - Generated for you any time you change and activate your BSP Element. Are you sure you have activated yoru BSP Element?

Former Member
0 Kudos

My superclass of ZCL_ES_BSP_ELMNT_INPUT_HELP inherits from superclass CL_BSP_ELEMENT but not from CL_HTMLB_ELEMENT. Do I have defined something wrong in my Extension or in my Element?

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

What support package are you on? I checked all my custom BSP Elements and their generated classes and they inherit from CL_HTMLB_ELEMENT. Incidently CL_HTMLB_ELEMENT inherits from CL_BSP_ELEMENT. I checked several of the SAP provided elements (old ones from HTMLB library and newer ones from PHTMLB) and they all inherit from CL_HTMLB_ELEMENT. Could you please check your SAP provided Elements and see what they have? Right now I'm stumped. (but it doesn't take much).

Also the code for the RUNTIME_IS_VALID method is pretty much just copied from the SAP HTMLB:inputField since that is what we are wrapping around. You might have a look at that code in your system as well.

Former Member
0 Kudos

I checked the standard extension PHTMLB and it inherits from CL_HTMLB_ELEMENT. I noticed that the extension itself has the "BSP Element Basis Class" CL_HTMLB_ELEMENT. Do you have defined this class also in the proberties of your extension?

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

No that isn't what is in my Basis Class. That sounds very strange. If you look at the weblog there is a link to a zip file. The zip file contains a screen shot of my element properties (inputHelp_Element_Properties.jpg). From this screen shot you can see that my generated Basis class is ZCLG_ZKEG_INPUTHELP. You might try deleting your element and starting over. I have never seen the Cl_HTMLB_ELEMENT be the Basis class. The generated basis class is where you get all of your defined attributes from. Of course the standard CL_HTMLB_ELEMENT class wouldn't have these.

Former Member
0 Kudos

No, I don't meen to set the class CL_HTMLB_ELEMENT as basis class of the elemtent, but as basis class of the extension. I entered this class in my extension proberties and now it seems to work...

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

Now I understand. Glad you got it figured out. I created my BSP Extension itself back in Feb. of 2003 and had never looked at it since. I had forgotten there was even a Option to change the class there.