cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Showing Attribute from MettaAssociation in Java Report

ki6i
Trusted Contributor

Hello,

 

I have problems showing Attribute from MettaAssociation in java report in editable format. For example, let's say that I want to show in a Java Report the following variables (in editable format) – IT Manager, Process Manager, Quality Manager and etc. 

 

I manage to make it work so it shows them in text format:

 

MegaObject appWithResp = person.getType().getCollection("Assigned Application").item(selected_application.getID());
if(appWithResp.getID() != null) {
    Text itMan = new Text(appWithResp.getProp("~tvhNy4cg)KD0[IT Manager]"), false);
}

But when I can't make it be in editable format. Any ideas?

 

 

bla1.png

1 Reply

ki6i
Trusted Contributor

 

Well here is the answer (hope it helps somebody else). Starting from the CP5 you can proceed by this way :

 

 

MegaObjectProperty itMan = new MegaObjectProperty((String) appWithResp.invokeFunction("getPath"),"~tvhNy4cg)KD0[IT Manager]", true);