on 07-24-2012 8:39 AM
I have created an RFx from a Project. The script I have written is for RFx. I want to fetch the value of project type, for that I have tried this way:
import com.sap.odp.api.common.types.ObjectReferenceIfc;
import com.sap.odp.api.ibean.IBeanIfc;
import com.sap.odp.api.ibean.metadata.IBeanFieldMdIfc;
BeanIfc project= (IBeanIfc)doc.getParentIBean();
IBeanFieldMdIfc projectData= (IBeanFieldMdIfc) project.getFieldMetadata("DOC_TYPE").get(project);
but I am getting an error Typed variable declaration : null.
Where I am wrong? please help.
DocTypeRef = doc.getRootParentIBean().getDocTypeReference();
Using this method , it is giving the doc type of RFx not of project.
How to get the document type of project.
Hi Sahil,
Assuming other things are correct, how abt using project.getDocTypeReference() ? This should give you the object reference to the Project Type. And if you want more information about this Project Type you can use the PrjectTypeIBeanHomeIfc to find the bean for this project type.
Hope this helps.
Thanks
Devesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.