Recent posts:
Recent replies:

Thank you very much Peter!

I will look into it now.

I really appreciate your effort to help!


Nael Naseraldeen


Ok. here is the code, it's a minimal code of a many to many relationship:

Class TafnitTest.Student Extends (%Persistent, %JSON.Adaptor, %Populate)
Property MyName As %String;
Relationship Teachers As TafnitTest.TechersToStudents [ Cardinality = many, Inverse = Student ];

Class TafnitTest.Teacher Extends (%Persistent, %JSON.Adaptor, %Populate)

Property MyName As %String;

Relationship Students As TafnitTest.TechersToStudents [ Cardinality = many, Inverse = Tracher ];


Class TafnitTest.TechersToStudents Extends (%Persistent, %JSON.Adaptor, %Populate)

Relationship Student As TafnitTest.Student [ Cardinality = one, Inverse = Teachers ];

Index StudentIndex On Student;

Relationship Tracher As TafnitTest.Teacher [ Cardinality = one, Inverse = Students ];

Index TracherIndex On Tracher;


Also I will attach the code as an XML export for convenience of importing and testing, If I find a way to do upload a file here..

after creating the classes, populate:

W ##CLASS(TafnitTest.Teacher).Populate(100)
W ##CLASS(TafnitTest.Student).Populate(100)
W ##CLASS(TafnitTest.TeachersToStudents).Populate(100)

And the JSON Export:

d ##CLASS(TafnitTest.Student).%OpenId(1).%JSONExport()

The JSON indicated that two teachers  teach this student, but not the details.

In my post, the id is a property I added to the intermediate class. I did not add it in this minimal example.


Nael Naseraldeen


I have another server, that is not in the network with the proxy I mentioned, and it does work with default settings as you said.

The problem is only when I must go through the proxy.

It's possible that the HttpRequest class is unable to handle this situation, but I am hoping that this is not the case.

Nael has not followed anybody yet.
Global Masters badges:
Nael has no Global Masters badges yet.