cancel
Showing results for 
Search instead for 
Did you mean: 

Syntax error on token "Enum", Identifier expected

Former Member
0 Kudos

Hellow Experts,

I am developing an application in nwds 7.3 , when i am using  TableColumnType class(com.sapportals.wcm.repository.enum.TableColumnType) but at the import statement we get an error message: Syntax error on token "Enum", Identifier expected

Due to this i am not able to resolve problem

please see the code below and in comment i have metioned the actual error and for more detail please see the attached file.

//Usage of Vecotrs and Table view model

                              Vector resultData = getResourceDetails(resourceListIterator,currentUser);

                              Vector colName = getColDetails();

                              TableViewModel tvm = new DefaultTableViewModel(resultData,colName);

                              TableColumn column = tvm.getColumnAt(1);

                              column.setTitle("asfvbsk");

                              column.setType(TableColumnType.IMAGE); /// errror The type com.sapportals.htmlb.enum.TableColumnType cannot be resolved. It is indirectly referenced from required .class files

                              TableColumn column1 = tvm.getColumnAt(3);

                              column1.setType(TableColumnType.LINK);   //error The type com.sapportals.htmlb.enum.TableColumnType cannot be resolved. It is indirectly referenced from required .class files

                              myBean.setModel(tvm);


Configuration:

JDK version: jdk1.6

NWDS 7.3

com.sapportals.wcm.repository.enum.TableColumnType

Has anyone experienced the same issue and found a workaround or solution?

Regards,

Kiran B



Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

thank u srinivas for your  immediate response , i resolved this issue.

Regards

Kiran B

Former Member
0 Kudos

Hi Kiran,

i am also facing exactly the same issue please provide me solution...





Thanks,

Umar.

former_member246153
Active Contributor
0 Kudos

Hi Kiran,

I think the method you are looking for is in this com.sapportals.wcm.control.util.generic.table.

http://help.sap.com/javadocs/NW73/SPS02/KMC/com/sapportals/wcm/control/util/generic/table/GenericTab...

But i think it is deprecated... Now need to find the other way around.

Regards,

Srinivasan V

former_member246153
Active Contributor
0 Kudos

Hi Kiran,

Have you checked in javadocs for SAP EP 7.3 whether you have that method or not..

Please check it in the below link

http://help.sap.com/javadocs/NW73/SPS02/KMC/index.html

Regards,

Srinivasan V