on 11-22-2004 4:02 PM
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
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.